/freebsd-11-stable/sys/dev/twa/ |
H A D | tw_osl_inline.h | 57 * Input: ctlr_handle -- ptr to controller handle 62 #define tw_osl_init_lock(ctlr_handle, lock_name, lock) \ 71 * Input: ctlr_handle -- ptr to controller handle 77 #define tw_osl_destroy_lock(ctlr_handle, lock) \ 86 * Input: ctlr_handle -- ptr to controller handle 92 #define tw_osl_get_lock(ctlr_handle, lock) \ 101 * Input: ctlr_handle -- ptr to controller handle 106 #define tw_osl_free_lock(ctlr_handle, lock) \ 117 * Input: ctlr_handle -- controller handle 124 #define tw_osl_dbg_printf(ctlr_handle, fm 165 tw_osl_read_reg_inline(struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 size) argument 199 tw_osl_write_reg_inline(struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 value, TW_INT32 size) argument [all...] |
H A D | tw_cl_intr.c | 59 * Input: ctlr_handle -- controller handle 65 tw_cl_interrupt(struct tw_cl_ctlr_handle *ctlr_handle) argument 68 (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); 72 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); 85 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr_handle); 91 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(), 93 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, 97 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(), 101 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, 105 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_fun [all...] |
H A D | tw_cl_misc.c | 83 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 137 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 191 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 245 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 248 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle); 253 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle); 276 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); 279 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle); 285 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle); 289 ctlr->ctlr_handle); 484 tw_cl_create_event(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT8 queue_event, TW_UINT8 event_src, TW_UINT16 event_code, TW_UINT8 severity, TW_UINT8 *severity_str, TW_UINT8 *event_desc, TW_UINT8 *event_specific_desc, ...) argument 627 tw_cli_dbg_printf(TW_UINT8 dbg_level, struct tw_cl_ctlr_handle *ctlr_handle, const TW_INT8 *cur_func, TW_INT8 *fmt, ...) argument 710 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local 868 tw_cl_print_ctlr_stats(struct tw_cl_ctlr_handle *ctlr_handle) argument 913 tw_cl_reset_stats(struct tw_cl_ctlr_handle *ctlr_handle) argument 940 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local [all...] |
H A D | tw_cl_io.c | 62 * Input: ctlr_handle -- controller handle 70 tw_cl_start_io(struct tw_cl_ctlr_handle *ctlr_handle, argument 79 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); 81 ctlr = (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); 98 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(), 145 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, 148 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(), 171 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local 175 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_fun 262 tw_cl_fw_passthru(struct tw_cl_ctlr_handle *ctlr_handle, struct tw_cl_req_packet *req_pkt, struct tw_cl_req_handle *req_handle) argument 371 tw_cl_ioctl(struct tw_cl_ctlr_handle *ctlr_handle, u_long cmd, TW_VOID *buf) argument 1049 tw_cl_reset_ctlr(struct tw_cl_ctlr_handle *ctlr_handle) argument 1133 tw_cl_set_reset_needed(struct tw_cl_ctlr_handle *ctlr_handle) argument 1142 tw_cl_is_reset_needed(struct tw_cl_ctlr_handle *ctlr_handle) argument 1151 tw_cl_is_active(struct tw_cl_ctlr_handle *ctlr_handle) argument 1174 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local [all...] |
H A D | tw_cl_share.h | 372 extern TW_INT32 tw_osl_dbg_printf(struct tw_cl_ctlr_handle *ctlr_handle, 386 extern TW_VOID tw_osl_destroy_lock(struct tw_cl_ctlr_handle *ctlr_handle, 393 extern TW_VOID tw_osl_free_lock(struct tw_cl_ctlr_handle *ctlr_handle, 406 extern TW_VOID tw_osl_get_lock(struct tw_cl_ctlr_handle *ctlr_handle, 413 extern TW_VOID tw_osl_init_lock(struct tw_cl_ctlr_handle *ctlr_handle, 432 extern TW_VOID tw_osl_notify_event(struct tw_cl_ctlr_handle *ctlr_handle, 441 struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 size); 448 extern TW_UINT32 tw_osl_read_reg(struct tw_cl_ctlr_handle *ctlr_handle, 455 extern TW_VOID tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle); 462 extern TW_INT32 tw_osl_sleep(struct tw_cl_ctlr_handle *ctlr_handle, [all...] |
H A D | tw_cl_init.c | 157 * Input: ctlr_handle -- controller handle 181 tw_cl_get_mem_requirements(struct tw_cl_ctlr_handle *ctlr_handle, argument 191 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, 234 * Input: ctlr_handle -- controller handle 249 tw_cl_init_ctlr(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT32 flags, argument 260 tw_cli_dbg_printf(3, ctlr_handle, tw_osl_cur_func(), "entered"); 264 (ctlr_handle->cl_ctlr_ctxt); 269 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, 281 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, 303 ctlr_handle 558 tw_cl_shutdown_ctlr(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT32 flags) argument [all...] |
H A D | tw_cl.h | 123 struct tw_cl_ctlr_handle *ctlr_handle; /* handle to track ctlr between member in struct:tw_cli_ctlr_context 260 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); 263 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); 274 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); 277 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); 289 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); 297 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); 309 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); 312 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); 322 tw_cl_create_event(ctlr->ctlr_handle, TW_CL_TRU [all...] |
H A D | tw_cl_fwif.h | 344 #define TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, value) \ 345 tw_osl_write_reg(ctlr_handle, TWA_CONTROL_REGISTER_OFFSET, value, 4) 348 #define TW_CLI_READ_STATUS_REGISTER(ctlr_handle) \ 349 tw_osl_read_reg(ctlr_handle, TWA_STATUS_REGISTER_OFFSET, 4) 352 #define TW_CLI_WRITE_COMMAND_QUEUE(ctlr_handle, value) do { \ 355 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_LOW, \ 357 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_HIGH,\ 360 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET, \ 365 #define TW_CLI_READ_RESPONSE_QUEUE(ctlr_handle) \ 366 tw_osl_read_reg(ctlr_handle, TWA_RESPONSE_QUEUE_OFFSE [all...] |
H A D | tw_cl_externs.h | 143 tw_cli_enable_interrupts(struct tw_cli_ctlr_context *ctlr_handle); 147 tw_cli_disable_interrupts(struct tw_cli_ctlr_context *ctlr_handle); 155 struct tw_cl_ctlr_handle *ctlr_handle, const TW_INT8 *cur_func,
|
H A D | tw_osl_freebsd.c | 165 error = tw_cl_ioctl(&sc->ctlr_handle, cmd, buf); 294 sc->ctlr_handle.osl_ctlr_ctxt = sc; 393 if ((error = tw_cl_init_ctlr(&sc->ctlr_handle, sc->flags, sc->device_id, 428 callout_reset(&(sc->watchdog_callout[0]), 5*hz, twa_watchdog, &sc->ctlr_handle); 437 struct tw_cl_ctlr_handle *ctlr_handle = local 439 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt; 457 tw_cl_set_reset_needed(ctlr_handle); 468 i_need_a_reset = tw_cl_is_reset_needed(ctlr_handle); 472 driver_is_active = tw_cl_is_active(ctlr_handle); 479 callout_reset(&(sc->watchdog_callout[i]), 70*hz, twa_watchdog, &sc->ctlr_handle); [all...] |
H A D | tw_osl_cam.c | 336 if ((tw_cl_is_reset_needed(&(req->ctlr->ctlr_handle)))) { 359 tw_cl_create_event(&(sc->ctlr_handle), TW_CL_FALSE, 365 tw_cl_set_reset_needed(&(sc->ctlr_handle)); 465 tw_cl_interrupt(&(sc->ctlr_handle)); 575 * Input: ctlr_handle -- ptr to controller handle 580 tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle) argument 582 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt;
|
H A D | tw_osl.h | 125 struct tw_cl_ctlr_handle ctlr_handle; member in struct:twa_softc
|