Home
last modified time | relevance | path

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

123

/linux/net/ceph/
H A Dmessenger_v2.c868 while (!cursor->resid) in get_bvec_at()
984 int resid = dlen; in init_sgs_pages() local
987 int len = min(resid, (int)PAGE_SIZE - off); in init_sgs_pages()
993 resid -= len; in init_sgs_pages()
994 } while (resid); in init_sgs_pages()
2002 __func__, ret, cursor->total_resid, cursor->resid); in prepare_sparse_read_cont()
3456 static void prepare_zero_front(struct ceph_connection *con, int resid) in prepare_zero_front() argument
3460 WARN_ON(!resid || resid > front_len(con->out_msg)); in prepare_zero_front()
3461 sent = front_len(con->out_msg) - resid; in prepare_zero_front()
3462 dout("%s con %p sent %d resid %d\n", __func__, con, sent, resid); in prepare_zero_front()
[all …]
H A Dmessenger.c730 cursor->resid = min_t(size_t, length, data->bio_length); in ceph_msg_data_bio_cursor_init()
732 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_cursor_init()
733 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_cursor_init()
735 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_cursor_init()
756 BUG_ON(bytes > cursor->resid); in ceph_msg_data_bio_advance()
758 cursor->resid -= bytes; in ceph_msg_data_bio_advance()
761 if (!cursor->resid) in ceph_msg_data_bio_advance()
771 if (cursor->resid < it->iter.bi_size) in ceph_msg_data_bio_advance()
772 it->iter.bi_size = cursor->resid; in ceph_msg_data_bio_advance()
775 BUG_ON(cursor->resid < bio_iter_len(it->bio, it->iter)); in ceph_msg_data_bio_advance()
[all …]
/linux/drivers/infiniband/sw/rxe/
H A Drxe_resp.c410 qp->resp.resid = length; in qp_resp_from_reth()
423 qp->resp.resid = sizeof(u64); in qp_resp_from_atmeth()
437 u32 resid; in check_rkey() local
482 resid = qp->resp.resid; in check_rkey()
523 if (mr_check_range(mr, va + qp->resp.offset, resid)) { in check_rkey()
530 if (resid > mtu) { in check_rkey()
536 if (pktlen != resid) { in check_rkey()
540 if ((bth_pad(pkt) != (0x3 & (-resid)))) { in check_rkey()
594 qp->resp.resid -= data_len; in write_data_in()
618 res->read.resid = qp->resp.resid; in rxe_prepare_res()
[all …]
H A Drxe_mr.c343 int resid = dma->resid; in copy_data() local
351 if (length > resid) { in copy_data()
403 resid -= bytes; in copy_data()
410 dma->resid = resid; in copy_data()
587 int resid = dma->resid; in advance_dma_data() local
606 resid -= bytes; in advance_dma_data()
611 dma->resid = resid; in advance_dma_data()
H A Drxe_verbs.h152 u32 resid; member
181 u32 resid; member
/linux/drivers/s390/scsi/
H A Dzfcp_fc.h277 u32 sense_len, resid; in zfcp_fc_eval_fcp_rsp() local
304 resid = be32_to_cpu(fcp_rsp->ext.fr_resid); in zfcp_fc_eval_fcp_rsp()
305 scsi_set_resid(scsi, resid); in zfcp_fc_eval_fcp_rsp()
306 if (scsi_bufflen(scsi) - resid < scsi->underflow && in zfcp_fc_eval_fcp_rsp()
/linux/drivers/scsi/sym53c8xx_2/
H A 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);
H A 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;
5358 int resid; local
[all …]
/linux/drivers/nubus/
H A Dnubus.c277 u32 resid; in nubus_readdir() local
286 resid = nubus_get_rom(&nd->ptr, 4, nd->mask); in nubus_readdir()
289 if ((resid & 0xff000000) == 0xff000000) { in nubus_readdir()
296 ent->type = resid >> 24; in nubus_readdir()
298 ent->data = resid & 0xffffff; in nubus_readdir()
512 fres->resid = parent->type; in nubus_get_functional_resource()
823 if (fres->resid <= prev_resid) { in nubus_add_board()
827 prev_resid = fres->resid; in nubus_add_board()
/linux/drivers/scsi/
H A 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()
H A Dscsi_ioctl.c391 hdr->resid = scmd->resid_len; in scsi_complete_sghdr_rq()
641 .resid = hdr->resid, in put_sg_io_hdr()
689 .resid = hdr32.resid, in get_sg_io_hdr()
828 cgc.buflen = hdr.resid; in scsi_cdrom_send_packet()
H A Dvirtio_scsi.c104 static void virtscsi_compute_resid(struct scsi_cmnd *sc, u32 resid) in virtscsi_compute_resid() argument
106 if (resid) in virtscsi_compute_resid()
107 scsi_set_resid(sc, min(resid, scsi_bufflen(sc))); in virtscsi_compute_resid()
126 virtscsi_compute_resid(sc, virtio32_to_cpu(vscsi->vdev, resp->resid)); in virtscsi_complete_cmd()
/linux/drivers/scsi/aic7xxx/
H A Daic7xxx_osm.h589 void ahc_set_residual(struct scb *scb, u_long resid) in ahc_set_residual() argument
591 scsi_set_resid(scb->io_ctx, resid); in ahc_set_residual()
595 void ahc_set_sense_residual(struct scb *scb, u_long resid) in ahc_set_sense_residual() argument
597 scb->platform_data->sense_resid = resid; in ahc_set_sense_residual()
H A Daic79xx_osm.h571 void ahd_set_residual(struct scb *scb, u_long resid) in ahd_set_residual() argument
573 scsi_set_resid(scb->io_ctx, resid); in ahd_set_residual()
577 void ahd_set_sense_residual(struct scb *scb, u_long resid) in ahd_set_sense_residual() argument
579 scb->platform_data->sense_resid = resid; in ahd_set_sense_residual()
/linux/drivers/nvme/target/
H A Dio-cmd-bdev.c198 size_t resid, len; in nvmet_bdev_alloc_bip() local
217 resid = bio_integrity_bytes(bi, bio_sectors(bio)); in nvmet_bdev_alloc_bip()
218 while (resid > 0 && sg_miter_next(miter)) { in nvmet_bdev_alloc_bip()
219 len = min_t(size_t, miter->length, resid); in nvmet_bdev_alloc_bip()
228 resid -= len; in nvmet_bdev_alloc_bip()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_object.c34 int virtio_gpu_resource_id_get(struct virtio_gpu_device *vgdev, uint32_t *resid) in virtio_gpu_resource_id_get() argument
47 *resid = handle + 1; in virtio_gpu_resource_id_get()
52 *resid = handle + 1; in virtio_gpu_resource_id_get()
/linux/include/scsi/
H A Dsg.h62 int resid; /* [o] dxfer_len - actual_transferred */ member
91 compat_int_t resid; /* [o] dxfer_len - actual_transferred */ member
H A Dscsi_cmnd.h196 static inline void scsi_set_resid(struct scsi_cmnd *cmd, unsigned int resid) in scsi_set_resid() argument
198 cmd->resid_len = resid; in scsi_set_resid()
/linux/drivers/target/
H A Dtarget_core_iblock.c684 size_t resid, len; in iblock_alloc_bip() local
705 resid = bio_integrity_bytes(bi, bio_sectors(bio)); in iblock_alloc_bip()
706 while (resid > 0 && sg_miter_next(miter)) { in iblock_alloc_bip()
708 len = min_t(size_t, miter->length, resid); in iblock_alloc_bip()
720 resid -= len; in iblock_alloc_bip()
/linux/arch/x86/kernel/cpu/resctrl/
H A Dctrlmondata.c566 u32 resid, evtid, domid; in rdtgroup_mondata_show() local
579 resid = md.u.rid; in rdtgroup_mondata_show()
582 r = &rdt_resources_all[resid].r_resctrl; in rdtgroup_mondata_show()
/linux/include/uapi/linux/
H A Dvirtio_scsi.h68 __virtio32 resid; /* Residual bytes in data buffer */ member
/linux/drivers/xen/
H A Dxen-scsiback.c348 char *sense_buffer, int32_t result, uint32_t resid, in scsiback_send_response() argument
376 ring_res->residual_len = resid; in scsiback_send_response()
386 uint32_t resid, struct vscsibk_pend *pending_req) in scsiback_do_resp_with_sense() argument
389 resid, pending_req->rqid); in scsiback_do_resp_with_sense()
400 unsigned int resid; in scsiback_cmd_done() local
404 resid = pending_req->se_cmd.residual_count; in scsiback_cmd_done()
411 scsiback_do_resp_with_sense(sense_buffer, errors, resid, pending_req); in scsiback_cmd_done()
/linux/include/linux/
H A Dnubus.h69 unsigned char resid; member
/linux/drivers/block/
H A Dswim3.c660 int stat, resid; in swim3_interrupt() local
754 resid = le16_to_cpu(cp->res_count); in swim3_interrupt()
756 n = fs->scount - 1 - resid / 512; in swim3_interrupt()
772 if ((stat & ACTIVE) == 0 || resid != 0) { in swim3_interrupt()
774 swim3_err("fd dma error: stat=%x resid=%d\n", stat, resid); in swim3_interrupt()
/linux/include/uapi/rdma/
H A Drdma_user_rxe.h149 __u32 resid; member

123