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)
203 twe_add_unit(struct twe_softc *sc, int unit)
287 twe_del_unit(struct twe_softc *sc, int unit)
306 twe_init(struct twe_softc *sc)
347 twe_deinit(struct twe_softc *sc)
369 twe_intr(struct twe_softc *sc)
399 twe_startio(struct twe_softc *sc)
480 twe_dump_blocks(struct twe_softc *sc, int unit, u_int32_t lba, void *data, int nblks)
513 twe_ioctl(struct twe_softc *sc, u_long ioctlcmd, void *addr)
692 twe_enable_interrupts(struct twe_softc *sc)
705 twe_disable_interrupts(struct twe_softc *sc)
721 twe_get_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t *result)
733 twe_get_param_2(struct twe_softc *sc, int table_id, int param_id, u_int16_t *result)
745 twe_get_param_4(struct twe_softc *sc, int table_id, int param_id, u_int32_t *result)
763 twe_get_param(struct twe_softc *sc, int table_id, int param_id, size_t param_size,
834 twe_set_param_1(struct twe_softc *sc, int table_id, int param_id, u_int8_t value)
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)
917 twe_init_connection(struct twe_softc *sc, int mode)
978 struct twe_softc *sc;
1015 struct twe_softc *sc = tr->tr_sc;
1041 twe_reset(struct twe_softc *sc)
1108 struct twe_softc *sc = tr->tr_sc;
1169 twe_done(struct twe_softc *sc, int startio)
1219 twe_complete(struct twe_softc *sc)
1255 twe_wait_status(struct twe_softc *sc, u_int32_t status, int timeout)
1279 twe_drain_response_queue(struct twe_softc *sc)
1300 twe_soft_reset(struct twe_softc *sc)
1346 twe_host_intr(struct twe_softc *sc)
1360 twe_attention_intr(struct twe_softc *sc)
1378 twe_command_intr(struct twe_softc *sc)
1400 twe_fetch_aen(struct twe_softc *sc)
1416 struct twe_softc *sc = tr->tr_sc;
1440 twe_drain_aen_queue(struct twe_softc *sc)
1463 twe_enqueue_aen(struct twe_softc *sc, u_int16_t aen)
1504 twe_dequeue_aen(struct twe_softc *sc)
1526 twe_find_aen(struct twe_softc *sc, u_int16_t 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)
1632 twe_describe_controller(struct twe_softc *sc)
1717 twe_check_bits(struct twe_softc *sc, u_int32_t status_reg)
1773 twe_format_aen(struct twe_softc *sc, u_int16_t aen)
1822 struct twe_softc *sc = tr->tr_sc;
1883 twe_print_controller(struct twe_softc *sc)
1909 twe_panic(struct twe_softc *sc, char *reason)
1926 struct twe_softc *sc = tr->tr_sc;