Home
last modified time | relevance | path

Searched refs:ctlr_handle (Results 1 – 12 of 12) sorted by relevance

/freebsd-13-stable/sys/dev/twa/
HDtw_cl_intr.c61 tw_cl_interrupt(struct tw_cl_ctlr_handle *ctlr_handle) in tw_cl_interrupt() argument
64 (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); in tw_cl_interrupt()
68 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cl_interrupt()
81 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr_handle); in tw_cl_interrupt()
87 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(), in tw_cl_interrupt()
89 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, in tw_cl_interrupt()
93 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(), in tw_cl_interrupt()
97 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, in tw_cl_interrupt()
101 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(), in tw_cl_interrupt()
106 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, in tw_cl_interrupt()
[all …]
HDtw_cl_misc.c77 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_drain_complete_queue()
129 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_drain_busy_queue()
181 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_drain_pending_queue()
233 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_drain_response_queue()
236 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle); in tw_cli_drain_response_queue()
241 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle); in tw_cli_drain_response_queue()
262 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_find_response()
265 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle); in tw_cli_find_response()
271 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle); in tw_cli_find_response()
275 ctlr->ctlr_handle); in tw_cli_find_response()
[all …]
HDtw_osl_inline.h56 #define tw_osl_init_lock(ctlr_handle, lock_name, lock) \ argument
69 #define tw_osl_destroy_lock(ctlr_handle, lock) \ argument
82 #define tw_osl_get_lock(ctlr_handle, lock) \ argument
94 #define tw_osl_free_lock(ctlr_handle, lock) \ argument
110 #define tw_osl_dbg_printf(ctlr_handle, fmt, args...) \ argument
111 twa_printf((ctlr_handle->osl_ctlr_ctxt), fmt, ##args)
125 #define tw_osl_notify_event(ctlr_handle, event) \ argument
126 twa_printf((ctlr_handle->osl_ctlr_ctxt), \
147 tw_osl_read_reg_inline(struct tw_cl_ctlr_handle *ctlr_handle, in tw_osl_read_reg_inline() argument
151 ((struct twa_softc *)(ctlr_handle->osl_ctlr_ctxt))->bus_tag; in tw_osl_read_reg_inline()
[all …]
HDtw_cl_io.c66 tw_cl_start_io(struct tw_cl_ctlr_handle *ctlr_handle, in tw_cl_start_io() argument
75 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cl_start_io()
77 ctlr = (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt); in tw_cl_start_io()
94 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(), in tw_cl_start_io()
141 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, in tw_cl_start_io()
144 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(), in tw_cl_start_io()
165 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; in tw_cli_submit_cmd() local
169 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cli_submit_cmd()
172 tw_osl_get_lock(ctlr_handle, ctlr->io_lock); in tw_cli_submit_cmd()
177 tw_osl_write_reg(ctlr_handle, in tw_cli_submit_cmd()
[all …]
HDtw_cl_init.c174 tw_cl_get_mem_requirements(struct tw_cl_ctlr_handle *ctlr_handle, in tw_cl_get_mem_requirements() argument
184 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, in tw_cl_get_mem_requirements()
239 tw_cl_init_ctlr(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT32 flags, in tw_cl_init_ctlr() argument
250 tw_cli_dbg_printf(3, ctlr_handle, tw_osl_cur_func(), "entered"); in tw_cl_init_ctlr()
254 (ctlr_handle->cl_ctlr_ctxt); in tw_cl_init_ctlr()
259 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, in tw_cl_init_ctlr()
271 tw_cl_create_event(ctlr_handle, TW_CL_FALSE, in tw_cl_init_ctlr()
293 ctlr_handle->cl_ctlr_ctxt = ctlr; in tw_cl_init_ctlr()
294 ctlr->ctlr_handle = ctlr_handle; in tw_cl_init_ctlr()
312 tw_osl_init_lock(ctlr_handle, "tw_cl_gen_lock", ctlr->gen_lock); in tw_cl_init_ctlr()
[all …]
HDtw_cl_share.h335 extern TW_INT32 tw_osl_dbg_printf(struct tw_cl_ctlr_handle *ctlr_handle,
347 extern TW_VOID tw_osl_destroy_lock(struct tw_cl_ctlr_handle *ctlr_handle,
353 extern TW_VOID tw_osl_free_lock(struct tw_cl_ctlr_handle *ctlr_handle,
364 extern TW_VOID tw_osl_get_lock(struct tw_cl_ctlr_handle *ctlr_handle,
370 extern TW_VOID tw_osl_init_lock(struct tw_cl_ctlr_handle *ctlr_handle,
386 extern TW_VOID tw_osl_notify_event(struct tw_cl_ctlr_handle *ctlr_handle,
394 struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 size);
400 extern TW_UINT32 tw_osl_read_reg(struct tw_cl_ctlr_handle *ctlr_handle,
406 extern TW_VOID tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle);
412 extern TW_INT32 tw_osl_sleep(struct tw_cl_ctlr_handle *ctlr_handle,
[all …]
HDtw_cl_fwif.h320 #define TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, value) \ argument
321 tw_osl_write_reg(ctlr_handle, TWA_CONTROL_REGISTER_OFFSET, value, 4)
323 #define TW_CLI_READ_STATUS_REGISTER(ctlr_handle) \ argument
324 tw_osl_read_reg(ctlr_handle, TWA_STATUS_REGISTER_OFFSET, 4)
326 #define TW_CLI_WRITE_COMMAND_QUEUE(ctlr_handle, value) do { \ argument
329 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_LOW, \
331 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_HIGH,\
334 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET, \
338 #define TW_CLI_READ_RESPONSE_QUEUE(ctlr_handle) \ argument
339 tw_osl_read_reg(ctlr_handle, TWA_RESPONSE_QUEUE_OFFSET, 4)
[all …]
HDtw_cl.h115 struct tw_cl_ctlr_handle *ctlr_handle; /* handle to track ctlr between member
245 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head()
248 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_head()
257 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail()
260 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_insert_tail()
270 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head()
278 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_head()
288 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item()
291 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock); in tw_cli_req_q_remove_item()
299 tw_cl_create_event(ctlr->ctlr_handle, TW_CL_TRUE, event_src, \
[all …]
HDtw_osl_freebsd.c157 error = tw_cl_ioctl(&sc->ctlr_handle, cmd, buf); in twa_ioctl()
279 sc->ctlr_handle.osl_ctlr_ctxt = sc; in twa_attach()
378 if ((error = tw_cl_init_ctlr(&sc->ctlr_handle, sc->flags, sc->device_id, in twa_attach()
413 callout_reset(&(sc->watchdog_callout[0]), 5*hz, twa_watchdog, &sc->ctlr_handle); in twa_attach()
422 struct tw_cl_ctlr_handle *ctlr_handle = in twa_watchdog() local
424 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt; in twa_watchdog()
441 tw_cl_set_reset_needed(ctlr_handle); in twa_watchdog()
452 i_need_a_reset = tw_cl_is_reset_needed(ctlr_handle); in twa_watchdog()
456 driver_is_active = tw_cl_is_active(ctlr_handle); in twa_watchdog()
463 callout_reset(&(sc->watchdog_callout[i]), 70*hz, twa_watchdog, &sc->ctlr_handle); in twa_watchdog()
[all …]
HDtw_cl_externs.h134 tw_cli_enable_interrupts(struct tw_cli_ctlr_context *ctlr_handle);
138 tw_cli_disable_interrupts(struct tw_cli_ctlr_context *ctlr_handle);
144 struct tw_cl_ctlr_handle *ctlr_handle, const TW_INT8 *cur_func,
HDtw_osl_cam.c326 if ((tw_cl_is_reset_needed(&(req->ctlr->ctlr_handle)))) { in twa_action()
349 tw_cl_create_event(&(sc->ctlr_handle), TW_CL_FALSE, in twa_action()
355 tw_cl_set_reset_needed(&(sc->ctlr_handle)); in twa_action()
453 tw_cl_interrupt(&(sc->ctlr_handle)); in twa_poll()
558 tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle) in tw_osl_scan_bus() argument
560 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt; in tw_osl_scan_bus()
HDtw_osl.h124 struct tw_cl_ctlr_handle ctlr_handle; member