Home
last modified time | relevance | path

Searched refs:spdk_scsi_task (Results 1 – 21 of 21) sorted by relevance

/spdk/lib/scsi/
H A Dscsi_internal.h128 TAILQ_HEAD(tasks, spdk_scsi_task) tasks;
131 TAILQ_HEAD(pending_tasks, spdk_scsi_task) pending_tasks;
134 TAILQ_HEAD(mgmt_tasks, spdk_scsi_task) mgmt_tasks;
137 TAILQ_HEAD(pending_mgmt_tasks, spdk_scsi_task) pending_mgmt_tasks;
165 void scsi_lun_execute_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task);
166 void scsi_lun_execute_mgmt_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task);
169 void scsi_lun_complete_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task);
170 void scsi_lun_complete_reset_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task);
182 int bdev_scsi_execute(struct spdk_scsi_task *task);
183 void bdev_scsi_reset(struct spdk_scsi_task *task);
[all …]
H A Dtask.c13 scsi_task_free_data(struct spdk_scsi_task *task) in scsi_task_free_data()
25 spdk_scsi_task_put(struct spdk_scsi_task *task) in spdk_scsi_task_put()
48 spdk_scsi_task_construct(struct spdk_scsi_task *task, in spdk_scsi_task_construct()
70 scsi_task_alloc_data(struct spdk_scsi_task *task, uint32_t alloc_len) in scsi_task_alloc_data()
90 spdk_scsi_task_scatter_data(struct spdk_scsi_task *task, const void *src, size_t buf_len) in spdk_scsi_task_scatter_data()
133 spdk_scsi_task_gather_data(struct spdk_scsi_task *task, int *len) in spdk_scsi_task_gather_data()
168 spdk_scsi_task_set_data(struct spdk_scsi_task *task, void *data, uint32_t len) in spdk_scsi_task_set_data()
178 spdk_scsi_task_build_sense_data(struct spdk_scsi_task *task, int sk, int asc, int ascq) in spdk_scsi_task_build_sense_data()
219 spdk_scsi_task_set_status(struct spdk_scsi_task *task, int sc, int sk, in spdk_scsi_task_set_status()
229 spdk_scsi_task_copy_status(struct spdk_scsi_task *dst, in spdk_scsi_task_copy_status()
[all …]
H A Dlun.c18 scsi_lun_complete_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in scsi_lun_complete_task()
28 scsi_lun_complete_mgmt_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in scsi_lun_complete_mgmt_task()
66 struct spdk_scsi_task *task = (struct spdk_scsi_task *)arg; in scsi_lun_reset_check_outstanding_tasks()
79 scsi_lun_complete_reset_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in scsi_lun_complete_reset_task()
95 struct spdk_scsi_task *task) in scsi_lun_append_mgmt_task()
101 _scsi_lun_handle_unit_attention(struct spdk_scsi_task *task) in _scsi_lun_handle_unit_attention()
120 struct spdk_scsi_task *task; in _scsi_lun_execute_mgmt_task()
178 struct spdk_scsi_task *task) in scsi_lun_execute_mgmt_task()
185 _scsi_lun_execute_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in _scsi_lun_execute_task()
231 scsi_lun_append_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in scsi_lun_append_task()
[all …]
H A Dscsi_pr.c172 scsi_pr_out_reserve(struct spdk_scsi_task *task, in scsi_pr_out_reserve()
234 scsi_pr_out_register(struct spdk_scsi_task *task, in scsi_pr_out_register()
303 scsi_pr_out_release(struct spdk_scsi_task *task, in scsi_pr_out_release()
350 scsi_pr_out_clear(struct spdk_scsi_task *task, uint64_t rkey) in scsi_pr_out_clear()
412 scsi_pr_out_preempt(struct spdk_scsi_task *task, in scsi_pr_out_preempt()
505 scsi_pr_out(struct spdk_scsi_task *task, uint8_t *cdb, in scsi_pr_out()
570 scsi_pr_in_read_keys(struct spdk_scsi_task *task, uint8_t *data, in scsi_pr_in_read_keys()
595 scsi_pr_in_read_reservations(struct spdk_scsi_task *task, in scsi_pr_in_read_reservations()
627 scsi_pr_in_report_capabilities(struct spdk_scsi_task *task, in scsi_pr_in_report_capabilities()
651 scsi_pr_in_read_full_status(struct spdk_scsi_task *task, in scsi_pr_in_read_full_status()
[all …]
H A Dscsi_bdev.c122 bdev_scsi_inquiry(struct spdk_bdev *bdev, struct spdk_scsi_task *task, in bdev_scsi_inquiry()
759 uint8_t *data, struct spdk_scsi_task *task) in bdev_scsi_mode_sense_page()
1034 int page, int subpage, uint8_t *data, struct spdk_scsi_task *task) in bdev_scsi_mode_sense()
1112 struct spdk_scsi_task *task = cb_arg; in bdev_scsi_task_complete_cmd()
1127 struct spdk_scsi_task *task = cb_arg; in bdev_scsi_read_task_complete_cmd()
1142 struct spdk_scsi_task *task = cb_arg; in bdev_scsi_task_complete_reset()
1154 bdev_scsi_queue_io(struct spdk_scsi_task *task, spdk_bdev_io_wait_cb cb_fn, void *cb_arg) in bdev_scsi_queue_io()
1173 struct spdk_io_channel *bdev_ch, struct spdk_scsi_task *task, in bdev_scsi_sync()
1236 struct spdk_io_channel *bdev_ch, struct spdk_scsi_task *task, in bdev_scsi_readwrite()
1352 struct spdk_scsi_task *task;
[all …]
H A Ddev.c278 struct spdk_scsi_task *task) in spdk_scsi_dev_queue_mgmt_task()
287 struct spdk_scsi_task *task) in spdk_scsi_dev_queue_task()
/spdk/include/spdk/
H A Dscsi.h61 struct spdk_scsi_task;
62 typedef void (*spdk_scsi_task_cpl)(struct spdk_scsi_task *task);
63 typedef void (*spdk_scsi_task_free)(struct spdk_scsi_task *task);
65 struct spdk_scsi_task { struct
111 TAILQ_ENTRY(spdk_scsi_task) scsi_link; argument
250 void spdk_scsi_dev_queue_mgmt_task(struct spdk_scsi_dev *dev, struct spdk_scsi_task *task);
260 void spdk_scsi_dev_queue_task(struct spdk_scsi_dev *dev, struct spdk_scsi_task *task);
435 void spdk_scsi_task_construct(struct spdk_scsi_task *task,
444 void spdk_scsi_task_put(struct spdk_scsi_task *task);
453 void spdk_scsi_task_set_data(struct spdk_scsi_task *task, void *data, uint32_t len);
[all …]
/spdk/test/unit/lib/scsi/lun.c/
H A Dlun_ut.c31 (struct spdk_bdev *bdev, struct spdk_scsi_task *task,
35 spdk_lun_ut_cpl_task(struct spdk_scsi_task *task) in spdk_lun_ut_cpl_task()
42 spdk_lun_ut_free_task(struct spdk_scsi_task *task) in spdk_lun_ut_free_task()
47 ut_init_task(struct spdk_scsi_task *task) in ut_init_task()
75 (struct spdk_scsi_dev *dev, struct spdk_scsi_task *task));
80 DEFINE_STUB(scsi_pr_check, int, (struct spdk_scsi_task *task), 0);
81 DEFINE_STUB(scsi2_reserve_check, int, (struct spdk_scsi_task *task), 0);
84 bdev_scsi_reset(struct spdk_scsi_task *task) in bdev_scsi_reset()
93 bdev_scsi_execute(struct spdk_scsi_task *task) in bdev_scsi_execute()
137 struct spdk_scsi_task task = { 0 }; in lun_task_mgmt_execute_abort_task_not_supported()
[all …]
/spdk/test/unit/lib/iscsi/
H A Dcommon.c68 spdk_scsi_task_put(struct spdk_scsi_task *task) in spdk_scsi_task_put()
116 DEFINE_STUB_V(spdk_scsi_task_process_null_lun, (struct spdk_scsi_task *task));
118 DEFINE_STUB_V(spdk_scsi_task_process_abort, (struct spdk_scsi_task *task));
121 spdk_scsi_dev_queue_task(struct spdk_scsi_dev *dev, struct spdk_scsi_task *task) in spdk_scsi_dev_queue_task()
135 (struct spdk_scsi_dev *dev, struct spdk_scsi_task *task));
174 iscsi_task_cpl(struct spdk_scsi_task *scsi_task) in iscsi_task_cpl()
189 DEFINE_STUB_V(iscsi_task_mgmt_cpl, (struct spdk_scsi_task *scsi_task));
242 (struct spdk_scsi_task *task, int sc, int sk, int asc, int ascq));
245 spdk_scsi_task_set_data(struct spdk_scsi_task *task, void *data, uint32_t len) in spdk_scsi_task_set_data()
/spdk/test/unit/lib/scsi/scsi_bdev.c/
H A Dscsi_bdev_ut.c81 DEFINE_STUB(scsi_pr_out, int, (struct spdk_scsi_task *task,
84 DEFINE_STUB(scsi_pr_in, int, (struct spdk_scsi_task *task, uint8_t *cdb,
87 DEFINE_STUB(scsi2_reserve, int, (struct spdk_scsi_task *task, uint8_t *cdb), 0);
88 DEFINE_STUB(scsi2_release, int, (struct spdk_scsi_task *task), 0);
91 scsi_lun_complete_task(struct spdk_scsi_lun *lun, struct spdk_scsi_task *task) in scsi_lun_complete_task()
97 (struct spdk_scsi_lun *lun, struct spdk_scsi_task *task));
111 ut_put_task(struct spdk_scsi_task *task) in ut_put_task()
124 ut_init_task(struct spdk_scsi_task *task) in ut_init_task()
318 struct spdk_scsi_task task; in mode_select_6_test()
360 struct spdk_scsi_task task; in mode_select_6_test2()
[all …]
/spdk/test/unit/lib/scsi/scsi_pr.c/
H A Dscsi_pr_ut.c18 spdk_scsi_task_set_status(struct spdk_scsi_task *task, int sc, int sk, in SPDK_LOG_REGISTER_COMPONENT()
131 struct spdk_scsi_task task = {0}; in test_build_registrants()
212 struct spdk_scsi_task task = {0}; in test_all_registrant_reservation_reserve()
284 struct spdk_scsi_task task = {0}; in test_all_registrant_reservation_access()
355 struct spdk_scsi_task task = {0}; in test_reservation_reserve()
441 struct spdk_scsi_task task = {0}; in test_reservation_preempt_non_all_regs()
516 struct spdk_scsi_task task = {0}; in test_reservation_preempt_all_regs()
568 struct spdk_scsi_task task = {0}; in test_reservation_cmds_conflict()
661 struct spdk_scsi_task task = {0}; in test_scsi2_reserve_release()
728 struct spdk_scsi_task task = {0}; in test_pr_with_scsi2_reserve_release()
/spdk/test/unit/lib/scsi/dev.c/
H A Ddev_ut.c32 static struct spdk_scsi_task *
35 struct spdk_scsi_task *task; in spdk_get_task()
46 spdk_scsi_task_put(struct spdk_scsi_task *task) in spdk_scsi_task_put()
79 (struct spdk_scsi_lun *lun, struct spdk_scsi_task *task));
82 (struct spdk_scsi_lun *lun, struct spdk_scsi_task *task));
254 struct spdk_scsi_task *task; in dev_queue_mgmt_task_success()
278 struct spdk_scsi_task *task; in dev_queue_task_success()
299 struct spdk_scsi_task *task; in dev_stop_success()
300 struct spdk_scsi_task *task_mgmt; in dev_stop_success()
/spdk/lib/iscsi/
H A Dtask.h15 struct spdk_scsi_task scsi;
143 iscsi_task_from_scsi_task(struct spdk_scsi_task *task) in iscsi_task_from_scsi_task()
H A Dconn.h176 void iscsi_task_cpl(struct spdk_scsi_task *scsi_task);
177 void iscsi_task_mgmt_cpl(struct spdk_scsi_task *scsi_task);
H A Dtask.c14 iscsi_task_free(struct spdk_scsi_task *scsi_task) in iscsi_task_free()
H A Dconn.c1052 iscsi_task_mgmt_cpl(struct spdk_scsi_task *scsi_task) in process_completed_read_subtask_list_in_order()
1189 iscsi_task_cpl(struct spdk_scsi_task *scsi_task) in iscsi_task_cpl()
/spdk/module/vfu_device/
H A Dvfu_virtio_scsi.c50 struct spdk_scsi_task scsi;
251 virtio_scsi_task_cpl(struct spdk_scsi_task *scsi_task) in virtio_scsi_task_cpl()
268 virtio_scsi_task_mgmt_cpl(struct spdk_scsi_task *scsi_task) in virtio_scsi_task_mgmt_cpl()
277 virtio_scsi_task_free_cb(struct spdk_scsi_task *scsi_task) in virtio_scsi_task_free_cb()
407 memset(&scsi_req->scsi, 0, sizeof(struct spdk_scsi_task)); in virtio_scsi_tmf_cmd_req()
465 memset(&scsi_req->scsi, 0, sizeof(struct spdk_scsi_task)); in virtio_scsi_cmd_req()
/spdk/test/unit/lib/iscsi/conn.c/
H A Dconn_ut.c112 spdk_scsi_task_put(struct spdk_scsi_task *scsi_task) in spdk_scsi_task_put()
156 spdk_scsi_task_copy_status(struct spdk_scsi_task *dst, in spdk_scsi_task_copy_status()
157 struct spdk_scsi_task *src) in spdk_scsi_task_copy_status()
162 DEFINE_STUB_V(spdk_scsi_task_set_data, (struct spdk_scsi_task *task, void *data, uint32_t len));
164 DEFINE_STUB_V(spdk_scsi_task_process_null_lun, (struct spdk_scsi_task *task));
166 DEFINE_STUB_V(spdk_scsi_task_process_abort, (struct spdk_scsi_task *task));
/spdk/lib/vhost/
H A Dvhost_scsi.c93 struct spdk_scsi_task scsi;
163 vhost_scsi_task_free_cb(struct spdk_scsi_task *scsi_task) in vhost_scsi_task_free_cb()
340 vhost_scsi_task_mgmt_cpl(struct spdk_scsi_task *scsi_task) in vhost_scsi_task_mgmt_cpl()
348 vhost_scsi_task_cpl(struct spdk_scsi_task *scsi_task) in vhost_scsi_task_cpl()
/spdk/test/app/fuzz/iscsi_fuzz/
H A Discsi_fuzz.c167 iscsi_task_free(struct spdk_scsi_task *scsi_task) in iscsi_task_free()
/spdk/test/unit/lib/iscsi/iscsi.c/
H A Discsi_ut.c122 (struct spdk_scsi_lun *lun, struct spdk_scsi_task *task,
2183 struct spdk_scsi_task *scsi_task; in check_write_subtask_submit()