Home
last modified time | relevance | path

Searched refs:scsi_ctx (Results 1 – 3 of 3) sorted by relevance

/Zephyr-Core-3.5.0/subsys/usb/device_next/class/
Dusbd_msc_scsi.h64 struct scsi_ctx { struct
69 size_t (*read_cb)(struct scsi_ctx *ctx, argument
71 size_t (*write_cb)(struct scsi_ctx *ctx, const uint8_t *buf, size_t length); argument
85 void scsi_init(struct scsi_ctx *ctx, const char *disk, const char *vendor, argument
87 void scsi_reset(struct scsi_ctx *ctx);
89 size_t scsi_cmd(struct scsi_ctx *ctx, const uint8_t *cb, int len,
92 bool scsi_cmd_is_data_read(struct scsi_ctx *ctx);
93 bool scsi_cmd_is_data_write(struct scsi_ctx *ctx);
94 size_t scsi_cmd_remaining_data_len(struct scsi_ctx *ctx);
95 size_t scsi_read_data(struct scsi_ctx *ctx,
[all …]
Dusbd_msc_scsi.c45 static int scsi_##opcode(struct scsi_ctx *ctx, \
328 static int update_disk_info(struct scsi_ctx *const ctx) in update_disk_info()
349 static size_t good(struct scsi_ctx *ctx, size_t data_in_bytes) in good()
358 static size_t illegal_request(struct scsi_ctx *ctx, enum scsi_additional_sense_code asc) in illegal_request()
367 static size_t not_ready(struct scsi_ctx *ctx, enum scsi_additional_sense_code asc) in not_ready()
376 static size_t medium_error(struct scsi_ctx *ctx, enum scsi_additional_sense_code asc) in medium_error()
385 void scsi_init(struct scsi_ctx *ctx, const char *disk, const char *vendor, in scsi_init()
388 memset(ctx, 0, sizeof(struct scsi_ctx)); in scsi_init()
397 void scsi_reset(struct scsi_ctx *ctx) in scsi_reset()
452 static int fill_inquiry(struct scsi_ctx *ctx, in fill_inquiry()
[all …]
Dusbd_msc.c124 struct scsi_ctx luns[CONFIG_USBD_MSC_LUNS_PER_INSTANCE];
245 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_process_read()
304 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_process_cbw()
388 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_process_write()
504 struct scsi_ctx *lun = &ctx->luns[ctx->cbw.bCBWLUN]; in msc_handle_bulk_in()