| /drivers/hwtracing/coresight/ |
| A D | ultrasoc-smb.c | 33 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 D | ultrasoc-smb.h | 116 struct smb_data_buffer sdb; member
|
| /drivers/scsi/ |
| A D | scsi_error.c | 1073 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 D | libiscsi_tcp.c | 481 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 D | scsi_lib.c | 585 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 D | iscsi_tcp.c | 552 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 D | scsi_debug.c | 1637 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 D | sr.c | 423 SCpnt->sdb.length = size; in sr_init_command() 450 SCpnt->sdb.length = this_count * s_size; in sr_init_command()
|
| A D | virtio_scsi.c | 441 out = &sc->sdb.table; in __virtscsi_add_cmd() 443 in = &sc->sdb.table; in __virtscsi_add_cmd()
|
| A D | sd.c | 1157 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 D | libiscsi.c | 983 res_count <= sc->sdb.length)) in iscsi_data_in_rsp()
|
| /drivers/usb/storage/ |
| A D | uas.c | 398 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 D | isd200.c | 458 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 D | hns_roce_qp.c | 879 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 D | hns_roce_device.h | 602 struct hns_roce_db sdb; member
|
| /drivers/infiniband/hw/erdma/ |
| A D | erdma_verbs.h | 46 u64 sdb; member
|
| A D | erdma_verbs.c | 1432 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 D | libcxgbi.c | 1146 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 D | pinctrl-tegra20.c | 2128 MUX_PG(sdb, UARTA, PWM, SDIO3, SPI2, 0x20, 15, 0x8c, 10, -1, -1),
|
| /drivers/ufs/core/ |
| A D | ufshcd.c | 2296 (!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()
|