tws_request
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,
sc->reqs = malloc(sizeof(struct tws_request) * tws_queue_depth, M_TWS,
struct tws_request *req, u_int8_t q_type );
extern struct tws_request *tws_q_remove_head(struct tws_softc *sc,
struct tws_request *tws_get_request(struct tws_softc *sc, u_int16_t type);
void tws_release_request(struct tws_request *req);
struct tws_request *
struct tws_request *r = NULL;
tws_release_request(struct tws_request *req)
struct tws_request *reqs; /* pointer to requests */
struct tws_request *q_head[TWS_MAX_QS]; /* head pointers to q's */
struct tws_request *q_tail[TWS_MAX_QS]; /* tail pointers to q's */
extern void tws_passthru_complete(struct tws_request *req);
extern struct tws_request * tws_q_remove_tail(struct tws_softc *sc,
struct tws_request *req = (struct tws_request *)arg;
tws_freeze_simq(struct tws_softc *sc, struct tws_request *req)
tws_scsi_complete(struct tws_request *req)
tws_getset_param_complete(struct tws_request *req)
tws_aen_complete(struct tws_request *req)
tws_cmd_complete(struct tws_request *req)
struct tws_request *req;
static void tws_scsi_complete(struct tws_request *req);
tws_scsi_err_complete(struct tws_request *req, struct tws_command_header *hdr)
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);
tws_passthru_err_complete(struct tws_request *req,
struct tws_request *req;
struct tws_request *r;
static void tws_freeze_simq(struct tws_softc *sc, struct tws_request *req);
struct tws_request *req;
static void tws_scsi_err_complete(struct tws_request *req,
static void tws_passthru_err_complete(struct tws_request *req,
struct tws_request *req;
void tws_cmd_complete(struct tws_request *req);
struct tws_request *req;
void tws_aen_complete(struct tws_request *req);
void tws_getset_param_complete(struct tws_request *req);
struct tws_request *req;
extern struct tws_request *tws_get_request(struct tws_softc *sc,
tws_unmap_request(struct tws_softc *sc, struct tws_request *req)
extern void *tws_release_request(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 void tws_q_insert_tail(struct tws_softc *sc, struct tws_request *req,
struct tws_request *req = (struct tws_request *)arg;
extern struct tws_request * tws_q_remove_request(struct tws_softc *sc,
struct tws_request *req, u_int8_t q_type );
struct tws_request *req;
struct tws_request *req;
tws_submit_command(struct tws_softc *sc, struct tws_request *req)
extern struct tws_request *tws_get_request(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,
struct tws_request *req, u_int8_t q_type );
extern void tws_cmd_complete(struct tws_request *req);
int tws_submit_command(struct tws_softc *sc, struct tws_request *req);
void (*cb)(struct tws_request *); /* callback func */
struct tws_request *next; /* pointer to next request */
struct tws_request *prev; /* pointer to prev request */
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,
struct tws_request *
struct tws_request *r;
struct tws_request *
struct tws_request *r;
struct tws_request *
tws_q_remove_request(struct tws_softc *sc, struct tws_request *req,
struct tws_request *r;
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 *req, u_int8_t q_type );
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 );
tws_passthru_complete(struct tws_request *req)
void tws_passthru_complete(struct tws_request *req);
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);
struct tws_request *req;