/haiku/src/add-ons/kernel/bus_managers/scsi/ |
H A D | scsi_internal.h | 156 scsi_ccb *queued_reqs; // queued requests, circularly doubly linked 166 scsi_ccb *auto_sense_request; // auto-sense request 167 scsi_ccb *auto_sense_originator; // request that auto-sense is 234 scsi_ccb *scsi_alloc_ccb(scsi_device_info *device); 235 void scsi_free_ccb(scsi_ccb *ccb); 264 void scsi_async_io(scsi_ccb *request); 265 void scsi_sync_io(scsi_ccb *request); 266 uchar scsi_term_io(scsi_ccb *ccb_to_terminate); 267 uchar scsi_abort(scsi_ccb *ccb_to_abort); 271 void scsi_done_io(scsi_ccb *ccb); [all …]
|
H A D | queuing.h | 19 void scsi_add_queued_request( scsi_ccb *request ); 20 void scsi_add_queued_request_first( scsi_ccb *request ); 21 void scsi_remove_queued_request( scsi_ccb *request ); 24 static inline void scsi_add_req_queue_first( scsi_ccb *request ) in scsi_add_req_queue_first() 30 ADD_CDL_LIST_HEAD( request, scsi_ccb, device->queued_reqs, ); in scsi_add_req_queue_first() 33 static inline void scsi_add_req_queue_last( scsi_ccb *request ) in scsi_add_req_queue_last() 39 ADD_CDL_LIST_TAIL( request, scsi_ccb, device->queued_reqs, ); in scsi_add_req_queue_last() 42 static inline void scsi_remove_req_queue( scsi_ccb *request ) in scsi_remove_req_queue()
|
H A D | ccb.cpp | 25 scsi_ccb * 30 scsi_ccb* ccb = (scsi_ccb*)object_cache_alloc(sCcbPool, 0); in scsi_alloc_ccb() 54 scsi_free_ccb(scsi_ccb *ccb) in scsi_free_ccb() 68 sCcbPool = create_object_cache("scsi ccb", sizeof(scsi_ccb), 0, NULL, NULL, NULL); in init_ccb_alloc()
|
H A D | emulation.cpp | 24 static void set_sense(scsi_ccb *request, int sense_key, int sense_asc); 25 static bool copy_sg_data(scsi_ccb *request, uint offset, uint allocation_length, 27 static void get_emulation_buffer(scsi_ccb *request); 28 static void replace_request_data(scsi_ccb *request); 29 static void release_emulation_buffer(scsi_ccb *request); 30 static void restore_request_data(scsi_ccb *request); 113 scsi_read_write_6(scsi_ccb *request) in scsi_read_write_6() 166 scsi_start_mode_sense_6(scsi_ccb *request) in scsi_start_mode_sense_6() 205 scsi_start_mode_select_6(scsi_ccb *request) in scsi_start_mode_select_6() 277 scsi_start_emulation(scsi_ccb *request) in scsi_start_emulation() [all …]
|
H A D | scsi_io.cpp | 22 scsi_requeue_request(scsi_ccb *request, bool bus_overflow) in scsi_requeue_request() 84 scsi_resubmit_request(scsi_ccb *request) in scsi_resubmit_request() 140 submit_autosense(scsi_ccb *request) in submit_autosense() 173 scsi_ccb *orig_request = device->auto_sense_originator; in finish_autosense() 174 scsi_ccb *request = device->auto_sense_request; in finish_autosense() 204 scsi_device_queue_overflow(scsi_ccb *request, uint num_requests) in scsi_device_queue_overflow() 238 scsi_request_finished(scsi_ccb *request, uint num_requests) in scsi_request_finished() 339 scsi_check_enqueue_request(scsi_ccb *request) in scsi_check_enqueue_request() 391 scsi_async_io(scsi_ccb *request) in scsi_async_io() 494 scsi_sync_io(scsi_ccb *request) in scsi_sync_io() [all …]
|
H A D | queuing.cpp | 54 scsi_ccb *new_request ) in scsi_insert_new_request() 56 scsi_ccb *first, *last, *before, *next; in scsi_insert_new_request() 172 void scsi_add_queued_request( scsi_ccb *request ) in scsi_add_queued_request() 203 void scsi_add_queued_request_first( scsi_ccb *request ) in scsi_add_queued_request_first() 222 void scsi_remove_queued_request( scsi_ccb *request ) in scsi_remove_queued_request()
|
H A D | scatter_gather.cpp | 24 fill_temp_sg(scsi_ccb *ccb) in fill_temp_sg() 100 create_temp_sg(scsi_ccb *ccb) in create_temp_sg() 136 cleanup_temp_sg(scsi_ccb *ccb) in cleanup_temp_sg()
|
H A D | dma_buffer.cpp | 37 is_sg_list_dma_safe(scsi_ccb *request) in is_sg_list_dma_safe() 105 scsi_copy_dma_buffer(scsi_ccb *request, uint32 size, bool to_buffer) in scsi_copy_dma_buffer() 332 scsi_dma_buffer_compose_sg_orig(dma_buffer *buffer, scsi_ccb *request) in scsi_dma_buffer_compose_sg_orig() 355 scsi_get_dma_buffer(scsi_ccb *request) in scsi_get_dma_buffer() 438 scsi_release_dma_buffer(scsi_ccb *request) in scsi_release_dma_buffer()
|
H A D | device_scan.cpp | 29 scsi_scan_send_tur(scsi_ccb *worker_req) in scsi_scan_send_tur() 66 scsi_scan_get_inquiry(scsi_ccb *worker_req, scsi_res_inquiry *new_inquiry_data) in scsi_scan_get_inquiry() 159 scsi_ccb *worker_req; in scsi_scan_lun()
|
/haiku/src/add-ons/kernel/busses/scsi/ahci/ |
H A D | ahci_port.h | 30 void ScsiExecuteRequest(scsi_ccb *request); 31 uchar ScsiAbortRequest(scsi_ccb *request); 32 uchar ScsiTerminateRequest(scsi_ccb *request); 37 void ScsiTestUnitReady(scsi_ccb *request); 38 void ScsiInquiry(scsi_ccb *request); 39 void ScsiVPDInquiry(scsi_ccb* request, ata_device_infoblock* ataData); 41 void ScsiReadCapacity(scsi_ccb *request); 42 void ScsiReadCapacity16(scsi_ccb *request); 43 void ScsiReadWrite(scsi_ccb *request, uint64 lba, size_t sectorCount, bool isWrite); 44 void ScsiSynchronizeCache(scsi_ccb *request); [all …]
|
H A D | sata_request.h | 16 sata_request(scsi_ccb* ccb); 32 scsi_ccb* CCB(); 43 scsi_ccb* fCcb; 53 inline scsi_ccb*
|
H A D | ahci_controller.h | 23 void ExecuteRequest(scsi_ccb *request); 24 uchar AbortRequest(scsi_ccb *request); 25 uchar TerminateRequest(scsi_ccb *request);
|
H A D | ahci_sim.cpp | 28 ahci_scsi_io(scsi_sim_cookie cookie, scsi_ccb *request) in ahci_scsi_io() 38 ahci_abort_io(scsi_sim_cookie cookie, scsi_ccb *request) in ahci_abort_io() 55 ahci_terminate_io(scsi_sim_cookie cookie, scsi_ccb *request) in ahci_terminate_io()
|
/haiku/headers/os/drivers/bus/ |
H A D | SCSI.h | 110 typedef struct scsi_ccb { struct 111 struct scsi_ccb *next, *prev; // internal argument 157 } scsi_ccb; argument 159 typedef struct scsi_ccb scsi_ccb; typedef 298 scsi_ccb *(*alloc_ccb)(scsi_device device); 299 void (*free_ccb)(scsi_ccb *ccb); 304 void (*async_io)(scsi_ccb *ccb); 307 void (*sync_io)(scsi_ccb *ccb); 310 uchar (*abort)(scsi_ccb *ccb_to_abort); 314 uchar (*term_io)(scsi_ccb *ccb_to_terminate); [all …]
|
/haiku/src/add-ons/kernel/generic/scsi_periph/ |
H A D | scsi_periph_int.h | 70 void periph_media_changed(scsi_periph_device_info *device, scsi_ccb *ccb); 73 err_res periph_send_start_stop(scsi_periph_device_info *device, scsi_ccb *request, 79 err_res periph_check_error(scsi_periph_device_info *device, scsi_ccb *request); 92 status_t periph_check_capacity(scsi_periph_device_info *device, scsi_ccb *ccb); 93 status_t periph_trim_device(scsi_periph_device_info *device, scsi_ccb *request, 109 status_t periph_read_write(scsi_periph_device_info *device, scsi_ccb *request, 117 status_t vpd_page_get(scsi_periph_device_info *device, scsi_ccb* request, 123 status_t periph_safe_exec(scsi_periph_device_info *device, scsi_ccb *request); 131 scsi_ccb *request);
|
H A D | removable.cpp | 18 periph_media_changed(scsi_periph_device_info *device, scsi_ccb *request) in periph_media_changed() 88 send_tur(scsi_periph_device_info *device, scsi_ccb *request) in send_tur() 115 wait_for_ready(scsi_periph_device_info *device, scsi_ccb *request) in wait_for_ready() 151 scsi_ccb *request; in periph_get_media_status() 201 periph_send_start_stop(scsi_periph_device_info *device, scsi_ccb *request, in periph_send_start_stop()
|
H A D | block.cpp | 107 read_capacity_10(scsi_periph_device_info* device, scsi_ccb* request, in read_capacity_10() 147 read_capacity_16(scsi_periph_device_info* device, scsi_ccb* request, in read_capacity_16() 199 get_unmap_commands(scsi_periph_device_info* device, scsi_ccb* request, in get_unmap_commands() 227 get_unmap_limits(scsi_periph_device_info* device, scsi_ccb* request, in get_unmap_limits() 334 periph_check_capacity(scsi_periph_device_info* device, scsi_ccb* request) in periph_check_capacity() 465 trim_unmap(scsi_periph_device_info* device, scsi_ccb* request, in trim_unmap() 619 trim_writesame16(scsi_periph_device_info* device, scsi_ccb* request, in trim_writesame16() 699 trim_writesame10(scsi_periph_device_info* device, scsi_ccb* request, in trim_writesame10() 778 periph_trim_device(scsi_periph_device_info* device, scsi_ccb* request, in periph_trim_device()
|
H A D | error_handling.cpp | 16 err_res check_sense(scsi_periph_device_info *device, scsi_ccb *request) in check_sense() 209 check_scsi_status(scsi_periph_device_info *device, scsi_ccb *request) in check_scsi_status() 243 periph_check_error(scsi_periph_device_info *device, scsi_ccb *request) in periph_check_error()
|
/haiku/headers/private/drivers/ |
H A D | scsi_periph.h | 72 void (*media_changed)(periph_device_cookie cookie, scsi_ccb *request); 95 status_t (*safe_exec)(scsi_periph_device periphCookie, scsi_ccb *request); 110 status_t (*read_write)(scsi_periph_device_info *device, scsi_ccb *request, 121 status_t (*check_capacity)(scsi_periph_device device, scsi_ccb *request); 124 err_res (*synchronize_cache)(scsi_periph_device device, scsi_ccb *request); 126 status_t (*trim_device)(scsi_periph_device_info *device, scsi_ccb *request, 133 err_res (*check_error)(scsi_periph_device device, scsi_ccb *request); 137 err_res (*send_start_stop)(scsi_periph_device device, scsi_ccb *request,
|
/haiku/src/add-ons/kernel/busses/scsi/virtio/ |
H A D | VirtioSCSIPrivate.h | 30 bool copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, 58 status_t ExecuteRequest(scsi_ccb* request); 59 uchar AbortRequest(scsi_ccb* request); 60 uchar TerminateRequest(scsi_ccb* request); 129 status_t Start(scsi_ccb *ccb); 130 scsi_ccb* CCB() { return fCCB; } in CCB() 149 scsi_ccb* fCCB;
|
H A D | VirtioSCSIRequest.cpp | 76 VirtioSCSIRequest::Start(scsi_ccb *ccb) in Start() 129 scsi_ccb *ccb = fCCB; in Finish() 146 scsi_ccb *ccb = fCCB; in Abort()
|
/haiku/src/tests/add-ons/kernel/busses/scsi/example/ |
H A D | example_scsi.c | 103 example_scsi_io(scsi_sim_cookie cookie, scsi_ccb *ccb) in example_scsi_io() 110 example_abort(scsi_sim_cookie cookie, scsi_ccb *ccbToAbort) in example_abort() 126 example_term_io(scsi_sim_cookie cookie, scsi_ccb *ccbToTerminate) in example_term_io()
|
/haiku/src/add-ons/kernel/bus_managers/ata/ |
H A D | ATAPrivate.h | 58 bool copy_sg_data(scsi_ccb *ccb, uint offset, uint allocationLength, 79 status_t ExecuteIO(scsi_ccb *ccb); 297 status_t Start(scsi_ccb *ccb); 298 scsi_ccb * CCB() { return fCCB; } in CCB() 333 scsi_ccb * fCCB;
|
H A D | ATAModule.cpp | 65 ata_sim_scsi_io(scsi_sim_cookie cookie, scsi_ccb *ccb) in ata_sim_scsi_io() 80 ata_sim_abort(scsi_sim_cookie cookie, scsi_ccb *ccb) in ata_sim_abort() 104 ata_sim_term_io(scsi_sim_cookie cookie, scsi_ccb *ccb) in ata_sim_term_io()
|
/haiku/src/add-ons/kernel/drivers/disk/scsi/scsi_disk/ |
H A D | scsi_disk.cpp | 79 scsi_ccb *ccb = device->scsi->alloc_ccb(device->scsi_device); in update_capacity() 131 scsi_ccb *ccb = device->scsi->alloc_ccb(device->scsi_device); in load_eject() 149 scsi_ccb *ccb = device->scsi->alloc_ccb(device->scsi_device); in synchronize_cache() 169 scsi_ccb* request = device->scsi->alloc_ccb(device->scsi_device); in trim_device() 247 scsi_ccb *request = info->scsi->alloc_ccb(info->scsi_device); in das_init_device() 448 das_media_changed(das_driver_info *device, scsi_ccb *request) in das_media_changed() 458 (void (*)(periph_device_cookie, scsi_ccb *))das_media_changed
|