Lines Matching refs:vtscsi_softc
79 static int vtscsi_negotiate_features(struct vtscsi_softc *);
80 static int vtscsi_setup_features(struct vtscsi_softc *);
81 static void vtscsi_read_config(struct vtscsi_softc *,
83 static int vtscsi_maximum_segments(struct vtscsi_softc *, int);
84 static int vtscsi_alloc_virtqueues(struct vtscsi_softc *);
85 static void vtscsi_check_sizes(struct vtscsi_softc *);
86 static void vtscsi_write_device_config(struct vtscsi_softc *);
87 static int vtscsi_reinit(struct vtscsi_softc *);
89 static int vtscsi_alloc_cam(struct vtscsi_softc *);
90 static int vtscsi_register_cam(struct vtscsi_softc *);
91 static void vtscsi_free_cam(struct vtscsi_softc *);
93 static int vtscsi_register_async(struct vtscsi_softc *);
94 static void vtscsi_deregister_async(struct vtscsi_softc *);
98 static void vtscsi_cam_scsi_io(struct vtscsi_softc *, struct cam_sim *,
100 static void vtscsi_cam_get_tran_settings(struct vtscsi_softc *,
102 static void vtscsi_cam_reset_bus(struct vtscsi_softc *, union ccb *);
103 static void vtscsi_cam_reset_dev(struct vtscsi_softc *, union ccb *);
104 static void vtscsi_cam_abort(struct vtscsi_softc *, union ccb *);
105 static void vtscsi_cam_path_inquiry(struct vtscsi_softc *,
108 static int vtscsi_sg_append_scsi_buf(struct vtscsi_softc *,
110 static int vtscsi_fill_scsi_cmd_sglist(struct vtscsi_softc *,
112 static int vtscsi_execute_scsi_cmd(struct vtscsi_softc *,
114 static int vtscsi_start_scsi_cmd(struct vtscsi_softc *, union ccb *);
115 static void vtscsi_complete_abort_timedout_scsi_cmd(struct vtscsi_softc *,
117 static int vtscsi_abort_timedout_scsi_cmd(struct vtscsi_softc *,
121 static cam_status vtscsi_complete_scsi_cmd_response(struct vtscsi_softc *,
123 static void vtscsi_complete_scsi_cmd(struct vtscsi_softc *,
126 static void vtscsi_poll_ctrl_req(struct vtscsi_softc *,
128 static int vtscsi_execute_ctrl_req(struct vtscsi_softc *,
130 static void vtscsi_complete_abort_task_cmd(struct vtscsi_softc *c,
132 static int vtscsi_execute_abort_task_cmd(struct vtscsi_softc *,
134 static int vtscsi_execute_reset_dev_cmd(struct vtscsi_softc *,
139 static void vtscsi_init_scsi_cmd_req(struct vtscsi_softc *,
141 static void vtscsi_init_ctrl_tmf_req(struct vtscsi_softc *, struct ccb_hdr *,
144 static void vtscsi_freeze_simq(struct vtscsi_softc *, int);
145 static int vtscsi_thaw_simq(struct vtscsi_softc *, int);
147 static void vtscsi_announce(struct vtscsi_softc *, uint32_t, target_id_t,
149 static void vtscsi_execute_rescan(struct vtscsi_softc *, target_id_t,
151 static void vtscsi_execute_rescan_bus(struct vtscsi_softc *);
153 static void vtscsi_handle_event(struct vtscsi_softc *,
155 static int vtscsi_enqueue_event_buf(struct vtscsi_softc *,
157 static int vtscsi_init_event_vq(struct vtscsi_softc *);
158 static void vtscsi_reinit_event_vq(struct vtscsi_softc *);
159 static void vtscsi_drain_event_vq(struct vtscsi_softc *);
161 static void vtscsi_complete_vqs_locked(struct vtscsi_softc *);
162 static void vtscsi_complete_vqs(struct vtscsi_softc *);
163 static void vtscsi_drain_vqs(struct vtscsi_softc *);
164 static void vtscsi_cancel_request(struct vtscsi_softc *,
166 static void vtscsi_drain_vq(struct vtscsi_softc *, struct virtqueue *);
167 static void vtscsi_stop(struct vtscsi_softc *);
168 static int vtscsi_reset_bus(struct vtscsi_softc *);
170 static void vtscsi_init_request(struct vtscsi_softc *,
172 static int vtscsi_alloc_requests(struct vtscsi_softc *);
173 static void vtscsi_free_requests(struct vtscsi_softc *);
174 static void vtscsi_enqueue_request(struct vtscsi_softc *,
176 static struct vtscsi_request * vtscsi_dequeue_request(struct vtscsi_softc *);
179 static void vtscsi_complete_vq(struct vtscsi_softc *, struct virtqueue *);
184 static void vtscsi_disable_vqs_intr(struct vtscsi_softc *);
185 static void vtscsi_enable_vqs_intr(struct vtscsi_softc *);
187 static void vtscsi_get_tunables(struct vtscsi_softc *);
188 static void vtscsi_setup_sysctl(struct vtscsi_softc *);
238 sizeof(struct vtscsi_softc)
279 struct vtscsi_softc *sc;
370 struct vtscsi_softc *sc;
411 vtscsi_negotiate_features(struct vtscsi_softc *sc)
424 vtscsi_setup_features(struct vtscsi_softc *sc)
451 vtscsi_read_config(struct vtscsi_softc *sc,
475 vtscsi_maximum_segments(struct vtscsi_softc *sc, int seg_max)
492 vtscsi_alloc_virtqueues(struct vtscsi_softc *sc)
515 vtscsi_check_sizes(struct vtscsi_softc *sc)
535 vtscsi_write_device_config(struct vtscsi_softc *sc)
552 vtscsi_reinit(struct vtscsi_softc *sc)
574 vtscsi_alloc_cam(struct vtscsi_softc *sc)
602 vtscsi_register_cam(struct vtscsi_softc *sc)
653 vtscsi_free_cam(struct vtscsi_softc *sc)
679 struct vtscsi_softc *sc;
699 vtscsi_register_async(struct vtscsi_softc *sc)
715 vtscsi_deregister_async(struct vtscsi_softc *sc)
731 struct vtscsi_softc *sc;
798 struct vtscsi_softc *sc;
806 vtscsi_cam_scsi_io(struct vtscsi_softc *sc, struct cam_sim *sim,
840 vtscsi_cam_get_tran_settings(struct vtscsi_softc *sc, union ccb *ccb)
861 vtscsi_cam_reset_bus(struct vtscsi_softc *sc, union ccb *ccb)
878 vtscsi_cam_reset_dev(struct vtscsi_softc *sc, union ccb *ccb)
914 vtscsi_cam_abort(struct vtscsi_softc *sc, union ccb *ccb)
950 vtscsi_cam_path_inquiry(struct vtscsi_softc *sc, struct cam_sim *sim,
1000 vtscsi_sg_append_scsi_buf(struct vtscsi_softc *sc, struct sglist *sg,
1044 vtscsi_fill_scsi_cmd_sglist(struct vtscsi_softc *sc, struct vtscsi_request *req,
1100 vtscsi_execute_scsi_cmd(struct vtscsi_softc *sc, struct vtscsi_request *req)
1154 vtscsi_start_scsi_cmd(struct vtscsi_softc *sc, union ccb *ccb)
1176 vtscsi_complete_abort_timedout_scsi_cmd(struct vtscsi_softc *sc,
1215 vtscsi_abort_timedout_scsi_cmd(struct vtscsi_softc *sc,
1265 struct vtscsi_softc *sc;
1342 vtscsi_complete_scsi_cmd_response(struct vtscsi_softc *sc,
1378 vtscsi_complete_scsi_cmd(struct vtscsi_softc *sc, struct vtscsi_request *req)
1419 vtscsi_poll_ctrl_req(struct vtscsi_softc *sc, struct vtscsi_request *req)
1432 vtscsi_execute_ctrl_req(struct vtscsi_softc *sc, struct vtscsi_request *req,
1462 vtscsi_complete_abort_task_cmd(struct vtscsi_softc *sc,
1490 vtscsi_execute_abort_task_cmd(struct vtscsi_softc *sc,
1548 vtscsi_complete_reset_dev_cmd(struct vtscsi_softc *sc,
1574 vtscsi_execute_reset_dev_cmd(struct vtscsi_softc *sc,
1633 vtscsi_init_scsi_cmd_req(struct vtscsi_softc *sc, struct ccb_scsiio *csio,
1664 vtscsi_init_ctrl_tmf_req(struct vtscsi_softc *sc, struct ccb_hdr *ccbh,
1676 vtscsi_freeze_simq(struct vtscsi_softc *sc, int reason)
1698 vtscsi_thaw_simq(struct vtscsi_softc *sc, int reason)
1721 vtscsi_announce(struct vtscsi_softc *sc, uint32_t ac_code,
1743 vtscsi_execute_rescan(struct vtscsi_softc *sc, target_id_t target_id,
1766 vtscsi_execute_rescan_bus(struct vtscsi_softc *sc)
1773 vtscsi_transport_reset_event(struct vtscsi_softc *sc,
1794 vtscsi_handle_event(struct vtscsi_softc *sc, struct virtio_scsi_event *event)
1821 vtscsi_enqueue_event_buf(struct vtscsi_softc *sc,
1849 vtscsi_init_event_vq(struct vtscsi_softc *sc)
1886 vtscsi_reinit_event_vq(struct vtscsi_softc *sc)
1907 vtscsi_drain_event_vq(struct vtscsi_softc *sc)
1922 vtscsi_complete_vqs_locked(struct vtscsi_softc *sc)
1934 vtscsi_complete_vqs(struct vtscsi_softc *sc)
1943 vtscsi_cancel_request(struct vtscsi_softc *sc, struct vtscsi_request *req)
1987 vtscsi_drain_vq(struct vtscsi_softc *sc, struct virtqueue *vq)
2003 vtscsi_drain_vqs(struct vtscsi_softc *sc)
2015 vtscsi_stop(struct vtscsi_softc *sc)
2023 vtscsi_reset_bus(struct vtscsi_softc *sc)
2069 vtscsi_init_request(struct vtscsi_softc *sc, struct vtscsi_request *req)
2087 vtscsi_alloc_requests(struct vtscsi_softc *sc)
2119 vtscsi_free_requests(struct vtscsi_softc *sc)
2136 vtscsi_enqueue_request(struct vtscsi_softc *sc, struct vtscsi_request *req)
2166 vtscsi_dequeue_request(struct vtscsi_softc *sc)
2194 vtscsi_complete_vq(struct vtscsi_softc *sc, struct virtqueue *vq)
2207 struct vtscsi_softc *sc;
2230 struct vtscsi_softc *sc;
2255 struct vtscsi_softc *sc;
2276 vtscsi_disable_vqs_intr(struct vtscsi_softc *sc)
2285 vtscsi_enable_vqs_intr(struct vtscsi_softc *sc)
2294 vtscsi_get_tunables(struct vtscsi_softc *sc)
2306 vtscsi_setup_sysctl(struct vtscsi_softc *sc)
2336 struct vtscsi_softc *sc;