Home
last modified time | relevance | path

Searched refs:itp (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch_xmit.c87 av1394_it_t *itp = &icp->ic_it; in av1394_it_init() local
88 av1394_isoch_pool_t *pool = &itp->it_data_pool; in av1394_it_init()
99 itp->it_hiwat = nframes - av1394_it_hiwat_sub; in av1394_it_init()
100 itp->it_lowat = av1394_it_lowat; in av1394_it_init()
101 itp->it_start_thre = av1394_it_start_thre; in av1394_it_init()
102 itp->it_nempty = icp->ic_nframes; in av1394_it_init()
103 itp->it_last_full = icp->ic_nframes - 1; in av1394_it_init()
138 av1394_it_t *itp = &icp->ic_it; in av1394_it_start() local
145 if (itp->it_nfull >= itp->it_start_thre) { in av1394_it_start()
180 av1394_it_t *itp = &icp->ic_it; in av1394_it_stop() local
[all …]
/illumos-gate/usr/src/cmd/backup/restore/
H A Ddirs.c106 struct inotab *itp; in extractdirs() local
182 itp = allocinotab(curfile.ino, ip, g_seekpt); in extractdirs()
189 itp->t_size = g_seekpt - itp->t_seekpt; in extractdirs()
213 struct inotab *itp; in treescan() local
219 itp = inotablookup(ino); in treescan()
220 if (itp == NULL) { in treescan()
238 rst_seekdir(dirp, itp->t_seekpt, itp->t_seekpt); in treescan()
270 rst_seekdir(dirp, bpt, itp->t_seekpt); in treescan()
290 struct inotab *itp; in attrscan() local
296 for (itp = xattrlist; itp != NULL; itp = itp->t_xattr) { in attrscan()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dspdsock.c205 #define ITP_NAME(itp) (itp != NULL ? itp->itp_name : NULL) argument
574 spdsock_flush_node(ipsec_tun_pol_t *itp, void *cookie, netstack_t *ns) in spdsock_flush_node() argument
579 iph = active ? itp->itp_policy : itp->itp_inactive; in spdsock_flush_node()
581 mutex_enter(&itp->itp_lock); in spdsock_flush_node()
584 itp->itp_flags &= ~ITPF_PFLAGS; in spdsock_flush_node()
586 itp->itp_flags &= ~ITPF_IFLAGS; in spdsock_flush_node()
587 mutex_exit(&itp->itp_lock); in spdsock_flush_node()
589 update_iptun_policy(itp); in spdsock_flush_node()
605 spdsock_flush(queue_t *q, ipsec_policy_head_t *iph, ipsec_tun_pol_t *itp, in spdsock_flush() argument
623 ITP_NAME(itp), active, 0, cpid); in spdsock_flush()
[all …]
H A Dspd.c5198 ipsec_tun_pol_t *itp = iptun->iptun_itp; in ipsec_tun_outbound() local
5215 ASSERT(itp != NULL && (itp->itp_flags & ITPF_P_ACTIVE)); in ipsec_tun_outbound()
5216 polhead = itp->itp_policy; in ipsec_tun_outbound()
5236 if (itp->itp_flags & ITPF_P_PER_PORT_SECURITY) { in ipsec_tun_outbound()
5285 mp = ipsec_fragcache_add(&itp->itp_fragcache, NULL, mp, in ipsec_tun_outbound()
5421 if (!(itp->itp_flags & ITPF_P_TUNNEL)) { in ipsec_tun_outbound()
5551 ipsec_tun_inbound(ip_recv_attr_t *ira, mblk_t *data_mp, ipsec_tun_pol_t *itp, in ipsec_tun_inbound() argument
5586 if (itp != NULL && (itp->itp_flags & ITPF_P_ACTIVE)) { in ipsec_tun_inbound()
5589 polhead = itp->itp_policy; in ipsec_tun_inbound()
5598 port_policy_present = ((itp->itp_flags & in ipsec_tun_inbound()
[all …]
H A Dsadb.c6824 sadb_address_t *innsrcext, sadb_address_t *inndstext, ipsec_tun_pol_t *itp, argument
6837 if ((itp == NULL) ||
6838 (itp->itp_flags & (ITPF_P_ACTIVE | ITPF_P_TUNNEL)) !=
6862 if ((itp == NULL) || !(itp->itp_flags & ITPF_P_ACTIVE)) {
6869 } else if (itp->itp_flags & ITPF_P_TUNNEL) {
6881 ASSERT(itp != NULL);
6882 polhead = itp->itp_policy;
6977 ipsec_tun_pol_t *itp = NULL; local
7079 itp = itp_get_byaddr((uint32_t *)(&sel.ips_local_addr_v6),
7091 err = ipsec_tun_pol(&isel, &pp, innsrcext, inndstext, itp,
[all …]
/illumos-gate/usr/src/uts/common/inet/
H A Dipsec_impl.h545 #define ITP_P_ISACTIVE(itp, iph) ((itp)->itp_flags & \ argument
546 (((itp)->itp_policy == (iph)) ? ITPF_P_ACTIVE : ITPF_I_ACTIVE))
548 #define ITP_P_ISTUNNEL(itp, iph) ((itp)->itp_flags & \ argument
549 (((itp)->itp_policy == (iph)) ? ITPF_P_TUNNEL : ITPF_I_TUNNEL))
551 #define ITP_P_ISPERPORT(itp, iph) ((itp)->itp_flags & \ argument
552 (((itp)->itp_policy == (iph)) ? ITPF_P_PER_PORT_SECURITY : \
555 #define ITP_REFHOLD(itp) { \ argument
556 atomic_inc_32(&((itp)->itp_refcnt)); \
557 ASSERT((itp)->itp_refcnt != 0); \
560 #define ITP_REFRELE(itp, ns) { \ argument
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Ditree.h140 void itree_free(struct lut *itp);
141 void itree_prune(struct lut *itp);
142 struct event *itree_lookup(struct lut *itp,
152 void itree_ptree(int flags, struct lut *itp);
H A Ditree.c491 itree_lookup(struct lut *itp, const char *ename, const struct ipath *ipp) in itree_lookup() argument
503 return (lut_lookup(itp, (void *)&searchevent, (lut_cmp)event_cmp)); in itree_lookup()
1689 itree_ptree(int flags, struct lut *itp) in itree_ptree() argument
1691 lut_walk(itp, (lut_cb)itree_pevent, (void *)(intptr_t)flags); in itree_ptree()
/illumos-gate/usr/src/uts/common/inet/iptun/
H A Diptun.c964 ipsec_tun_pol_t *itp; in iptun_set_sec_simple() local
981 itp = iptun->iptun_itp; in iptun_set_sec_simple()
982 if (itp == NULL) { in iptun_set_sec_simple()
989 if ((itp = create_tunnel_policy(name, &rc, &gen, ns)) == NULL) in iptun_set_sec_simple()
991 iptun->iptun_itp = itp; in iptun_set_sec_simple()
1009 mutex_enter(&itp->itp_lock); in iptun_set_sec_simple()
1010 if (itp->itp_flags & ITPF_P_TUNNEL) { in iptun_set_sec_simple()
1015 old_policy = ((itp->itp_flags & ITPF_P_ACTIVE) != 0); in iptun_set_sec_simple()
1018 ITPF_CLONE(itp->itp_flags); in iptun_set_sec_simple()
1019 rc = ipsec_copy_polhead(itp->itp_policy, itp->itp_inactive, ns); in iptun_set_sec_simple()
[all …]
/illumos-gate/usr/src/cmd/fs.d/udfs/mkfs/
H A Dudfslib.c85 maketag(struct tag *itp, struct tag *otp) in maketag() argument
90 if (itp != otp) { in maketag()
91 bcopy((unsigned char *)(itp + 1), (unsigned char *)(otp + 1), in maketag()
92 itp->tag_crc_len); in maketag()
96 switch (itp->tag_id) { in maketag()
151 otp->tag_id = SWAP16(itp->tag_id); in maketag()
152 otp->tag_desc_ver = SWAP16(itp->tag_desc_ver); in maketag()
154 otp->tag_sno = SWAP16(itp->tag_sno); in maketag()
156 itp->tag_crc_len, 0)); in maketag()
157 otp->tag_crc_len = SWAP16(itp->tag_crc_len); in maketag()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dtimers.c776 itimerdecr(struct itimerval *itp, int usec) in itimerdecr() argument
778 if (itp->it_value.tv_usec < usec) { in itimerdecr()
779 if (itp->it_value.tv_sec == 0) { in itimerdecr()
781 usec -= itp->it_value.tv_usec; in itimerdecr()
784 itp->it_value.tv_usec += MICROSEC; in itimerdecr()
785 itp->it_value.tv_sec--; in itimerdecr()
787 itp->it_value.tv_usec -= usec; in itimerdecr()
789 if (timerisset(&itp->it_value)) in itimerdecr()
793 if (timerisset(&itp->it_interval)) { in itimerdecr()
794 itp->it_value = itp->it_interval; in itimerdecr()
[all …]
H A Dtimer.c204 itimer_t **itp, *it; in timer_grab() local
212 if ((itp = p->p_itimer) == NULL || tid >= p->p_itimer_sz || in timer_grab()
213 (it = itp[tid]) == NULL) { in timer_grab()
490 itimer_t **itp = NULL, **itp_new; in timer_get_id() local
926 itimer_t *it, **itp; in timer_lwpexit() local
930 if ((itp = p->p_itimer) == NULL) in timer_lwpexit()
934 if ((it = itp[i]) == NULL) in timer_lwpexit()
970 itimer_t *it, **itp; in timer_lwpbind() local
974 if ((itp = p->p_itimer) == NULL) in timer_lwpbind()
978 if ((it = itp[i]) == NULL) in timer_lwpbind()
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_conn.c179 iscsi_task_t *itp; in iscsi_conn_online() local
201 itp = kmem_zalloc(sizeof (iscsi_task_t), KM_SLEEP); in iscsi_conn_online()
202 ASSERT(itp != NULL); in iscsi_conn_online()
204 itp->t_arg = icp; in iscsi_conn_online()
205 itp->t_blocking = B_TRUE; in iscsi_conn_online()
206 rval = iscsi_login_start(itp); in iscsi_conn_online()
207 kmem_free(itp, sizeof (iscsi_task_t)); in iscsi_conn_online()
1024 iscsi_task_t *itp; in iscsi_conn_retry() local
1048 itp = kmem_zalloc(sizeof (iscsi_task_t), KM_SLEEP); in iscsi_conn_retry()
1049 itp->t_arg = icp; in iscsi_conn_retry()
[all …]
H A Discsi_io.c301 idm_task_t *itp; in iscsi_task_cleanup() local
303 itp = icmdp->cmd_itp; in iscsi_task_cleanup()
304 ASSERT(itp != NULL); in iscsi_task_cleanup()
312 "icmdp: %p bp: %p ibp: %p", (void *)itp, opcode, in iscsi_task_cleanup()
316 idm_buf_unbind_in(itp, ibp); in iscsi_task_cleanup()
320 idm_buf_unbind_out(itp, obp); in iscsi_task_cleanup()
326 idm_task_done(itp); in iscsi_task_cleanup()
1400 iscsi_task_t *itp; in iscsi_rx_process_async_rsp() local
1472 itp = kmem_zalloc(sizeof (iscsi_task_t), KM_SLEEP); in iscsi_rx_process_async_rsp()
1473 itp->t_arg = icp; in iscsi_rx_process_async_rsp()
[all …]
H A Discsi_sess.c908 idm_task_t *itp; in iscsi_sess_reserve_scsi_itt() local
910 itp = idm_task_alloc(icp->conn_ic); in iscsi_sess_reserve_scsi_itt()
911 if (itp == NULL) in iscsi_sess_reserve_scsi_itt()
913 itp->idt_private = icmdp; in iscsi_sess_reserve_scsi_itt()
914 icmdp->cmd_itp = itp; in iscsi_sess_reserve_scsi_itt()
915 icmdp->cmd_itt = itp->idt_tt; in iscsi_sess_reserve_scsi_itt()
1655 iscsi_task_t *itp = (iscsi_task_t *)arg; in iscsi_sess_enumeration() local
1659 uint32_t event_count = itp->t_event_count; in iscsi_sess_enumeration()
1661 ASSERT(itp != NULL); in iscsi_sess_enumeration()
1662 isp = (iscsi_sess_t *)itp->t_arg; in iscsi_sess_enumeration()
[all …]
H A Discsi_login.c52 iscsi_status_t status, iscsi_task_t *itp);
85 iscsi_task_t *itp = (iscsi_task_t *)arg; in iscsi_login_start() local
93 ASSERT(itp != NULL); in iscsi_login_start()
94 icp = (iscsi_conn_t *)itp->t_arg; in iscsi_login_start()
119 iscsi_login_end(icp, ISCSI_STATUS_LOGIN_FAILED, itp); in iscsi_login_start()
186 iscsi_login_end(icp, ISCSI_STATUS_LOGIN_FAILED, itp); in iscsi_login_start()
198 iscsi_login_end(icp, ISCSI_STATUS_SUCCESS, itp); in iscsi_login_start()
221 iscsi_login_end(icp, ISCSI_STATUS_LOGIN_FAILED, itp); in iscsi_login_start()
240 if (itp->t_blocking == B_TRUE) { in iscsi_login_start()
244 iscsi_login_cb, itp, DDI_SLEEP) != in iscsi_login_start()
[all …]
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_diff.c110 const ctf_type_t *itp, *otp; in ctf_diff_name() local
112 if ((itp = ctf_lookup_by_id(&ifp, iid)) == NULL) in ctf_diff_name()
118 iname = ctf_strptr(ifp, itp->ctt_name); in ctf_diff_name()
320 const ctf_type_t *itp, *otp; in ctf_diff_struct() local
329 if ((itp = ctf_lookup_by_id(&ifp, iid)) == NULL) in ctf_diff_struct()
338 if (LCTF_INFO_VLEN(ifp, itp->ctt_info) != in ctf_diff_struct()
342 (void) ctf_get_ctt_size(ifp, itp, &isize, &iincr); in ctf_diff_struct()
346 imp = (const ctf_member_t *)((uintptr_t)itp + iincr); in ctf_diff_struct()
350 ilmp = (const ctf_lmember_t *)((uintptr_t)itp + iincr); in ctf_diff_struct()
374 for (n = LCTF_INFO_VLEN(ifp, itp->ctt_info); n != 0; n--) { in ctf_diff_struct()
[all …]
/illumos-gate/usr/src/uts/common/inet/ipf/
H A Dip_auth.c860 int fr_authgeniter(token, itp, ifs) in fr_authgeniter() argument
862 ipfgeniter_t *itp;
868 if (itp->igi_data == NULL)
871 if (itp->igi_type != IPFGENITER_AUTH)
907 error = COPYOUT(next, itp->igi_data, sizeof(*next));
H A Dip_frag.c944 int fr_nextfrag(token, itp, top, tail, lock, ifs) in fr_nextfrag() argument
946 ipfgeniter_t *itp;
986 error = COPYOUT(next, itp->igi_data, sizeof(*next));
H A Dip_nat.c5487 static int nat_getnext(t, itp, ifs) in nat_getnext() argument
5489 ipfgeniter_t *itp;
5498 if (itp->igi_nitems == 0)
5506 switch (itp->igi_type)
5548 dst = itp->igi_data;
5549 for (count = itp->igi_nitems; count > 0; count--) {
5554 switch (itp->igi_type)
5600 switch (itp->igi_type)
5698 static int nat_iterator(token, itp, ifs) in nat_iterator() argument
5700 ipfgeniter_t *itp;
[all …]
H A Dip_state.c4364 static int fr_stateiter(token, itp, ifs) in fr_stateiter() argument
4366 ipfgeniter_t *itp;
4373 if (itp->igi_data == NULL)
4376 if (itp->igi_nitems == 0)
4379 if (itp->igi_type != IPFGENITER_STATE)
4396 dst = itp->igi_data;
4397 for (count = itp->igi_nitems; count > 0; count--) {
/illumos-gate/usr/src/uts/common/disp/
H A Dthread.c1479 kthread_t *itp; /* interrupted thread */ in thread_unpin() local
1485 itp = t->t_intr; /* interrupted thread */ in thread_unpin()
1495 i = intr_passivate(t, itp); in thread_unpin()
1499 i, t, t, itp, itp); in thread_unpin()
1522 return (itp); in thread_unpin()
/illumos-gate/usr/src/uts/common/io/idm/
H A Didm_so.c3067 idm_so_timed_socket_t *itp = arg; in idm_so_timed_socket_connect_cb() local
3068 ASSERT(itp != NULL); in idm_so_timed_socket_connect_cb()
3074 itp->it_callback_called = B_TRUE; in idm_so_timed_socket_connect_cb()
3076 itp->it_socket_error_code = 0; in idm_so_timed_socket_connect_cb()
3081 itp->it_socket_error_code = (int)info; in idm_so_timed_socket_connect_cb()
3083 cv_signal(&itp->it_cv); in idm_so_timed_socket_connect_cb()
/illumos-gate/usr/src/boot/sys/sys/
H A Dtime.h444 int itimerdecr(struct itimerval *itp, int usec);
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2_element_ctl.c1835 CTL_DESC(SES_ET_SCSI_TARGET_PORT, itp),
1836 CTL_DESC(SES_ET_SCSI_INITIATOR_PORT, itp),

12