Home
last modified time | relevance | path

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

/drivers/hwtracing/coresight/
A Dultrasoc-smb.c33 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_update_data_size() local
41 sdb->data_size = sdb->buf_size; in smb_update_data_size()
57 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_update_read_ptr() local
60 sdb->buf_rdptr %= sdb->buf_size; in smb_update_read_ptr()
61 writel(sdb->buf_hw_base + sdb->buf_rdptr, in smb_update_read_ptr()
69 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_reset_buffer() local
93 sdb->buf_rdptr = write_ptr - sdb->buf_hw_base; in smb_reset_buffer()
120 struct smb_data_buffer *sdb = &drvdata->sdb; in smb_read() local
133 if (sdb->buf_rdptr + to_copy > sdb->buf_size) in smb_read()
134 to_copy = sdb->buf_size - sdb->buf_rdptr; in smb_read()
[all …]
A Dultrasoc-smb.h116 struct smb_data_buffer sdb; member
/drivers/scsi/
A Dscsi_error.c1073 ses->sdb = scmd->sdb; in scsi_eh_prep_cmnd()
1084 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_eh_prep_cmnd()
1089 scmd->sdb.length = min_t(unsigned, SCSI_SENSE_BUFFERSIZE, in scsi_eh_prep_cmnd()
1092 scmd->sdb.length); in scsi_eh_prep_cmnd()
1093 scmd->sdb.table.sgl = &ses->sense_sgl; in scsi_eh_prep_cmnd()
1095 scmd->sdb.table.nents = scmd->sdb.table.orig_nents = 1; in scsi_eh_prep_cmnd()
1097 scmd->cmnd[4] = scmd->sdb.length; in scsi_eh_prep_cmnd()
1137 scmd->sdb = ses->sdb; in scsi_eh_restore_cmnd()
2489 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); in scsi_ioctl_reset()
A Dlibiscsi_tcp.c481 unsigned total_in_length = task->sc->sdb.length; in iscsi_tcp_data_in()
601 if (data_offset + data_length > task->sc->sdb.length) { in iscsi_tcp_r2t_rsp()
605 data_offset, task->sc->sdb.length); in iscsi_tcp_r2t_rsp()
723 struct scsi_data_buffer *sdb = &task->sc->sdb; in iscsi_tcp_hdr_dissect() local
743 sdb->table.sgl, in iscsi_tcp_hdr_dissect()
744 sdb->table.nents, in iscsi_tcp_hdr_dissect()
A Dscsi_lib.c585 if (cmd->sdb.table.nents) in scsi_free_sgtables()
586 sg_free_table_chained(&cmd->sdb.table, in scsi_free_sgtables()
1143 if (unlikely(sg_alloc_table_chained(&cmd->sdb.table, nr_segs, in scsi_alloc_sgtables()
1144 cmd->sdb.table.sgl, SCSI_INLINE_SG_CNT))) in scsi_alloc_sgtables()
1151 count = __blk_rq_map_sg(rq, cmd->sdb.table.sgl, &last_sg); in scsi_alloc_sgtables()
1171 BUG_ON(count > cmd->sdb.table.nents); in scsi_alloc_sgtables()
1172 cmd->sdb.table.nents = count; in scsi_alloc_sgtables()
1173 cmd->sdb.length = blk_rq_payload_bytes(rq); in scsi_alloc_sgtables()
1298 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_setup_scsi_cmnd()
1665 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in scsi_prepare_cmd()
[all …]
A Discsi_tcp.c552 struct scsi_data_buffer *sdb = &task->sc->sdb; in iscsi_sw_tcp_pdu_init() local
554 err = iscsi_sw_tcp_send_data_prep(conn, sdb->table.sgl, in iscsi_sw_tcp_pdu_init()
555 sdb->table.nents, offset, in iscsi_sw_tcp_pdu_init()
A Dscsi_debug.c1637 struct scsi_data_buffer *sdb = &scp->sdb; in fill_from_dev_buffer() local
1644 act_len = sg_copy_from_buffer(sdb->table.sgl, sdb->table.nents, in fill_from_dev_buffer()
1660 struct scsi_data_buffer *sdb = &scp->sdb; in p_fill_from_dev_buffer() local
4246 struct scsi_data_buffer *sdb = &scp->sdb; in do_device_access() local
4281 ret = sg_copy_buffer(sdb->table.sgl, sdb->table.nents, in do_device_access()
4300 struct scsi_data_buffer *sdb = &scp->sdb; in do_dout_fetch() local
4472 struct scsi_data_buffer *sdb = &scp->sdb; in resp_read_tape() local
4523 sg_zero_buffer(sdb->table.sgl, sdb->table.nents, in resp_read_tape()
4525 sg_copy_buffer(sdb->table.sgl, sdb->table.nents, in resp_read_tape()
4871 struct scsi_data_buffer *sdb = &scp->sdb; in resp_write_tape() local
[all …]
A Dsr.c423 SCpnt->sdb.length = size; in sr_init_command()
450 SCpnt->sdb.length = this_count * s_size; in sr_init_command()
A Dvirtio_scsi.c441 out = &sc->sdb.table; in __virtscsi_add_cmd()
443 in = &sc->sdb.table; in __virtscsi_add_cmd()
A Dsd.c1157 memset(&cmd->sdb, 0, sizeof(cmd->sdb)); in sd_setup_flush_cmnd()
1412 cmd->sdb.length = nr_blocks * sdp->sector_size; in sd_setup_read_write_cmnd()
A Dlibiscsi.c983 res_count <= sc->sdb.length)) in iscsi_data_in_rsp()
/drivers/usb/storage/
A Duas.c398 struct scsi_data_buffer *sdb = &cmnd->sdb; in uas_data_cmplt() local
425 scsi_set_resid(cmnd, sdb->length); in uas_data_cmplt()
428 scsi_set_resid(cmnd, sdb->length - urb->actual_length); in uas_data_cmplt()
451 struct scsi_data_buffer *sdb = &cmnd->sdb; in uas_alloc_data_urb() local
457 usb_fill_bulk_urb(urb, udev, pipe, NULL, sdb->length, in uas_alloc_data_urb()
461 urb->num_sgs = udev->bus->sg_tablesize ? sdb->table.nents : 0; in uas_alloc_data_urb()
462 urb->sg = sdb->table.sgl; in uas_alloc_data_urb()
A Disd200.c458 srb->sdb.table.sgl = buff ? &info->sg : NULL; in isd200_set_srb()
459 srb->sdb.length = bufflen; in isd200_set_srb()
460 srb->sdb.table.nents = buff ? 1 : 0; in isd200_set_srb()
465 srb->sdb.length = bufflen; in isd200_srb_set_bufflen()
/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c879 ret = hns_roce_db_map_user(uctx, ucmd->sdb_addr, &hr_qp->sdb); in alloc_user_qp_db()
904 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in alloc_user_qp_db()
988 hns_roce_db_unmap_user(uctx, &hr_qp->sdb); in free_qp_db()
1437 hr_qp->sq.head = *(int *)(hr_qp->sdb.virt_addr); in hns_roce_modify_qp()
A Dhns_roce_device.h602 struct hns_roce_db sdb; member
/drivers/infiniband/hw/erdma/
A Derdma_verbs.h46 u64 sdb; member
A Derdma_verbs.c1432 ctx->sdb = dev->func_bar_addr + ERDMA_BAR_SQDB_SPACE_OFFSET; in alloc_db_resources()
1455 ctx->sdb = dev->func_bar_addr + (ctx->ext_db.sdb_off << PAGE_SHIFT); in alloc_db_resources()
1522 ctx, (void *)ctx->sdb, PAGE_SIZE, ERDMA_MMAP_IO_NC, &uresp.sdb); in erdma_alloc_ucontext()
/drivers/scsi/cxgbi/
A Dlibcxgbi.c1146 struct scsi_data_buffer *sdb = prot ? scsi_prot(sc) : &sc->sdb; in scmd_get_params() local
1148 *sgl = sdb->table.sgl; in scmd_get_params()
1149 *sgcnt = sdb->table.nents; in scmd_get_params()
1150 *dlen = sdb->length; in scmd_get_params()
/drivers/pinctrl/tegra/
A Dpinctrl-tegra20.c2128 MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, 0x20, 15, 0x8c, 10, -1, -1),
/drivers/ufs/core/
A Dufshcd.c2296 (!m->chunk_size || m->chunk_size == lrbp->cmd->sdb.length) && in ufshcd_should_inform_monitor()
2793 ucd_req_ptr->sc.exp_data_transfer_len = cpu_to_be32(cmd->sdb.length); in ufshcd_prepare_utp_scsi_cmd_upiu()

Completed in 122 milliseconds