/illumos-gate/usr/src/cmd/pgrep/ |
H A D | idtab.c | 38 idtab_create(idtab_t *idt) in idtab_create() argument 40 (void) memset(idt, 0, sizeof (idtab_t)); in idtab_create() 44 idtab_destroy(idtab_t *idt) in idtab_destroy() argument 46 if (idt->id_data) { in idtab_destroy() 47 free(idt->id_data); in idtab_destroy() 48 idt->id_data = NULL; in idtab_destroy() 49 idt->id_nelems = idt->id_size = 0; in idtab_destroy() 54 idtab_append(idtab_t *idt, idkey_t id) in idtab_append() argument 59 if (idt->id_nelems >= idt->id_size) { in idtab_append() 60 size = idt->id_size ? idt->id_size * IDTAB_GROW : IDTAB_DEFSIZE; in idtab_append() [all …]
|
H A D | pgrep.c | 340 parse_ids(idtab_t *idt, char *arg, int base, int opt, idkey_t zero) in parse_ids() argument 347 idtab_append(idt, id); in parse_ids() 349 idtab_append(idt, zero); in parse_ids() 362 parse_uids(idtab_t *idt, char *arg) in parse_uids() argument 373 idtab_append(idt, id); in parse_uids() 379 idtab_append(idt, pwent->pw_uid); in parse_uids() 392 parse_gids(idtab_t *idt, char *arg) in parse_gids() argument 403 idtab_append(idt, id); in parse_gids() 409 idtab_append(idt, grent->gr_gid); in parse_gids() 422 parse_ttys(idtab_t *idt, char *arg) in parse_ttys() argument [all …]
|
/illumos-gate/usr/src/uts/common/io/idm/ |
H A D | idm.c | 61 static void idm_buf_bind_in_locked(idm_task_t *idt, idm_buf_t *buf); 62 static void idm_buf_bind_out_locked(idm_task_t *idt, idm_buf_t *buf); 63 static void idm_buf_unbind_in_locked(idm_task_t *idt, idm_buf_t *buf); 64 static void idm_buf_unbind_out_locked(idm_task_t *idt, idm_buf_t *buf); 65 static stmf_status_t idm_task_abort_one(idm_conn_t *ic, idm_task_t *idt, 67 static void idm_task_aborted(idm_task_t *idt, idm_status_t status); 695 idm_buf_tx_to_ini(idm_task_t *idt, idm_buf_t *idb, in idm_buf_tx_to_ini() argument 713 mutex_enter(&idt->idt_mutex); in idm_buf_tx_to_ini() 714 switch (idt->idt_state) { in idm_buf_tx_to_ini() 716 idt->idt_tx_to_ini_start++; in idm_buf_tx_to_ini() [all …]
|
H A D | idm_so.c | 82 static void idm_so_send_rtt_data(idm_conn_t *ic, idm_task_t *idt, 84 static void idm_so_send_rtt_data_done(idm_task_t *idt, idm_buf_t *idb); 85 static idm_status_t idm_so_send_buf_region(idm_task_t *idt, 101 static idm_status_t idm_so_buf_tx_to_ini(idm_task_t *idt, idm_buf_t *idb); 102 static idm_status_t idm_so_buf_rx_from_ini(idm_task_t *idt, idm_buf_t *idb); 106 static idm_status_t idm_so_free_task_rsrc(idm_task_t *idt); 1417 idm_so_free_task_rsrc(idm_task_t *idt) in idm_so_free_task_rsrc() argument 1424 if (IDM_CONN_ISINI(idt->idt_ic)) in idm_so_free_task_rsrc() 1436 mutex_enter(&idt->idt_mutex); in idm_so_free_task_rsrc() 1438 for (idb = list_head(&idt->idt_outbufv); idb != NULL; idb = next_idb) { in idm_so_free_task_rsrc() [all …]
|
H A D | idm_impl.c | 1003 idm_task_t *idt = (idm_task_t *)hdl; in idm_task_constructor() local 1006 mutex_init(&idt->idt_mutex, NULL, MUTEX_DEFAULT, NULL); in idm_task_constructor() 1021 idm.idm_taskid_table[next_task] = idt; in idm_task_constructor() 1025 idt->idt_tt = next_task; in idm_task_constructor() 1027 list_create(&idt->idt_inbufv, sizeof (idm_buf_t), in idm_task_constructor() 1029 list_create(&idt->idt_outbufv, sizeof (idm_buf_t), in idm_task_constructor() 1031 idm_refcnt_init(&idt->idt_refcnt, idt); in idm_task_constructor() 1039 idt->idt_transport_hdr = (void *)(idt + 1); /* pointer arithmetic */ in idm_task_constructor() 1040 idt->idt_flags = 0; in idm_task_constructor() 1048 idm_task_t *idt = (idm_task_t *)hdl; in idm_task_destructor() local [all …]
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | desctbls.c | 705 init_idt_common(gate_desc_t *idt) in init_idt_common() argument 707 set_gatesegd(&idt[T_ZERODIV], in init_idt_common() 710 set_gatesegd(&idt[T_SGLSTP], in init_idt_common() 713 set_gatesegd(&idt[T_NMIFLT], in init_idt_common() 716 set_gatesegd(&idt[T_BPTFLT], in init_idt_common() 719 set_gatesegd(&idt[T_OVFLW], in init_idt_common() 722 set_gatesegd(&idt[T_BOUNDFLT], in init_idt_common() 725 set_gatesegd(&idt[T_ILLINST], in init_idt_common() 728 set_gatesegd(&idt[T_NOEXTFLT], in init_idt_common() 740 set_gatesegd(&idt[T_DBLFLT], in init_idt_common() [all …]
|
H A D | arch_kdi.c | 117 kdi_idtr_set(gate_desc_t *idt, size_t limit) in kdi_idtr_set() argument 128 if (idt == NULL) in kdi_idtr_set() 129 idt = idt0; in kdi_idtr_set() 131 CPU->cpu_m.mcpu_idt = idt; in kdi_idtr_set() 132 idtr.dtr_base = (uintptr_t)idt; in kdi_idtr_set()
|
/illumos-gate/usr/src/uts/common/sys/idm/ |
H A D | idm.h | 362 idm_buf_tx_to_ini(idm_task_t *idt, idm_buf_t *idb, 367 idm_buf_rx_from_ini(idm_task_t *idt, idm_buf_t *idb, 372 idm_buf_tx_to_ini_done(idm_task_t *idt, idm_buf_t *idb, idm_status_t status); 375 idm_buf_rx_from_ini_done(idm_task_t *idt, idm_buf_t *idb, idm_status_t status); 404 idm_buf_bind_in(idm_task_t *idt, idm_buf_t *buf); 407 idm_buf_bind_out(idm_task_t *idt, idm_buf_t *buf); 410 idm_buf_unbind_in(idm_task_t *idt, idm_buf_t *buf); 413 idm_buf_unbind_out(idm_task_t *idt, idm_buf_t *buf); 443 idm_task_start(idm_task_t *idt, uintptr_t handle); 446 idm_task_abort(idm_conn_t *ic, idm_task_t *idt, idm_abort_type_t abort_type); [all …]
|
H A D | idm_transport.h | 74 typedef idm_status_t (transport_buf_tx_to_ini_op_t)(struct idm_task_s *idt, 76 typedef idm_status_t (transport_buf_rx_from_ini_op_t)(struct idm_task_s *idt,
|
/illumos-gate/usr/src/uts/i86xpv/os/ |
H A D | mach_kdi.c | 64 gate_desc_t *idt = (gate_desc_t *)idtr->dtr_base; in kdi_idtr_write() local 65 uint_t nidt = (idtr->dtr_limit + 1) / sizeof (*idt); in kdi_idtr_write() 68 for (vec = 0; vec < nidt; vec++, idt++) in kdi_idtr_write() 69 xen_idt_write(idt, vec); in kdi_idtr_write() 75 gate_desc_t *idt = CPU->cpu_m.mcpu_idt; in kdi_idt_write() local 80 if (idt != NULL) in kdi_idt_write() 81 idt[vec] = *gate; in kdi_idt_write()
|
H A D | xpv_panic.c | 499 gate_desc_t *idt = xpv_panic_idt; in switch_to_xpv_panic_idt() local 503 set_gatesegd(&idt[i], &xpv_invaltrap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() 506 set_gatesegd(&idt[T_ZERODIV], &xpv_div0trap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() 508 set_gatesegd(&idt[T_SGLSTP], &xpv_dbgtrap, cs, SDT_SYSIGT, TRP_XPL, 0); in switch_to_xpv_panic_idt() 509 set_gatesegd(&idt[T_NMIFLT], &xpv_nmiint, cs, SDT_SYSIGT, TRP_XPL, 0); in switch_to_xpv_panic_idt() 510 set_gatesegd(&idt[T_BOUNDFLT], &xpv_boundstrap, cs, SDT_SYSIGT, in switch_to_xpv_panic_idt() 512 set_gatesegd(&idt[T_ILLINST], &xpv_invoptrap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() 514 set_gatesegd(&idt[T_NOEXTFLT], &xpv_ndptrap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() 516 set_gatesegd(&idt[T_TSSFLT], &xpv_invtsstrap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() 518 set_gatesegd(&idt[T_SEGFLT], &xpv_segnptrap, cs, SDT_SYSIGT, TRP_XPL, in switch_to_xpv_panic_idt() [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | immu_dmar.c | 240 ioapic_drhd_t *idt; in ioapic_drhd_insert() local 242 idt = kmem_zalloc(sizeof (ioapic_drhd_t), KM_SLEEP); in ioapic_drhd_insert() 243 idt->ioapic_ioapicid = scope->scp_enumid; in ioapic_drhd_insert() 244 idt->ioapic_sid = ((scope->scp_bus << 8) | (scope->scp_dev << 3) | in ioapic_drhd_insert() 246 idt->ioapic_drhd = drhd; in ioapic_drhd_insert() 249 list_insert_tail(&ioapic_drhd_list, idt); in ioapic_drhd_insert() 256 ioapic_drhd_t *idt; in ioapic_drhd_lookup() local 259 idt = list_head(&ioapic_drhd_list); in ioapic_drhd_lookup() 260 for (; idt; idt = list_next(&ioapic_drhd_list, idt)) { in ioapic_drhd_lookup() 261 if (idt->ioapic_ioapicid == ioapicid) { in ioapic_drhd_lookup() [all …]
|
/illumos-gate/usr/src/uts/common/io/ib/clients/iser/ |
H A D | iser_cq.c | 90 idm_task_t *idt = NULL; in iser_ib_poll_send_completions() local 171 idt = idb->idb_task_binding; in iser_ib_poll_send_completions() 172 mutex_enter(&idt->idt_mutex); in iser_ib_poll_send_completions() 175 idm_conn_t *, idt->idt_ic, in iser_ib_poll_send_completions() 182 idm_buf_tx_to_ini_done(idt, idb, in iser_ib_poll_send_completions() 186 idm_conn_t *, idt->idt_ic, in iser_ib_poll_send_completions() 193 idm_buf_rx_from_ini_done(idt, idb, in iser_ib_poll_send_completions() 274 idt = idb->idb_task_binding; in iser_ib_poll_send_completions() 276 mutex_enter(&idt->idt_mutex); in iser_ib_poll_send_completions() 279 idm_conn_t *, idt->idt_ic, in iser_ib_poll_send_completions() [all …]
|
H A D | iser_xfer.c | 236 idm_task_t *idt = NULL; in iser_xfer_ctrlpdu() local 297 ((idt = idm_task_find(ic, bhs->itt, bhs->ttt)) != NULL)) { in iser_xfer_ctrlpdu() 299 if (!list_is_empty(&idt->idt_inbufv)) { in iser_xfer_ctrlpdu() 300 buf = idm_buf_find(&idt->idt_inbufv, 0); in iser_xfer_ctrlpdu() 311 if (!list_is_empty(&idt->idt_outbufv)) { in iser_xfer_ctrlpdu() 312 buf = idm_buf_find(&idt->idt_outbufv, 0); in iser_xfer_ctrlpdu() 324 idm_task_rele(idt); in iser_xfer_ctrlpdu() 408 iser_xfer_buf_to_ini(idm_task_t *idt, idm_buf_t *buf) in iser_xfer_buf_to_ini() argument 421 iser_conn = (iser_conn_t *)idt->idt_ic->ic_transport_private; in iser_xfer_buf_to_ini() 433 iser_hdr = (iser_ctrl_hdr_t *)idt->idt_transport_hdr; in iser_xfer_buf_to_ini() [all …]
|
H A D | iser_idm.c | 44 static idm_status_t iser_buf_tx_to_ini(idm_task_t *idt, idm_buf_t *idb); 45 static idm_status_t iser_buf_rx_from_ini(idm_task_t *idt, idm_buf_t *idb); 52 static idm_status_t iser_free_task_rsrcs(idm_task_t *idt); 544 iser_free_task_rsrcs(idm_task_t *idt) in iser_free_task_rsrcs() argument 975 iser_buf_tx_to_ini(idm_task_t *idt, idm_buf_t *idb) in iser_buf_tx_to_ini() argument 980 ASSERT(mutex_owned(&idt->idt_mutex)); in iser_buf_tx_to_ini() 982 iser_status = iser_xfer_buf_to_ini(idt, idb); in iser_buf_tx_to_ini() 987 (void *) idt, (void *) idb); in iser_buf_tx_to_ini() 988 idm_buf_tx_to_ini_done(idt, idb, IDM_STATUS_ABORTED); in iser_buf_tx_to_ini() 997 mutex_exit(&idt->idt_mutex); in iser_buf_tx_to_ini() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | mach_kdi.c | 52 gate_desc_t *idt = CPU->cpu_m.mcpu_idt; in kdi_idt_write() local 57 if (idt == NULL) { in kdi_idt_write() 60 idt = (gate_desc_t *)idtr.dtr_base; in kdi_idt_write() 63 idt[vec] = *gate; in kdi_idt_write()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/idm/ |
H A D | idm.c | 167 static void iscsi_print_iscsit_task_data(idm_task_t *idt); 170 static int iscsi_i_task_impl(idm_task_t *idt, uintptr_t addr, 1696 idm_task_t idt; in iscsi_conn_impl() local 1918 if (mdb_vread(&idt, sizeof (idm_task_t), task_addr) in iscsi_conn_impl() 1924 if (((uintptr_t)idt.idt_ic == addr) && in iscsi_conn_impl() 1925 (idt.idt_state != TASK_IDLE)) { in iscsi_conn_impl() 1926 if (iscsi_i_task_impl(&idt, task_addr, idc) in iscsi_conn_impl() 2180 iscsi_i_task_impl(idm_task_t *idt, uintptr_t addr, iscsi_dcmd_ctrl_t *idc) in iscsi_i_task_impl() argument 2186 conn_type = idm_conn_type((uintptr_t)idt->idt_ic); in iscsi_i_task_impl() 2197 iscsi_print_iscsit_task_data(idt); in iscsi_i_task_impl() [all …]
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/iser/ |
H A D | iser_xfer.h | 149 int iser_xfer_buf_to_ini(idm_task_t *idt, idm_buf_t *buf); 151 int iser_xfer_buf_from_ini(idm_task_t *idt, idm_buf_t *buf);
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | relocater_tramp.S | 67 lidt (idt-relocater) (%esi) 129 lidt (idt-relocater) (%esi) 325 idt: .word 0x3ff label
|
/illumos-gate/usr/src/boot/sys/amd64/include/ |
H A D | segments.h | 91 extern struct gate_descriptor *idt;
|
/illumos-gate/usr/src/uts/intel/io/vmm/amd/ |
H A D | vmcb.c | 75 return (&state->idt); in vmcb_segptr()
|
H A D | vmcb.h | 342 struct vmcb_segment idt; /* 0x80: base + 16bit limit */ member
|
/illumos-gate/usr/src/uts/common/io/comstar/port/iscsit/ |
H A D | iscsit.c | 965 iscsit_task_aborted(idm_task_t *idt, idm_status_t status) in iscsit_task_aborted() argument 967 iscsit_task_t *itask = idt->idt_private; in iscsit_task_aborted() 1845 idm_task_t *idt; in iscsit_abort() local 1859 idt = iscsit_task->it_idm_task; in iscsit_abort() 1882 return (idm_task_abort(idt->idt_ic, idt, AT_TASK_MGMT_ABORT)); in iscsit_abort()
|
/illumos-gate/usr/src/cmd/mdb/i86pc/modules/unix/ |
H A D | unix.c | 696 idt(uintptr_t addr, uint_t flags, int argc, const mdb_arg_t *argv) in idt() function 1003 { "idt", ":[-v]", "dump an IDT", idt },
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_io.c | 2481 iscsi_task_aborted(idm_task_t *idt, idm_status_t status) in iscsi_task_aborted() argument 2483 iscsi_cmd_t *icmdp = idt->idt_private; in iscsi_task_aborted()
|