/titanic_50/usr/src/uts/common/io/sfe/ |
H A D | sfe_util.c | 108 #define GET_TXBUF(dp, sn) \ argument 109 &(dp)->tx_buf[SLOT((dp)->tx_slots_base + (sn), (dp)->gc.gc_tx_buf_size)] 114 #define MAXPKTBUF(dp) \ argument 115 ((dp)->mtu + sizeof (struct ether_header) + VTAG_SIZE + ETHERFCSL) 131 static void gem_nd_setup(struct gem_dev *dp); 132 static void gem_nd_cleanup(struct gem_dev *dp); 140 static void gem_mii_link_watcher(struct gem_dev *dp); 141 static int gem_mac_init(struct gem_dev *dp); 142 static int gem_mac_start(struct gem_dev *dp); 143 static int gem_mac_stop(struct gem_dev *dp, uint_t flags); [all …]
|
H A D | sfe.c | 181 static void sfe_set_eq_sis630(struct gem_dev *dp); 195 static int sfe_tx_desc_write(struct gem_dev *dp, int slot, 197 static void sfe_tx_start(struct gem_dev *dp, int startslot, int nslot); 198 static void sfe_rx_desc_write(struct gem_dev *dp, int slot, 200 static uint_t sfe_tx_desc_stat(struct gem_dev *dp, int slot, int ndesc); 201 static uint64_t sfe_rx_desc_stat(struct gem_dev *dp, int slot, int ndesc); 203 static void sfe_tx_desc_init(struct gem_dev *dp, int slot); 204 static void sfe_rx_desc_init(struct gem_dev *dp, int slot); 205 static void sfe_tx_desc_clean(struct gem_dev *dp, int slot); 206 static void sfe_rx_desc_clean(struct gem_dev *dp, int slot); [all …]
|
H A D | sfe_util.h | 66 #define OUTB(dp, p, v) \ argument 67 ddi_put8((dp)->regs_handle, \ 68 (void *)((caddr_t)((dp)->base_addr) + (p)), v) 69 #define OUTW(dp, p, v) \ argument 70 ddi_put16((dp)->regs_handle, \ 71 (void *)((caddr_t)((dp)->base_addr) + (p)), v) 72 #define OUTL(dp, p, v) \ argument 73 ddi_put32((dp)->regs_handle, \ 74 (void *)((caddr_t)((dp)->base_addr) + (p)), v) 75 #define OUTLINL(dp, p, v) \ argument [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/ |
H A D | dsl_pool.c | 134 dsl_pool_open_special_dir(dsl_pool_t *dp, const char *name, dsl_dir_t **ddp) in dsl_pool_open_special_dir() argument 139 err = zap_lookup(dp->dp_meta_objset, in dsl_pool_open_special_dir() 140 dsl_dir_phys(dp->dp_root_dir)->dd_child_dir_zapobj, in dsl_pool_open_special_dir() 145 return (dsl_dir_hold_obj(dp, obj, name, dp, ddp)); in dsl_pool_open_special_dir() 151 dsl_pool_t *dp; in dsl_pool_open_impl() local 154 dp = kmem_zalloc(sizeof (dsl_pool_t), KM_SLEEP); in dsl_pool_open_impl() 155 dp->dp_spa = spa; in dsl_pool_open_impl() 156 dp->dp_meta_rootbp = *bp; in dsl_pool_open_impl() 157 rrw_init(&dp->dp_config_rwlock, B_TRUE); in dsl_pool_open_impl() 158 txg_init(dp, txg); in dsl_pool_open_impl() [all …]
|
/titanic_50/usr/src/cmd/fm/fmd/common/ |
H A D | fmd.c | 368 fmd_create(fmd_t *dp, const char *arg0, const char *root, const char *conf) in fmd_create() argument 414 bzero(dp, sizeof (fmd_t)); in fmd_create() 416 dp->d_version = _fmd_version; in fmd_create() 417 dp->d_pname = fmd_strbasename(arg0); in fmd_create() 418 dp->d_pid = getpid(); in fmd_create() 420 if (pthread_key_create(&dp->d_key, NULL) != 0) in fmd_create() 423 (void) pthread_mutex_init(&dp->d_xprt_lock, NULL); in fmd_create() 424 (void) pthread_mutex_init(&dp->d_err_lock, NULL); in fmd_create() 425 (void) pthread_mutex_init(&dp->d_thr_lock, NULL); in fmd_create() 426 (void) pthread_mutex_init(&dp->d_mod_lock, NULL); in fmd_create() [all …]
|
/titanic_50/usr/src/lib/libast/common/disc/ |
H A D | sfdcdos.c | 60 static void addmapping(register Dosdisc_t *dp) in addmapping() argument 62 static void addmapping(dp) in addmapping() 63 register Dosdisc_t *dp; in addmapping() 67 if((n=dp->maptop++)>=dp->mapsize) 69 dp->mapsize *= 2; 70 if(!(dp->maptable=(struct map*)realloc((void*)dp->maptable,(dp->mapsize+1)*sizeof(struct map)))) 72 dp->maptop--; 73 dp->mapsize *= 2; 77 dp->maptable[n].physical = dp->phere; 78 dp->maptable[n].logical = dp->lhere; [all …]
|
/titanic_50/usr/src/lib/libdevinfo/ |
H A D | devinfo_retire.c | 60 static void rio_assert(di_retire_t *dp, const char *EXstr, int line, 92 rio_assert(di_retire_t *dp, const char *EXstr, int line, const char *file) in rio_assert() argument 96 if (dp->rt_abort == NULL) in rio_assert() 102 dp->rt_abort(dp->rt_hdl, buf); in rio_assert() 110 di_retire_t *dp = rp->rcm_dp; in enclosure_minor() local 113 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_minor: " in enclosure_minor() 122 di_retire_t *dp = rp->rcm_dp; in enclosure_select() local 124 rarg.rcm_dp = dp; in enclosure_select() 133 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_select:" in enclosure_select() 139 dp->rt_debug(dp->rt_hdl, "[INFO]: enclosure_select:" in enclosure_select() [all …]
|
/titanic_50/usr/src/cmd/csh/ |
H A D | sh.dir.c | 43 struct directory *dp; in dinit() local 65 dp = (struct directory *)xcalloc(sizeof (struct directory), 1); in dinit() 66 dp->di_name = savestr(cp); in dinit() 67 dp->di_count = 0; in dinit() 68 dhead.di_next = dhead.di_prev = dp; in dinit() 69 dp->di_next = dp->di_prev = &dhead; in dinit() 71 dnewcwd(dp); in dinit() 80 struct directory *dp; in dodirs() local 96 dp = dcwd; in dodirs() 98 if (dp == &dhead) in dodirs() [all …]
|
/titanic_50/usr/src/lib/libdtrace/common/ |
H A D | dt_sugar.c | 88 dt_sugar_append_clause(dt_sugar_parse_t *dp, dt_node_t *clause) in dt_sugar_append_clause() argument 90 dp->dtsp_clause_list = dt_node_link(dp->dtsp_clause_list, clause); in dt_sugar_append_clause() 97 dt_sugar_prepend_clause(dt_sugar_parse_t *dp, dt_node_t *clause) in dt_sugar_prepend_clause() argument 99 dp->dtsp_clause_list = dt_node_link(clause, dp->dtsp_clause_list); in dt_sugar_prepend_clause() 142 dt_sugar_new_condition_impl(dt_sugar_parse_t *dp, in dt_sugar_new_condition_impl() argument 171 return (dt_node_clause(dp->dtsp_pdescs, newpred, body)); in dt_sugar_new_condition_impl() 180 dt_sugar_new_condition(dt_sugar_parse_t *dp, dt_node_t *pred, int condid) in dt_sugar_new_condition() argument 182 dp->dtsp_num_conditions++; in dt_sugar_new_condition() 183 dt_sugar_append_clause(dp, dt_sugar_new_condition_impl(dp, in dt_sugar_new_condition() 184 pred, condid, dp->dtsp_num_conditions)); in dt_sugar_new_condition() [all …]
|
H A D | dt_dis.c | 41 dt_dis_log(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_log() argument 49 dt_dis_branch(const dtrace_difo_t *dp, const char *name, in dt_dis_branch() argument 57 dt_dis_load(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_load() argument 65 dt_dis_store(const dtrace_difo_t *dp, const char *name, in dt_dis_store() argument 74 dt_dis_str(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_str() argument 81 dt_dis_r1rd(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_r1rd() argument 89 dt_dis_cmp(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_cmp() argument 97 dt_dis_tst(const dtrace_difo_t *dp, const char *name, dif_instr_t in, FILE *fp) in dt_dis_tst() argument 103 dt_dis_varname(const dtrace_difo_t *dp, uint_t id, uint_t scope) in dt_dis_varname() argument 105 const dtrace_difv_t *dvp = dp->dtdo_vartab; in dt_dis_varname() [all …]
|
/titanic_50/usr/src/uts/sun4v/io/ |
H A D | vsw_rxdring.c | 71 static int vsw_setup_rx_dring(vsw_ldc_t *ldcp, dring_info_t *dp); 111 dring_info_t *dp; in vsw_create_rx_dring_info() local 121 if ((dp = vsw_create_rx_dring(ldcp)) == NULL) in vsw_create_rx_dring_info() 124 mp = kmem_zalloc(VNET_DRING_REG_EXT_MSG_SIZE(dp->data_ncookies), in vsw_create_rx_dring_info() 133 mp->num_descriptors = dp->num_descriptors; in vsw_create_rx_dring_info() 134 mp->descriptor_size = dp->descriptor_size; in vsw_create_rx_dring_info() 135 mp->options = dp->options; in vsw_create_rx_dring_info() 136 mp->ncookies = dp->dring_ncookies; in vsw_create_rx_dring_info() 137 bcopy(&dp->dring_cookie[0], &mp->cookie[0], in vsw_create_rx_dring_info() 151 emsg->data_ncookies = dp->data_ncookies; in vsw_create_rx_dring_info() [all …]
|
/titanic_50/usr/src/lib/libadm/common/ |
H A D | fulldevnm.c | 197 char *dp; in getblkcomplete() local 204 if ((dp = strstr(cp, "/rfd")) != NULL) { in getblkcomplete() 208 c = *++dp; /* save the 'r' */ in getblkcomplete() 209 *dp = '\0'; /* replace it with a null */ in getblkcomplete() 211 *dp++ = c; /* give the 'r' back */ in getblkcomplete() 212 (void) strcat(new_path, dp); /* copy, skipping the 'r' */ in getblkcomplete() 222 if ((dp = strstr(cp, "/rdiskette")) != NULL) { in getblkcomplete() 226 c = *++dp; /* save the 'r' */ in getblkcomplete() 227 *dp = '\0'; /* replace it with a null */ in getblkcomplete() 229 *dp++ = c; /* give the 'r' back */ in getblkcomplete() [all …]
|
/titanic_50/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | pass1.c | 134 struct dinode *dp; in verify_inode() local 137 dp = getnextinode(inumber); in verify_inode() 138 if ((dp->di_mode & IFMT) == 0) { in verify_inode() 140 if ((memcmp((void *)dp->di_db, (void *)zino.di_db, in verify_inode() 142 (memcmp((void *)dp->di_ib, (void *)zino.di_ib, in verify_inode() 144 (dp->di_mode != 0) || (dp->di_size != 0)) { in verify_inode() 147 dp = ginode(inumber); in verify_inode() 148 clearinode(dp); in verify_inode() 158 isdir = ((dp->di_mode & IFMT) == IFDIR) || in verify_inode() 159 ((dp->di_mode & IFMT) == IFATTRDIR); in verify_inode() [all …]
|
H A D | dir.c | 104 struct direct *dp; in dirscan() local 124 for (dp = fsck_readdir(idesc); dp != NULL; dp = fsck_readdir(idesc)) { in dirscan() 130 dsize = MIN(dp->d_reclen, sizeof (u.dbuf)); in dirscan() 131 (void) memmove((void *)u.dbuf, (void *)dp, (size_t)dsize); in dirscan() 162 struct direct *dp, *ndp = 0; in fsck_readdir() local 201 dp = (struct direct *)(bp->b_un.b_buf + idesc->id_loc); in fsck_readdir() 206 if (dircheck(idesc, dp) == 0) { in fsck_readdir() 242 dp = (struct direct *)(bp->b_un.b_buf + origloc); in fsck_readdir() 251 dp->d_reclen = size; in fsck_readdir() 252 dp->d_ino = 0; in fsck_readdir() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_disasm.c | 62 mdb_disasm_t *dp = mdb_zalloc(sizeof (mdb_disasm_t), UM_SLEEP); in mdb_dis_create() local 64 if ((dp->dis_module = mdb.m_lmod) == NULL) in mdb_dis_create() 65 dp->dis_module = &mdb.m_rmod; in mdb_dis_create() 67 if (ctor(dp) == 0) { in mdb_dis_create() 68 mdb_var_t *v = mdb_nv_lookup(&mdb.m_disasms, dp->dis_name); in mdb_dis_create() 71 dp->dis_ops->dis_destroy(dp); in mdb_dis_create() 72 mdb_free(dp, sizeof (mdb_disasm_t)); in mdb_dis_create() 77 (void) mdb_nv_insert(&mdb.m_disasms, dp->dis_name, NULL, in mdb_dis_create() 78 (uintptr_t)dp, MDB_NV_RDONLY | MDB_NV_SILENT); in mdb_dis_create() 81 mdb.m_disasm = dp; in mdb_dis_create() [all …]
|
/titanic_50/usr/src/cmd/fs.d/pcfs/fsck/ |
H A D | dir.c | 84 hasCHKName(struct pcdir *dp) in hasCHKName() argument 86 return (dp->pcd_filename[CHKNAME_F] == 'F' && in hasCHKName() 87 dp->pcd_filename[CHKNAME_I] == 'I' && in hasCHKName() 88 dp->pcd_filename[CHKNAME_L] == 'L' && in hasCHKName() 89 dp->pcd_filename[CHKNAME_E] == 'E' && in hasCHKName() 90 isdigit(dp->pcd_filename[CHKNAME_THOUSANDS]) && in hasCHKName() 91 isdigit(dp->pcd_filename[CHKNAME_HUNDREDS]) && in hasCHKName() 92 isdigit(dp->pcd_filename[CHKNAME_TENS]) && in hasCHKName() 93 isdigit(dp->pcd_filename[CHKNAME_ONES]) && in hasCHKName() 94 dp->pcd_ext[CHKNAME_C] == 'C' && in hasCHKName() [all …]
|
/titanic_50/usr/src/uts/common/fs/dcfs/ |
H A D | dc_vnops.c | 266 struct dcnode *dp = VTODC(vp); in dc_read() local 267 size_t rdsize = MAX(MAXBSIZE, dp->dc_hdr->ch_blksize); in dc_read() 268 size_t fsize = dp->dc_hdr->ch_fsize; in dc_read() 311 struct dcnode *dp = VTODC(vp); in dc_getattr() local 312 struct vnode *subvp = dp->dc_subvp; in dc_getattr() 318 vap->va_size = dp->dc_hdr->ch_fsize; in dc_getattr() 326 struct dcnode *dp = VTODC(vp); in dc_setattr() local 327 struct vnode *subvp = dp->dc_subvp; in dc_setattr() 336 struct dcnode *dp = VTODC(vp); in dc_access() local 337 struct vnode *subvp = dp->dc_subvp; in dc_access() [all …]
|
/titanic_50/usr/src/cmd/fm/modules/sun4u/cpumem-diagnosis/ |
H A D | cmd_dp.c | 120 cmd_dp_lookup_error(cmd_dp_t *dp) in cmd_dp_lookup_error() argument 132 if ((ptr->dp_err == dp->dp_err) && in cmd_dp_lookup_error() 133 (ptr->dp_cpuid_list[0] == dp->dp_cpuid_list[0])) in cmd_dp_lookup_error() 198 dp_buf_write(fmd_hdl_t *hdl, cmd_dp_t *dp) in dp_buf_write() argument 202 if ((sz = fmd_buf_size(hdl, NULL, dp->dp_bufname)) != 0 && in dp_buf_write() 204 fmd_buf_destroy(hdl, NULL, dp->dp_bufname); in dp_buf_write() 206 fmd_buf_write(hdl, NULL, dp->dp_bufname, &dp->dp_pers, in dp_buf_write() 213 cmd_dp_t *dp; in dp_wrapv0() local 220 dp = fmd_hdl_zalloc(hdl, sizeof (cmd_dp_t), FMD_SLEEP); in dp_wrapv0() 221 bcopy(pers, dp, sizeof (cmd_dp_pers_t)); in dp_wrapv0() [all …]
|
/titanic_50/usr/src/ucbcmd/whereis/ |
H A D | whereis.c | 223 char *dp; in lookup() local 225 for (dp = cp; *dp; dp++) in lookup() 227 for (; dp > cp; dp--) { in lookup() 228 if (*dp == '.') { in lookup() 229 *dp = 0; in lookup() 233 for (dp = cp; *dp; dp++) in lookup() 234 if (*dp == '/') in lookup() 235 cp = dp + 1; in lookup() 318 struct dirent *dp; in findin() local 323 while ((dp = readdir(dirp)) != NULL) { in findin() [all …]
|
/titanic_50/usr/src/lib/fm/topo/modules/common/pcibus/ |
H A D | did.c | 354 did_link_get(did_t *dp) in did_link_get() argument 356 assert(dp != NULL); in did_link_get() 357 return (dp->dp_link); in did_link_get() 361 did_chain_get(did_t *dp) in did_chain_get() argument 363 assert(dp != NULL); in did_chain_get() 364 return (dp->dp_chain); in did_chain_get() 396 did_destroy(did_t *dp) in did_destroy() argument 398 assert(dp != NULL); in did_destroy() 408 if (dp->dp_devtype != NULL) in did_destroy() 409 topo_mod_strfree(dp->dp_mod, dp->dp_devtype); in did_destroy() [all …]
|
/titanic_50/usr/src/cmd/svr4pkg/pkginfo/ |
H A D | pkginfo.c | 141 static void pkgusage(struct cfstat *dp, struct cfent *pentry); 142 static void getinfo(struct cfstat *dp); 143 static void dumpinfo(struct cfstat *dp, int pkgLngth); 321 struct cfstat *dp, *choice; in report() local 329 for (dp = data; dp; dp = dp->next) { in report() 330 pkgLgth = strlen(dp->pkginst); in report() 334 for (dp = data; dp; dp = dp->next) { in report() 336 if (dp->installed < 0) in report() 339 choice = dp; in report() 342 (strcmp(choice->pkginst, dp->pkginst) > 0)) in report() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | instance.c | 66 static void in_hashdrv(in_drv_t *dp); 69 static void in_endrv(in_node_t *np, in_drv_t *dp); 147 struct in_drv *dp; in e_ddi_instance_init() local 174 dp = in_alloc_drv("rootnex"); in e_ddi_instance_init() 175 in_endrv(e_ddi_inst_state.ins_root, dp); in e_ddi_instance_init() 341 in_set_instance(dev_info_t *dip, in_drv_t *dp, major_t major) in in_set_instance() argument 345 dp->ind_instance = DEVI(dip)->devi_instance; in in_set_instance() 347 dp->ind_instance = in_next_instance(major); in in_set_instance() 545 in_drv_t *dp; in e_ddi_assign_instance() local 601 dp = in_drvwalk(np, bname); in e_ddi_assign_instance() [all …]
|
H A D | ip_cksum.c | 87 dblk_t *dp = mp->b_datap; in ip_cksum() local 94 ASSERT(dp); in ip_cksum() 101 if (dp->db_struioflag & STRUIO_IP) { in ip_cksum() 106 if ((offset > dp->db_cksumstart) || in ip_cksum() 108 dp->db_cksumend)) { in ip_cksum() 117 dp->db_struioflag &= ~STRUIO_IP; in ip_cksum() 120 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum() 121 psum = *(ushort_t *)dp->db_struioun.data; in ip_cksum() 122 if ((mlen = dp->db_cksumstart - offset) < 0) in ip_cksum() 126 if (mlen && dp->db_cksumstart != dp->db_cksumstuff && in ip_cksum() [all …]
|
/titanic_50/usr/src/uts/common/fs/zfs/sys/ |
H A D | dsl_pool.h | 136 int dsl_pool_open(dsl_pool_t *dp); 137 void dsl_pool_close(dsl_pool_t *dp); 139 void dsl_pool_sync(dsl_pool_t *dp, uint64_t txg); 140 void dsl_pool_sync_done(dsl_pool_t *dp, uint64_t txg); 141 int dsl_pool_sync_context(dsl_pool_t *dp); 142 uint64_t dsl_pool_adjustedsize(dsl_pool_t *dp, boolean_t netfree); 143 uint64_t dsl_pool_adjustedfree(dsl_pool_t *dp, boolean_t netfree); 144 void dsl_pool_dirty_space(dsl_pool_t *dp, int64_t space, dmu_tx_t *tx); 145 void dsl_pool_undirty_space(dsl_pool_t *dp, int64_t space, uint64_t txg); 146 void dsl_free(dsl_pool_t *dp, uint64_t txg, const blkptr_t *bpp); [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_dhcp.c | 132 interpret_dhcp(int flags, struct dhcp *dp, int len) in interpret_dhcp() argument 135 if ((memcmp(dp->cookie, bootmagic, sizeof (bootmagic)) == 0) && in interpret_dhcp() 137 dp->options[0] == CD_DHCP_TYPE) { in interpret_dhcp() 139 "DHCP/BOOTP %s", show_msgtype(dp->options[2])); in interpret_dhcp() 141 switch (ntohs(dp->op)) { in interpret_dhcp() 157 (void) sprintf(get_line((char *)(uintptr_t)dp->htype - in interpret_dhcp() 159 "Hardware address type (htype) = %d (%s)", dp->htype, in interpret_dhcp() 160 arp_htype(dp->htype)); in interpret_dhcp() 161 (void) sprintf(get_line((char *)(uintptr_t)dp->hlen - in interpret_dhcp() 163 "Hardware address length (hlen) = %d octets", dp->hlen); in interpret_dhcp() [all …]
|