Lines Matching refs:twe_softc

46 static int	twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result);
47 static int twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result);
48 static int twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result);
49 static void *twe_get_param(struct twe_softc *sc, int table_id, int parameter_id, size_t size,
52 static int twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value);
55 static int twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value);
56 static int twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value);
58 static int twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size,
60 static int twe_init_connection(struct twe_softc *sc, int mode);
64 static void twe_reset(struct twe_softc *sc);
65 static int twe_add_unit(struct twe_softc *sc, int unit);
66 static int twe_del_unit(struct twe_softc *sc, int unit);
71 static void twe_done(struct twe_softc *sc, int startio);
72 static void twe_complete(struct twe_softc *sc);
73 static int twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout);
74 static int twe_drain_response_queue(struct twe_softc *sc);
75 static int twe_check_bits(struct twe_softc *sc, u_int32_t status_reg);
76 static int twe_soft_reset(struct twe_softc *sc);
81 static void twe_host_intr(struct twe_softc *sc);
82 static void twe_attention_intr(struct twe_softc *sc);
83 static void twe_command_intr(struct twe_softc *sc);
88 static int twe_fetch_aen(struct twe_softc *sc);
90 static void twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen);
91 static u_int16_t twe_dequeue_aen(struct twe_softc *sc);
92 static int twe_drain_aen_queue(struct twe_softc *sc);
93 static int twe_find_aen(struct twe_softc *sc, u_int16_t aen);
98 static int twe_get_request(struct twe_softc *sc, struct twe_request **tr);
104 static char *twe_format_aen(struct twe_softc *sc, u_int16_t aen);
106 static void twe_panic(struct twe_softc *sc, char *reason);
118 twe_setup(struct twe_softc *sc) in twe_setup()
203 twe_add_unit(struct twe_softc *sc, int unit) in twe_add_unit()
287 twe_del_unit(struct twe_softc *sc, int unit) in twe_del_unit()
306 twe_init(struct twe_softc *sc) in twe_init()
347 twe_deinit(struct twe_softc *sc) in twe_deinit()
369 twe_intr(struct twe_softc *sc) in twe_intr()
399 twe_startio(struct twe_softc *sc) in twe_startio()
480 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks) in twe_dump_blocks()
513 twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr) in twe_ioctl()
692 twe_enable_interrupts(struct twe_softc *sc) in twe_enable_interrupts()
705 twe_disable_interrupts(struct twe_softc *sc) in twe_disable_interrupts()
721 twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result) in twe_get_param_1()
733 twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result) in twe_get_param_2()
745 twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result) in twe_get_param_4()
763 twe_get_param(struct twe_softc *sc, int table_id, int param_id, size_t param_size, in twe_get_param()
834 twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value) in twe_set_param_1()
842 twe_set_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t value)
848 twe_set_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t value)
858 twe_set_param(struct twe_softc *sc, int table_id, int param_id, int param_size, void *data) in twe_set_param()
917 twe_init_connection(struct twe_softc *sc, int mode) in twe_init_connection()
978 struct twe_softc *sc; in twe_immediate_request()
1015 struct twe_softc *sc = tr->tr_sc; in twe_completeio()
1041 twe_reset(struct twe_softc *sc) in twe_reset()
1108 struct twe_softc *sc = tr->tr_sc; in twe_start()
1169 twe_done(struct twe_softc *sc, int startio) in twe_done()
1219 twe_complete(struct twe_softc *sc) in twe_complete()
1255 twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout) in twe_wait_status()
1279 twe_drain_response_queue(struct twe_softc *sc) in twe_drain_response_queue()
1300 twe_soft_reset(struct twe_softc *sc) in twe_soft_reset()
1346 twe_host_intr(struct twe_softc *sc) in twe_host_intr()
1360 twe_attention_intr(struct twe_softc *sc) in twe_attention_intr()
1378 twe_command_intr(struct twe_softc *sc) in twe_command_intr()
1400 twe_fetch_aen(struct twe_softc *sc) in twe_fetch_aen()
1416 struct twe_softc *sc = tr->tr_sc; in twe_handle_aen()
1440 twe_drain_aen_queue(struct twe_softc *sc) in twe_drain_aen_queue()
1463 twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen) in twe_enqueue_aen()
1504 twe_dequeue_aen(struct twe_softc *sc) in twe_dequeue_aen()
1526 twe_find_aen(struct twe_softc *sc, u_int16_t aen) in twe_find_aen()
1548 twe_wait_aen(struct twe_softc *sc, int aen, int timeout)
1581 twe_get_request(struct twe_softc *sc, struct twe_request **tr) in twe_get_request()
1632 twe_describe_controller(struct twe_softc *sc) in twe_describe_controller()
1717 twe_check_bits(struct twe_softc *sc, u_int32_t status_reg) in twe_check_bits()
1773 twe_format_aen(struct twe_softc *sc, u_int16_t aen) in twe_format_aen()
1822 struct twe_softc *sc = tr->tr_sc; in twe_report_request()
1883 twe_print_controller(struct twe_softc *sc) in twe_print_controller()
1909 twe_panic(struct twe_softc *sc, char *reason) in twe_panic()
1926 struct twe_softc *sc = tr->tr_sc;