/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_termio.c | 403 termio_data_t *td = io->io_data; in termio_read() local 415 td->tio_rti_on = TRUE; in termio_read() 416 if (termio_ctl(td->tio_io, TCSETSW, &td->tio_rtios) == -1) in termio_read() 420 if ((c = mdb_iob_getc(td->tio_in)) == EOF) in termio_read() 429 if (td->tio_flags & TIO_TAB) in termio_read() 430 termio_redraw(td); in termio_read() 432 termio_prompt(td); in termio_read() 438 if (sigsetjmp(td->tio_env, 1) != 0) { in termio_read() 439 td->tio_active = FALSE; in termio_read() 440 td->tio_x = td->tio_y = 0; in termio_read() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | dmu_traverse.c | 70 static int traverse_dnode(traverse_data_t *td, const dnode_phys_t *dnp, 72 static void prefetch_dnode_metadata(traverse_data_t *td, const dnode_phys_t *, 78 traverse_data_t *td = arg; in traverse_zil_block() local 84 if (claim_txg == 0 && bp->blk_birth >= spa_min_claim_txg(td->td_spa)) in traverse_zil_block() 87 SET_BOOKMARK(&zb, td->td_objset, ZB_ZIL_OBJECT, ZB_ZIL_LEVEL, in traverse_zil_block() 90 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL, td->td_arg); in traverse_zil_block() 98 traverse_data_t *td = arg; in traverse_zil_record() local 111 SET_BOOKMARK(&zb, td->td_objset, lr->lr_foid, in traverse_zil_record() 114 (void) td->td_func(td->td_spa, zilog, bp, &zb, NULL, in traverse_zil_record() 115 td->td_arg); in traverse_zil_record() [all …]
|
/illumos-gate/usr/src/uts/common/sys/usb/hcd/uhci/ |
H A D | uhci.h | 172 #define GetField(u, td, f, o, l) \ argument 173 ((GetTD32(u, (td)->f) >> (o)) & ((1U<<l)-1)) 175 #define SetField(u, td, f, o, l, v) \ argument 176 SetTD32(u, (td)->f, \ 177 (GetTD32(u, (td)->f) & ~(((1U<<l)-1) << o)) | \ 180 #define GetTD_alen(u, td) GetField((u), (td), dw2, 0, 11) argument 181 #define GetTD_status(u, td) GetField((u), (td), dw2, 16, 8) argument 182 #define GetTD_ioc(u, td) GetField((u), (td), dw2, 24, 1) argument 183 #define GetTD_iso(u, td) GetField((u), (td), dw2, 25, 1) argument 184 #define GetTD_ls(u, td) GetField((u), (td), dw2, 26, 1) argument [all …]
|
H A D | uhciutil.h | 74 void uhci_handle_ctrl_td(uhci_state_t *uhcip, uhci_td_t *td); 78 void uhci_handle_intr_td(uhci_state_t *uhcip, uhci_td_t *td); 82 uhci_pipe_private_t *pp, uhci_td_t *td); 84 void uhci_delete_td(uhci_state_t *uhcip, uhci_td_t *td); 157 void uhci_handle_bulk_td(uhci_state_t *uhcip, uhci_td_t *td); 170 void uhci_handle_isoc_td(uhci_state_t *uhcip, uhci_td_t *td);
|
/illumos-gate/usr/src/test/bhyve-tests/tests/perf/ |
H A D | payload_entry_exit.c | 32 zero_data(const test_data_t *td) in zero_data() argument 34 for (uint32_t i = 0; i < td->count; i++) { in zero_data() 35 td->data[i] = 0; in zero_data() 40 output_data(const test_data_t *td, uint64_t tsc_start) in output_data() argument 42 for (uint32_t i = td->count - 1; i > 0; i--) { in output_data() 43 td->data[i] -= td->data[i - 1]; in output_data() 45 td->data[0] -= tsc_start; in output_data() 51 outl(IOP_TEST_VALUE, (uint32_t)(uintptr_t)td->data); in output_data() 66 do_test_rdmsr(const test_data_t *td) in do_test_rdmsr() argument 68 zero_data(td); in do_test_rdmsr() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/uhci/ |
H A D | uhcipolled.c | 205 uhci_td_t *td; in uhci_hcdi_polled_read() local 232 td = uhci_polledp->uhci_polled_td; in uhci_hcdi_polled_read() 237 if (GetTD_status(uhcip, td) & UHCI_TD_ACTIVE) { in uhci_hcdi_polled_read() 244 if ((GetTD_status(uhcip, td) & TD_STATUS_MASK) || in uhci_hcdi_polled_read() 245 (GetTD_alen(uhcip, td) == ZERO_LENGTH)) { in uhci_hcdi_polled_read() 247 SetTD_alen(uhcip, td, 0); in uhci_hcdi_polled_read() 249 *num_characters = GetTD_alen(uhcip, td) + 1; in uhci_hcdi_polled_read() 251 tw = td->tw; in uhci_hcdi_polled_read() 256 (uint8_t *)td->tw->tw_buf, in uhci_hcdi_polled_read() 263 SetTD_dtogg(uhcip, td, GetTD_dtogg(uhcip, td) == 0 ? 1 : 0); in uhci_hcdi_polled_read() [all …]
|
H A D | uhci.c | 127 static void uhci_handle_intr_td_errors(uhci_state_t *uhcip, uhci_td_t *td, 130 usb_cr_t usb_err, uhci_td_t *td); 1132 uhci_handle_intr_td(uhci_state_t *uhcip, uhci_td_t *td) in uhci_handle_intr_td() argument 1137 uhci_trans_wrapper_t *tw = td->tw; in uhci_handle_intr_td() 1155 usb_err = uhci_parse_td_error(uhcip, pp, td); in uhci_handle_intr_td() 1158 bytes_xfered = GetTD_alen(uhcip, td); in uhci_handle_intr_td() 1162 GetTD_mlen(uhcip, td))) { in uhci_handle_intr_td() 1203 uhci_delete_td(uhcip, td); in uhci_handle_intr_td() 1209 uhci_delete_td(uhcip, td); in uhci_handle_intr_td() 1219 tw->tw_bytes_xfered = GetTD_alen(uhcip, td); in uhci_handle_intr_td() [all …]
|
H A D | uhciutil.c | 62 uhci_td_t *td, uhci_td_t *current_dummy, 91 static void uhci_handle_bulk_td_errors(uhci_state_t *uhcip, uhci_td_t *td); 106 uhci_td_t *td); 108 static void uhci_print_td(uhci_state_t *uhcip, uhci_td_t *td); 354 uhci_td_t *td; in uhci_free_pools() local 362 td = &uhcip->uhci_td_pool_addr[i]; in uhci_free_pools() 366 (flag != TD_FLAG_DUMMY) && (td->tw != NULL)) { in uhci_free_pools() 367 tw = td->tw; in uhci_free_pools() 1875 uhci_td_t *td, *current_dummy; in uhci_insert_hc_td() local 1880 if ((td = uhci_allocate_td_from_pool(uhcip)) == NULL) { in uhci_insert_hc_td() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/xa/ |
H A D | xa.c | 166 TXN_DETAIL *td; local 197 td = (TXN_DETAIL *)((u_int8_t *)env->tx_info->region + off); 198 if (td->xa_status == TXN_XA_SUSPENDED && !LF_ISSET(TMRESUME)) 200 if (td->xa_status == TXN_XA_DEADLOCKED) 202 if (td->xa_status == TXN_XA_ABORTED) 206 __xa_txn_init(env, td, off); 207 td->xa_status = TXN_XA_STARTED; 212 td = (TXN_DETAIL *) 214 td->xa_status = TXN_XA_STARTED; 231 TXN_DETAIL *td; local [all …]
|
H A D | xa_map.c | 111 struct __txn_detail *td; local 121 for (td = SH_TAILQ_FIRST(&tmr->active_txn, __txn_detail); 122 td != NULL; 123 td = SH_TAILQ_NEXT(td, links, __txn_detail)) 124 if (memcmp(xid->data, td->xid, XIDDATASIZE) == 0) 128 if (td == NULL) 131 *offp = (u_int8_t *)td - (u_int8_t *)tmr; 193 TXN_DETAIL *td; local 196 td = (TXN_DETAIL *)((u_int8_t *)tm->region + off); 199 memcpy(td->xid, xid->data, XIDDATASIZE); [all …]
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | loadsave.c | 427 load_token_data(TSS_HCONTEXT hContext, TOKEN_DATA *td) in load_token_data() argument 454 rc = init_token_data(hContext, td); in load_token_data() 485 READ_TOKEN_INFO_STR(fp, td->token_info.label, in load_token_data() 486 sizeof (td->token_info.label)); in load_token_data() 487 READ_TOKEN_INFO_STR(fp, td->token_info.manufacturerID, in load_token_data() 488 sizeof (td->token_info.manufacturerID)); in load_token_data() 489 READ_TOKEN_INFO_STR(fp, td->token_info.model, in load_token_data() 490 sizeof (td->token_info.model)); in load_token_data() 491 READ_TOKEN_INFO_STR(fp, td->token_info.serialNumber, in load_token_data() 492 sizeof (td->token_info.serialNumber)); in load_token_data() [all …]
|
H A D | utility.c | 336 init_slot_info(TOKEN_DATA *td) in init_slot_info() argument 352 td->token_info.manufacturerID, in init_slot_info() 353 strlen((char *)td->token_info.manufacturerID)); in init_slot_info() 369 init_token_info(TOKEN_DATA *td) in init_token_info() argument 373 token_info = &td->token_info; in init_token_info() 387 if (memcmp(td->user_pin_sha, "00000000000000000000", in init_token_info() 411 init_token_data(TSS_HCONTEXT hContext, TOKEN_DATA *td) { in init_token_data() argument 414 (void) memset((char *)td, 0, sizeof (nv_token_data)); in init_token_data() 418 (void) memcpy(td->user_pin_sha, "00000000000000000000", in init_token_data() 420 (void) memcpy(td->so_pin_sha, default_so_pin_sha, in init_token_data() [all …]
|
/illumos-gate/usr/src/uts/common/io/usb/hcd/openhci/ |
H A D | ohci_polled.c | 78 ohci_td_t *td); 80 ohci_td_t *td); 82 ohci_td_t *td, 91 ohci_td_t *td); 887 ohci_td_t *td, *prev_td; in ohci_polled_save_state() local 1058 td = (ohci_td_t *) in ohci_polled_save_state() 1062 while (td) { in ohci_polled_save_state() 1063 prev_td = td; in ohci_polled_save_state() 1064 td = ohci_td_iommu_to_cpu(ohcip, in ohci_polled_save_state() 1065 Get_TD(td->hctd_next_td)); in ohci_polled_save_state() [all …]
|
H A D | ohci.c | 288 ohci_td_t *td, 301 ohci_td_t *td); 310 ohci_td_t *td); 378 ohci_td_t *td); 383 ohci_td_t *td); 388 ohci_td_t *td, 392 ohci_td_t *td, 398 ohci_td_t *td); 401 ohci_td_t *td, 406 ohci_td_t *td, [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/uhci/ |
H A D | uhci.c | 195 uhci_td_t td; in uhci_td() local 227 if (mdb_vread(&td, sizeof (td), addr) != sizeof (td)) { in uhci_td() 234 if (!(td.link_ptr & HC_END_OF_LIST) && td.link_ptr != 0) { in uhci_td() 237 td.link_ptr, in uhci_td() 239 TD_VADDR(td.link_ptr & QH_LINK_PTR_MASK)); in uhci_td() 242 td.link_ptr); in uhci_td() 244 mdb_printf(" td_dword2 : %08x\n", td.dw2); in uhci_td() 245 mdb_printf(" td_dword3 : %08x\n", td.dw3); in uhci_td() 246 mdb_printf(" buffer_address : %08x\n", td.buffer_address); in uhci_td() 249 td.qh_td_prev, td.tw_td_next); in uhci_td() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/db/txn/ |
H A D | txn_rec.c | 266 TXN_DETAIL *td; local 276 if ((ret = __db_shalloc(mgr->mem, sizeof(TXN_DETAIL), 0, &td)) != 0) 280 SH_TAILQ_INSERT_HEAD(&mgr->region->active_txn, td, links, __txn_detail); 282 td->txnid = argp->txnid->txnid; 283 td->begin_lsn = argp->begin_lsn; 284 td->last_lsn = *lsnp; 285 td->last_lock = 0; 286 td->parent = 0; 287 td->status = TXN_PREPARED; 288 td->xa_status = TXN_XA_PREPARED; [all …]
|
H A D | txn.c | 299 TXN_DETAIL *td; local 330 if ((ret = __db_shalloc(mgr->mem, sizeof(TXN_DETAIL), 0, &td)) != 0 332 ret = __db_shalloc(mgr->mem, sizeof(TXN_DETAIL), 0, &td); 337 SH_TAILQ_INSERT_HEAD(&mgr->region->active_txn, td, links, __txn_detail); 342 td->txnid = id; 343 td->begin_lsn = begin_lsn; 344 ZERO_LSN(td->last_lsn); 345 td->last_lock = 0; 346 td->status = TXN_RUNNING; 348 td->parent = txn->parent->off; [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/ |
H A D | hrtimers.c | 364 hrt_gettofd(hrtimes_t *td) in hrt_gettofd() argument 366 ulong new_res = td->hrt_res; in hrt_gettofd() 370 td->hrt_secs = ts.tv_sec; in hrt_gettofd() 371 td->hrt_rem = ts.tv_nsec; in hrt_gettofd() 372 td->hrt_res = NANOSEC; in hrt_gettofd() 374 if (new_res != td->hrt_res) { in hrt_gettofd() 375 td->hrt_rem /= NANOSEC / new_res; in hrt_gettofd() 376 td->hrt_res = new_res; in hrt_gettofd()
|
/illumos-gate/usr/src/contrib/bhyve/dev/usb/ |
H A D | usb_freebsd.h | 58 #define USB_TD_GET_PROC(td) (td)->td_proc argument 59 #define USB_PROC_GET_GID(td) (td)->p_pgid argument
|
/illumos-gate/usr/src/test/elf-tests/tests/resolution/mixed-hidden-comdat/ |
H A D | main.c | 30 uint64_t td = test_data(); in main() local 33 if (td != CORRECT_DATA) { in main() 35 CORRECT_DATA, td); in main()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | perfstat.c | 586 register struct tm * td; in gmt() local 590 td = gmtime(&now); in gmt() 592 (td->tm_year % 100), in gmt() 593 td->tm_mon + 1, in gmt() 594 td->tm_mday, in gmt() 595 td->tm_hour, in gmt() 596 td->tm_min, in gmt() 597 td->tm_sec in gmt()
|
H A D | uustat.c | 1480 struct tm *td; in gmts() local 1490 td = gmtime(&temp); in gmts() 1492 (td->tm_year % 100), in gmts() 1493 td->tm_mon + 1, in gmts() 1494 td->tm_mday, in gmts() 1495 td->tm_hour, in gmts() 1496 td->tm_min, in gmts() 1497 td->tm_sec in gmts() 1522 struct tm *td; in gmt() local 1526 td = gmtime(&now); in gmt() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/features/ |
H A D | omitted | 11 int td; 17 if (_fstat(fd, &fs) || (td = _open(to, O_CREAT|O_WRONLY|O_TRUNC|O_BINARY, fs.st_mode & 0777)) < 0) 22 while ((n = _read(fd, buf, sizeof(buf))) > 0 && _write(td, buf, n) == n); 24 _close(td);
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.time.c | 225 struct timeval td; in pdeltat() local 230 tvsub(&td, t1, t0); in pdeltat() 232 printf("%d.%01d", td.tv_sec, td.tv_usec / 100000); in pdeltat()
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | pci_e82545.c | 216 struct e1000_tx_desc td; member 1068 if (dsc->td.lower.data & E1000_TXD_CMD_RS) { in e82545_transmit_done() 1069 dsc->td.upper.data |= E1000_TXD_STAT_DD; in e82545_transmit_done() 1109 dtype = e82545_txdesc_type(dsc->td.lower.data); in e82545_transmit() 1116 head, dsc->td.buffer_addr, in e82545_transmit() 1117 dsc->td.upper.data, dsc->td.lower.data); in e82545_transmit() 1123 head, dsc->td.upper.data, dsc->td.lower.data); in e82545_transmit() 1128 ckinfo[0].ck_start = dsc->td.upper.fields.css; in e82545_transmit() 1132 head, dsc->td.upper.data, dsc->td.lower.data); in e82545_transmit() 1142 head, dsc->td.upper.data, dsc->td.lower.data); in e82545_transmit() [all …]
|