Home
last modified time | relevance | path

Searched refs:resid (Results 1 – 25 of 65) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_resp.c396 u32 resid; in check_rkey() local
406 qp->resp.resid = reth_len(pkt); in check_rkey()
414 qp->resp.resid = sizeof(u64); in check_rkey()
429 resid = qp->resp.resid; in check_rkey()
443 if (mem_check_range(mem, va, resid)) { in check_rkey()
449 if (resid > mtu) { in check_rkey()
455 if (pktlen != resid) { in check_rkey()
459 if ((bth_pad(pkt) != (0x3 & (-resid)))) { in check_rkey()
509 qp->resp.resid -= data_len; in write_data_in()
670 res->read.resid = qp->resp.resid; in read_reply()
[all …]
Drxe_mr.c414 int resid = dma->resid; in copy_data() local
422 if (length > resid) { in copy_data()
475 resid -= bytes; in copy_data()
482 dma->resid = resid; in copy_data()
500 int resid = dma->resid; in advance_dma_data() local
519 resid -= bytes; in advance_dma_data()
524 dma->resid = resid; in advance_dma_data()
Drxe_req.c24 int to_send = (wqe->dma.resid > qp->mtu) ? in retry_first_write_send()
25 qp->mtu : wqe->dma.resid; in retry_first_write_send()
31 wqe->dma.resid -= to_send; in retry_first_write_send()
72 wqe->dma.resid = wqe->dma.length; in req_retry()
87 npsn = (wqe->dma.length - wqe->dma.resid) / in req_retry()
293 int fits = (wqe->dma.resid <= qp->mtu); in next_opcode()
411 reth_set_len(pkt, wqe->dma.resid); in init_req_packet()
463 wqe->dma.resid -= paylen; in fill_packet()
505 int num_pkt = (wqe->dma.resid + payload + qp->mtu - 1) / qp->mtu; in update_wqe_psn()
663 payload = (mask & RXE_WRITE_OR_SEND) ? wqe->dma.resid : 0; in rxe_requester()
/kernel/linux/linux-5.10/fs/dlm/
Dast.c113 struct dlm_callback *cb, int *resid) in dlm_rem_lkb_callback() argument
117 *resid = 0; in dlm_rem_lkb_callback()
137 (*resid)++; in dlm_rem_lkb_callback()
220 int i, rv, resid; in dlm_callback_work() local
233 rv = dlm_rem_lkb_callback(ls, lkb, &callbacks[i], &resid); in dlm_callback_work()
238 if (resid) { in dlm_callback_work()
241 resid); in dlm_callback_work()
Dast.h18 struct dlm_callback *cb, int *resid);
Duser.c783 int rv, resid, copy_lvb = 0; in device_read() local
844 rv = dlm_rem_lkb_callback(lkb->lkb_resource->res_ls, lkb, &cb, &resid); in device_read()
855 if (!resid) in device_read()
861 if (!resid) in device_read()
882 if (!resid) in device_read()
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_fc.h277 u32 sense_len, resid; in zfcp_fc_eval_fcp_rsp() local
305 resid = be32_to_cpu(fcp_rsp->ext.fr_resid); in zfcp_fc_eval_fcp_rsp()
306 scsi_set_resid(scsi, resid); in zfcp_fc_eval_fcp_rsp()
307 if (scsi_bufflen(scsi) - resid < scsi->underflow && in zfcp_fc_eval_fcp_rsp()
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
Dsym_glue.h243 static inline void sym_set_cam_result_ok(struct sym_ccb *cp, struct scsi_cmnd *cmd, int resid) in sym_set_cam_result_ok() argument
245 scsi_set_resid(cmd, resid); in sym_set_cam_result_ok()
248 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid);
Dsym_hipd.c3846 int dp_sg, resid = 0; local
3858 resid -= cp->extra_bytes;
3860 ++resid;
3862 --resid;
3870 return resid;
3893 resid = -cp->ext_ofs;
3896 resid += (tmp & 0xffffff);
3899 resid -= cp->odd_byte_adjustment;
3904 return resid;
5359 int resid; local
[all …]
/kernel/linux/linux-5.10/net/ceph/
Dmessenger.c813 cursor->resid = min_t(size_t, length, data->bio_length); in ceph_msg_data_bio_cursor_init()
815 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
816 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
818 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
819 cursor->last_piece = cursor->resid == bio_iter_len(it->bio, it->iter); in ceph_msg_data_bio_cursor_init()
840 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bio_advance()
842 cursor->resid -= bytes; in ceph_msg_data_bio_advance()
845 if (!cursor->resid) { in ceph_msg_data_bio_advance()
857 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_advance()
858 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_advance()
[all …]
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_transport.c323 int sg_cnt, i, resid; in rtsx_transfer_sglist_adma_partial() local
360 resid = size; in rtsx_transfer_sglist_adma_partial()
386 if ((len - *offset) > resid) { in rtsx_transfer_sglist_adma_partial()
387 *offset += resid; in rtsx_transfer_sglist_adma_partial()
388 len = resid; in rtsx_transfer_sglist_adma_partial()
389 resid = 0; in rtsx_transfer_sglist_adma_partial()
391 resid -= (len - *offset); in rtsx_transfer_sglist_adma_partial()
397 if ((i == sg_cnt - 1) || !resid) in rtsx_transfer_sglist_adma_partial()
402 if (!resid) in rtsx_transfer_sglist_adma_partial()
/kernel/linux/linux-5.10/drivers/nubus/
Dnubus.c270 u32 resid; in nubus_readdir() local
279 resid = nubus_get_rom(&nd->ptr, 4, nd->mask); in nubus_readdir()
282 if ((resid & 0xff000000) == 0xff000000) { in nubus_readdir()
289 ent->type = resid >> 24; in nubus_readdir()
291 ent->data = resid & 0xffffff; in nubus_readdir()
505 fres->resid = parent->type; in nubus_get_functional_resource()
816 if (fres->resid <= prev_resid) { in nubus_add_board()
820 prev_resid = fres->resid; in nubus_add_board()
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
Daic7xxx_osm.h530 static inline void ahc_set_sense_residual(struct scb *scb, u_long resid);
614 void ahc_set_residual(struct scb *scb, u_long resid) in ahc_set_residual() argument
616 scsi_set_resid(scb->io_ctx, resid); in ahc_set_residual()
620 void ahc_set_sense_residual(struct scb *scb, u_long resid) in ahc_set_sense_residual() argument
622 scb->platform_data->sense_resid = resid; in ahc_set_sense_residual()
Daic79xx_osm.h512 static inline void ahd_set_sense_residual(struct scb *scb, u_long resid);
596 void ahd_set_residual(struct scb *scb, u_long resid) in ahd_set_residual() argument
598 scsi_set_resid(scb->io_ctx, resid); in ahd_set_residual()
602 void ahd_set_sense_residual(struct scb *scb, u_long resid) in ahd_set_sense_residual() argument
604 scb->platform_data->sense_resid = resid; in ahd_set_sense_residual()
/kernel/linux/linux-5.10/include/scsi/
Dscsi_device.h446 req_flags_t rq_flags, int *resid);
449 sshdr, timeout, retries, flags, rq_flags, resid) \ argument
455 resid); \
460 int retries, int *resid) in scsi_execute_req() argument
463 bufflen, NULL, sshdr, timeout, retries, 0, 0, resid); in scsi_execute_req()
Dsg.h66 int resid; /* [o] dxfer_len - actual_transferred */ member
95 compat_int_t resid; /* [o] dxfer_len - actual_transferred */ member
Dscsi_cmnd.h194 static inline void scsi_set_resid(struct scsi_cmnd *cmd, unsigned int resid) in scsi_set_resid() argument
196 cmd->req.resid_len = resid; in scsi_set_resid()
/kernel/linux/linux-5.10/drivers/scsi/
Dam53c974.c141 u8 resid; in pci_esp_dma_drain() local
151 resid = pci_esp_read8(esp, ESP_FFLAGS) & ESP_FF_FBYTES; in pci_esp_dma_drain()
152 if (resid <= 1) in pci_esp_dma_drain()
172 esp_dma_log("DMA blast done (%d tries, %d bytes left)\n", lim, resid); in pci_esp_dma_drain()
174 if (WARN_ON_ONCE(resid == 1)) { in pci_esp_dma_drain()
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
Dvirtgpu_object.c35 uint32_t *resid) in virtio_gpu_resource_id_get() argument
48 *resid = handle + 1; in virtio_gpu_resource_id_get()
53 *resid = handle + 1; in virtio_gpu_resource_id_get()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c179 size_t resid, len; in nvmet_bdev_alloc_bip() local
199 resid = bip->bip_iter.bi_size; in nvmet_bdev_alloc_bip()
200 while (resid > 0 && sg_miter_next(miter)) { in nvmet_bdev_alloc_bip()
201 len = min_t(size_t, miter->length, resid); in nvmet_bdev_alloc_bip()
210 resid -= len; in nvmet_bdev_alloc_bip()
/kernel/linux/linux-5.10/block/
Dscsi_ioctl.c263 hdr->resid = req->resid_len; in blk_complete_sghdr_rq()
572 .resid = hdr->resid, in put_sg_io_hdr()
620 .resid = hdr32.resid, in get_sg_io_hdr()
760 cgc.buflen = hdr.resid; in scsi_cdrom_send_packet()
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
Dctrlmondata.c452 u32 resid, evtid, domid; in rdtgroup_mondata_show() local
467 resid = md.u.rid; in rdtgroup_mondata_show()
471 r = &rdt_resources_all[resid]; in rdtgroup_mondata_show()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c632 size_t resid, len; in iblock_alloc_bip() local
655 resid = bip->bip_iter.bi_size; in iblock_alloc_bip()
656 while (resid > 0 && sg_miter_next(miter)) { in iblock_alloc_bip()
658 len = min_t(size_t, miter->length, resid); in iblock_alloc_bip()
670 resid -= len; in iblock_alloc_bip()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c932 int resid = 0; in dma_rx() local
949 resid = len - (di->rxbufsize - di->rxoffset); in dma_rx()
952 if (resid > 0) { in dma_rx()
953 while ((resid > 0) && (p = _dma_getnextrxp(di, false))) { in dma_rx()
954 pkt_len = min_t(uint, resid, di->rxbufsize); in dma_rx()
957 resid -= di->rxbufsize; in dma_rx()
962 if (resid > 0) { in dma_rx()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dvirtio_scsi.h50 __virtio32 resid; member

123