Home
last modified time | relevance | path

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

12345678910>>...33

/illumos-gate/usr/src/uts/common/io/iprb/
H A Diprb.c316 bcopy(ip->factaddr, ip->curraddr, 6); in iprb_attach()
537 kmem_free(ip, sizeof (*ip)); in iprb_destroy()
779 ip->cmd_last = ip->cmd_head; in iprb_cmd_submit()
794 return (&ip->cmds[ip->cmd_head]); in iprb_cmd_next()
961 ip->cmd_head = ip->cmd_tail = 0; in iprb_start()
1171 rfd = &ip->rxb[ip->rx_index]; in iprb_rx()
1226 if (ip->running && !ip->suspended) in iprb_m_promisc()
1239 if (ip->running && !ip->suspended) in iprb_m_unicst()
1261 if (ip->running && !ip->suspended) in iprb_m_multicst()
1413 *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.c347 ip->i_ext_count = ip->i_ext_used = 0; in ud_bmap_write()
398 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_bmap_write()
643 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_common_ad()
671 con = &ip->i_con[ip->i_con_used]; in ud_common_ad()
715 cont = &ip->i_con[ip->i_con_read]; in ud_read_next_cont()
761 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_read_icb_till_off()
808 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_last_alloc_ext()
905 iext = &ip->i_ext[ip->i_ext_used - 1]; in ud_last_alloc_ext()
956 ip->i_ext[i] = ip->i_ext[i - 1]; in ud_break_create_new_icb()
982 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.c108 ASSERT(offset1 < ip->i_size); in ufs_rdwr_data()
165 bp->b_edev = ip->i_dev; in ufs_rdwr_data()
168 bp->b_file = ip->i_vnode; in ufs_rdwr_data()
197 rw_exit(&ip->i_contents); in ufs_rdwr_data()
303 fs = ip->i_fs; in ufs_alloc_data()
326 ip->i_seq++; in ufs_alloc_data()
356 bp->b_edev = ip->i_dev; in ufs_alloc_data()
390 old_i_size = ip->i_size; in ufs_alloc_data()
392 TRANS_INODE(ip->i_ufsvfs, ip); in ufs_alloc_data()
460 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/lib/libstand/
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.c48 ITEM **ip; in maxlengths() local
51 for (ip = Items(m); *ip; 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()
79 if (Imenu(*ip)) { in _connect()
80 for (ip = items; *ip; ip++) { in _connect()
92 Imenu(*ip) = m; in _connect()
118 ITEM **ip; in _disconnect() local
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_inttab.c38 dt_inttab_t *ip; in dt_inttab_create() local
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()
64 dt_free(ip->int_hdl, ip->int_hash); in dt_inttab_destroy()
65 dt_free(ip->int_hdl, ip); in dt_inttab_destroy()
90 ip->int_hash[h] = hp; in dt_inttab_insert()
91 ip->int_nelems++; in dt_inttab_insert()
94 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/common/
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.c182 ip_t *ip;
193 bzero((char *)ip, MAX(sizeof(*tcp), sizeof(*ic)) + sizeof(*ip));
197 IP_HL_A(ip, sizeof(*ip) >> 2);
198 IP_V_A(ip, IPVERSION);
251 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) {
271 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP) {
320 IP_HL_A(ip, IP_HL(ip) + (olen >> 2));
323 if (ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP)
324 bcopy((char *)tcp, ((char *)ip) + (IP_HL(ip) << 2),
327 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.c32 const uint64_t *ip = buf; in fletcher_2_native() local
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()
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()
70 for (a = b = c = d = 0; ip < ipend; ip++) { in fletcher_4_native()
71 a += ip[0]; in fletcher_4_native()
87 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