/titanic_41/usr/src/uts/common/io/iprb/ |
H A D | iprb.c | 261 iprb_t *ip; in iprb_attach() local 266 ip = kmem_zalloc(sizeof (*ip), KM_SLEEP); in iprb_attach() 267 ddi_set_driver_private(dip, ip); in iprb_attach() 268 ip->dip = dip; in iprb_attach() 270 list_create(&ip->mcast, sizeof (struct iprb_mcast), in iprb_attach() 274 mutex_init(&ip->culock, NULL, MUTEX_DRIVER, NULL); in iprb_attach() 275 mutex_init(&ip->rulock, NULL, MUTEX_DRIVER, NULL); in iprb_attach() 277 if (pci_config_setup(dip, &ip->pcih) != DDI_SUCCESS) { in iprb_attach() 278 iprb_error(ip, "unable to map configuration space"); in iprb_attach() 279 iprb_destroy(ip); in iprb_attach() [all …]
|
/titanic_41/usr/src/uts/common/fs/udfs/ |
H A D | udf_inode.c | 135 struct ud_inode *ip; in ud_search_icache() local 145 for (ip = ih->ih_chain[0]; in ud_search_icache() 146 ip != (struct ud_inode *)ih; in ud_search_icache() 147 ip = ip->i_forw) { in ud_search_icache() 148 if ((prn == ip->i_icb_prn) && (ploc == ip->i_icb_block) && in ud_search_icache() 149 (vfsp->vfs_dev == ip->i_dev)) { in ud_search_icache() 151 return (ip); in ud_search_icache() 166 struct ud_inode *ip; in ud_iget() local 193 for (ip = ih->ih_chain[0]; in ud_iget() 194 ip != (struct ud_inode *)ih; in ud_iget() [all …]
|
H A D | udf_bmap.c | 102 ud_bmap_has_holes(struct ud_inode *ip) in ud_bmap_has_holes() argument 109 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in ud_bmap_has_holes() 112 if (ip->i_desc_type != ICB_FLAG_ONE_AD) { in ud_bmap_has_holes() 113 if ((error = ud_read_icb_till_off(ip, ip->i_size)) == 0) { in ud_bmap_has_holes() 114 for (i = 0; i < ip->i_ext_used; i++) { in ud_bmap_has_holes() 115 iext = &ip->i_ext[i]; in ud_bmap_has_holes() 128 ud_bmap_read(struct ud_inode *ip, u_offset_t off, daddr_t *bnp, int32_t *lenp) in ud_bmap_read() argument 137 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in ud_bmap_read() 139 lbmask = ip->i_udf->udf_lbmask; in ud_bmap_read() 140 l2b = ip->i_udf->udf_l2b_shift; in ud_bmap_read() [all …]
|
H A D | udf_vnops.c | 262 struct ud_inode *ip = VTOI(vp); in udf_close() local 266 ITIMES(ip); in udf_close() 277 struct ud_inode *ip = VTOI(vp); in udf_close() local 278 if (ip->i_delaylen) { in udf_close() 279 (void) ud_putpages(vp, ip->i_delayoff, ip->i_delaylen, in udf_close() 281 ip->i_delaylen = 0; in udf_close() 297 struct ud_inode *ip = VTOI(vp); in udf_read() local 303 rw_enter(&ip->i_rwlock, RW_READER); in udf_read() 306 ASSERT(RW_READ_HELD(&ip->i_rwlock)); in udf_read() 308 if (MANDLOCK(vp, ip->i_char)) { in udf_read() [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/dsw/ |
H A D | dsw_dev.c | 63 #define REMOTE_VOL(s, ip) (((s) && ((ip->bi_flags)&DSW_SHDEXPORT)) || \ argument 64 (!(s)&&((ip->bi_flags)&DSW_SHDIMPORT))) 66 #define total_ref(ip) ((ip->bi_shdref + ip->bi_shdrref + ip->bi_bmpref) + \ argument 67 (NSHADOWS(ip) ? 0 : ip->bi_mstref + ip->bi_mstrref)) 74 #define II_LINK_CLUSTER(ip, cluster) \ argument 75 _ii_ll_add(ip, &_ii_cluster_mutex, &_ii_cluster_top, cluster, \ 76 &ip->bi_cluster) 77 #define II_UNLINK_CLUSTER(ip) \ argument 78 _ii_ll_remove(ip, &_ii_cluster_mutex, &_ii_cluster_top, &ip->bi_cluster) 80 #define II_LINK_GROUP(ip, group) \ argument [all …]
|
H A D | ii_tree.c | 77 ii_header_t *_ii_bm_header_get(_ii_info_t *ip, nsc_buf_t **tmp); 78 int _ii_bm_header_put(ii_header_t *hdr, _ii_info_t *ip, 86 static void free_node(_ii_info_t *ip, NODE *np, nodeid_t ni); 87 static chunkid_t ii_alloc_overflow(_ii_info_t *ip); 93 update_tree_header(_ii_info_t *ip) in update_tree_header() argument 98 mutex_enter(&ip->bi_mutex); in update_tree_header() 99 header = _ii_bm_header_get(ip, &tmp); in update_tree_header() 102 mutex_exit(&ip->bi_mutex); in update_tree_header() 106 header->ii_mstchks = ip->bi_mstchks; in update_tree_header() 107 header->ii_shdchks = ip->bi_shdchks; in update_tree_header() [all …]
|
H A D | dsw_dev.h | 77 DSW_BM_FBA_LEN(ip->bi_size)) 81 #define DSW_BM_SIZE_CHUNKS(ip) ((ip->bi_size + DSW_SIZE - 1) / DSW_SIZE) argument 82 #define DSW_BM_SIZE_BYTES(ip) ((DSW_BM_SIZE_CHUNKS(ip) + DSW_BITS - 1) / \ argument 233 #define II_READ_START(ip, type) argument 234 #define II_READ_END(ip, type, rc, blocks) argument 235 #define II_WRITE_START(ip, type) argument 236 #define II_WRITE_END(ip, type, rc, blocks) argument 239 #define II_KS(ip, x) KSTAT_IO_PTR(ip->bi_kstat_io.x) argument 240 #define II_MUTEX(ip, x) ip->bi_kstat_io.x->ks_lock argument 243 #define II_READ_START(ip, type) \ argument [all …]
|
/titanic_41/usr/src/uts/common/avs/ns/rdc/ |
H A D | rdc_health.c | 132 rdc_if_xxx(rdc_if_t *ip, char *updown) in rdc_if_xxx() argument 134 if (strcmp("inet6", ip->srv->ri_knconf->knc_protofmly) == 0) { in rdc_if_xxx() 135 uint16_t *this = (uint16_t *)ip->ifaddr.buf; in rdc_if_xxx() 136 uint16_t *other = (uint16_t *)ip->r_ifaddr.buf; in rdc_if_xxx() 147 uchar_t *this = (uchar_t *)ip->ifaddr.buf; in rdc_if_xxx() 148 uchar_t *other = (uchar_t *)ip->r_ifaddr.buf; in rdc_if_xxx() 160 rdc_if_down(rdc_if_t *ip) in rdc_if_down() argument 162 rdc_if_xxx(ip, "Down"); in rdc_if_down() 167 rdc_if_up(rdc_if_t *ip) in rdc_if_up() argument 169 rdc_if_xxx(ip, "Up"); in rdc_if_up() [all …]
|
/titanic_41/usr/src/uts/common/fs/ufs/ |
H A D | ufs_inode.c | 253 struct inode *ip = buf; in ufs_inode_cache_constructor() local 256 vp = ip->i_vnode = vn_alloc(kmflags); in ufs_inode_cache_constructor() 261 vp->v_data = ip; in ufs_inode_cache_constructor() 263 rw_init(&ip->i_rwlock, NULL, RW_DEFAULT, NULL); in ufs_inode_cache_constructor() 264 rw_init(&ip->i_contents, NULL, RW_DEFAULT, NULL); in ufs_inode_cache_constructor() 265 mutex_init(&ip->i_tlock, NULL, MUTEX_DEFAULT, NULL); in ufs_inode_cache_constructor() 266 dnlc_dir_init(&ip->i_danchor); in ufs_inode_cache_constructor() 268 cv_init(&ip->i_wrcv, NULL, CV_DRIVER, NULL); in ufs_inode_cache_constructor() 277 struct inode *ip = buf; in ufs_inode_cache_destructor() local 280 vp = ITOV(ip); in ufs_inode_cache_destructor() [all …]
|
H A D | ufs_vnops.c | 245 struct inode *ip; /* the file we contain */ member 289 struct inode *ip = VTOI(vp); in ufs_close() local 290 if (ip->i_delaylen) { in ufs_close() 292 (void) ufs_putpages(vp, ip->i_delayoff, ip->i_delaylen, in ufs_close() 294 ip->i_delaylen = 0; in ufs_close() 306 struct inode *ip = VTOI(vp); in ufs_read() local 312 ASSERT(RW_READ_HELD(&ip->i_rwlock)); in ufs_read() 318 if (MANDLOCK(vp, ip->i_mode)) { in ufs_read() 328 ufsvfsp = ip->i_ufsvfs; in ufs_read() 339 if ((ip->i_mode & IFMT) == IFDIR) { in ufs_read() [all …]
|
H A D | ufs_thread.c | 242 ufs_delete(struct ufsvfs *ufsvfsp, struct inode *ip, int dolockfs) in ufs_delete() argument 245 struct vnode *vp = ITOV(ip); in ufs_delete() 248 int dorwlock = ((ip->i_mode & IFMT) == IFREG); in ufs_delete() 258 if (ULOCKFS_IS_NOIDEL(ITOUL(ip))) { in ufs_delete() 260 delq_info->delq_unreclaimed_blocks -= ip->i_blocks; in ufs_delete() 267 if ((vp->v_count > 1) || (ip->i_mode == 0)) { in ufs_delete() 269 delq_info->delq_unreclaimed_blocks -= ip->i_blocks; in ufs_delete() 298 rw_enter(&ip->i_rwlock, RW_WRITER); in ufs_delete() 303 if (ip->i_oeftflag != 0) { in ufs_delete() 305 trans_size = (int)TOP_REMOVE_SIZE(ip)); in ufs_delete() [all …]
|
H A D | ufs_bmap.c | 97 static void ufs_undo_allocation(inode_t *ip, int block_count, 205 bmap_read(struct inode *ip, u_offset_t off, daddr_t *bnp, int *lenp) in bmap_read() argument 208 ufsvfs_t *ufsvfsp = ip->i_ufsvfs; in bmap_read() 217 ASSERT(RW_LOCK_HELD(&ip->i_contents)); in bmap_read() 228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1, in bmap_read() 255 nb = ip->i_ib[NIADDR - j]; in bmap_read() 267 ip->i_dev, fsbtodb(fs, ob), fs->fs_bsize); in bmap_read() 274 ASSERT(!ufs_indir_badblock(ip, bap)); in bmap_read() 287 DOEXTENT(fs, lbn, boff, bnp, lenp, ip->i_size, &bap[i], in bmap_read() 288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1), in bmap_read() [all …]
|
H A D | ufs_extvnops.c | 70 struct inode *ip = VTOI(vnodep); in ufs_rdwr_data() local 72 struct ufsvfs *ufsvfsp = ip->i_ufsvfs; in ufs_rdwr_data() 103 (void *)vnodep->v_pages, offset1, iolen, ip->i_size, (void *)fdbp)); in ufs_rdwr_data() 105 rw_enter(&ip->i_ufsvfs->vfs_dqrwlock, RW_READER); in ufs_rdwr_data() 106 rw_enter(&ip->i_contents, rwtype); in ufs_rdwr_data() 108 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data() 110 if ((offset1 + iolen) > ip->i_size) { in ufs_rdwr_data() 111 iolen = ip->i_size - offset1; in ufs_rdwr_data() 117 if ((error = bmap_read(ip, offset1, &bn, &contig)) != 0) { in ufs_rdwr_data() 128 if (!rw_tryupgrade(&ip->i_contents)) { in ufs_rdwr_data() [all …]
|
H A D | ufs_trans.c | 166 ufs_trans_iupdat(struct inode *ip, int waitfor) in ufs_trans_iupdat() argument 171 rw_enter(&ip->i_contents, RW_READER); in ufs_trans_iupdat() 172 ufs_iupdat(ip, waitfor); in ufs_trans_iupdat() 173 rw_exit(&ip->i_contents); in ufs_trans_iupdat() 176 ufsvfsp = ip->i_ufsvfs; in ufs_trans_iupdat() 182 TRANS_BEGIN_ASYNC(ufsvfsp, TOP_IUPDAT, TOP_IUPDAT_SIZE(ip)); in ufs_trans_iupdat() 183 rw_enter(&ip->i_contents, RW_READER); in ufs_trans_iupdat() 184 ufs_iupdat(ip, waitfor); in ufs_trans_iupdat() 185 rw_exit(&ip->i_contents); in ufs_trans_iupdat() 186 TRANS_END_ASYNC(ufsvfsp, TOP_IUPDAT, TOP_IUPDAT_SIZE(ip)); in ufs_trans_iupdat() [all …]
|
/titanic_41/usr/src/lib/libeti/menu/common/ |
H A D | connect.c | 48 ITEM **ip; in maxlengths() local 51 for (ip = Items(m); *ip; ip++) { in maxlengths() 52 if (NameLen(*ip) > maxn) { in maxlengths() 53 maxn = NameLen(*ip); in maxlengths() 55 if (DescriptionLen(*ip) > maxd) { in maxlengths() 56 maxd = DescriptionLen(*ip); in maxlengths() 66 ITEM **ip; in _connect() local 70 for (ip = items; *ip; ip++) { in _connect() 72 if (Imenu(*ip)) { in _connect() 77 for (i = 0, ip = items; *ip; ip++) { in _connect() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_inttab.c | 38 dt_inttab_t *ip; in dt_inttab_create() local 42 if ((ip = dt_zalloc(dtp, sizeof (dt_inttab_t))) == NULL || in dt_inttab_create() 43 (ip->int_hash = dt_zalloc(dtp, sizeof (void *) * len)) == NULL) { in dt_inttab_create() 44 dt_free(dtp, ip); in dt_inttab_create() 48 ip->int_hdl = dtp; in dt_inttab_create() 49 ip->int_hashlen = len; in dt_inttab_create() 51 return (ip); in dt_inttab_create() 55 dt_inttab_destroy(dt_inttab_t *ip) in dt_inttab_destroy() argument 59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy() 61 dt_free(ip->int_hdl, hp); in dt_inttab_destroy() [all …]
|
/titanic_41/usr/src/cmd/ast/msgcc/ |
H A D | msgcvt.c | 130 decode(Sfio_t* ip) in decode() argument 136 if ((c = sfgetc(ip)) == EOF) in decode() 142 while ((c = sfgetc(ip)) != EOF && c != ';') in decode() 185 sfungetc(ip, name[i]); in decode() 207 sfnext(Sfio_t* ip) in sfnext() argument 211 while (isspace(c = sfgetc(ip))); in sfnext() 216 html2msg(register Sfio_t* ip, register Sfio_t* op, int flags) in html2msg() argument 222 while ((c = sfgetc(ip)) != EOF) in html2msg() 225 if ((c = sfnext(ip)) == 'O' && in html2msg() 226 (c = sfnext(ip)) == 'L' && in html2msg() [all …]
|
/titanic_41/usr/src/lib/libmvec/common/ |
H A D | __vrem_pio2m.c | 173 int nq, ip, n, i, j, k, eq0, eqnqm1; in __vlibm_rem_pio2m() local 176 ip = (e - 3) / 24; in __vlibm_rem_pio2m() 177 if (ip < 0) in __vlibm_rem_pio2m() 178 ip = 0; in __vlibm_rem_pio2m() 179 eq0 = e - 24 * (ip + 1); in __vlibm_rem_pio2m() 183 q[0] = x[0] * ipio2[ip+2] + x[1] * ipio2[ip+1] + x[2] * ipio2[ip]; in __vlibm_rem_pio2m() 184 q[1] = x[0] * ipio2[ip+3] + x[1] * ipio2[ip+2] + x[2] * ipio2[ip+1]; in __vlibm_rem_pio2m() 185 q[2] = x[0] * ipio2[ip+4] + x[1] * ipio2[ip+3] + x[2] * ipio2[ip+2]; in __vlibm_rem_pio2m() 186 q[3] = x[0] * ipio2[ip+5] + x[1] * ipio2[ip+4] + x[2] * ipio2[ip+3]; in __vlibm_rem_pio2m() 187 q[4] = x[0] * ipio2[ip+6] + x[1] * ipio2[ip+5] + x[2] * ipio2[ip+4]; in __vlibm_rem_pio2m() [all …]
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | lz4.c | 367 #define INITBASE(base) const BYTE* const base = ip 527 const BYTE *ip = (BYTE *) source; in LZ4_compressCtx() local 529 const BYTE *anchor = ip; in LZ4_compressCtx() 530 const BYTE *const iend = ip + isize; in LZ4_compressCtx() 547 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx() 548 ip++; in LZ4_compressCtx() 549 forwardH = LZ4_HASH_VALUE(ip); in LZ4_compressCtx() 554 const BYTE *forwardIp = ip; in LZ4_compressCtx() 562 ip = forwardIp; in LZ4_compressCtx() 563 forwardIp = ip + step; in LZ4_compressCtx() [all …]
|
/titanic_41/usr/src/common/zfs/ |
H A D | zfs_fletcher.c | 137 const uint64_t *ip = buf; in fletcher_2_native() local 138 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_native() 141 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native() 142 a0 += ip[0]; in fletcher_2_native() 143 a1 += ip[1]; in fletcher_2_native() 154 const uint64_t *ip = buf; in fletcher_2_byteswap() local 155 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_byteswap() 158 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap() 159 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap() 160 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap() [all …]
|
/titanic_41/usr/src/cmd/ipf/lib/common/ |
H A D | printpacket.c | 16 void printpacket(ip) in printpacket() argument 17 struct ip *ip; in printpacket() 23 if (IP_V(ip) == 6) { 25 len = ntohs(((u_short *)ip)[2]) + 40; 27 off = ntohs(ip->ip_off); 28 len = ntohs(ip->ip_len); 35 for (s = (u_char *)ip, i = 0; i < len; i++) { 47 if (IP_V(ip) == 6) { 48 printpacket6(ip); 52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2)); [all …]
|
/titanic_41/usr/src/lib/libpp/common/ |
H A D | ppproto.c | 76 char* ip; /* input buffer pointer */ member 480 #define CACHEIN() (ip=proto->ip) 482 #define GETCHR() (*(unsigned char*)ip++) 487 #define SYNCIN() (proto->ip=ip) 489 #define UNGETCHR() (ip--) 547 register char* ip; in lex() local 589 proto->tp = ip; in lex() 591 bp = ip; in lex() 600 if ((n = ip - bp - 1) > 0) in lex() 602 ip = bp; in lex() [all …]
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | zfs_fletcher.c | 32 const uint64_t *ip = buf; in fletcher_2_native() local 33 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_native() 36 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native() 37 a0 += ip[0]; in fletcher_2_native() 38 a1 += ip[1]; in fletcher_2_native() 49 const uint64_t *ip = buf; in fletcher_2_byteswap() local 50 const uint64_t *ipend = ip + (size / sizeof (uint64_t)); in fletcher_2_byteswap() 53 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap() 54 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap() 55 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap() [all …]
|
/titanic_41/usr/src/cmd/lms/tools/ |
H A D | ATNetworkTool.h | 47 struct sockaddr_storage ip; variable 53 memset(&(this->ip), 0, sizeof(struct sockaddr_storage)); in ATAddress() 58 memcpy(&(this->ip), y.addr(), sizeof(struct sockaddr_storage)); in ATAddress() 63 memset(&(this->ip), 0, sizeof(struct sockaddr_storage)); in ATAddress() 64 memcpy(&(this->ip), yip, saSize(yip)); in ATAddress() 69 memcpy(&(this->ip), y.addr(), sizeof(struct sockaddr_storage)); in ATAddress() 70 ATAddress::saSetPort((const struct sockaddr *)&(this->ip), yport); in ATAddress() 75 memset(&(this->ip), 0, sizeof(struct sockaddr_storage)); in ATAddress() 76 memcpy(&(this->ip), yip, saSize(yip)); in ATAddress() 77 ATAddress::saSetPort((const struct sockaddr *)&(this->ip), yport); in ATAddress() [all …]
|
/titanic_41/usr/src/uts/sun4u/starcat/io/ |
H A D | fcgp2.c | 175 struct fc_resource *ip, *np; in gp2_fc_ops_free_handle() local 189 for (ip = rp->head; ip != NULL; ip = np) { in gp2_fc_ops_free_handle() 190 np = ip->next; in gp2_fc_ops_free_handle() 191 switch (ip->type) { in gp2_fc_ops_free_handle() 194 " map handle - %p\n", ip->fc_map_handle); in gp2_fc_ops_free_handle() 203 ip->fc_contig_virt, ip->fc_contig_len); in gp2_fc_ops_free_handle() 206 (uint64_t)ip->fc_contig_virt, in gp2_fc_ops_free_handle() 207 ip->fc_contig_len, "gptwo-contigousmem", in gp2_fc_ops_free_handle() 213 "unknown resource type %d\n", ip->type); in gp2_fc_ops_free_handle() 216 fc_rem_resource(rp, ip); in gp2_fc_ops_free_handle() [all …]
|