Home
last modified time | relevance | path

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

/drivers/scsi/
Dscsi_lib.c639 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 …]
Dscsi_error.c706 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()
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.c514 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()
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.c433 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()
Dsr.c472 SCpnt->sdb.length = size; in sr_prep_fn()
499 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.c1087 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_prep_fn()
/drivers/usb/storage/
Duas.c375 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()
Disd200.c467 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/
Dntb_hw.c416 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()
Dntb_hw.h108 void __iomem *sdb; member
/drivers/target/loopback/
Dtcm_loop.c190 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/
Dlibcxgbi.c1933 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/
Dufshcd.c481 cpu_to_be32(lrbp->cmd->sdb.length); in ufshcd_compose_upiu()
/drivers/pinctrl/
Dpinctrl-tegra20.c2772 …MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, PWM, 0x20, 15, 0x8c, 10, -1, …