/drivers/scsi/ |
D | scsi_lib.c | 639 static int scsi_alloc_sgtable(struct scsi_data_buffer *sdb, int nents, in scsi_alloc_sgtable() argument 646 ret = __sg_alloc_table(&sdb->table, nents, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable() 649 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable() 655 static void scsi_free_sgtable(struct scsi_data_buffer *sdb) in scsi_free_sgtable() argument 657 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, scsi_sg_free); in scsi_free_sgtable() 663 if (cmd->sdb.table.nents) in __scsi_release_buffers() 664 scsi_free_sgtable(&cmd->sdb); in __scsi_release_buffers() 666 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in __scsi_release_buffers() 1012 static int scsi_init_sgtable(struct request *req, struct scsi_data_buffer *sdb, in scsi_init_sgtable() argument 1020 if (unlikely(scsi_alloc_sgtable(sdb, req->nr_phys_segments, in scsi_init_sgtable() [all …]
|
D | scsi_error.c | 706 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd() 715 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_eh_prep_cmnd() 719 scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, in scsi_eh_prep_cmnd() 722 scmd->sdb.length); in scsi_eh_prep_cmnd() 723 scmd->sdb.table.sgl = &ses->sense_sgl; in scsi_eh_prep_cmnd() 725 scmd->sdb.table.nents = 1; in scsi_eh_prep_cmnd() 727 scmd->cmnd[4] = scmd->sdb.length; in scsi_eh_prep_cmnd() 767 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd() 2006 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 | 514 struct scsi_data_buffer *sdb = scsi_out(task->sc); in iscsi_sw_tcp_pdu_init() local 516 err = iscsi_sw_tcp_send_data_prep(conn, sdb->table.sgl, in iscsi_sw_tcp_pdu_init() 517 sdb->table.nents, offset, in iscsi_sw_tcp_pdu_init()
|
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 | 433 struct scsi_data_buffer *sdb = scsi_in(scp); in fill_from_dev_buffer() local 435 if (!sdb->length) in fill_from_dev_buffer() 440 act_len = sg_copy_from_buffer(sdb->table.sgl, sdb->table.nents, in fill_from_dev_buffer() 442 if (sdb->resid) in fill_from_dev_buffer() 443 sdb->resid -= act_len; in fill_from_dev_buffer() 445 sdb->resid = scsi_bufflen(scp) - act_len; in fill_from_dev_buffer() 2313 struct scsi_data_buffer *sdb = scsi_in(scp); in resp_xdwriteread() local 2323 for_each_sg(sdb->table.sgl, sg, sdb->table.nents, i) { in resp_xdwriteread()
|
D | sr.c | 472 SCpnt->sdb.length = size; in sr_prep_fn() 499 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 | 1087 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_prep_fn()
|
/drivers/usb/storage/ |
D | uas.c | 375 struct scsi_data_buffer *sdb = NULL; in uas_data_cmplt() local 380 sdb = scsi_in(cmnd); in uas_data_cmplt() 383 sdb = scsi_out(cmnd); in uas_data_cmplt() 386 BUG_ON(sdb == NULL); in uas_data_cmplt() 389 sdb->resid = sdb->length; in uas_data_cmplt() 391 sdb->resid = sdb->length - urb->actual_length; in uas_data_cmplt() 404 struct scsi_data_buffer *sdb = (dir == DMA_FROM_DEVICE) in uas_alloc_data_urb() local 409 usb_fill_bulk_urb(urb, udev, pipe, NULL, sdb->length, in uas_alloc_data_urb() 413 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; in uas_alloc_data_urb() 414 urb->sg = sdb->table.sgl; in uas_alloc_data_urb()
|
D | isd200.c | 467 srb->sdb.table.sgl = buff ? &info->sg : NULL; in isd200_set_srb() 468 srb->sdb.length = bufflen; in isd200_set_srb() 469 srb->sdb.table.nents = buff ? 1 : 0; in isd200_set_srb() 474 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
|
/drivers/ntb/ |
D | ntb_hw.c | 416 writeq((u64) 1 << db, ndev->reg_ofs.sdb); in ntb_ring_sdb() 419 (db * ndev->bits_per_vector), ndev->reg_ofs.sdb); in ntb_ring_sdb() 548 ndev->reg_ofs.sdb = ndev->reg_base + SNB_B2B_DOORBELL_OFFSET; in ntb_xeon_setup() 552 ndev->reg_ofs.sdb = ndev->reg_base + SNB_SDOORBELL_OFFSET; in ntb_xeon_setup() 606 ndev->reg_ofs.sdb = ndev->reg_base + BWD_B2B_DOORBELL_OFFSET; in ntb_bwd_setup() 610 ndev->reg_ofs.sdb = ndev->reg_base + BWD_PDOORBELL_OFFSET; in ntb_bwd_setup() 739 pdb, readw(ndev->reg_ofs.sdb)); in ntb_interrupt()
|
D | ntb_hw.h | 108 void __iomem *sdb; member
|
/drivers/target/loopback/ |
D | tcm_loop.c | 190 struct scsi_data_buffer *sdb = scsi_in(sc); in tcm_loop_submission_work() local 192 sgl_bidi = sdb->table.sgl; in tcm_loop_submission_work() 193 sgl_bidi_count = sdb->table.nents; in tcm_loop_submission_work()
|
/drivers/scsi/cxgbi/ |
D | libcxgbi.c | 1933 struct scsi_data_buffer *sdb = scsi_out(task->sc); in cxgbi_conn_init_pdu() local 1940 sdb->table.sgl, sdb->table.nents, in cxgbi_conn_init_pdu() 1944 sdb->table.nents, tdata->offset, sdb->length); in cxgbi_conn_init_pdu() 1951 sdb->table.nents, tdata->offset, tdata->count); in cxgbi_conn_init_pdu()
|
/drivers/scsi/ufs/ |
D | ufshcd.c | 481 cpu_to_be32(lrbp->cmd->sdb.length); in ufshcd_compose_upiu()
|
/drivers/pinctrl/ |
D | pinctrl-tegra20.c | 2772 …MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, …
|