Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dpc_slice.h49 + (part << 4)) ) )
53 + (part << 4)) ) )
57 + (part << 4)) ) )
61 + (part << 4)) ) )
65 + (part << 4)) ) )
69 + (part << 4)) ) )
73 + (part << 4)) ) )
77 + (part << 4)) ) )
81 + (part << 4)) ) )
85 + (part << 4)) ) )
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dwatchpoint.c762 size_t part; in watch_xcopyin() local
806 len -= part; in watch_xcopyin()
810 part = len; in watch_xcopyin()
857 size_t part; in watch_xcopyout() local
905 len -= part; in watch_xcopyout()
909 part = len; in watch_xcopyout()
960 size_t part; in watch_copyinstr() local
1016 len -= part; in watch_copyinstr()
1020 part = len; in watch_copyinstr()
1074 size_t part; in watch_copyoutstr() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dstrtoip4.c51 register int part; in strtoip4() local
64 part = 0; in strtoip4()
70 if ((c == 'x' || c == 'X') && !part) in strtoip4()
85 part = 4; in strtoip4()
91 part++; in strtoip4()
95 if (old = part < 4) in strtoip4()
96 while (part++ < 4) in strtoip4()
102 part = 0; in strtoip4()
110 part++; in strtoip4()
115 if (part > 4) in strtoip4()
[all …]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dpart.c70 struct ptable_entry part; member
451 entry->part.end = entry->part.start + end - 1; in ptable_ebrread()
531 entry->part.start = le32toh(part->p_offset) - raw_offset; in ptable_bsdread()
532 entry->part.end = entry->part.start + in ptable_bsdread()
534 entry->part.type = bsd_parttype(part->p_fstype); in ptable_bsdread()
604 dl->part[i].tag = be16toh(dl->part[i].tag); in ptable_vtoc8read()
614 entry->part.type = vtoc8_parttype(dl->part[i].tag); in ptable_vtoc8read()
738 entry->part.start = 0; in ptable_iso9660read()
741 entry->part.index = 0; in ptable_iso9660read()
943 memcpy(part, &entry->part, sizeof (*part)); in ptable_getpart()
[all …]
H A Ddisk.c119 partsize = part->end - part->start + 1; in ptable_print()
138 if (part->type == PART_FREEBSD || part->type == PART_SOLARIS2) { in ptable_print()
142 dev.d_slice = part->index; in ptable_print()
233 struct ptable_entry part; in disk_open() local
289 od->entrysize = part.end - part.start + 1; in disk_open()
302 dev->d_offset = part.start; in disk_open()
303 od->entrysize = part.end - part.start + 1; in disk_open()
304 slice = part.index; in disk_open()
330 switch (part.type) { in disk_open()
339 table = ptable_open(dev, part.end - part.start + 1, in disk_open()
[all …]
H A Dgpt.c94 gptfind(const uuid_t *uuid, struct dsk *dskp, int part) in gptfind() argument
99 if (part >= 0) { in gptfind()
100 if (part == 0 || part > gpthdr->hdr_entries) { in gptfind()
104 ent = &gpttable[part - 1]; in gptfind()
110 curent = part - 1; in gptfind()
165 dskp->part = curent + 1; in gptfind()
240 int entries_per_sec, nent, part; in gptbootconv() local
248 for (part = 0; part < entries_per_sec; part++) { in gptbootconv()
249 ent = &table[nent + part]; in gptbootconv()
288 int part, nent; in gptread_table() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/
H A Dmkdir.c75 char* part; in b_mkdir() local
86 mode = strperm(opt_info.arg, &part, mode); in b_mkdir()
87 if (*part) in b_mkdir()
148 for (part = path, n = *part; n;) in b_mkdir()
151 while (*part == '/') in b_mkdir()
152 part++; in b_mkdir()
154 while ((n = *part) && n != '/') in b_mkdir()
155 part++; in b_mkdir()
156 *part = 0; in b_mkdir()
160 *part = n; in b_mkdir()
[all …]
/illumos-gate/usr/src/cmd/fmthard/
H A Dfmthard.c475 int part; in insert() local
489 data, part); in insert()
506 int part; in insert64() local
520 data, part); in insert64()
537 int part; in load() local
578 part, line); in load()
584 part, line); in load()
592 for (part = 0; part < V_NUMPAR; part++) { in load()
605 int part; in load64() local
638 max_part = part; in load64()
[all …]
/illumos-gate/usr/src/lib/libpkg/common/
H A Dckvolseq.c46 ckvolseq(char *dir, int part, int nparts) in ckvolseq() argument
51 if (part > 0) { in ckvolseq()
53 if (part == 1) { in ckvolseq()
83 part = (-part); in ckvolseq()
91 (void) snprintf(path, sizeof (path), "%s/root.%d", dir, part); in ckvolseq()
94 (void) snprintf(path, sizeof (path), "%s/reloc.%d", dir, part); in ckvolseq()
97 if (part == 1) { in ckvolseq()
99 dir, part); in ckvolseq()
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c974 (void) memset(&part, 0, sizeof (part)); in check_vtoc_sanity()
1026 SWAP(part[i].start, part[min_slice].start) in check_vtoc_sanity()
1027 SWAP(part[i].end, part[min_slice].end) in check_vtoc_sanity()
1028 SWAP(part[i].num, part[min_slice].num) in check_vtoc_sanity()
1035 part[i].start, part[i].end); in check_vtoc_sanity()
1101 if (part[i].start <= part[i-1].end) { in check_vtoc_sanity()
1104 part[i-1].num, part[i].num); in check_vtoc_sanity()
1199 fdisk->part[i].bootid = part->bootid; in get_fdisk()
1200 if (part->bootid && (part->bootid != ACTIVE)) { in get_fdisk()
1204 fdisk->part[i].systid = part->systid; in get_fdisk()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/pkginstall/
H A Dpkgvolume.c47 pkgvolume(struct pkgdev *devp, char *pkg, int part, int nparts) in pkgvolume() argument
55 if (cpart == part) in pkgvolume()
57 cpart = part; in pkgvolume()
59 if (part == 1) { in pkgvolume()
69 if (ckvolseq(instdir, part, nparts)) { in pkgvolume()
83 if (n = pkgmount(devp, pkg, part, nparts, 1)) in pkgvolume()
86 if (ckvolseq(path, part, nparts) == 0) in pkgvolume()
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c172 for (part = vtoc->v_part; part < vtoc->v_part + vtoc->v_nparts; in findfree()
173 ++part) { in findfree()
174 if (part->p_size && part->p_tag != V_BACKUP) in findfree()
175 *list++ = part; in findfree()
186 (++freeidx)->fr_start = part->p_start + part->p_size; in findfree()
203 struct dk_part *part; in findfree64() local
213 for (part = efi->efi_parts; part < efi->efi_parts + efi->efi_nparts; in findfree64()
214 ++part) { in findfree64()
215 if (part->p_size && part->p_tag != V_BACKUP) in findfree64()
216 *list++ = part; in findfree64()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfstrtof.h213 int part = 0; local
265 v += part;
402 parts[part].batch = n;
405 part++;
428 back_part = part;
436 part = back_part;
445 parts[part].batch = n;
447 part++;
497 if (!part)
508 while (part--)
[all …]
/illumos-gate/usr/src/tools/ctf/stabs/common/
H A Dforth.c182 char *curtype, *lpart, *part, *npart; in fth_section_init() local
187 part = strtok(fullname, "."); in fth_section_init()
198 if ((tid = find_type(part)) == CTF_ERR || in fth_section_init()
203 part, ctf_errmsg(ctf_errno(ctf)))); in fth_section_init()
213 if ((tid = find_member(ltid, part)) <= 0) { in fth_section_init()
216 part, lpart)); in fth_section_init()
222 part)); in fth_section_init()
233 lpart = part; in fth_section_init()
237 part = npart; in fth_section_init()
256 return (parse_warn("%s isn't a struct, union, or enum", part)); in fth_section_init()
/illumos-gate/usr/src/cmd/addbadsec/
H A Dix_altsctr.c93 int print_altsec(struct extpartition *part);
108 read_altsctr(part, 1); in updatebadsec()
154 ap->part = *part; /* struct copy */ in read_altsctr()
182 blkaddr_t altsp_srtsec = ap->part.p_start; in chk_badsec()
183 blkaddr_t altsp_endsec = ap->part.p_start + ap->part.p_size - 1; in chk_badsec()
245 blkaddr_t altsp_endsec = ap->part.p_start + ap->part.p_size - 1; in init_altsctr()
483 ap->part.p_size, in gen_alts_ent()
539 for (i = 0; i < ap->part.p_size; i++) { in expand_map()
800 print_altsec(struct extpartition *part) in print_altsec() argument
804 read_altsctr(part, 0); in print_altsec()
[all …]
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c115 drvinstpart2dev(char *driver, int instance, char *part, in drvinstpart2dev() argument
139 if (part != NULL) { in drvinstpart2dev()
168 if (part == NULL && mm->minor_isdisk) { in drvinstpart2dev()
267 char *part; /* ",partition... */ in lookup_ks_name() local
295 if (part != NULL && p != NULL) in lookup_ks_name()
298 part = p; in lookup_ks_name()
299 if (part != NULL && pidp != NULL) in lookup_ks_name()
302 p = (part != NULL) ? part : pidp; in lookup_ks_name()
317 if (part != NULL) in lookup_ks_name()
318 part++; /* skip ',' */ in lookup_ks_name()
[all …]
/illumos-gate/usr/src/cmd/format/
H A Dix_altsctr.c95 updatebadsec(part, init_flag) in updatebadsec() argument
97 struct dkl_partition *part;
102 (void) read_altsctr(part);
115 read_altsctr(struct dkl_partition *part) in read_altsctr() argument
148 ap->part = *part; /* struct copy */ in read_altsctr()
178 blkaddr_t altsp_srtsec = ap->part.p_start; in chk_badsec()
179 blkaddr_t altsp_endsec = ap->part.p_start + ap->part.p_size - 1; in chk_badsec()
240 blkaddr_t altsp_srtsec = ap->part.p_start; in init_altsctr()
241 blkaddr_t altsp_endsec = ap->part.p_start + ap->part.p_size - 1; in init_altsctr()
496 ap->ap_map_sectot, (blkaddr_t)ap->part.p_size, in gen_alts_ent()
[all …]
H A Dcheckdev.c214 int part; local
240 map = &cur_parts->pinfo_map[part];
281 int part = 0; in checkdevinuse() local
507 part = getpartition(name); in checkdevinuse()
510 if (part != -1) { in checkdevinuse()
511 bm_inuse |= 1 << part; in checkdevinuse()
568 int part; local
649 int part; in check_label_with_swap() local
672 bm_swap |= (1 << part); in check_label_with_swap()
687 int part; in check_label_with_mount() local
[all …]
H A Dmodify_partition.c482 struct partition_info *part; local
516 part->pinfo_map[i].dkl_cylno =
519 part->pinfo_map[i].dkl_nblk =
523 part->vtoc = label->dkl_vtoc;
524 return (part);
593 struct partition_info *part; local
603 part = (struct partition_info *)
607 part->pinfo_next = tptr->dtype_plist;
608 tptr->dtype_plist = part;
619 if (part != NULL) {
[all …]
/illumos-gate/usr/src/cmd/fs.d/pcfs/fsck/
H A Dpcfs_common.c456 struct ipart part[FD_NUMPART]; in findPartitionOffset() local
504 (void) memcpy(part, mb.parts, sizeof (part)); in findPartitionOffset()
527 if (isDosDrive(part[i].systid)) { in findPartitionOffset()
552 found = ltohi(part[bootPart].relsect) * BPSEC; in findPartitionOffset()
557 found = ltohi(part[primaryPart].relsect) * BPSEC; in findPartitionOffset()
575 xnumsect = ltohi(part[extendedPart].numsect); in findPartitionOffset()
596 (void) memcpy(part, extmboot.parts, sizeof (part)); in findPartitionOffset()
613 if (isDosDrive(part[i].systid)) { in findPartitionOffset()
616 } else if (isDosExtended(part[i].systid)) { in findPartitionOffset()
630 ltohi(part[i].relsect); in findPartitionOffset()
[all …]
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.c911 struct ipart *part; in fdisk_add_logical_drive() local
921 part = &temp->parts[0]; in fdisk_add_logical_drive()
922 part->bootid = 0; in fdisk_add_logical_drive()
950 part->relsect = LE_32(LE_32(part->relsect) - 1); in fdisk_add_logical_drive()
958 part = &pre->parts[1]; in fdisk_add_logical_drive()
959 part->bootid = 0; in fdisk_add_logical_drive()
1069 part->begcyl = cy & 0xff; in fdisk_set_CHS_values()
1087 part->endcyl = cy & 0xff; in fdisk_set_CHS_values()
1136 int part; in fdisk_mounted_logical_drives() local
1192 part = atoi(part_str); in fdisk_mounted_logical_drives()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl.c48 if (tbl->part == TBL_PART_OPTS) { in tbl_read()
49 tbl->part = TBL_PART_LAYOUT; in tbl_read()
77 switch (tbl->part) { in tbl_read()
100 tbl->part = TBL_PART_OPTS; in tbl_alloc()
145 if (tbl->part == TBL_PART_CDATA) in tbl_restart()
148 tbl->part = TBL_PART_LAYOUT; in tbl_restart()
172 else if (tbl->part == TBL_PART_CDATA) in tbl_end()
/illumos-gate/usr/src/lib/fm/topo/modules/common/pcibus/
H A Dutil.c68 get_pci_vpd_sn_pn(topo_mod_t *mp, di_node_t dn, char **serial, char **part) in get_pci_vpd_sn_pn() argument
86 *part = topo_mod_strdup(mp, p); in get_pci_vpd_sn_pn()
98 char *serial = NULL, *part = NULL; in tnode_create() local
107 (void) get_pci_vpd_sn_pn(mp, priv, &serial, &part); in tnode_create()
110 auth, part, NULL, serial); in tnode_create()
113 topo_mod_strfree(mp, part); in tnode_create()
/illumos-gate/usr/src/uts/common/io/
H A Dfd.c660 int part, unit; in fd_open() local
669 part = PARTITION(dev); in fd_open()
670 pbit = 1 << part; in fd_open()
679 part, flag, otyp)); in fd_open()
979 part = PARTITION(dev); in fd_close()
995 if (part == 2 && fdp->d_exclmask&(1<<part)) in fd_close()
1293 int nblks, part, unit; in fd_ioctl() local
1371 for (part = 0; part < NDKMAP; part++) { in fd_ioctl()
1391 for (part = 0; part < NDKMAP; part++) { in fd_ioctl()
1427 for (part = 0; part < NDKMAP; part++) { in fd_ioctl()
[all …]
/illumos-gate/usr/src/lib/fm/topo/modules/common/shared/
H A Dtopo_transceiver.c48 const char *type, boolean_t usable, const char *part, const char *rev, in transceiver_create_common() argument
68 TRANSCEIVER, inst, NULL, auth, part, rev, serial)) == NULL) { in transceiver_create_common()
125 boolean_t useable, const char *vendor, const char *part, const char *rev, in transceiver_create_sff() argument
132 TOPO_PROP_PORT_TYPE_SFF, useable, part, rev, serial)) == NULL) { in transceiver_create_sff()
154 if (part != NULL && topo_prop_set_string(tn, in transceiver_create_sff()
156 TOPO_PROP_IMMUTABLE, part, &err) != 0) { in transceiver_create_sff()

12345678910>>...13