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

/drivers/s390/scsi/
H A Dzfcp_fc.h260 u32 sense_len, resid; local
288 resid = fcp_rsp->ext.fr_resid;
289 scsi_set_resid(scsi, resid);
290 if (scsi_bufflen(scsi) - resid < scsi->underflow &&
/drivers/scsi/sym53c8xx_2/
H A Dsym_glue.h256 static inline void sym_set_cam_result_ok(struct sym_ccb *cp, struct scsi_cmnd *cmd, int resid) argument
258 scsi_set_resid(cmd, resid);
261 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid);
H A Dsym_hipd.c2568 "phase change %x-%x %d@%08x resid=%d.\n",
3854 int dp_sg, dp_sgmin, resid = 0; local
3866 resid -= cp->extra_bytes;
3868 ++resid;
3870 --resid;
3878 return resid;
3902 resid = -cp->ext_ofs;
3905 resid += (tmp & 0xffffff);
3908 resid -= cp->odd_byte_adjustment;
3913 return resid;
5362 int resid; local
5492 int resid; local
[all...]
H A Dsym_glue.c187 void sym_set_cam_result_error(struct sym_hcb *np, struct sym_ccb *cp, int resid) argument
198 resid = cp->sv_resid;
254 scsi_set_resid(cmd, resid);
/drivers/scsi/
H A Dvirtio_scsi.c68 static void virtscsi_compute_resid(struct scsi_cmnd *sc, u32 resid) argument
70 if (!resid)
74 scsi_set_resid(sc, resid);
78 scsi_in(sc)->resid = min(resid, scsi_in(sc)->length);
79 scsi_out(sc)->resid = resid - scsi_in(sc)->resid;
98 virtscsi_compute_resid(sc, resp->resid);
H A Dsun3_scsi.c511 unsigned short resid; local
515 resid = dregs->udc_data;
517 resid *= 2;
519 return (unsigned long) resid;
H A Dscsi_lib.c203 * @resid: optional residual length
211 int *resid)
248 if (resid)
249 *resid = req->resid_len;
262 int *resid)
273 sense, timeout, retries, 0, resid);
780 req->next_rq->resid_len = scsi_in(cmd)->resid;
208 scsi_execute(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, unsigned char *sense, int timeout, int retries, int flags, int *resid) argument
259 scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd, int data_direction, void *buffer, unsigned bufflen, struct scsi_sense_hdr *sshdr, int timeout, int retries, int *resid) argument
H A Dscsi_scan.c578 int resid; local
589 &resid);
616 if (resid == try_inquiry_len)
H A Dsg.c733 hp->resid = 0;
1272 int result, resid, done = 1; local
1287 resid = rq->resid_len;
1291 srp->header.resid = resid;
H A Dscsi_debug.c427 /* Returns 0 if ok else (DID_ERROR << 16). Sets scp->resid . */
441 if (sdb->resid)
442 sdb->resid -= act_len;
444 sdb->resid = scsi_bufflen(scp) - act_len;
1720 unsigned int i, resid; local
1784 resid = sectors * 8; /* Bytes of protection data to copy into sgl */
1788 int len = min(psgl->length, resid);
1799 resid -= len;
H A Dlibiscsi.c642 scsi_out(sc)->resid = scsi_out(sc)->length;
643 scsi_in(sc)->resid = scsi_in(sc)->length;
862 scsi_in(sc)->resid = res_count;
912 scsi_in(sc)->resid = res_count;
1710 scsi_out(sc)->resid = scsi_out(sc)->length;
1711 scsi_in(sc)->resid = scsi_in(sc)->length;
/drivers/staging/rts_pstor/
H A Drtsx_transport.c335 int sg_cnt, i, resid; local
374 resid = size;
398 if ((len - *offset) > resid) {
399 *offset += resid;
400 len = resid;
401 resid = 0;
403 resid -= (len - *offset);
408 if ((i == (sg_cnt - 1)) || !resid) {
416 if (!resid)
/drivers/scsi/aic7xxx/
H A Daic79xx_osm.h532 static inline void ahd_set_sense_residual(struct scb *scb, u_long resid);
616 void ahd_set_residual(struct scb *scb, u_long resid) argument
618 scsi_set_resid(scb->io_ctx, resid);
622 void ahd_set_sense_residual(struct scb *scb, u_long resid) argument
624 scb->platform_data->sense_resid = resid;
H A Daic7xxx_osm.h543 static inline void ahc_set_sense_residual(struct scb *scb, u_long resid);
627 void ahc_set_residual(struct scb *scb, u_long resid) argument
629 scsi_set_resid(scb->io_ctx, resid);
633 void ahc_set_sense_residual(struct scb *scb, u_long resid) argument
635 scb->platform_data->sense_resid = resid;
H A Daic7xxx_core.c4272 uint32_t resid; local
4288 resid = (ahc_inb(ahc, SCB_RESIDUAL_DATACNT + 2) << 16)
4294 - resid;
4308 ahc_outb(ahc, HCNT + 2, resid >> 16);
4309 ahc_outb(ahc, HCNT + 1, resid >> 8);
4310 ahc_outb(ahc, HCNT, resid);
4312 ahc_outb(ahc, STCNT + 2, resid >> 16);
4313 ahc_outb(ahc, STCNT + 1, resid >> 8);
4314 ahc_outb(ahc, STCNT, resid);
6661 uint32_t resid; local
[all...]
H A Daic79xx_core.c1485 uint32_t resid; local
1514 resid = ahd_inl(ahd, SHCNT);
1515 resid |= ahd_inb_scbram(ahd, SCB_RESIDUAL_DATACNT+3) << 24;
1516 ahd_outl(ahd, SCB_RESIDUAL_DATACNT, resid);
1533 } else if ((resid & AHD_SG_LEN_MASK) == 0) {
1541 ahd_outl(ahd, SCB_DATACNT, resid);
5848 uint32_t resid; local
5883 resid = (ahd_inb_scbram(ahd, SCB_RESIDUAL_DATACNT + 2) << 16)
5897 - resid;
5909 - resid;
9146 uint32_t resid; local
[all...]
/drivers/block/aoe/
H A Daoe.h106 ulong resid; member in struct:buf
H A Daoeblk.c200 buf->resid = bio->bi_size;
H A Daoecmd.c271 buf->resid -= bcnt;
273 if (buf->resid == 0) {
855 if (buf && --buf->nframesout == 0 && buf->resid == 0) {
/drivers/nubus/
H A Dnubus.c259 u32 resid; local
267 resid = nubus_get_rom(&nd->ptr, 4, nd->mask);
270 if((resid&0xff000000) == 0xff000000)
278 ent->type = resid >> 24;
280 ent->data = resid & 0xffffff;
484 dev->resid = parent->type;
/drivers/scsi/qla2xxx/
H A Dqla_isr.c1436 uint32_t blocks_done, resid; local
1442 resid = scsi_bufflen(cmd) - (blocks_done *
1445 scsi_set_resid(cmd, resid);
1535 int32_t resid; local
1658 resid = resid_len;
1659 scsi_set_resid(cp, resid);
1662 ((unsigned)(scsi_bufflen(cp) - resid) <
1667 resid, scsi_bufflen(cp));
1694 resid = IS_FWI2_CAPABLE(ha) ? fw_resid_len : resid_len;
1695 scsi_set_resid(cp, resid);
[all...]
/drivers/net/wireless/brcm80211/brcmsmac/
H A Ddma.c942 int resid = 0; local
959 resid = len - (di->rxbufsize - di->rxoffset);
962 if (resid > 0) {
963 while ((resid > 0) && (p = _dma_getnextrxp(di, false))) {
964 pkt_len = min_t(uint, resid, di->rxbufsize);
967 resid -= di->rxbufsize;
972 if (resid > 0) {
/drivers/block/
H A Dswim3.c679 int stat, resid; local
774 resid = ld_le16(&cp->res_count);
776 n = fs->scount - 1 - resid / 512;
792 if ((stat & ACTIVE) == 0 || resid != 0) {
794 swim3_err("fd dma error: stat=%x resid=%d\n", stat, resid);
/drivers/usb/storage/
H A Duas.c275 sdb->resid = sdb->length - urb->actual_length;
290 sdb->resid = sdb->length - urb->actual_length;
/drivers/scsi/be2iscsi/
H A Dbe_main.c1109 u32 resid = 0, exp_cmdsn, max_cmdsn; local
1140 resid = (psol->dw[offsetof(struct amap_sol_cqe, i_res_cnt) /
1147 scsi_set_resid(task->sc, resid);
1148 if (!status && (scsi_bufflen(task->sc) - resid <

Completed in 462 milliseconds