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

/freebsd-12-stable/sys/dev/twa/
H A Dtw_osl_inline.h59 * Input: ctlr_handle -- ptr to controller handle
64 #define tw_osl_init_lock(ctlr_handle, lock_name, lock) \
73 * Input: ctlr_handle -- ptr to controller handle
79 #define tw_osl_destroy_lock(ctlr_handle, lock) \
88 * Input: ctlr_handle -- ptr to controller handle
94 #define tw_osl_get_lock(ctlr_handle, lock) \
103 * Input: ctlr_handle -- ptr to controller handle
108 #define tw_osl_free_lock(ctlr_handle, lock) \
119 * Input: ctlr_handle -- controller handle
126 #define tw_osl_dbg_printf(ctlr_handle, fm
167 tw_osl_read_reg_inline(struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 size) argument
201 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 Dtw_cl_intr.c61 * Input: ctlr_handle -- controller handle
67 tw_cl_interrupt(struct tw_cl_ctlr_handle *ctlr_handle) argument
70 (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt);
74 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered");
87 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr_handle);
93 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(),
95 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle,
99 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_func(),
103 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle,
107 tw_cli_dbg_printf(6, ctlr_handle, tw_osl_cur_fun
[all...]
H A Dtw_cl_misc.c85 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered");
139 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered");
193 tw_cli_dbg_printf(3, ctlr->ctlr_handle, tw_osl_cur_func(), "entered");
247 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered");
250 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle);
255 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle);
278 tw_cli_dbg_printf(4, ctlr->ctlr_handle, tw_osl_cur_func(), "entered");
281 status_reg = TW_CLI_READ_STATUS_REGISTER(ctlr->ctlr_handle);
287 resp = TW_CLI_READ_RESPONSE_QUEUE(ctlr->ctlr_handle);
291 ctlr->ctlr_handle);
486 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
629 tw_cli_dbg_printf(TW_UINT8 dbg_level, struct tw_cl_ctlr_handle *ctlr_handle, const TW_INT8 *cur_func, TW_INT8 *fmt, ...) argument
712 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local
870 tw_cl_print_ctlr_stats(struct tw_cl_ctlr_handle *ctlr_handle) argument
915 tw_cl_reset_stats(struct tw_cl_ctlr_handle *ctlr_handle) argument
942 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local
[all...]
H A Dtw_cl_io.c64 * Input: ctlr_handle -- controller handle
72 tw_cl_start_io(struct tw_cl_ctlr_handle *ctlr_handle, argument
81 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_func(), "entered");
83 ctlr = (struct tw_cli_ctlr_context *)(ctlr_handle->cl_ctlr_ctxt);
100 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(),
147 TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle,
150 tw_cli_dbg_printf(2, ctlr_handle, tw_osl_cur_func(),
173 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local
177 tw_cli_dbg_printf(10, ctlr_handle, tw_osl_cur_fun
264 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
373 tw_cl_ioctl(struct tw_cl_ctlr_handle *ctlr_handle, u_long cmd, TW_VOID *buf) argument
1051 tw_cl_reset_ctlr(struct tw_cl_ctlr_handle *ctlr_handle) argument
1135 tw_cl_set_reset_needed(struct tw_cl_ctlr_handle *ctlr_handle) argument
1144 tw_cl_is_reset_needed(struct tw_cl_ctlr_handle *ctlr_handle) argument
1153 tw_cl_is_active(struct tw_cl_ctlr_handle *ctlr_handle) argument
1176 struct tw_cl_ctlr_handle *ctlr_handle = ctlr->ctlr_handle; local
[all...]
H A Dtw_cl_share.h374 extern TW_INT32 tw_osl_dbg_printf(struct tw_cl_ctlr_handle *ctlr_handle,
388 extern TW_VOID tw_osl_destroy_lock(struct tw_cl_ctlr_handle *ctlr_handle,
395 extern TW_VOID tw_osl_free_lock(struct tw_cl_ctlr_handle *ctlr_handle,
408 extern TW_VOID tw_osl_get_lock(struct tw_cl_ctlr_handle *ctlr_handle,
415 extern TW_VOID tw_osl_init_lock(struct tw_cl_ctlr_handle *ctlr_handle,
434 extern TW_VOID tw_osl_notify_event(struct tw_cl_ctlr_handle *ctlr_handle,
443 struct tw_cl_ctlr_handle *ctlr_handle, TW_INT32 offset, TW_INT32 size);
450 extern TW_UINT32 tw_osl_read_reg(struct tw_cl_ctlr_handle *ctlr_handle,
457 extern TW_VOID tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle);
464 extern TW_INT32 tw_osl_sleep(struct tw_cl_ctlr_handle *ctlr_handle,
[all...]
H A Dtw_cl_init.c159 * Input: ctlr_handle -- controller handle
183 tw_cl_get_mem_requirements(struct tw_cl_ctlr_handle *ctlr_handle, argument
193 tw_cl_create_event(ctlr_handle, TW_CL_FALSE,
236 * Input: ctlr_handle -- controller handle
251 tw_cl_init_ctlr(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT32 flags, argument
262 tw_cli_dbg_printf(3, ctlr_handle, tw_osl_cur_func(), "entered");
266 (ctlr_handle->cl_ctlr_ctxt);
271 tw_cl_create_event(ctlr_handle, TW_CL_FALSE,
283 tw_cl_create_event(ctlr_handle, TW_CL_FALSE,
305 ctlr_handle
560 tw_cl_shutdown_ctlr(struct tw_cl_ctlr_handle *ctlr_handle, TW_UINT32 flags) argument
[all...]
H A Dtw_cl.h125 struct tw_cl_ctlr_handle *ctlr_handle; /* handle to track ctlr between member in struct:tw_cli_ctlr_context
262 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock);
265 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock);
276 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock);
279 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock);
291 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock);
299 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock);
311 tw_osl_get_lock(ctlr->ctlr_handle, ctlr->gen_lock);
314 tw_osl_free_lock(ctlr->ctlr_handle, ctlr->gen_lock);
324 tw_cl_create_event(ctlr->ctlr_handle, TW_CL_TRU
[all...]
H A Dtw_cl_fwif.h346 #define TW_CLI_WRITE_CONTROL_REGISTER(ctlr_handle, value) \
347 tw_osl_write_reg(ctlr_handle, TWA_CONTROL_REGISTER_OFFSET, value, 4)
350 #define TW_CLI_READ_STATUS_REGISTER(ctlr_handle) \
351 tw_osl_read_reg(ctlr_handle, TWA_STATUS_REGISTER_OFFSET, 4)
354 #define TW_CLI_WRITE_COMMAND_QUEUE(ctlr_handle, value) do { \
357 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_LOW, \
359 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET_HIGH,\
362 tw_osl_write_reg(ctlr_handle, TWA_COMMAND_QUEUE_OFFSET, \
367 #define TW_CLI_READ_RESPONSE_QUEUE(ctlr_handle) \
368 tw_osl_read_reg(ctlr_handle, TWA_RESPONSE_QUEUE_OFFSE
[all...]
H A Dtw_cl_externs.h145 tw_cli_enable_interrupts(struct tw_cli_ctlr_context *ctlr_handle);
149 tw_cli_disable_interrupts(struct tw_cli_ctlr_context *ctlr_handle);
157 struct tw_cl_ctlr_handle *ctlr_handle, const TW_INT8 *cur_func,
H A Dtw_osl_freebsd.c167 error = tw_cl_ioctl(&sc->ctlr_handle, cmd, buf);
296 sc->ctlr_handle.osl_ctlr_ctxt = sc;
395 if ((error = tw_cl_init_ctlr(&sc->ctlr_handle, sc->flags, sc->device_id,
430 callout_reset(&(sc->watchdog_callout[0]), 5*hz, twa_watchdog, &sc->ctlr_handle);
439 struct tw_cl_ctlr_handle *ctlr_handle = local
441 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt;
459 tw_cl_set_reset_needed(ctlr_handle);
470 i_need_a_reset = tw_cl_is_reset_needed(ctlr_handle);
474 driver_is_active = tw_cl_is_active(ctlr_handle);
481 callout_reset(&(sc->watchdog_callout[i]), 70*hz, twa_watchdog, &sc->ctlr_handle);
[all...]
H A Dtw_osl_cam.c338 if ((tw_cl_is_reset_needed(&(req->ctlr->ctlr_handle)))) {
361 tw_cl_create_event(&(sc->ctlr_handle), TW_CL_FALSE,
367 tw_cl_set_reset_needed(&(sc->ctlr_handle));
467 tw_cl_interrupt(&(sc->ctlr_handle));
577 * Input: ctlr_handle -- ptr to controller handle
582 tw_osl_scan_bus(struct tw_cl_ctlr_handle *ctlr_handle) argument
584 struct twa_softc *sc = ctlr_handle->osl_ctlr_ctxt;
H A Dtw_osl.h133 struct tw_cl_ctlr_handle ctlr_handle; member in struct:twa_softc

Completed in 105 milliseconds