Home
last modified time | relevance | path

Searched refs:ip (Results 1 – 25 of 809) sorted by relevance

12345678910>>...33

/illumos-gate/usr/src/uts/common/io/iprb/
H A Diprb.c318 bcopy(ip->factaddr, ip->curraddr, 6); in iprb_attach()
539 kmem_free(ip, sizeof (*ip)); in iprb_destroy()
781 ip->cmd_last = ip->cmd_head; in iprb_cmd_submit()
795 return (&ip->cmds[ip->cmd_head]); in iprb_cmd_next()
962 ip->cmd_head = ip->cmd_tail = 0; in iprb_start()
1173 rfd = &ip->rxb[ip->rx_index]; in iprb_rx()
1228 if (ip->running && !ip->suspended) in iprb_m_promisc()
1241 if (ip->running && !ip->suspended) in iprb_m_unicst()
1263 if (ip->running && !ip->suspended) in iprb_m_multicst()
1415 *val = ip->one_coll + ip->multi_coll + ip->ex_coll; in iprb_m_stat()
[all …]
/illumos-gate/usr/src/uts/common/fs/udfs/
H A Dudf_inode.c148 ip = ip->i_forw) { in ud_search_icache()
366 ip->i_forw = ip; in ud_iget()
367 ip->i_back = ip; in ud_iget()
402 ip->i_forw = ip; in ud_iget()
403 ip->i_back = ip; in ud_iget()
500 ip->i_forw = ip; in ud_iget()
501 ip->i_back = ip; in ud_iget()
1123 ip->i_forw = ip; in ud_iinactive()
1124 ip->i_back = ip; in ud_iinactive()
2025 ip->i_forw = ip; in ud_delcache()
[all …]
H A Dudf_bmap.c345 ip->i_ext_count = ip->i_ext_used = 0; in ud_bmap_write()
396 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_bmap_write()
641 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_common_ad()
669 con = &ip->i_con[ip->i_con_used]; in ud_common_ad()
713 cont = &ip->i_con[ip->i_con_read]; in ud_read_next_cont()
759 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_read_icb_till_off()
806 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_last_alloc_ext()
903 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_last_alloc_ext()
954 ip->i_ext[i] = ip->i_ext[i - 1]; in ud_break_create_new_icb()
980 ip->i_ext[i] = ip->i_ext[i + 1]; in ud_remove_ext_at_index()
[all …]
H A Dudf_vnops.c266 ITIMES(ip); in udf_close()
374 cv_wait(&ip->i_wrcv, &ip->i_tlock); in udf_write()
439 vap->va_mode = UD2VA_PERM(ip->i_perm) | ip->i_char; in udf_getattr()
525 ovap.va_mode = UD2VA_PERM(ip->i_perm) | ip->i_char; in udf_setattr()
679 ip = xip; in udf_lookup()
746 ip = xip; in udf_create()
1994 if (ip->i_delaylen >= WR_CLUSTSZ(ip) || in udf_putpage()
1995 ip->i_delayoff + ip->i_delaylen != off) { in udf_putpage()
2446 if (seq && ip->i_nextrio < ip->i_size) { in ud_getpage_miss()
2662 ip->i_delayoff = ip->i_delaylen = 0; in ud_putpages()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_inode.c346 ip->i_freef = ip; in ufs_alloc_inode()
347 ip->i_freeb = ip; in ufs_alloc_inode()
477 for (ip = ih->ih_chain[0]; ip != (struct inode *)ih; ip = ip->i_forw) { in ufs_iget_internal()
588 ip->i_uid = ip->i_suid; in ufs_iget_internal()
590 ip->i_gid = ip->i_sgid; in ufs_iget_internal()
655 ip->i_dquot = getinoquota(ip); in ufs_iget_internal()
756 ufs_delete(ip->i_ufsvfs, ip, 0); in ufs_iinactive()
776 ip->i_freef = ip; in ufs_iinactive()
777 ip->i_freeb = ip; in ufs_iinactive()
1598 ip->i_freef = ip; in ufs_rmidle()
[all …]
H A Dufs_vnops.c549 cv_wait(&ip->i_wrcv, &ip->i_tlock); in ufs_write()
2192 ip->i_dquot = getinoquota(ip); in ufs_setattr()
2472 error = kcopy(basep, &ip->i_db[1], ip->i_size); in ufs_readlink()
4101 if (ip->i_size > 0 && ip->i_size <= FSL_SIZE) { in ufs_symlink()
4872 if (seq && ip->i_nextrio < ip->i_size) in ufs_getpage_miss()
5022 if (ip->i_delaylen >= CLUSTSZ(ip) || in ufs_putpage()
5023 ip->i_delayoff + ip->i_delaylen != off) { in ufs_putpage()
5085 ip->i_delayoff = ip->i_delaylen = 0; in ufs_putpages()
5127 cv_wait(&ip->i_wrcv, &ip->i_tlock); in ufs_putpages()
6042 (dump_info->ip != ip) || in ufs_dump()
[all …]
H A Dufs_thread.c392 ufs_ifree(ip, ip->i_number, mode); in ufs_delete()
476 ip->i_freef->i_freeb = ip->i_freeb; in ufs_thread_delete()
477 ip->i_freeb->i_freef = ip->i_freef; in ufs_thread_delete()
478 ip->i_freef = ip; in ufs_thread_delete()
479 ip->i_freeb = ip; in ufs_thread_delete()
532 ip->i_freef = ip; in ufs_delete_drain()
533 ip->i_freeb = ip; in ufs_delete_drain()
930 ip = ip->i_freef) { in ufs_idle_drain()
962 ip = ip->i_freef) { in ufs_idle_drain()
991 for (ip = ianchor; ip; ip = nip) { in ufs_idle_drain()
[all …]
H A Dufs_bmap.c228 ip->i_size, &ip->i_db[lbn], NDADDR - lbn, 1, in bmap_read()
346 llbn = (daddr_t)((ip->i_size) ? lblkno(fs, ip->i_size - 1) : 0); in bmap_write()
353 else if (ip->i_ufsvfs->vfs_qinod == ip) in bmap_write()
397 pref = blkpref(ip, llbn, (int)llbn, &ip->i_db[0]); in bmap_write()
416 ip); in bmap_write()
499 pref = blkpref(ip, lbn, (int)lbn, &ip->i_db[0]); in bmap_write()
611 dev = ip->i_dev; in bmap_write()
935 if (ip->i_writer != NULL && ip->i_writer != curthread) { in bmap_has_holes()
1044 inode_t *ip, in ufs_undo_allocation() argument
1154 ip->i_seq++; in ufs_undo_allocation()
[all …]
H A Dufs_extvnops.c106 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data()
163 bp->b_edev = ip->i_dev; in ufs_rdwr_data()
166 bp->b_file = ip->i_vnode; in ufs_rdwr_data()
195 rw_exit(&ip->i_contents); in ufs_rdwr_data()
301 fs = ip->i_fs; in ufs_alloc_data()
324 ip->i_seq++; in ufs_alloc_data()
354 bp->b_edev = ip->i_dev; in ufs_alloc_data()
388 old_i_size = ip->i_size; in ufs_alloc_data()
390 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_alloc_data()
458 ip->i_seq++; in ufs_alloc_data()
[all …]
H A Dufs_trans.c268 struct inode *ip; in ufs_trans_push_inode() local
371 struct inode *ip, in ufs_trans_mata_direct() argument
421 (ifmt == IFATTRDIR) || (ip == ip->i_ufsvfs->vfs_qinod)) in ufs_trans_mata_indir()
437 daddr_t frags = dbtofsb(ip->i_fs, ip->i_blocks); in ufs_trans_mata_iget()
441 (ifmt == IFATTRDIR) || (ip == ip->i_ufsvfs->vfs_qinod))) in ufs_trans_mata_iget()
442 ufs_trans_mata_direct(ip, &frags, &ip->i_db[0], NDADDR); in ufs_trans_mata_iget()
445 ufs_trans_mata_direct(ip, &frags, &ip->i_ib[0], NIADDR); in ufs_trans_mata_iget()
449 ufs_trans_mata_indir(ip, &frags, ip->i_ib[i], i); in ufs_trans_mata_iget()
477 (ifmt == IFATTRDIR) || (ip == ip->i_ufsvfs->vfs_qinod))) in ufs_trans_mata_alloc()
492 ASSERT(ip); in ufs_trans_dir()
[all …]
/illumos-gate/usr/src/boot/libsa/
H A Dip.c91 struct ip *ip; in sendip() local
106 ip = (struct ip *)pkt - 1; in sendip()
109 bzero(ip, sizeof(*ip)); in sendip()
112 ip->ip_hl = sizeof(*ip) >> 2; /* half-char */ in sendip()
118 ip->ip_sum = in_cksum(ip, sizeof(*ip)); /* short, but special */ in sendip()
186 struct ip *ip; in readipv4() local
198 ip = NULL; in readipv4()
235 ip->ip_v, ip->ip_p); in readipv4()
279 ip->ip_len = htons(sizeof(*ip)); in readipv4()
283 n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ? in readipv4()
[all …]
/illumos-gate/usr/src/lib/libeti/menu/common/
H A Dconnect.c46 ITEM **ip; in maxlengths() local
49 for (ip = Items(m); *ip; ip++) { in maxlengths()
64 ITEM **ip; in _connect() local
68 for (ip = items; *ip; ip++) { in _connect()
70 if (Imenu(*ip)) { in _connect()
75 for (i = 0, ip = items; *ip; ip++) { in _connect()
77 if (Imenu(*ip)) { in _connect()
78 for (ip = items; *ip; ip++) { in _connect()
90 Imenu(*ip) = m; in _connect()
116 ITEM **ip; in _disconnect() local
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_inttab.c36 dt_inttab_t *ip; in dt_inttab_create() local
42 dt_free(dtp, ip); in dt_inttab_create()
46 ip->int_hdl = dtp; in dt_inttab_create()
47 ip->int_hashlen = len; in dt_inttab_create()
49 return (ip); in dt_inttab_create()
62 dt_free(ip->int_hdl, ip->int_hash); in dt_inttab_destroy()
63 dt_free(ip->int_hdl, ip); in dt_inttab_destroy()
88 ip->int_hash[h] = hp; in dt_inttab_insert()
89 ip->int_nelems++; in dt_inttab_insert()
92 ip->int_head = hp; in dt_inttab_insert()
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/msgcc/
H A Dmsgcvt.c130 decode(Sfio_t* ip) in decode() argument
207 sfnext(Sfio_t* ip) in sfnext() argument
245 c = sfgetc(ip); in html2msg()
248 sfungetc(ip, c); in html2msg()
257 c = decode(ip); in html2msg()
264 sfungetc(ip, c); in html2msg()
307 c = sfnext(ip); in html2msg()
346 c = sfgetc(ip); in html2msg()
349 sfungetc(ip, c); in html2msg()
368 c = decode(ip); in html2msg()
[all …]
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/
H A Dfastlz.c225 *hslot = ip; in FASTLZ_COMPRESSOR()
230 *op++ = *ip++; in FASTLZ_COMPRESSOR()
231 *op++ = *ip++; in FASTLZ_COMPRESSOR()
246 if (ip[0] == ip[-1] && in FASTLZ_COMPRESSOR()
247 FASTLZ_READU16(ip - 1) == FASTLZ_READU16(ip + 1)) { in FASTLZ_COMPRESSOR()
249 ip += 3; in FASTLZ_COMPRESSOR()
275 *ref++ != *ip++ || *ref++ != *ip++ || in FASTLZ_COMPRESSOR()
282 if (*ip++ != *ref++ || *ip++ != *ref++) in FASTLZ_COMPRESSOR()
303 ip++; in FASTLZ_COMPRESSOR()
342 ip -= 3; in FASTLZ_COMPRESSOR()
[all …]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vrem_pio2m.c178 ip = 0; 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()
188 q[5] = x[0] * ipio2[ip+7] + x[1] * ipio2[ip+6] + x[2] * ipio2[ip+5]; in __vlibm_rem_pio2m()
190 q[0] = x[0] * ipio2[ip+2] + x[1] * ipio2[ip+1]; in __vlibm_rem_pio2m()
191 q[1] = x[0] * ipio2[ip+3] + x[1] * ipio2[ip+2]; in __vlibm_rem_pio2m()
192 q[2] = x[0] * ipio2[ip+4] + x[1] * ipio2[ip+3]; in __vlibm_rem_pio2m()
[all …]
/illumos-gate/usr/src/common/lz4/
H A Dlz4.c573 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx()
574 ip++; in LZ4_compressCtx()
604 ip--; in LZ4_compressCtx()
657 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compressCtx()
658 ip++; in LZ4_compressCtx()
691 HashTable[LZ4_HASH_VALUE(ip)] = ip - base; in LZ4_compressCtx()
767 ip++; in LZ4_compress64kCtx()
797 ip--; in LZ4_compress64kCtx()
850 if ((ip < matchlimit) && (*ref == *ip)) in LZ4_compress64kCtx()
851 ip++; in LZ4_compress64kCtx()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprintpacket.c16 void printpacket(ip) in printpacket() argument
17 struct ip *ip; in printpacket()
23 if (IP_V(ip) == 6) {
27 off = ntohs(ip->ip_off);
28 len = ntohs(ip->ip_len);
47 if (IP_V(ip) == 6) {
48 printpacket6(ip);
52 tcp = (struct tcphdr *)((char *)ip + (IP_HL(ip) << 2));
53 printf("ip %d(%d) %d", ntohs(ip->ip_len), IP_HL(ip) << 2, ip->ip_p);
58 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)
[all …]
H A Dipft_tx.c180 ip_t *ip;
191 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip));
195 IP_HL_A(ip, sizeof(*ip) >> 2);
196 IP_V_A(ip, IPVERSION);
249 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) {
269 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) {
318 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
321 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)
322 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2),
325 bcopy((char *)ic, ((char *)ip) + (IP_HL(ip) << 2),
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/
H A Dppproto.c934 while (*ip == ' ' || *ip == '\t') ip++; in lex()
1229 while (*ip == ' ' || *ip == '\t') ip++; in lex()
1230 if (*ip == 'l' && *++ip == 'i' && *++ip == 'n' && *++ip == 'e') in lex()
1283 …if (*ip == 'i' && *++ip == 'n' && *++ip == 'c' && *++ip == 'l' && *++ip == 'u' && *++ip == 'd' && … in lex()
1286 … (*ip++ == '<' && *ip++ == 's' && *ip++ == 't' && *ip++ == 'd' && *ip++ == 'a' && *ip++ == 'r' && … in lex()
1301 …else if (*ip == 'd' && *++ip == 'e' && *++ ip == 'f' && *++ip == 'i' && *++ip == 'n' && *++ip == '… in lex()
1304 …if (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' &&… in lex()
1324 …else if (*ip == 'u' && *++ip == 'n' && *++ ip == 'd' && *++ip == 'e' && *++ip == 'f' && (*++ip == … in lex()
1327 …f (*ip == 'e' && *++ip == 'x' && *++ ip == 't' && *++ip == 'e' && *++ip == 'r' && *++ip == 'n' && … in lex()
2565 if (*ip == '%' && (ip == proto->ip + 1 || *(ip - 2) == '\n')) in pppread()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dzfs_fletcher.c30 const uint64_t *ip = buf; in fletcher_2_native() local
34 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native()
35 a0 += ip[0]; in fletcher_2_native()
36 a1 += ip[1]; in fletcher_2_native()
51 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap()
52 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap()
53 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap()
68 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_native()
69 a += ip[0]; in fletcher_4_native()
85 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_byteswap()
[all …]
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dfletcher.c30 const uint64_t *ip = buf; in fletcher_2_native() local
34 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_native()
35 a0 += ip[0]; in fletcher_2_native()
36 a1 += ip[1]; in fletcher_2_native()
52 for (a0 = b0 = a1 = b1 = 0; ip < ipend; ip += 2) { in fletcher_2_byteswap()
53 a0 += BSWAP_64(ip[0]); in fletcher_2_byteswap()
54 a1 += BSWAP_64(ip[1]); in fletcher_2_byteswap()
70 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_native()
71 a += ip[0]; in fletcher_4_native()
88 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_byteswap()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/dr/
H A Ddr_io.c51 dr_init_io_unit(dr_io_unit_t *ip) in dr_init_io_unit() argument
55 if (DR_DEV_IS_ATTACHED(&ip->sbi_cm)) { in dr_init_io_unit()
57 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit()
60 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit()
109 dr_disconnect_io(dr_io_unit_t *ip) in dr_disconnect_io() argument
200 ip->sbi_cm.sbdev_id)) != 0) { in dr_pre_release_io()
288 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_get_comp_cond()
300 dr_io_unit_t *ip; in dr_io_status() local
318 ip = dr_get_io_unit(bp, i); in dr_io_status()
325 id = ip->sbi_cm.sbdev_id; in dr_io_status()
[all …]
/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_io.c73 dr_init_io_unit(dr_io_unit_t *ip) in dr_init_io_unit() argument
77 if (DR_DEV_IS_ATTACHED(&ip->sbi_cm)) { in dr_init_io_unit()
79 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit()
82 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_init_io_unit()
131 dr_disconnect_io(dr_io_unit_t *ip) in dr_disconnect_io() argument
222 ip->sbi_cm.sbdev_id)) != 0) { in dr_pre_release_io()
310 ip->sbi_cm.sbdev_cond = SBD_COND_OK; in dr_get_comp_cond()
322 dr_io_unit_t *ip; in dr_io_status() local
340 ip = dr_get_io_unit(bp, i); in dr_io_status()
347 id = ip->sbi_cm.sbdev_id; in dr_io_status()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/backend/
H A Dconstant-pointer.c1 extern int *ip[];
6 ip[0] = (void *)0L; in foo()
7 ip[1] = (int *)0L; in foo()
8 ip[2] = (void *)0; in foo()
9 ip[3] = (int *)0; in foo()
10 ip[4] = (void *)(long)0; in foo()
11 ip[5] = (int *)(long)0; in foo()
12 ip[6] = (void *)123; in foo()
13 ip[7] = (int *)123; in foo()
14 ip[8] = (void *)123L; in foo()
[all …]

12345678910>>...33