tws_softc
struct tws_softc *sc = dev->si_drv1;
struct tws_softc *sc = dev->si_drv1;
struct tws_softc *sc = dev->si_drv1;
struct tws_softc *sc = dev->si_drv1;
struct tws_softc *sc = device_get_softc(dev);
struct tws_softc *sc = device_get_softc(dev);
tws_setup_intr(struct tws_softc *sc, int irqs)
tws_teardown_intr(struct tws_softc *sc)
tws_setup_irq(struct tws_softc *sc)
tws_init(struct tws_softc *sc)
extern int tws_cam_attach(struct tws_softc *sc);
extern void tws_cam_detach(struct tws_softc *sc);
extern int tws_init_ctlr(struct tws_softc *sc);
extern boolean tws_ctlr_ready(struct tws_softc *sc);
extern void tws_turn_off_interrupts(struct tws_softc *sc);
extern void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
extern struct tws_request *tws_q_remove_request(struct tws_softc *sc,
extern struct tws_request *tws_q_remove_head(struct tws_softc *sc,
extern boolean tws_get_response(struct tws_softc *sc, u_int16_t *req_id);
tws_init_aen_q(struct tws_softc *sc)
extern boolean tws_ctlr_reset(struct tws_softc *sc);
tws_init_trace_q(struct tws_softc *sc)
tws_init_reqs(struct tws_softc *sc, u_int32_t dma_mem_size)
struct tws_request *tws_get_request(struct tws_softc *sc, u_int16_t type);
int tws_init_connect(struct tws_softc *sc, u_int16_t mc);
void tws_send_event(struct tws_softc *sc, u_int8_t event);
uint8_t tws_get_state(struct tws_softc *sc);
tws_send_event(struct tws_softc *sc, u_int8_t event)
tws_get_state(struct tws_softc *sc)
struct tws_softc *sc = device_get_softc(dev);
struct tws_softc *sc = device_get_softc(dev);
struct tws_softc *sc = device_get_softc(dev);
static int tws_init(struct tws_softc *sc);
tws_get_request(struct tws_softc *sc, u_int16_t type)
static int tws_init_reqs(struct tws_softc *sc, u_int32_t dma_mem_size);
struct tws_softc *sc = req->sc;
static int tws_init_aen_q(struct tws_softc *sc);
static int tws_init_trace_q(struct tws_softc *sc);
sizeof(struct tws_softc)
static int tws_setup_irq(struct tws_softc *sc);
int tws_setup_intr(struct tws_softc *sc, int irqs);
int tws_teardown_intr(struct tws_softc *sc);
extern void tws_disable_db_intr(struct tws_softc *sc);
extern void tws_enable_db_intr(struct tws_softc *sc);
struct tws_softc *sc = (struct tws_softc *)arg;
extern void tws_aen_synctime_with_host(struct tws_softc *sc);
extern void tws_circular_aenq_insert(struct tws_softc *sc,
tws_intr_attn_aen(struct tws_softc *sc)
tws_intr_attn_error(struct tws_softc *sc)
tws_intr_resp(struct tws_softc *sc)
extern boolean tws_ctlr_reset(struct tws_softc *sc);
extern struct tws_request * tws_q_remove_tail(struct tws_softc *sc,
struct tws_softc *sc = (struct tws_softc *)cam_sim_softc(sim);
struct tws_softc *sc = req->sc;
extern void tws_turn_off_interrupts(struct tws_softc *sc);
extern void tws_turn_on_interrupts(struct tws_softc *sc);
extern int tws_init_connect(struct tws_softc *sc, u_int16_t mc);
extern void tws_init_obfl_q(struct tws_softc *sc);
extern uint8_t tws_get_state(struct tws_softc *sc);
struct tws_softc *sc = (struct tws_softc *)arg;
extern void tws_assert_soft_reset(struct tws_softc *sc);
extern boolean tws_ctlr_ready(struct tws_softc *sc);
extern u_int16_t tws_poll4_response(struct tws_softc *sc, u_int64_t *mfa);
struct tws_softc *sc = (struct tws_softc *)arg;
extern int tws_setup_intr(struct tws_softc *sc, int irqs);
extern int tws_teardown_intr(struct tws_softc *sc);
struct tws_softc *sc = (struct tws_softc *)arg;
tws_cam_attach(struct tws_softc *sc)
tws_freeze_simq(struct tws_softc *sc, struct tws_request *req)
tws_cam_detach(struct tws_softc *sc)
tws_bus_scan(struct tws_softc *sc)
struct tws_softc *sc = (struct tws_softc *)cam_sim_softc(sim);
struct tws_softc *sc = req->sc;
struct tws_softc *sc = req->sc;
struct tws_softc *sc = req->sc;
struct tws_softc *sc = req->sc;
tws_err_complete(struct tws_softc *sc, u_int64_t mfa)
struct tws_softc *sc = req->sc;
void tws_unmap_request(struct tws_softc *sc, struct tws_request *req);
int32_t tws_map_request(struct tws_softc *sc, struct tws_request *req);
int tws_bus_scan(struct tws_softc *sc);
int tws_cam_attach(struct tws_softc *sc);
void tws_cam_detach(struct tws_softc *sc);
tws_drain_busy_queue(struct tws_softc *sc)
tws_drain_reserved_reqs(struct tws_softc *sc)
static int32_t tws_execute_scsi(struct tws_softc *sc, union ccb *ccb);
static void tws_freeze_simq(struct tws_softc *sc, struct tws_request *req);
tws_drain_response_queue(struct tws_softc *sc)
tws_execute_scsi(struct tws_softc *sc, union ccb *ccb)
static void tws_fill_sg_list(struct tws_softc *sc, void *sgl_src,
static void tws_err_complete(struct tws_softc *sc, u_int64_t mfa);
static void tws_intr_attn_aen(struct tws_softc *sc);
tws_send_scsi_cmd(struct tws_softc *sc, int cmd)
static void tws_intr_attn_error(struct tws_softc *sc);
static void tws_intr_resp(struct tws_softc *sc);
tws_set_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id,
int tws_send_scsi_cmd(struct tws_softc *sc, int cmd);
int tws_set_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id,
tws_get_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id,
int tws_get_param(struct tws_softc *sc, u_int32_t table_id, u_int32_t param_id,
extern struct tws_request *tws_get_request(struct tws_softc *sc,
tws_unmap_request(struct tws_softc *sc, struct tws_request *req)
extern int tws_submit_command(struct tws_softc *sc, struct tws_request *req);
tws_map_request(struct tws_softc *sc, struct tws_request *req)
extern boolean tws_get_response(struct tws_softc *sc,
extern void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
struct tws_softc *sc = req->sc;
extern struct tws_request * tws_q_remove_request(struct tws_softc *sc,
extern void tws_send_event(struct tws_softc *sc, u_int8_t event);
tws_fill_sg_list(struct tws_softc *sc, void *sgl_src, void *sgl_dest,
tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
tws_init_obfl_q(struct tws_softc *sc)
tws_init_connect(struct tws_softc *sc, u_int16_t mcreadits )
tws_display_ctlr_info(struct tws_softc *sc)
tws_send_generic_cmd(struct tws_softc *sc, u_int8_t opcode)
tws_submit_command(struct tws_softc *sc, struct tws_request *req)
tws_get_response(struct tws_softc *sc, u_int16_t *req_id, u_int64_t *mfa)
tws_poll4_response(struct tws_softc *sc, u_int64_t *mfa)
tws_ctlr_ready(struct tws_softc *sc)
tws_turn_on_interrupts(struct tws_softc *sc)
tws_turn_off_interrupts(struct tws_softc *sc)
extern struct tws_request *tws_get_request(struct tws_softc *sc,
tws_disable_db_intr(struct tws_softc *sc)
tws_enable_db_intr(struct tws_softc *sc)
extern void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
tws_ctlr_reset(struct tws_softc *sc)
extern struct tws_request * tws_q_remove_request(struct tws_softc *sc,
tws_assert_soft_reset(struct tws_softc *sc)
struct tws_softc *sc = (struct tws_softc *)arg;
tws_aen_synctime_with_host(struct tws_softc *sc)
extern int tws_send_scsi_cmd(struct tws_softc *sc, int cmd);
extern int tws_set_param(struct tws_softc *sc, u_int32_t table_id,
extern int tws_get_param(struct tws_softc *sc, u_int32_t table_id,
int tws_init_connect(struct tws_softc *sc, u_int16_t mc);
int tws_init_ctlr(struct tws_softc *sc);
int tws_submit_command(struct tws_softc *sc, struct tws_request *req);
u_int16_t tws_poll4_response(struct tws_softc *sc, u_int64_t *mfa);
boolean tws_get_response(struct tws_softc *sc, u_int16_t *req_id,
boolean tws_ctlr_ready(struct tws_softc *sc);
void tws_turn_on_interrupts(struct tws_softc *sc);
void tws_turn_off_interrupts(struct tws_softc *sc);
boolean tws_ctlr_reset(struct tws_softc *sc);
void tws_assert_soft_reset(struct tws_softc *sc);
int tws_send_generic_cmd(struct tws_softc *sc, u_int8_t opcode);
void tws_disable_db_intr(struct tws_softc *sc);
void tws_enable_db_intr(struct tws_softc *sc);
void tws_aen_synctime_with_host(struct tws_softc *sc);
void tws_init_obfl_q(struct tws_softc *sc);
void tws_display_ctlr_info(struct tws_softc *sc);
tws_init_ctlr(struct tws_softc *sc)
struct tws_softc *sc; /* pointer back to ctlr softc */
tws_log(struct tws_softc *sc, int index)
tws_write_reg(struct tws_softc *sc, int offset,
tws_read_reg(struct tws_softc *sc, int offset, int size)
tws_init_qs(struct tws_softc *sc)
tws_insert2_empty_q(struct tws_softc *sc, struct tws_request *req,
tws_q_insert_head(struct tws_softc *sc, struct tws_request *req,
tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type )
tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type )
tws_q_remove_request(struct tws_softc *sc, struct tws_request *req,
tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa)
struct tws_softc *sc = (struct tws_softc *)arg;
void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
struct tws_request * tws_q_remove_request(struct tws_softc *sc,
struct tws_request *tws_q_remove_head(struct tws_softc *sc, u_int8_t q_type );
void tws_q_insert_head(struct tws_softc *sc, struct tws_request *req,
struct tws_request * tws_q_remove_tail(struct tws_softc *sc, u_int8_t q_type );
struct tws_sense *tws_find_sense_from_mfa(struct tws_softc *sc, u_int64_t mfa);
struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2)
struct tws_softc *sc, char *desc, u_int64_t val1, u_int64_t val2);
void tws_log(struct tws_softc *sc, int index);
u_int32_t tws_read_reg(struct tws_softc *sc,
void tws_write_reg(struct tws_softc *sc, int offset,
void tws_init_qs(struct tws_softc *sc);
tws_retrive_aen(struct tws_softc *sc, u_long cmd,
tws_ioctl_aen(struct tws_softc *sc, u_long cmd, void *buf)
tws_circular_aenq_insert(struct tws_softc *sc, struct tws_circular_q *cq,
extern void tws_circular_aenq_insert(struct tws_softc *sc,
static int tws_passthru(struct tws_softc *sc, void *buf);
static int tws_ioctl_aen(struct tws_softc *sc, u_long cmd, void *buf);
extern int tws_bus_scan(struct tws_softc *sc);
extern struct tws_request *tws_get_request(struct tws_softc *sc,
extern int32_t tws_map_request(struct tws_softc *sc, struct tws_request *req);
extern void tws_unmap_request(struct tws_softc *sc, struct tws_request *req);
extern uint8_t tws_get_state(struct tws_softc *sc);
struct tws_softc *sc = (struct tws_softc *)(dev->si_drv1);
tws_passthru(struct tws_softc *sc, void *buf)