Home
last modified time | relevance | path

Searched refs:sdb (Results 1 – 15 of 15) sorted by relevance

/drivers/scsi/
Dscsi_lib.c619 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 …]
Dscsi_error.c705 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()
Dlibsrp.c433 sc->sdb.length = len; in srp_cmd_queue()
434 sc->sdb.table.sgl = (void *) (unsigned long) addr; in srp_cmd_queue()
Discsi_tcp.c507 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()
Dvirtio_scsi.c193 struct scsi_data_buffer *sdb) in virtscsi_map_sgl() argument
195 struct sg_table *table = &sdb->table; in virtscsi_map_sgl()
Dlibiscsi_tcp.c684 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()
Dscsi_debug.c432 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()
Dsr.c453 SCpnt->sdb.length = size; in sr_prep_fn()
480 SCpnt->sdb.length = this_count * s_size; in sr_prep_fn()
Dscsi_tgt_lib.c390 cmd->sdb.length = blk_rq_bytes(rq); in scsi_map_user_pages()
Dsd.c939 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_prep_fn()
/drivers/usb/storage/
Duas.c241 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()
Disd200.c470 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/
Dtcm_loop.c197 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/
Dlibcxgbi.c1929 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/
Dpinctrl-tegra20.c2764 …MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, …