/drivers/scsi/ |
D | scsi_lib.c | 619 static int scsi_alloc_sgtable(struct scsi_data_buffer *sdb, int nents, in scsi_alloc_sgtable() argument 626 ret = __sg_alloc_table(&sdb->table, nents, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable() 629 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable() 635 static void scsi_free_sgtable(struct scsi_data_buffer *sdb) in scsi_free_sgtable() argument 637 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, scsi_sg_free); in scsi_free_sgtable() 643 if (cmd->sdb.table.nents) in __scsi_release_buffers() 644 scsi_free_sgtable(&cmd->sdb); in __scsi_release_buffers() 646 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in __scsi_release_buffers() 980 static int scsi_init_sgtable(struct request *req, struct scsi_data_buffer *sdb, in scsi_init_sgtable() argument 988 if (unlikely(scsi_alloc_sgtable(sdb, req->nr_phys_segments, in scsi_init_sgtable() [all …]
|
D | scsi_error.c | 705 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 714 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_eh_prep_cmnd() 718 scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, in scsi_eh_prep_cmnd() 721 scmd->sdb.length); in scsi_eh_prep_cmnd() 722 scmd->sdb.table.sgl = &ses->sense_sgl; in scsi_eh_prep_cmnd() 724 scmd->sdb.table.nents = 1; in scsi_eh_prep_cmnd() 726 scmd->cmnd[4] = scmd->sdb.length; in scsi_eh_prep_cmnd() 766 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd() 1989 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_reset_provider()
|
D | libsrp.c | 433 sc->sdb.length = len; in srp_cmd_queue() 434 sc->sdb.table.sgl = (void *) (unsigned long) addr; in srp_cmd_queue()
|
D | iscsi_tcp.c | 507 struct scsi_data_buffer *sdb = scsi_out(task->sc); in iscsi_sw_tcp_pdu_init() local 509 err = iscsi_sw_tcp_send_data_prep(conn, sdb->table.sgl, in iscsi_sw_tcp_pdu_init() 510 sdb->table.nents, offset, in iscsi_sw_tcp_pdu_init()
|
D | virtio_scsi.c | 193 struct scsi_data_buffer *sdb) in virtscsi_map_sgl() argument 195 struct sg_table *table = &sdb->table; in virtscsi_map_sgl()
|
D | libiscsi_tcp.c | 684 struct scsi_data_buffer *sdb = scsi_in(task->sc); in iscsi_tcp_hdr_dissect() local 704 sdb->table.sgl, in iscsi_tcp_hdr_dissect() 705 sdb->table.nents, in iscsi_tcp_hdr_dissect()
|
D | scsi_debug.c | 432 struct scsi_data_buffer *sdb = scsi_in(scp); in fill_from_dev_buffer() local 434 if (!sdb->length) in fill_from_dev_buffer() 439 act_len = sg_copy_from_buffer(sdb->table.sgl, sdb->table.nents, in fill_from_dev_buffer() 441 if (sdb->resid) in fill_from_dev_buffer() 442 sdb->resid -= act_len; in fill_from_dev_buffer() 444 sdb->resid = scsi_bufflen(scp) - act_len; in fill_from_dev_buffer() 2307 struct scsi_data_buffer *sdb = scsi_in(scp); in resp_xdwriteread() local 2317 for_each_sg(sdb->table.sgl, sg, sdb->table.nents, i) { in resp_xdwriteread()
|
D | sr.c | 453 SCpnt->sdb.length = size; in sr_prep_fn() 480 SCpnt->sdb.length = this_count * s_size; in sr_prep_fn()
|
D | scsi_tgt_lib.c | 390 cmd->sdb.length = blk_rq_bytes(rq); in scsi_map_user_pages()
|
D | sd.c | 939 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_prep_fn()
|
/drivers/usb/storage/ |
D | uas.c | 241 struct scsi_data_buffer *sdb = urb->context; in uas_data_cmplt() local 242 sdb->resid = sdb->length - urb->actual_length; in uas_data_cmplt() 248 struct scsi_data_buffer *sdb, in uas_alloc_data_urb() argument 256 usb_fill_bulk_urb(urb, udev, pipe, NULL, sdb->length, uas_data_cmplt, in uas_alloc_data_urb() 257 sdb); in uas_alloc_data_urb() 260 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; in uas_alloc_data_urb() 261 urb->sg = sdb->table.sgl; in uas_alloc_data_urb()
|
D | isd200.c | 470 srb->sdb.table.sgl = buff ? &info->sg : NULL; in isd200_set_srb() 471 srb->sdb.length = bufflen; in isd200_set_srb() 472 srb->sdb.table.nents = buff ? 1 : 0; in isd200_set_srb() 477 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
|
/drivers/target/loopback/ |
D | tcm_loop.c | 197 struct scsi_data_buffer *sdb = scsi_in(sc); in tcm_loop_submission_work() local 199 sgl_bidi = sdb->table.sgl; in tcm_loop_submission_work() 200 sgl_bidi_count = sdb->table.nents; in tcm_loop_submission_work()
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 1929 struct scsi_data_buffer *sdb = scsi_out(task->sc); in cxgbi_conn_init_pdu() local 1936 sdb->table.sgl, sdb->table.nents, in cxgbi_conn_init_pdu() 1940 sdb->table.nents, tdata->offset, sdb->length); in cxgbi_conn_init_pdu() 1947 sdb->table.nents, tdata->offset, tdata->count); in cxgbi_conn_init_pdu()
|
/drivers/pinctrl/ |
D | pinctrl-tegra20.c | 2764 …MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, …
|