/titanic_41/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_dispq.c | 45 fmd_dispqelem_t *dep = fmd_alloc(sizeof (fmd_dispqelem_t), FMD_SLEEP); in fmd_dispqelem_create() local 47 dep->dq_name = fmd_strdup(name, FMD_SLEEP); in fmd_dispqelem_create() 48 dep->dq_link = NULL; in fmd_dispqelem_create() 49 dep->dq_hashlen = fmd.d_str_buckets; in fmd_dispqelem_create() 50 dep->dq_hash = fmd_zalloc(sizeof (void *) * dep->dq_hashlen, FMD_SLEEP); in fmd_dispqelem_create() 51 dep->dq_list = NULL; in fmd_dispqelem_create() 52 dep->dq_refs = 0; in fmd_dispqelem_create() 54 return (dep); in fmd_dispqelem_create() 58 fmd_dispqelem_destroy(fmd_dispqelem_t *dep) in fmd_dispqelem_destroy() argument 64 for (dlp = dep->dq_list; dlp != NULL; dlp = nlp) { in fmd_dispqelem_destroy() [all …]
|
/titanic_41/usr/src/uts/common/fs/cachefs/ |
H A D | cachefs_dir.c | 127 struct c_dirent *dep; in cachefs_dir_look() local 129 dep = (struct c_dirent *)((uintptr_t)fbp->fb_addr + in cachefs_dir_look() 131 if ((dep->d_flag & CDE_VALID) && in cachefs_dir_look() 132 (nmlen == dep->d_namelen) && in cachefs_dir_look() 133 strcmp(dep->d_name, nm) == 0) { in cachefs_dir_look() 134 if (dep->d_flag & CDE_COMPLETE) { in cachefs_dir_look() 136 CACHEFS_FID_COPY(&dep->d_cookie, in cachefs_dir_look() 140 *flagp = dep->d_flag; in cachefs_dir_look() 146 *cidp = dep->d_id; in cachefs_dir_look() 152 ASSERT(dep->d_length != 0); in cachefs_dir_look() [all …]
|
/titanic_41/usr/src/stand/lib/fs/nfs/ |
H A D | getdents4.c | 85 nfs4getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfs4getdents() argument 194 dep->d_name[0] = '.'; in nfs4getdents() 195 dep->d_name[1] = '\0'; in nfs4getdents() 196 dep->d_ino = va.va_nodeid; in nfs4getdents() 197 dep->d_off = 1; in nfs4getdents() 199 dep->d_reclen = n; in nfs4getdents() 200 dep = (struct dirent *)((char *)dep + n); in nfs4getdents() 209 dep->d_name[0] = '.'; in nfs4getdents() 210 dep->d_name[1] = '.'; in nfs4getdents() 211 dep->d_name[2] = '\0'; in nfs4getdents() [all …]
|
H A D | getdents.c | 85 nfsgetdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfsgetdents() argument 173 (void) strcpy(dep->d_name, ep->name); in nfsgetdents() 174 dep->d_ino = ep->fileid; in nfsgetdents() 176 dep->d_off = offset; in nfsgetdents() 177 dep->d_reclen = (ushort_t)n; in nfsgetdents() 179 dep = (struct dirent *)((char *)dep + n); in nfsgetdents()
|
H A D | getdents3.c | 85 nfs3getdents(struct nfs_file *nfp, struct dirent *dep, unsigned size) in nfs3getdents() argument 174 (void) strcpy(dep->d_name, ep->name); in nfs3getdents() 175 dep->d_ino = ep->fileid; in nfs3getdents() 176 dep->d_off = (off_t)ep->cookie; in nfs3getdents() 177 dep->d_reclen = (ushort_t)n; in nfs3getdents() 179 dep = (struct dirent *)((char *)dep + n); in nfs3getdents()
|
/titanic_41/usr/src/cmd/sgs/link_audit/common/ |
H A D | perfcnt.c | 72 list_insert(d_entry *dep) in list_insert() argument 83 new_list->l_dep = dep; in list_insert() 91 (cur && (cur->l_dep->d_time < dep->d_time)); in list_insert() 209 d_entry **dep; in la_pltexit64() local 221 dep = (d_entry **)get_hash(tbl, (char *)sym_name); in la_pltexit64() 222 if (*dep == NULL) { in la_pltexit64() 225 (*dep) = (d_entry *)ptr; in la_pltexit64() 226 (*dep)->d_count = 0; in la_pltexit64() 227 (*dep)->d_time = 0.0; in la_pltexit64() 228 (*dep)->d_symname = sym_name; in la_pltexit64() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/md/ |
H A D | md_mddb.c | 123 #define rec_crcgen(s, dep, rbp) \ argument 124 (void) rec_crcfunc(s, dep, rbp, REC_CRCGEN) 125 #define rec_crcchk(s, dep, rbp) \ argument 126 rec_crcfunc(s, dep, rbp, REC_CRCCHK) 421 mddb_de_ic_t *dep, in rec_crcfunc() argument 428 mddb_type_t type = dep->de_type1; in rec_crcfunc() 450 switch (dep->de_flags) { in rec_crcfunc() 471 ret = crcchk(rbp, &rbp->rb_checksum, dep->de_recsize, skip); in rec_crcfunc() 473 crcgen(rbp, &rbp->rb_checksum, dep->de_recsize, skip); in rec_crcfunc() 605 mddb_de_ic_t *dep; in computefreeblks() local [all …]
|
/titanic_41/usr/src/cmd/loadkeys/ |
H A D | loadkeys.y | 132 static int dupkey(int kbdfd, dupentry *dep, int shiftmask); 133 static int swapkey(int kbdfd, dupentry *dep, int shiftmask); 157 register dupentry *dep; local 274 for (dep = firstswap; dep != NULL; dep = dep->de_next) { 277 if (!swapkey(kbdfd, dep, 284 for (dep = firstduplicate; dep != NULL; dep = dep->de_next) { 287 if (!dupkey(kbdfd, dep, 445 register dupentry *dep; local 447 if ((dep = (dupentry *) malloc((unsigned)sizeof (dupentry))) == NULL) 451 firstduplicate = dep; [all …]
|
/titanic_41/usr/src/cmd/allocate/ |
H A D | mkdevalloc.c | 235 struct dirent *dep; /* directory entry pointer */ in dotape() local 261 while (dep = readdir(dirp)) { in dotape() 263 if (strncmp(dep->d_name, "rst", SIZE_OF_RST) && in dotape() 264 strncmp(dep->d_name, "nrst", SIZE_OF_NRST)) in dotape() 275 nm = (char *)malloc(SIZE_OF_TMP + 1 + strlen(dep->d_name) + 1); in dotape() 279 (void) strcat(nm, dep->d_name); in dotape() 320 while (dep = readdir(dirp)) { in dotape() 322 if (strncmp(dep->d_name, ".", 1) == NULL) in dotape() 333 nm = (char *)malloc(SIZE_OF_RMT + 1 + strlen(dep->d_name) + 1); in dotape() 337 (void) strcat(nm, dep->d_name); in dotape() [all …]
|
/titanic_41/usr/src/cmd/sgs/liblddbg/common/ |
H A D | version.c | 112 const char *dep; in Dbg_ver_desc_entry() local 122 dep = _vdp->vd_name; in Dbg_ver_desc_entry() 125 dep = MSG_ORIG(MSG_STR_EMPTY); in Dbg_ver_desc_entry() 128 Elf_ver_line_1(lml, index, vdp->vd_name, dep, in Dbg_ver_desc_entry() 185 const char *dep, const char *flags) in Elf_ver_line_1() argument 189 dep, flags); in Elf_ver_line_1() 192 dep, flags); in Elf_ver_line_1() 196 Elf_ver_line_2(Lm_list *lml, const char *name, const char *dep) in Elf_ver_line_2() argument 198 dbg_print(lml, MSG_INTL(MSG_VER_LINE_2), name, dep); in Elf_ver_line_2() 202 Elf_ver_line_3(Lm_list *lml, const char *name, const char *dep, in Elf_ver_line_3() argument [all …]
|
/titanic_41/usr/src/cmd/make/bin/ |
H A D | nse_printdep.cc | 156 register Dependency dep; in print_deps() local 181 for (dep = line->body.line.dependencies; in print_deps() 182 dep != NULL; in print_deps() 183 dep = dep->next) { in print_deps() 184 print_deps(dep->name, in print_deps() 185 get_prop(dep->name->prop, line_prop)); in print_deps() 193 Dependency dep; in is_out_of_date() local 202 for (dep = line->body.line.dependencies; in is_out_of_date() 203 dep != NULL; in is_out_of_date() 204 dep = dep->next) { in is_out_of_date() [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | fsck.c | 434 struct dirent64 *dep; in cfs_check() local 519 while ((dep = readdir64(dp)) != NULL) { in cfs_check() 521 if ((strcmp(dep->d_name, ".") == 0) || in cfs_check() 522 (strcmp(dep->d_name, "..") == 0)) in cfs_check() 526 xx = strlen(cachedirp) + strlen(dep->d_name) + 3; in cfs_check() 529 cachedirp, dep->d_name); in cfs_check() 536 sprintf(buf, "%s/%s", cachedirp, dep->d_name); in cfs_check() 564 while ((dep = readdir64(dp)) != NULL) { in cfs_check() 566 if ((strcmp(dep->d_name, ".") == 0) || in cfs_check() 567 (strcmp(dep->d_name, "..") == 0)) in cfs_check() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 109 prepare_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, dof_elf32_t *dep) in prepare_elf32() argument 151 dep->de_strlen = strtabsz; in prepare_elf32() 152 dep->de_nrel = count; in prepare_elf32() 153 dep->de_nsym = count + 1; /* the first symbol is always null */ in prepare_elf32() 156 dep->de_strlen += sizeof (DOFLAZYSTR); in prepare_elf32() 157 dep->de_nsym++; in prepare_elf32() 159 dep->de_strlen += sizeof (DOFSTR); in prepare_elf32() 160 dep->de_nsym++; in prepare_elf32() 163 if ((dep->de_rel = calloc(dep->de_nrel, in prepare_elf32() 164 sizeof (dep->de_rel[0]))) == NULL) { in prepare_elf32() [all …]
|
/titanic_41/usr/src/pkg/ |
H A D | Makefile | 130 $(PDIR)/developer-build-onbld.dep:= PKGROOT= $(TOOLSROOT) 239 DEP_PKGS= $(PKGS:%=$(PDIR)/%.dep) 248 DEP_SYNTH_PKGS= $(SYNTH_PKGS:%=$(PDIR)/%.dep) 390 for p in $(DEP_PKGS:%.dep=%); do \ 391 $(CP) $$p.dep $$p.res; \ 397 for p in $(DEP_SYNTH_PKGS:%.dep=%) $(DEP_PKGS:%.dep=%); do \ 404 strip_versions $$p.dep.res; \ 405 $(RM) $$p.dep.res; \ 407 $(MV) $$p.dep.res $$p.res; \ 503 .SUFFIXES: .mf .mog .dep .res .pub [all …]
|
/titanic_41/usr/src/uts/common/fs/ |
H A D | dnlc.c | 1105 dcentry_t *dep; in dnlc_dir_lookup() local 1127 dep = dcp->dc_namehash[hash & dcp->dc_nhash_mask]; in dnlc_dir_lookup() 1128 while (dep != NULL) { in dnlc_dir_lookup() 1129 if ((dep->de_hash == hash) && in dnlc_dir_lookup() 1130 (namlen == dep->de_namelen) && in dnlc_dir_lookup() 1131 bcmp(dep->de_name, name, namlen) == 0) { in dnlc_dir_lookup() 1132 *handle = dep->de_handle; in dnlc_dir_lookup() 1137 dep = dep->de_next; in dnlc_dir_lookup() 1246 dcentry_t **hp, *dep; in dnlc_dir_add_entry() local 1259 dep = kmem_alloc(sizeof (dcentry_t) - 1 + namlen, KM_NOSLEEP); in dnlc_dir_add_entry() [all …]
|
/titanic_41/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_pages.c | 64 ses2_aes_descr_eip_impl_t *dep; in ses2_aes_index() local 76 for (dep = (ses2_aes_descr_eip_impl_t *)apip->sapi_data, pos = 0, i = 0; in ses2_aes_index() 78 dep = (ses2_aes_descr_eip_impl_t *)(apip->sapi_data + pos), i++) { in ses2_aes_index() 79 if (!SES_WITHIN_PAGE_STRUCT(dep, data, pagelen)) in ses2_aes_index() 82 desclen = dep->sadei_length + in ses2_aes_index() 84 sizeof (dep->sadei_length); in ses2_aes_index() 86 if (!SES_WITHIN_PAGE(dep, desclen, data, pagelen)) in ses2_aes_index() 90 if (!dep->sadei_eip && in ses2_aes_index() 105 } else if (dep->sadei_eip && in ses2_aes_index() 106 dep->sadei_element_index != index) { in ses2_aes_index() [all …]
|
H A D | ses2_element.c | 653 elem_parse_aes_device(const ses2_aes_descr_eip_impl_t *dep, nvlist_t *nvl, in elem_parse_aes_device() argument 664 if (dep->sadei_eip) { in elem_parse_aes_device() 666 dep->sadei_protocol_specific; in elem_parse_aes_device() 668 dep->sadei_protocol_specific; in elem_parse_aes_device() 670 dip = (ses2_aes_descr_impl_t *)dep; in elem_parse_aes_device() 676 if (dep->sadei_invalid) in elem_parse_aes_device() 679 if (dep->sadei_protocol_identifier == SPC4_PROTO_FIBRE_CHANNEL) { in elem_parse_aes_device() 681 dep->sadei_protocol_specific; in elem_parse_aes_device() 683 if (!SES_WITHIN_PAGE_STRUCT(fp, dep, len)) in elem_parse_aes_device() 689 } else if (dep->sadei_protocol_identifier != SPC4_PROTO_SAS) { in elem_parse_aes_device() [all …]
|
/titanic_41/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4500/common/ |
H A D | loki.c | 40 ses2_aes_descr_eip_impl_t *dep; in sun_loki_fix_bay() local 56 if ((dep = ses_plugin_page_lookup(sp, ses_node_snapshot(np), in sun_loki_fix_bay() 60 if (dep->sadei_protocol_identifier != SPC4_PROTO_SAS || in sun_loki_fix_bay() 61 !dep->sadei_eip || !dep->sadei_invalid) in sun_loki_fix_bay() 64 s0ep = (ses2_aes_descr_sas0_eip_impl_t *)dep->sadei_protocol_specific; in sun_loki_fix_bay()
|
/titanic_41/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_statconcise.c | 1547 mddb_de_t *dep, in read_mdrecord() argument 1565 rbp = (void *)Zalloc(dbtob(dep->de_blkcount)); in read_mdrecord() 1569 for (cnt = 0; cnt < dep->de_blkcount; cnt++) { in read_mdrecord() 1570 if ((pblk = getphysblk(dep->de_blks[cnt], mbp)) < 0) { in read_mdrecord() 1573 dep->de_blks[cnt], diskname); in read_mdrecord() 1589 tmp_mdrec->md_type = dep->de_flags; in read_mdrecord() 1640 if (crcchk(rbp_32, &rbp_32->rb_checksum, dep->de_recsize, skip)) { in read_mdrecord() 1724 mddb_de_t *dep; in read_all_mdrecords() local 1776 dep = (mddb_de_t *)((caddr_t)(&dbp->db_firstentry) in read_all_mdrecords() 1778 dbp->db_firstentry = dep; in read_all_mdrecords() [all …]
|
/titanic_41/usr/src/uts/intel/io/dktp/dcdev/ |
H A D | dadk.c | 550 dadk_errstats_t *dep; in dadk_create_errstats() local 566 dep = (dadk_errstats_t *)dadkp->dad_errstats->ks_data; in dadk_create_errstats() 568 kstat_named_init(&dep->dadk_softerrs, in dadk_create_errstats() 570 kstat_named_init(&dep->dadk_harderrs, in dadk_create_errstats() 572 kstat_named_init(&dep->dadk_transerrs, in dadk_create_errstats() 574 kstat_named_init(&dep->dadk_model, in dadk_create_errstats() 576 kstat_named_init(&dep->dadk_revision, in dadk_create_errstats() 578 kstat_named_init(&dep->dadk_serial, in dadk_create_errstats() 580 kstat_named_init(&dep->dadk_capacity, in dadk_create_errstats() 582 kstat_named_init(&dep->dadk_rq_media_err, in dadk_create_errstats() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | options.c | 1333 struct device_entry *dep; in organize_state() local 1389 ndevs * sizeof (*dep) + nsvcs * ndevs * sizeof (*sepp)); in organize_state() 1397 osp->os_devices = dep = (struct device_entry *)(osp+1); in organize_state() 1404 sepp = (struct service_entry **)(dep + ndevs); in organize_state() 1406 dep->de_name = *dnp; in organize_state() 1407 dep->de_services = (const struct service_entry **)sepp; in organize_state() 1438 dep->de_nservices = (const struct service_entry **)sepp - in organize_state() 1439 dep->de_services; in organize_state() 1441 if (dep->de_nservices > 0) in organize_state() 1442 dep++; in organize_state() [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/sata/common/ |
H A D | cfga_sata.c | 261 struct dirent *dep, *newdep; in physpath_to_devlink() local 286 dep = (struct dirent *)malloc(deplen); in physpath_to_devlink() 288 if (dep == NULL || linkpath == NULL || buf == NULL || in physpath_to_devlink() 297 while (!found && (err = readdir_r(dp, dep, &newdep)) == 0 && in physpath_to_devlink() 300 assert(newdep == dep); in physpath_to_devlink() 302 if (strcmp(dep->d_name, ".") == 0 || in physpath_to_devlink() 303 strcmp(dep->d_name, "..") == 0) in physpath_to_devlink() 307 "%s/%s", basedir, dep->d_name); in physpath_to_devlink() 361 free(dep); in physpath_to_devlink() 375 if (dep) in physpath_to_devlink() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/trans/ |
H A D | mdtrans.c | 786 mddb_de_ic_t *dep; in trans_snarf() local 843 dep = mddb_getrecdep(recid); in trans_snarf() 844 dep->de_flags = MDDB_F_TRANS_LOG; in trans_snarf() 845 rbp = dep->de_rb; in trans_snarf() 856 kmem_free(small_ul, dep->de_reqsize); in trans_snarf() 861 dep->de_rb_userdata_ic = big_ul; in trans_snarf() 862 dep->de_rb_userdata = big_ul; in trans_snarf() 863 dep->de_icreqsize = newreqsize; in trans_snarf() 868 ul = dep->de_rb_userdata; in trans_snarf() 896 dep = mddb_getrecdep(recid); in trans_snarf() [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | errorq.c | 587 errorq_elem_t *eep, *dep; in errorq_drain() local 652 if (panicstr && (dep = eqp->eq_dump) != NULL) { in errorq_drain() 653 while (dep->eqe_dump != NULL) in errorq_drain() 654 dep = dep->eqe_dump; in errorq_drain() 682 dep = eqp->eq_dump = eep; in errorq_drain() 684 dep = dep->eqe_dump = eep; in errorq_drain() 742 errorq_elem_t *eep, *nep, *dep; in errorq_panic_drain() local 814 dep = eqp->eq_dump = eep; in errorq_panic_drain() 816 dep = dep->eqe_dump = eep; in errorq_panic_drain()
|
/titanic_41/usr/src/uts/sun4v/sys/ |
H A D | vdc.h | 156 vd_dring_entry_t *dep = NULL; \ 160 dep = (vd_dring_entry_t *)(uintptr_t) \ 163 ASSERT(dep != NULL); \ 164 dep->hdr.dstate = VIO_DESC_FREE; \ 247 vd_dring_entry_t *dep; /* public Dring Entry Pointer */ member
|