Home
last modified time | relevance | path

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

/drivers/usb/storage/
Dcypress_atacb.c137 srb->sdb.length = sizeof(regs); in cypress_atacb_passthrough()
138 sg_init_one(&ses.sense_sgl, regs, srb->sdb.length); in cypress_atacb_passthrough()
139 srb->sdb.table.sgl = &ses.sense_sgl; in cypress_atacb_passthrough()
141 srb->sdb.table.nents = 1; in cypress_atacb_passthrough()
Disd200.c422 srb->sdb.table.sgl = buff ? &info->sg : NULL; in isd200_set_srb()
423 srb->sdb.length = bufflen; in isd200_set_srb()
424 srb->sdb.table.nents = buff ? 1 : 0; in isd200_set_srb()
429 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
/drivers/scsi/
Dscsi_error.c595 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
604 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_eh_prep_cmnd()
608 scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, in scsi_eh_prep_cmnd()
611 scmd->sdb.length); in scsi_eh_prep_cmnd()
612 scmd->sdb.table.sgl = &ses->sense_sgl; in scsi_eh_prep_cmnd()
614 scmd->sdb.table.nents = 1; in scsi_eh_prep_cmnd()
616 scmd->cmnd[4] = scmd->sdb.length; in scsi_eh_prep_cmnd()
656 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd()
1787 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_reset_provider()
Dscsi_lib.c801 static int scsi_alloc_sgtable(struct scsi_data_buffer *sdb, int nents, in scsi_alloc_sgtable() argument
808 ret = __sg_alloc_table(&sdb->table, nents, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable()
811 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, in scsi_alloc_sgtable()
817 static void scsi_free_sgtable(struct scsi_data_buffer *sdb) in scsi_free_sgtable() argument
819 __sg_free_table(&sdb->table, SCSI_MAX_SG_SEGMENTS, scsi_sg_free); in scsi_free_sgtable()
825 if (cmd->sdb.table.nents) in __scsi_release_buffers()
826 scsi_free_sgtable(&cmd->sdb); in __scsi_release_buffers()
828 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in __scsi_release_buffers()
1121 static int scsi_init_sgtable(struct request *req, struct scsi_data_buffer *sdb, in scsi_init_sgtable() argument
1129 if (unlikely(scsi_alloc_sgtable(sdb, req->nr_phys_segments, in scsi_init_sgtable()
[all …]
Dscsi_debug.c347 struct scsi_data_buffer *sdb = scsi_in(scp); in fill_from_dev_buffer() local
349 if (!sdb->length) in fill_from_dev_buffer()
354 act_len = sg_copy_from_buffer(sdb->table.sgl, sdb->table.nents, in fill_from_dev_buffer()
356 if (sdb->resid) in fill_from_dev_buffer()
357 sdb->resid -= act_len; in fill_from_dev_buffer()
359 sdb->resid = scsi_bufflen(scp) - act_len; in fill_from_dev_buffer()
1658 struct scsi_data_buffer *sdb = scsi_in(scp); in resp_xdwriteread() local
1668 for_each_sg(sdb->table.sgl, sg, sdb->table.nents, i) { in resp_xdwriteread()
Dlibsrp.c429 sc->sdb.length = len; in srp_cmd_queue()
430 sc->sdb.table.sgl = (void *) (unsigned long) addr; in srp_cmd_queue()
Discsi_tcp.c447 struct scsi_data_buffer *sdb = scsi_out(task->sc); in iscsi_sw_tcp_pdu_init() local
449 err = iscsi_sw_tcp_send_data_prep(conn, sdb->table.sgl, in iscsi_sw_tcp_pdu_init()
450 sdb->table.nents, offset, in iscsi_sw_tcp_pdu_init()
Dlibiscsi_tcp.c663 struct scsi_data_buffer *sdb = scsi_in(task->sc); in iscsi_tcp_hdr_dissect() local
682 sdb->table.sgl, in iscsi_tcp_hdr_dissect()
683 sdb->table.nents, in iscsi_tcp_hdr_dissect()
Dsr.c418 SCpnt->sdb.length = size; in sr_prep_fn()
445 SCpnt->sdb.length = this_count * s_size; in sr_prep_fn()
Dscsi_tgt_lib.c390 cmd->sdb.length = rq->data_len; in scsi_map_user_pages()
Dsd.c576 SCpnt->sdb.length = this_count * sdp->sector_size; in sd_prep_fn()
/drivers/scsi/cxgb3i/
Dcxgb3i_pdu.c291 struct scsi_data_buffer *sdb = scsi_out(task->sc); in cxgb3i_conn_init_pdu() local
297 err = sgl_seek_offset(sdb->table.sgl, sdb->table.nents, in cxgb3i_conn_init_pdu()
301 sdb->table.nents, tdata->offset, in cxgb3i_conn_init_pdu()
302 sdb->length); in cxgb3i_conn_init_pdu()
309 sdb->table.nents, tdata->offset, in cxgb3i_conn_init_pdu()