Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 25 of 548) sorted by relevance

12345678910>>...22

/netbsd/src/external/gpl2/lvm2/dist/tools/
Dlvcreate.c30 static int _lvcreate_name_params(struct lvcreate_params *lp, in _lvcreate_name_params() argument
38 lp->lv_name = arg_str_value(cmd, name_ARG, NULL); in _lvcreate_name_params()
40 if (lp->snapshot && !arg_count(cmd, virtualsize_ARG)) { in _lvcreate_name_params()
47 lp->origin = argv[0]; in _lvcreate_name_params()
49 if (!(lp->vg_name = extract_vgname(cmd, lp->origin))) { in _lvcreate_name_params()
56 if ((ptr = strrchr(lp->origin, (int) '/'))) in _lvcreate_name_params()
57 lp->origin = ptr + 1; in _lvcreate_name_params()
65 if (!(lp->vg_name = extract_vgname(cmd, lp->lv_name))) { in _lvcreate_name_params()
82 if (lp->lv_name && strchr(lp->lv_name, '/')) { in _lvcreate_name_params()
83 if (!(lp->vg_name = in _lvcreate_name_params()
[all …]
Dlvresize.c53 struct lvresize_params *lp) in _validate_stripesize() argument
74 lp->stripe_size = vg->extent_size; in _validate_stripesize()
76 lp->stripe_size = arg_uint_value(cmd, stripesize_ARG, 0); in _validate_stripesize()
78 if (lp->mirrors) { in _validate_stripesize()
82 if (lp->stripe_size & (lp->stripe_size - 1)) { in _validate_stripesize()
93 const struct lvresize_params *lp) in _request_confirmation() argument
104 if (lp->resizefs) { in _request_confirmation()
107 "before resizing filesystem", lp->lv_name); in _request_confirmation()
118 display_size(cmd, (uint64_t) lp->extents * vg->extent_size)); in _request_confirmation()
124 lp->lv_name) == 'n') { in _request_confirmation()
[all …]
Dlvconvert.c47 static int _lvconvert_name_params(struct lvconvert_params *lp, in _lvconvert_name_params() argument
54 if (lp->snapshot) { in _lvconvert_name_params()
61 lp->origin = *pargv[0]; in _lvconvert_name_params()
63 if (!(lp->vg_name = extract_vgname(cmd, lp->origin))) { in _lvconvert_name_params()
70 if ((ptr = strrchr(lp->origin, (int) '/'))) in _lvconvert_name_params()
71 lp->origin = ptr + 1; in _lvconvert_name_params()
79 lp->lv_name = lp->lv_name_full = (*pargv)[0]; in _lvconvert_name_params()
82 if (strchr(lp->lv_name_full, '/') && in _lvconvert_name_params()
83 (vg_name = extract_vgname(cmd, lp->lv_name_full)) && in _lvconvert_name_params()
84 lp->vg_name && strcmp(vg_name, lp->vg_name)) { in _lvconvert_name_params()
[all …]
/netbsd/src/external/cddl/osnet/dist/lib/libuutil/common/
Duu_list.c35 #define ELEM_TO_NODE(lp, e) \ argument
36 ((uu_list_node_impl_t *)((uintptr_t)(e) + (lp)->ul_offset))
38 #define NODE_TO_ELEM(lp, n) \ argument
39 ((void *)((uintptr_t)(n) - (lp)->ul_offset))
182 uu_list_t *lp, *next, *prev; in uu_list_create() local
198 lp = uu_zalloc(sizeof (*lp)); in uu_list_create()
199 if (lp == NULL) { in uu_list_create()
204 lp->ul_pool = pp; in uu_list_create()
205 lp->ul_parent_enc = UU_PTR_ENCODE(parent); in uu_list_create()
206 lp->ul_offset = pp->ulp_nodeoffset; in uu_list_create()
[all …]
/netbsd/src/sys/arch/mvme68k/mvme68k/
Ddisksubr.c51 static void bsdtocpulabel(struct disklabel *lp, struct cpu_disklabel *clp);
52 static void cputobsdlabel(struct disklabel *lp, struct cpu_disklabel *clp);
55 static void printlp(struct disklabel *lp, const char *str);
69 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, in readdisklabel() argument
76 bp = geteblk((int)lp->d_secsize); in readdisklabel()
81 bp->b_bcount = lp->d_secsize; in readdisklabel()
98 cputobsdlabel(lp, clp); in readdisklabel()
101 printlp(lp, "readdisklabel: bsd label"); in readdisklabel()
112 writedisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, in writedisklabel() argument
120 printlp(lp, "writedisklabel: bsd label"); in writedisklabel()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/
Dlinux-nat.c286 static int stop_callback (struct lwp_info *lp);
297 static int lwp_status_pending_p (struct lwp_info *lp);
299 static bool is_lwp_marked_dead (lwp_info *lp);
301 static void save_stop_reason (struct lwp_info *lp);
310 is_leader (lwp_info *lp) in is_leader() argument
312 return lp->ptid.pid () == lp->ptid.lwp (); in is_leader()
318 pending_status_str (lwp_info *lp) in pending_status_str() argument
320 gdb_assert (lwp_status_pending_p (lp)); in pending_status_str()
322 if (lp->waitstatus.kind () != TARGET_WAITKIND_IGNORE) in pending_status_str()
323 return lp->waitstatus.to_string (); in pending_status_str()
[all …]
/netbsd/src/sys/arch/next68k/next68k/
Ddisksubr.c75 parse_nextstep_label(struct next68k_disklabel *ondisk, struct disklabel *lp, in parse_nextstep_label() argument
92 lp->d_magic = lp->d_magic2 = DISKMAGIC; in parse_nextstep_label()
93 lp->d_type = DKTYPE_SCSI; in parse_nextstep_label()
94 lp->d_subtype = 0; in parse_nextstep_label()
95 if (sizeof(lp->d_typename) > sizeof(ondisk->cd_name)) in parse_nextstep_label()
96 lp->d_typename[sizeof (ondisk->cd_name)] = '\0'; in parse_nextstep_label()
97 memcpy(lp->d_typename, ondisk->cd_name, in parse_nextstep_label()
98 uimin(sizeof (lp->d_typename), sizeof(ondisk->cd_name))); in parse_nextstep_label()
99 if (sizeof(lp->d_packname) > sizeof(ondisk->cd_label)) in parse_nextstep_label()
100 lp->d_packname[sizeof (ondisk->cd_label)] = '\0'; in parse_nextstep_label()
[all …]
/netbsd/src/sys/net/agr/
Dieee8023ad_lacp_sm_rx.c78 lacp_sm_rx(struct lacp_port *lp, const struct lacpdu *du) in lacp_sm_rx() argument
86 if (!(lp->lp_state & LACP_STATE_AGGREGATION)) { in lacp_sm_rx()
95 &lp->lp_actor.lip_systemid)) { in lacp_sm_rx()
103 lacp_sm_rx_update_selected(lp, du); in lacp_sm_rx()
104 lacp_sm_rx_update_ntt(lp, du); in lacp_sm_rx()
105 lacp_sm_rx_record_pdu(lp, du); in lacp_sm_rx()
107 timeout = (lp->lp_state & LACP_STATE_TIMEOUT) ? in lacp_sm_rx()
109 LACP_TIMER_ARM(lp, LACP_TIMER_CURRENT_WHILE, timeout); in lacp_sm_rx()
111 lp->lp_state &= ~LACP_STATE_EXPIRED; in lacp_sm_rx()
117 lacp_sm_tx(lp); in lacp_sm_rx()
[all …]
Dieee8023ad_lacp.c97 struct lacp_port *lp; in ieee8023ad_lacp_input() local
161 lp = LACP_PORT(port); in ieee8023ad_lacp_input()
165 LACP_DPRINTF((lp, "lacpdu receive\n")); in ieee8023ad_lacp_input()
169 lacp_sm_rx(lp, du); in ieee8023ad_lacp_input()
185 struct lacp_port *lp = LACP_PORT(port); in lacp_fill_actorinfo() local
192 info->lip_state = lp->lp_state; in lacp_fill_actorinfo()
196 lacp_xmit_lacpdu(struct lacp_port *lp) in lacp_xmit_lacpdu() argument
198 struct agr_port *port = lp->lp_agrport; in lacp_xmit_lacpdu()
229 du->ldu_actor = lp->lp_actor; in lacp_xmit_lacpdu()
233 du->ldu_partner = lp->lp_partner; in lacp_xmit_lacpdu()
[all …]
Dieee8023ad_lacp_sm_mux.c50 lacp_sm_mux(struct lacp_port *lp) in lacp_sm_mux() argument
54 (lp->lp_partner.lip_state & LACP_STATE_SYNC) != 0; in lacp_sm_mux()
56 (lp->lp_partner.lip_state & LACP_STATE_COLLECTING) != 0; in lacp_sm_mux()
57 enum lacp_selected selected = lp->lp_selected; in lacp_sm_mux()
63 la = lp->lp_aggregator; in lacp_sm_mux()
64 KASSERT(lp->lp_mux_state == LACP_MUX_DETACHED || la != NULL); in lacp_sm_mux()
65 new_state = lp->lp_mux_state; in lacp_sm_mux()
66 switch (lp->lp_mux_state) { in lacp_sm_mux()
74 !LACP_TIMER_ISARMED(lp, LACP_TIMER_WAIT_WHILE)); in lacp_sm_mux()
104 if (lp->lp_mux_state == new_state) { in lacp_sm_mux()
[all …]
/netbsd/src/sys/arch/ofppc/ofppc/
Ddisksubr.c110 read_dos_label(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, in read_dos_label() argument
120 bp = geteblk((int)lp->d_secsize); in read_dos_label()
125 bp->b_bcount = lp->d_secsize; in read_dos_label()
127 bp->b_cylinder = MBR_BBSECTOR / lp->d_secpercyl; in read_dos_label()
159 slot = getFreeLabelEntry(lp); in read_dos_label()
165 lp->d_partitions[slot].p_offset = in read_dos_label()
167 lp->d_partitions[slot].p_size = bswap32(dp->mbrp_size); in read_dos_label()
176 lp->d_partitions[slot].p_fstype = FS_MSDOS; in read_dos_label()
179 lp->d_partitions[slot].p_fstype = FS_OTHER; in read_dos_label()
188 lp->d_partitions[2].p_size = bswap32(bsdp->mbrp_size); in read_dos_label()
[all …]
/netbsd/src/sys/arch/amiga/amiga/
Ddisksubr.c130 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, struct cpu_disklabel *c… in readdisklabel() argument
148 if (lp->d_secperunit == 0) in readdisklabel()
149 lp->d_secperunit = 0x1fffffff; in readdisklabel()
150 if (lp->d_secpercyl == 0) in readdisklabel()
151 lp->d_secpercyl = 0x1fffffff; in readdisklabel()
152 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
154 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel()
155 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel()
156 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
158 if (lp->d_partitions[0].p_size == 0) { in readdisklabel()
[all …]
/netbsd/src/sys/arch/luna68k/luna68k/
Ddisksubr.c177 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, struct cpu_disklabel *c… in readdisklabel() argument
186 if (lp->d_secperunit == 0) in readdisklabel()
187 lp->d_secperunit = 0x1fffffff; in readdisklabel()
188 if (lp->d_npartitions < RAW_PART + 1) in readdisklabel()
189 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
191 lp->d_partitions[i].p_size = 0; in readdisklabel()
192 lp->d_partitions[i].p_offset = 0; in readdisklabel()
194 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel()
195 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel()
196 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
[all …]
/netbsd/src/sys/arch/hpc/hpc/
Ddisksubr.c125 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, in readdisklabel() argument
137 if (lp->d_secsize == 0) in readdisklabel()
138 lp->d_secsize = DEV_BSIZE; in readdisklabel()
139 if (lp->d_secperunit == 0) in readdisklabel()
140 lp->d_secperunit = 0x1fffffff; in readdisklabel()
142 if (lp->d_ncylinders == 16383) { in readdisklabel()
144 lp->d_ncylinders, lp->d_ntracks, lp->d_nsectors); in readdisklabel()
145 lp->d_ncylinders = lp->d_secperunit / lp->d_ntracks / lp->d_nsectors; in readdisklabel()
147 lp->d_ncylinders, lp->d_ntracks, lp->d_nsectors); in readdisklabel()
150 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
[all …]
/netbsd/src/sbin/disklabel/
Dinteract.c101 cmd_help(struct disklabel *lp, char *s, int fd) in cmd_help() argument
113 cmd_adjust(struct disklabel *lp, char *s, int fd) in cmd_adjust() argument
122 if (dl.d_secperunit != lp->d_secperunit) { in cmd_adjust()
125 " to %" PRIu32 " [n]? ", lp->d_secperunit, dl.d_secperunit); in cmd_adjust()
130 lp->d_secperunit = dl.d_secperunit; in cmd_adjust()
139 cmd_chain(struct disklabel *lp, char *s, int fd) in cmd_chain() argument
164 cmd_printall(struct disklabel *lp, char *s, int fd) in cmd_printall() argument
167 showinfo(stdout, lp, specname); in cmd_printall()
168 showpartitions(stdout, lp, Cflag); in cmd_printall()
173 cmd_print(struct disklabel *lp, char *s, int fd) in cmd_print() argument
[all …]
Dprintlabel.c60 showinfo(FILE *f, struct disklabel *lp, const char *specialname) in showinfo() argument
65 if ((unsigned) lp->d_type < DKMAXTYPES) in showinfo()
66 (void)fprintf(f, "type: %s\n", dktypenames[lp->d_type]); in showinfo()
68 (void)fprintf(f, "type: %" PRIu16 "\n", lp->d_type); in showinfo()
69 (void)fprintf(f, "disk: %.*s\n", (int) sizeof(lp->d_typename), in showinfo()
70 lp->d_typename); in showinfo()
71 (void)fprintf(f, "label: %.*s\n", (int) sizeof(lp->d_packname), in showinfo()
72 lp->d_packname); in showinfo()
74 if (lp->d_flags & D_REMOVABLE) in showinfo()
76 if (lp->d_flags & D_ECC) in showinfo()
[all …]
/netbsd/src/sys/arch/ofppc/stand/ofwboot/
Drdb.c119 search_rdb_label(struct of_dev *devp, char *buf, struct disklabel *lp) in search_rdb_label() argument
146 *lp = *dlp; in search_rdb_label()
154 lp->d_npartitions = RAW_PART + 1; in search_rdb_label()
156 lp->d_partitions[i].p_size = 0; in search_rdb_label()
157 lp->d_partitions[i].p_offset = 0; in search_rdb_label()
158 lp->d_partitions[i].p_fstype = 0; in search_rdb_label()
164 lp->d_secsize = rbp->nbytes; in search_rdb_label()
165 lp->d_nsectors = rbp->nsectors; in search_rdb_label()
166 lp->d_ntracks = rbp->nheads; in search_rdb_label()
169 lp->d_ncylinders = rbp->ncylinders; in search_rdb_label()
[all …]
/netbsd/src/external/lgpl3/gmp/dist/mpn/generic/
Dstrongfibo.c88 mpn_llriter (mp_ptr lp, mp_srcptr mp, mp_size_t mn, mp_bitcnt_t count, mp_ptr sp) in mpn_llriter() argument
92 mpn_sqr (sp, lp, mn); in mpn_llriter()
93 mpn_tdiv_qr (sp + 2 * mn, lp, 0, sp, 2 * mn, mp, mn); in mpn_llriter()
94 if (lp[0] < 5) in mpn_llriter()
97 if (mn == 1 || mpn_zero_p (lp + 1, mn - 1)) in mpn_llriter()
98 return (lp[0] == 2) ? count : 0; in mpn_llriter()
100 MPN_DECR_U (lp, mn, 2); in mpn_llriter()
103 lp[0] -= 2; in mpn_llriter()
118 mpn_lucm (mp_ptr lp, mp_srcptr np, mp_size_t nn, mp_srcptr mp, mp_size_t mn, mp_ptr scratch) in mpn_lucm() argument
123 ASSERT (! MPN_OVERLAP_P (lp, MAX(2*mn+1,5), scratch, MAX(2*mn+1,5))); in mpn_lucm()
[all …]
/netbsd/src/sys/arch/sgimips/sgimips/
Ddisksubr.c50 static int disklabel_bsd_to_sgimips(struct disklabel *lp,
53 struct disklabel *lp);
57 #define LABELSIZE(lp) ((char *)&lp->d_partitions[lp->d_npartitions] - \ argument
58 (char *)lp)
74 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, struct cpu_disklabel *c… in readdisklabel() argument
82 if (lp->d_secsize == 0) in readdisklabel()
83 lp->d_secsize = DEV_BSIZE; in readdisklabel()
84 if (lp->d_secperunit == 0) in readdisklabel()
85 lp->d_secperunit = 0x1fffffff; in readdisklabel()
88 bp = geteblk((int)lp->d_secsize); in readdisklabel()
[all …]
/netbsd/src/sys/arch/mipsco/mipsco/
Ddisksubr.c55 #define LABELSIZE(lp) ((char *)&lp->d_partitions[lp->d_npartitions] - \ argument
56 (char *)lp)
67 readdisklabel(dev_t dev, void (*strat)(struct buf *bp), register struct disklabel *lp, struct cpu_d… in readdisklabel() argument
75 if (lp->d_secperunit == 0) in readdisklabel()
76 lp->d_secperunit = 0x1fffffff; in readdisklabel()
77 if (lp->d_npartitions == 0) { in readdisklabel()
78 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
79 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel()
80 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel()
81 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
[all …]
/netbsd/src/sys/arch/hp300/stand/inst/
Dinst.c93 void get_fstype(struct disklabel *lp, int);
163 struct disklabel *lp; in dsklabel() local
193 lp = (struct disklabel *)((void *)(&block[LABELOFFSET])); in dsklabel()
215 disklabel_edit(lp); in dsklabel()
220 disklabel_show(lp); in dsklabel()
276 printf((out), lp->d_flags & (flag) ? 'y' : 'n'); \
280 lp->d_flags |= (flag); \
282 lp->d_flags &= ~(flag);
296 get_fstype(struct disklabel *lp, int partno) in get_fstype() argument
299 struct partition *pp = &lp->d_partitions[partno]; in get_fstype()
[all …]
/netbsd/src/sys/arch/sparc64/dev/
Dldc.c47 ldc_rx_ctrl(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl() argument
49 switch (lp->ctrl) { in ldc_rx_ctrl()
51 ldc_rx_ctrl_vers(lc, lp); in ldc_rx_ctrl()
55 ldc_rx_ctrl_rts(lc, lp); in ldc_rx_ctrl()
59 ldc_rx_ctrl_rtr(lc, lp); in ldc_rx_ctrl()
63 ldc_rx_ctrl_rdx(lc, lp); in ldc_rx_ctrl()
67 DPRINTF(("CTRL/0x%02x/0x%02x\n", lp->stype, lp->ctrl)); in ldc_rx_ctrl()
74 ldc_rx_ctrl_vers(struct ldc_conn *lc, struct ldc_pkt *lp) in ldc_rx_ctrl_vers() argument
76 switch (lp->stype) { in ldc_rx_ctrl_vers()
78 DPRINTF(("CTRL/INFO/VERS major %d minor %d\n", lp->major, lp->minor)); in ldc_rx_ctrl_vers()
[all …]
/netbsd/src/sys/dev/sun/
Ddisksubr.c91 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, struct cpu_disklabel *c… in readdisklabel() argument
99 if (lp->d_secperunit == 0) in readdisklabel()
100 lp->d_secperunit = 0x1fffffff; in readdisklabel()
101 if (lp->d_npartitions == 0) { in readdisklabel()
102 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
103 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel()
104 lp->d_partitions[RAW_PART].p_size = 0x1fffffff; in readdisklabel()
105 lp->d_partitions[RAW_PART].p_offset = 0; in readdisklabel()
107 if (lp->d_secsize == 0) in readdisklabel()
111 bp = geteblk((int)lp->d_secsize); in readdisklabel()
[all …]
/netbsd/src/sys/arch/sh3/sh3/
Ddisksubr.c133 dkcksum_re(struct disklabel *lp) in dkcksum_re() argument
138 start = (uint16_t *)lp; in dkcksum_re()
139 end = (uint16_t *)&lp->d_partitions[bswap16(lp->d_npartitions)]; in dkcksum_re()
222 dkcksum_mmeye(struct disklabel *lp) in dkcksum_mmeye() argument
229 tdl = *lp; in dkcksum_mmeye()
237 d_partitions[le16toh(lp->d_npartitions)]); in dkcksum_mmeye()
305 readdisklabel(dev_t dev, void (*strat)(struct buf *), struct disklabel *lp, in readdisklabel() argument
317 if (lp->d_secsize == 0) in readdisklabel()
318 lp->d_secsize = DEV_BSIZE; in readdisklabel()
319 if (lp->d_secperunit == 0) in readdisklabel()
[all …]
/netbsd/src/sys/arch/x68k/x68k/
Ddisksubr.c65 struct disklabel *lp, struct cpu_disklabel *osdep) in readdisklabel() argument
77 if (lp->d_secsize == 0) in readdisklabel()
78 lp->d_secsize = DEF_BSIZE; in readdisklabel()
79 if (lp->d_secperunit == 0) in readdisklabel()
80 lp->d_secperunit = 0x1fffffff; in readdisklabel()
81 lp->d_npartitions = RAW_PART + 1; in readdisklabel()
83 lp->d_partitions[i].p_size = 0; in readdisklabel()
84 lp->d_partitions[i].p_offset = 0; in readdisklabel()
86 if (lp->d_partitions[RAW_PART].p_size == 0) in readdisklabel()
87 lp->d_partitions[RAW_PART].p_size = lp->d_secperunit; in readdisklabel()
[all …]

12345678910>>...22