residue 19 arch/arm/include/asm/mach/dma.h int (*residue)(unsigned int, dma_t *); /* optional */ residue 134 arch/arm/kernel/dma-isa.c .residue = isa_get_dma_residue, residue 256 arch/arm/kernel/dma.c if (dma->d_ops->residue) residue 257 arch/arm/kernel/dma.c ret = dma->d_ops->residue(chan, dma); residue 317 arch/arm/mach-rpc/dma.c .residue = floppy_get_residue, residue 17 arch/mips/math-emu/dp_rint.c u64 residue; residue 41 arch/mips/math-emu/dp_rint.c residue = xm; residue 43 arch/mips/math-emu/dp_rint.c sticky = residue != 0; residue 46 arch/mips/math-emu/dp_rint.c residue = xm << (64 - DP_FBITS + xe); residue 47 arch/mips/math-emu/dp_rint.c round = (residue >> 63) != 0; residue 48 arch/mips/math-emu/dp_rint.c sticky = (residue << 1) != 0; residue 14 arch/mips/math-emu/dp_tint.c u64 residue; residue 54 arch/mips/math-emu/dp_tint.c residue = xm; residue 56 arch/mips/math-emu/dp_tint.c sticky = residue != 0; residue 59 arch/mips/math-emu/dp_tint.c residue = xm << (64 - DP_FBITS + xe); residue 60 arch/mips/math-emu/dp_tint.c round = (residue >> 63) != 0; residue 61 arch/mips/math-emu/dp_tint.c sticky = (residue << 1) != 0; residue 14 arch/mips/math-emu/dp_tlong.c u64 residue; residue 57 arch/mips/math-emu/dp_tlong.c residue = xm; residue 59 arch/mips/math-emu/dp_tlong.c sticky = residue != 0; residue 65 arch/mips/math-emu/dp_tlong.c residue = xm << (xe + 1); residue 66 arch/mips/math-emu/dp_tlong.c residue <<= 63 - DP_FBITS; residue 67 arch/mips/math-emu/dp_tlong.c round = (residue >> 63) != 0; residue 68 arch/mips/math-emu/dp_tlong.c sticky = (residue << 1) != 0; residue 17 arch/mips/math-emu/sp_rint.c u32 residue; residue 41 arch/mips/math-emu/sp_rint.c residue = xm; residue 43 arch/mips/math-emu/sp_rint.c sticky = residue != 0; residue 46 arch/mips/math-emu/sp_rint.c residue = xm << (xe + 1); residue 47 arch/mips/math-emu/sp_rint.c residue <<= 31 - SP_FBITS; residue 48 arch/mips/math-emu/sp_rint.c round = (residue >> 31) != 0; residue 49 arch/mips/math-emu/sp_rint.c sticky = (residue << 1) != 0; residue 14 arch/mips/math-emu/sp_tint.c u32 residue; residue 57 arch/mips/math-emu/sp_tint.c residue = xm; residue 59 arch/mips/math-emu/sp_tint.c sticky = residue != 0; residue 65 arch/mips/math-emu/sp_tint.c residue = xm << (xe + 1); residue 66 arch/mips/math-emu/sp_tint.c residue <<= 31 - SP_FBITS; residue 67 arch/mips/math-emu/sp_tint.c round = (residue >> 31) != 0; residue 68 arch/mips/math-emu/sp_tint.c sticky = (residue << 1) != 0; residue 14 arch/mips/math-emu/sp_tlong.c u32 residue; residue 57 arch/mips/math-emu/sp_tlong.c residue = xm; residue 59 arch/mips/math-emu/sp_tlong.c sticky = residue != 0; residue 62 arch/mips/math-emu/sp_tlong.c residue = xm << (32 - SP_FBITS + xe); residue 63 arch/mips/math-emu/sp_tlong.c round = (residue >> 31) != 0; residue 64 arch/mips/math-emu/sp_tlong.c sticky = (residue << 1) != 0; residue 1431 drivers/block/pktcdvd.c long min_sleep_time, residue; residue 1476 drivers/block/pktcdvd.c residue = schedule_timeout(min_sleep_time); residue 1485 drivers/block/pktcdvd.c pkt->sleep_time -= min_sleep_time - residue; residue 1398 drivers/dma/at_xdmac.c int residue, retry; residue 1424 drivers/dma/at_xdmac.c residue = desc->xfer_size; residue 1512 drivers/dma/at_xdmac.c residue -= (desc->lld.mbr_ubc & 0xffffff) << dwidth; residue 1516 drivers/dma/at_xdmac.c residue += cur_ubc << dwidth; residue 1518 drivers/dma/at_xdmac.c dma_set_residue(txstate, residue); residue 1522 drivers/dma/at_xdmac.c __func__, desc, &desc->tx_dma_desc.phys, ret, cookie, residue); residue 579 drivers/dma/bcm2835-dma.c txstate->residue = residue 592 drivers/dma/bcm2835-dma.c txstate->residue = bcm2835_dma_desc_size_pos(d, pos); residue 594 drivers/dma/bcm2835-dma.c txstate->residue = 0; residue 336 drivers/dma/dma-axi-dmac.c rslt->residue = 0; residue 345 drivers/dma/dma-axi-dmac.c rslt->residue += (total - sg->partial_len); residue 640 drivers/dma/dma-jz4780.c unsigned long residue = 0; residue 651 drivers/dma/dma-jz4780.c residue = jz4780_dma_desc_residue(jzchan, residue 654 drivers/dma/dma-jz4780.c residue = jz4780_dma_desc_residue(jzchan, jzchan->desc, residue 657 drivers/dma/dma-jz4780.c dma_set_residue(txstate, residue); residue 79 drivers/dma/dmaengine.h state->residue = 0; residue 84 drivers/dma/dmaengine.h static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) residue 87 drivers/dma/dmaengine.h state->residue = residue; residue 129 drivers/dma/dmaengine.h .residue = 0 residue 294 drivers/dma/dw-edma/dw-edma-core.c u32 residue = 0; residue 311 drivers/dma/dw-edma/dw-edma-core.c residue = desc->alloc_sz - desc->xfer_sz; residue 316 drivers/dma/dw-edma/dw-edma-core.c dma_set_residue(txstate, residue); residue 207 drivers/dma/dw/core.c first->residue = first->total_len; residue 334 drivers/dma/dw/core.c desc->residue -= desc->len; residue 336 drivers/dma/dw/core.c desc->residue -= to_dw_desc(active->prev)->len; residue 372 drivers/dma/dw/core.c desc->residue = desc->total_len; residue 383 drivers/dma/dw/core.c desc->residue -= dwc_get_sent(dwc); residue 388 drivers/dma/dw/core.c desc->residue -= desc->len; residue 392 drivers/dma/dw/core.c desc->residue -= dwc_get_sent(dwc); residue 396 drivers/dma/dw/core.c desc->residue -= child->len; residue 895 drivers/dma/dw/core.c u32 residue; residue 902 drivers/dma/dw/core.c residue = desc->residue; residue 903 drivers/dma/dw/core.c if (test_bit(DW_DMA_IS_SOFT_LLP, &dwc->flags) && residue) residue 904 drivers/dma/dw/core.c residue -= dwc_get_sent(dwc); residue 906 drivers/dma/dw/core.c residue = desc->total_len; residue 909 drivers/dma/dw/core.c residue = 0; residue 913 drivers/dma/dw/core.c return residue; residue 397 drivers/dma/dw/regs.h u32 residue; residue 326 drivers/dma/fsl-edma-common.c txstate->residue = residue 329 drivers/dma/fsl-edma-common.c txstate->residue = residue 332 drivers/dma/fsl-edma-common.c txstate->residue = 0; residue 595 drivers/dma/img-mdc-dma.c u32 val1, val2, done, processed, residue; residue 607 drivers/dma/img-mdc-dma.c residue = mdc_chan_readl(mchan, residue 636 drivers/dma/img-mdc-dma.c if (residue != MDC_TRANSFER_SIZE_MASK) residue 637 drivers/dma/img-mdc-dma.c bytes -= ldesc->xfer_size - residue; residue 1653 drivers/dma/imx-sdma.c u32 residue; residue 1667 drivers/dma/imx-sdma.c residue = (desc->num_bd - desc->buf_ptail) * residue 1670 drivers/dma/imx-sdma.c residue = desc->chn_count - desc->chn_real_count; residue 1672 drivers/dma/imx-sdma.c residue = sdmac->desc->chn_count - sdmac->desc->chn_real_count; residue 1674 drivers/dma/imx-sdma.c residue = 0; residue 1679 drivers/dma/imx-sdma.c residue); residue 82 drivers/dma/mediatek/mtk-cqdma.c size_t residue; residue 329 drivers/dma/mediatek/mtk-cqdma.c cvd->parent->residue -= cvd->len; residue 337 drivers/dma/mediatek/mtk-cqdma.c if (!cvd->parent->residue) { residue 462 drivers/dma/mediatek/mtk-cqdma.c bytes = cvd->residue; residue 533 drivers/dma/mediatek/mtk-cqdma.c cvd[0]->residue = len; residue 536 drivers/dma/mediatek/mtk-cqdma.c cvd[i]->residue = tlen; residue 134 drivers/dma/mediatek/mtk-hsdma.c size_t residue; residue 580 drivers/dma/mediatek/mtk-hsdma.c hvd->residue -= MTK_HSDMA_DESC_PLEN_GET(rxd->desc2); residue 698 drivers/dma/mediatek/mtk-hsdma.c bytes = hvd->residue; residue 731 drivers/dma/mediatek/mtk-hsdma.c hvd->residue = len; residue 773 drivers/dma/mmp_pdma.c u32 curr, residue = 0; residue 809 drivers/dma/mmp_pdma.c residue += len; residue 811 drivers/dma/mmp_pdma.c residue += end - curr; residue 832 drivers/dma/mmp_pdma.c return residue; residue 834 drivers/dma/mmp_pdma.c residue = 0; residue 840 drivers/dma/mmp_pdma.c return residue; residue 496 drivers/dma/moxart-dma.c txstate->residue = moxart_dma_desc_size(d, 0); residue 498 drivers/dma/moxart-dma.c txstate->residue = moxart_dma_desc_size_in_flight(ch); residue 671 drivers/dma/mxs-dma.c u32 residue = 0; residue 679 drivers/dma/mxs-dma.c residue = last_ccw->xfer_bytes + last_ccw->bufaddr; residue 683 drivers/dma/mxs-dma.c residue -= bar; residue 687 drivers/dma/mxs-dma.c residue); residue 633 drivers/dma/nbpfaxi.c state->residue = nbpf_bytes_left(chan); residue 635 drivers/dma/nbpfaxi.c state->residue); residue 654 drivers/dma/nbpfaxi.c state->residue = found ? desc->length : 0; residue 1127 drivers/dma/pxa_dma.c u32 curr, start, len, end, residue = 0; residue 1180 drivers/dma/pxa_dma.c residue += len; residue 1182 drivers/dma/pxa_dma.c residue += end - curr; residue 1187 drivers/dma/pxa_dma.c residue = sw_desc->len; residue 1193 drivers/dma/pxa_dma.c __func__, vd, cookie, sw_desc, residue); residue 1194 drivers/dma/pxa_dma.c return residue; residue 914 drivers/dma/qcom/bam_dma.c size_t residue = 0; residue 928 drivers/dma/qcom/bam_dma.c residue = container_of(vd, struct bam_async_desc, vd)->length; residue 935 drivers/dma/qcom/bam_dma.c residue += le16_to_cpu( residue 942 drivers/dma/qcom/bam_dma.c dma_set_residue(txstate, residue); residue 443 drivers/dma/sa11x0-dma.c state->residue = container_of(vd, struct sa11x0_dma_desc, vd)->size; residue 445 drivers/dma/sa11x0-dma.c state->residue = 0; residue 486 drivers/dma/sa11x0-dma.c state->residue = bytes; residue 490 drivers/dma/sa11x0-dma.c dev_vdbg(d->slave.dev, "tx_status: bytes 0x%x\n", state->residue); residue 1288 drivers/dma/sh/rcar-dmac.c unsigned int residue = 0; residue 1379 drivers/dma/sh/rcar-dmac.c residue += chunk->size; residue 1383 drivers/dma/sh/rcar-dmac.c residue += tcrb << desc->xfer_shift; residue 1385 drivers/dma/sh/rcar-dmac.c return residue; residue 1395 drivers/dma/sh/rcar-dmac.c unsigned int residue; residue 1403 drivers/dma/sh/rcar-dmac.c residue = rcar_dmac_chan_get_residue(rchan, cookie); residue 1408 drivers/dma/sh/rcar-dmac.c if (!residue && !cyclic) residue 1411 drivers/dma/sh/rcar-dmac.c dma_set_residue(txstate, residue); residue 57 drivers/dma/sh/usb-dmac.c u32 residue; residue 473 drivers/dma/sh/usb-dmac.c unsigned int residue = sg->size; residue 480 drivers/dma/sh/usb-dmac.c residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; residue 482 drivers/dma/sh/usb-dmac.c residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; residue 484 drivers/dma/sh/usb-dmac.c return residue; residue 491 drivers/dma/sh/usb-dmac.c u32 residue = 0; residue 495 drivers/dma/sh/usb-dmac.c residue = desc->residue; residue 500 drivers/dma/sh/usb-dmac.c return residue; residue 506 drivers/dma/sh/usb-dmac.c u32 residue = 0; residue 520 drivers/dma/sh/usb-dmac.c residue += desc->sg[i].size; residue 523 drivers/dma/sh/usb-dmac.c residue += usb_dmac_get_current_residue(chan, desc, desc->sg_index); residue 525 drivers/dma/sh/usb-dmac.c return residue; residue 534 drivers/dma/sh/usb-dmac.c unsigned int residue = 0; residue 544 drivers/dma/sh/usb-dmac.c residue = usb_dmac_chan_get_residue_if_complete(uchan, cookie); residue 546 drivers/dma/sh/usb-dmac.c residue = usb_dmac_chan_get_residue(uchan, cookie); residue 549 drivers/dma/sh/usb-dmac.c dma_set_residue(txstate, residue); residue 586 drivers/dma/sh/usb-dmac.c desc->residue = usb_dmac_get_current_residue(chan, desc, residue 651 drivers/dma/sirf-dma.c unsigned long residue; residue 680 drivers/dma/sirf-dma.c residue = dma_request_bytes - (dma_pos - sdesc->addr); residue 681 drivers/dma/sirf-dma.c dma_set_residue(txstate, residue); residue 559 drivers/dma/st_fdma.c size_t residue = 0; residue 570 drivers/dma/st_fdma.c residue += fnode_read(fchan, FDMA_CNTN_OFST); residue 573 drivers/dma/st_fdma.c residue += fdesc->node[i].desc->nbytes; residue 576 drivers/dma/st_fdma.c return residue; residue 595 drivers/dma/st_fdma.c txstate->residue = st_fdma_desc_residue(fchan, vd, true); residue 597 drivers/dma/st_fdma.c txstate->residue = st_fdma_desc_residue(fchan, vd, false); residue 599 drivers/dma/st_fdma.c txstate->residue = 0; residue 1079 drivers/dma/stm32-dma.c u32 residue; residue 1109 drivers/dma/stm32-dma.c residue = stm32_dma_get_remaining_bytes(chan); residue 1115 drivers/dma/stm32-dma.c residue = sg_req->len; residue 1127 drivers/dma/stm32-dma.c residue += desc->sg_req[i].len; residue 1130 drivers/dma/stm32-dma.c return residue; residue 1133 drivers/dma/stm32-dma.c modulo = residue % burst_size; residue 1135 drivers/dma/stm32-dma.c residue = residue - modulo + burst_size; residue 1137 drivers/dma/stm32-dma.c return residue; residue 1148 drivers/dma/stm32-dma.c u32 residue = 0; residue 1157 drivers/dma/stm32-dma.c residue = stm32_dma_desc_residue(chan, chan->desc, residue 1160 drivers/dma/stm32-dma.c residue = stm32_dma_desc_residue(chan, residue 1162 drivers/dma/stm32-dma.c dma_set_residue(state, residue); residue 1280 drivers/dma/stm32-mdma.c u32 cbndtr, residue, modulo, burst_size; residue 1283 drivers/dma/stm32-mdma.c residue = 0; residue 1286 drivers/dma/stm32-mdma.c residue += STM32_MDMA_CBNDTR_BNDT(hwdesc->cbndtr); residue 1289 drivers/dma/stm32-mdma.c residue += cbndtr & STM32_MDMA_CBNDTR_BNDT_MASK; residue 1292 drivers/dma/stm32-mdma.c return residue; residue 1295 drivers/dma/stm32-mdma.c modulo = residue % burst_size; residue 1297 drivers/dma/stm32-mdma.c residue = residue - modulo + burst_size; residue 1299 drivers/dma/stm32-mdma.c return residue; residue 1310 drivers/dma/stm32-mdma.c u32 residue = 0; residue 1320 drivers/dma/stm32-mdma.c residue = stm32_mdma_desc_residue(chan, chan->desc, residue 1323 drivers/dma/stm32-mdma.c residue = stm32_mdma_desc_residue(chan, residue 1325 drivers/dma/stm32-mdma.c dma_set_residue(state, residue); residue 93 drivers/dma/ti/cppi41.c u32 residue; residue 354 drivers/dma/ti/cppi41.c c->residue = pd_trans_len(c->desc->pd6) - len; residue 426 drivers/dma/ti/cppi41.c dma_set_residue(txstate, c->residue); residue 438 drivers/dma/ti/cppi41.c c->residue = 0; residue 211 drivers/dma/ti/edma.c u32 residue; residue 1093 drivers/dma/ti/edma.c edesc->residue = 0; residue 1130 drivers/dma/ti/edma.c edesc->residue += sg_dma_len(sg); residue 1144 drivers/dma/ti/edma.c edesc->residue_stat = edesc->residue; residue 1210 drivers/dma/ti/edma.c edesc->residue = edesc->residue_stat = len; residue 1339 drivers/dma/ti/edma.c edesc->residue = edesc->residue_stat = buf_len; residue 1435 drivers/dma/ti/edma.c edesc->residue = 0; residue 1449 drivers/dma/ti/edma.c edesc->residue -= edesc->sg_len; residue 1450 drivers/dma/ti/edma.c edesc->residue_stat = edesc->residue; residue 1792 drivers/dma/ti/edma.c edesc->residue_stat = edesc->residue - done; residue 1845 drivers/dma/ti/edma.c txstate->residue = edma_residue(echan->edesc); residue 1851 drivers/dma/ti/edma.c txstate->residue = to_edma_desc(&vdesc->tx)->residue; residue 1853 drivers/dma/ti/edma.c txstate->residue = 0; residue 1860 drivers/dma/ti/edma.c if (ret != DMA_COMPLETE && !txstate->residue && residue 842 drivers/dma/ti/omap-dma.c txstate->residue = omap_dma_desc_size_pos(d, pos); residue 847 drivers/dma/ti/omap-dma.c txstate->residue = omap_dma_desc_size( residue 850 drivers/dma/ti/omap-dma.c txstate->residue = 0; residue 306 drivers/dma/uniphier-mdmac.c txstate->residue = readl(mc->reg_ch_base + residue 320 drivers/dma/uniphier-mdmac.c txstate->residue += sg_dma_len(&md->sgl[i]); residue 67 drivers/dma/virt-dma.h vd->tx_result.residue = 0; residue 379 drivers/dma/xilinx/xilinx_dma.c u32 residue; residue 1010 drivers/dma/xilinx/xilinx_dma.c u32 residue = 0; residue 1024 drivers/dma/xilinx/xilinx_dma.c residue += (hw->control - hw->status) & residue 1030 drivers/dma/xilinx/xilinx_dma.c chan->residue = residue; residue 1031 drivers/dma/xilinx/xilinx_dma.c dma_set_residue(txstate, chan->residue); residue 61 drivers/i2c/busses/i2c-zx2967.c size_t residue; residue 142 drivers/i2c/busses/i2c-zx2967.c i2c->residue--; residue 152 drivers/i2c/busses/i2c-zx2967.c size_t residue = i2c->residue; residue 155 drivers/i2c/busses/i2c-zx2967.c if (residue == 0) { residue 156 drivers/i2c/busses/i2c-zx2967.c dev_err(DEV(i2c), "residue is %d\n", (int)residue); residue 160 drivers/i2c/busses/i2c-zx2967.c if (residue <= I2C_FIFO_MAX) { residue 161 drivers/i2c/busses/i2c-zx2967.c zx2967_i2c_writesb(i2c, buf, REG_DATA, residue); residue 164 drivers/i2c/busses/i2c-zx2967.c i2c->residue = 0; residue 168 drivers/i2c/busses/i2c-zx2967.c i2c->residue -= I2C_FIFO_MAX; residue 283 drivers/i2c/busses/i2c-zx2967.c i2c->residue = msg->len; residue 293 drivers/i2c/busses/i2c-zx2967.c if (i2c->residue > 0) { residue 294 drivers/i2c/busses/i2c-zx2967.c ret = zx2967_i2c_xfer_bytes(i2c, i2c->residue); residue 299 drivers/i2c/busses/i2c-zx2967.c i2c->residue = 0; residue 806 drivers/iio/adc/at91-sama5d2_adc.c i = st->dma_st.rx_buf_sz - state.residue; residue 1352 drivers/iio/adc/stm32-adc.c unsigned int i = adc->rx_buf_sz - state.residue; residue 1371 drivers/iio/adc/stm32-adc.c int residue = stm32_adc_dma_residue(adc); residue 1384 drivers/iio/adc/stm32-adc.c while (residue >= indio_dev->scan_bytes) { residue 1389 drivers/iio/adc/stm32-adc.c residue -= indio_dev->scan_bytes; residue 1543 drivers/iio/adc/stm32-adc.c int residue = stm32_adc_dma_residue(adc); residue 1545 drivers/iio/adc/stm32-adc.c while (residue >= indio_dev->scan_bytes) { residue 1550 drivers/iio/adc/stm32-adc.c residue -= indio_dev->scan_bytes; residue 806 drivers/iio/adc/stm32-dfsdm-adc.c unsigned int i = adc->buf_sz - state.residue; residue 429 drivers/media/platform/stm32/stm32-dcmi.c if (status != DMA_ERROR && state.residue < buf->size) { residue 431 drivers/media/platform/stm32/stm32-dcmi.c dcmi_buffer_done(dcmi, buf, buf->size - state.residue, 0); residue 1697 drivers/net/ethernet/brocade/bna/bfa_ioc.c u32 off, l, s, residue, fifo_sz; residue 1699 drivers/net/ethernet/brocade/bna/bfa_ioc.c residue = len; residue 1706 drivers/net/ethernet/brocade/bna/bfa_ioc.c while (residue) { residue 1710 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (l > residue) residue 1711 drivers/net/ethernet/brocade/bna/bfa_ioc.c l = residue; residue 1730 drivers/net/ethernet/brocade/bna/bfa_ioc.c residue -= l; residue 3067 drivers/net/ethernet/brocade/bna/bfa_ioc.c len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? residue 3068 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue : BFA_FLASH_DMA_BUF_SZ; residue 3072 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->last = (len == flash->residue) ? 1 : 0; residue 3080 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue -= len; residue 3100 drivers/net/ethernet/brocade/bna/bfa_ioc.c len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? residue 3101 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue : BFA_FLASH_DMA_BUF_SZ; residue 3165 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (status != BFA_STATUS_OK || flash->residue == 0) { residue 3180 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue -= len; residue 3182 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (flash->residue == 0) { residue 3318 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue = len; residue 3364 drivers/net/ethernet/brocade/bna/bfa_ioc.c flash->residue = len; residue 321 drivers/net/ethernet/brocade/bna/bfa_ioc.h u32 residue; /* residual length */ residue 318 drivers/net/ethernet/smsc/smc91x.h state.residue); residue 759 drivers/net/wireless/realtek/rtw88/fw.c u32 residue, i; residue 771 drivers/net/wireless/realtek/rtw88/fw.c residue = offset & (FIFO_PAGE_SIZE - 1); residue 784 drivers/net/wireless/realtek/rtw88/fw.c for (i = FIFO_DUMP_ADDR + residue; residue 792 drivers/net/wireless/realtek/rtw88/fw.c residue = 0; residue 225 drivers/nvmem/rave-sp-eeprom.c unsigned int residue; residue 233 drivers/nvmem/rave-sp-eeprom.c residue = data_len; residue 258 drivers/nvmem/rave-sp-eeprom.c chunk = min(chunk, residue); residue 264 drivers/nvmem/rave-sp-eeprom.c residue -= chunk; residue 267 drivers/nvmem/rave-sp-eeprom.c } while (residue); residue 1535 drivers/parport/parport_ip32.c unsigned int residue; residue 1544 drivers/parport/parport_ip32.c residue = 0; residue 1563 drivers/parport/parport_ip32.c for (residue = priv->fifo_depth; residue > 0; residue--) { residue 1569 drivers/parport/parport_ip32.c if (residue) residue 1571 drivers/parport/parport_ip32.c p->name, residue, residue 1572 drivers/parport/parport_ip32.c (residue == 1) ? " was" : "s were"); residue 1599 drivers/parport/parport_ip32.c residue++; residue 1609 drivers/parport/parport_ip32.c return residue; residue 1136 drivers/scsi/bfa/bfa_fc.h u32 residue; /* residual data bytes */ residue 2137 drivers/scsi/bfa/bfa_fcpim.c s32 residue = 0; residue 2160 drivers/scsi/bfa/bfa_fcpim.c residue = be32_to_cpu(m->residue); residue 2164 drivers/scsi/bfa/bfa_fcpim.c residue = be32_to_cpu(m->residue); residue 2165 drivers/scsi/bfa/bfa_fcpim.c residue = -residue; residue 2171 drivers/scsi/bfa/bfa_fcpim.c m->scsi_status, sns_len, snsinfo, residue); residue 383 drivers/scsi/bfa/bfa_fcpim.h u8 *sns_info, s32 residue); residue 4275 drivers/scsi/bfa/bfa_ioc.c len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? residue 4276 drivers/scsi/bfa/bfa_ioc.c flash->residue : BFA_FLASH_DMA_BUF_SZ; residue 4280 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == flash->residue) ? 1 : 0; residue 4288 drivers/scsi/bfa/bfa_ioc.c flash->residue -= len; residue 4308 drivers/scsi/bfa/bfa_ioc.c len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? residue 4309 drivers/scsi/bfa/bfa_ioc.c flash->residue : BFA_FLASH_DMA_BUF_SZ; residue 4407 drivers/scsi/bfa/bfa_ioc.c if (status != BFA_STATUS_OK || flash->residue == 0) { residue 4427 drivers/scsi/bfa/bfa_ioc.c flash->residue -= len; residue 4429 drivers/scsi/bfa/bfa_ioc.c if (flash->residue == 0) { residue 4644 drivers/scsi/bfa/bfa_ioc.c flash->residue = len; residue 4698 drivers/scsi/bfa/bfa_ioc.c flash->residue = len; residue 5374 drivers/scsi/bfa/bfa_ioc.c len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? residue 5375 drivers/scsi/bfa/bfa_ioc.c phy->residue : BFA_PHY_DMA_BUF_SZ; residue 5379 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == phy->residue) ? 1 : 0; residue 5393 drivers/scsi/bfa/bfa_ioc.c phy->residue -= len; residue 5412 drivers/scsi/bfa/bfa_ioc.c len = (phy->residue < BFA_PHY_DMA_BUF_SZ) ? residue 5413 drivers/scsi/bfa/bfa_ioc.c phy->residue : BFA_PHY_DMA_BUF_SZ; residue 5637 drivers/scsi/bfa/bfa_ioc.c phy->residue = len; residue 5688 drivers/scsi/bfa/bfa_ioc.c phy->residue = len; residue 5766 drivers/scsi/bfa/bfa_ioc.c if (status != BFA_STATUS_OK || phy->residue == 0) { residue 5797 drivers/scsi/bfa/bfa_ioc.c phy->residue -= len; residue 5800 drivers/scsi/bfa/bfa_ioc.c if (phy->residue == 0) { residue 6228 drivers/scsi/bfa/bfa_ioc.c len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? residue 6229 drivers/scsi/bfa/bfa_ioc.c fru->residue : BFA_FRU_DMA_BUF_SZ; residue 6235 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == fru->residue) ? 1 : 0; residue 6237 drivers/scsi/bfa/bfa_ioc.c msg->trfr_cmpl = (len == fru->residue) ? fru->trfr_cmpl : 0; residue 6244 drivers/scsi/bfa/bfa_ioc.c fru->residue -= len; residue 6262 drivers/scsi/bfa/bfa_ioc.c len = (fru->residue < BFA_FRU_DMA_BUF_SZ) ? residue 6263 drivers/scsi/bfa/bfa_ioc.c fru->residue : BFA_FRU_DMA_BUF_SZ; residue 6377 drivers/scsi/bfa/bfa_ioc.c fru->residue = len; residue 6427 drivers/scsi/bfa/bfa_ioc.c fru->residue = len; residue 6496 drivers/scsi/bfa/bfa_ioc.c fru->residue = len; residue 6541 drivers/scsi/bfa/bfa_ioc.c fru->residue = len; residue 6579 drivers/scsi/bfa/bfa_ioc.c if (status != BFA_STATUS_OK || fru->residue == 0) { residue 6611 drivers/scsi/bfa/bfa_ioc.c fru->residue -= len; residue 6614 drivers/scsi/bfa/bfa_ioc.c if (fru->residue == 0) { residue 6998 drivers/scsi/bfa/bfa_ioc.c u32 off, l, s, residue, fifo_sz; residue 7000 drivers/scsi/bfa/bfa_ioc.c residue = len; residue 7007 drivers/scsi/bfa/bfa_ioc.c while (residue) { residue 7011 drivers/scsi/bfa/bfa_ioc.c if (l > residue) residue 7012 drivers/scsi/bfa/bfa_ioc.c l = residue; residue 7031 drivers/scsi/bfa/bfa_ioc.c residue -= l; residue 478 drivers/scsi/bfa/bfa_ioc.h u32 residue; /* residual length */ residue 670 drivers/scsi/bfa/bfa_ioc.h u32 residue; /* residual length */ residue 719 drivers/scsi/bfa/bfa_ioc.h u32 residue; /* residual length */ residue 35 drivers/scsi/bfa/bfad_im.c int sns_len, u8 *sns_info, s32 residue) residue 55 drivers/scsi/bfa/bfad_im.c if (residue > 0) { residue 56 drivers/scsi/bfa/bfad_im.c bfa_trc(bfad, residue); residue 57 drivers/scsi/bfa/bfad_im.c scsi_set_resid(cmnd, residue); residue 59 drivers/scsi/bfa/bfad_im.c (scsi_bufflen(cmnd) - residue) < residue 783 drivers/scsi/bfa/bfi_ms.h __be32 residue; /* IO residual length in bytes */ residue 1345 drivers/spi/spi-pl022.c int residue; residue 1348 drivers/spi/spi-pl022.c residue = pl022->cur_transfer->len % pl022->cur_chip->n_bytes; residue 1349 drivers/spi/spi-pl022.c if (unlikely(residue != 0)) { residue 44 drivers/staging/comedi/drivers/comedi_isadma.c unsigned int residue; residue 48 drivers/staging/comedi/drivers/comedi_isadma.c residue = get_dma_residue(dma_chan); residue 51 drivers/staging/comedi/drivers/comedi_isadma.c return residue; residue 67 drivers/staging/comedi/drivers/comedi_isadma.c unsigned int residue; residue 70 drivers/staging/comedi/drivers/comedi_isadma.c residue = comedi_isadma_disable(dma_chan); residue 71 drivers/staging/comedi/drivers/comedi_isadma.c while (residue % size) { residue 81 drivers/staging/comedi/drivers/comedi_isadma.c if (new_residue == residue) { residue 86 drivers/staging/comedi/drivers/comedi_isadma.c residue = new_residue; residue 90 drivers/staging/comedi/drivers/comedi_isadma.c return residue; residue 476 drivers/staging/comedi/drivers/das16.c unsigned int residue; residue 491 drivers/staging/comedi/drivers/das16.c residue = comedi_isadma_disable_on_sample(desc->chan, residue 495 drivers/staging/comedi/drivers/das16.c if (residue > desc->size) { residue 500 drivers/staging/comedi/drivers/das16.c nbytes = desc->size - residue; residue 369 drivers/staging/comedi/drivers/das1800.c unsigned int residue = comedi_isadma_disable(desc->chan); residue 370 drivers/staging/comedi/drivers/das1800.c unsigned int nbytes = desc->size - residue; residue 142 drivers/staging/comedi/drivers/ni_at_a2150.c unsigned int max_points, num_points, residue, leftover; residue 170 drivers/staging/comedi/drivers/ni_at_a2150.c residue = comedi_isadma_disable(desc->chan); residue 174 drivers/staging/comedi/drivers/ni_at_a2150.c num_points = max_points - comedi_bytes_to_samples(s, residue); residue 192 drivers/staging/comedi/drivers/ni_at_a2150.c if (residue) residue 80 drivers/staging/comedi/drivers/ni_labpc_isadma.c unsigned int residue; residue 89 drivers/staging/comedi/drivers/ni_labpc_isadma.c residue = comedi_isadma_disable(desc->chan); residue 95 drivers/staging/comedi/drivers/ni_labpc_isadma.c nsamples = max_samples - comedi_bytes_to_samples(s, residue); residue 102 drivers/staging/ralink-gdma/ralink-gdma.c u32 residue; residue 445 drivers/staging/ralink-gdma/ralink-gdma.c desc->residue -= desc->sg[chan->next_sg - 1].len; residue 528 drivers/staging/ralink-gdma/ralink-gdma.c desc->residue = 0; residue 547 drivers/staging/ralink-gdma/ralink-gdma.c desc->residue += sg_dma_len(sg); residue 583 drivers/staging/ralink-gdma/ralink-gdma.c desc->residue = len; residue 628 drivers/staging/ralink-gdma/ralink-gdma.c desc->residue = buf_len; residue 678 drivers/staging/ralink-gdma/ralink-gdma.c state->residue = desc->residue - residue 681 drivers/staging/ralink-gdma/ralink-gdma.c state->residue = desc->residue; residue 685 drivers/staging/ralink-gdma/ralink-gdma.c state->residue = to_gdma_dma_desc(vdesc)->residue; residue 689 drivers/staging/ralink-gdma/ralink-gdma.c dev_dbg(c->device->dev, "tx residue %d bytes\n", state->residue); residue 398 drivers/tty/isicom.c short txcount, wrd, residue, word_count, cnt; residue 448 drivers/tty/isicom.c residue = NO; residue 453 drivers/tty/isicom.c if (residue == YES) { residue 454 drivers/tty/isicom.c residue = NO; residue 478 drivers/tty/isicom.c residue = YES; residue 54 drivers/tty/serial/8250/8250_dma.c count = dma->rx_size - state.residue; residue 100 drivers/tty/serial/8250/8250_mtk.c total = dma->rx_size - state.residue; residue 792 drivers/tty/serial/8250/8250_omap.c count = dma->rx_size - state.residue; residue 977 drivers/tty/serial/amba-pl011.c pending = sgbuf->sg.length - state.residue; residue 1023 drivers/tty/serial/amba-pl011.c pending = sgbuf->sg.length - state.residue; residue 1078 drivers/tty/serial/amba-pl011.c if (likely(state.residue < dmarx->last_residue)) { residue 1080 drivers/tty/serial/amba-pl011.c size = dmarx->last_residue - state.residue; residue 1084 drivers/tty/serial/amba-pl011.c dmarx->last_residue = state.residue; residue 1139 drivers/tty/serial/atmel_serial.c ring->head = sg_dma_len(&atmel_port->sg_rx) - state.residue; residue 1084 drivers/tty/serial/fsl_lpuart.c ring->head = sport->rx_sgl.length - state.residue; residue 1106 drivers/tty/serial/imx.c rx_ring->head = sg_dma_len(sgl) - state.residue; residue 457 drivers/tty/serial/msm_serial.c count = dma->count - state.residue; residue 180 drivers/tty/serial/samsung.c count = dma->tx_bytes_requested - state.residue; residue 208 drivers/tty/serial/samsung.c count = dma->tx_bytes_requested - state.residue; residue 407 drivers/tty/serial/samsung.c received = dma->rx_bytes_requested - state.residue; residue 458 drivers/tty/serial/samsung.c received = dma->rx_bytes_requested - state.residue; residue 574 drivers/tty/serial/samsung.c received = dma->rx_bytes_requested - state.residue; residue 519 drivers/tty/serial/serial-tegra.c count = tup->tx_bytes_requested - state.residue; residue 618 drivers/tty/serial/serial-tegra.c count = tup->tx_bytes_requested - state.residue; residue 694 drivers/tty/serial/serial-tegra.c unsigned int residue) residue 701 drivers/tty/serial/serial-tegra.c count = tup->rx_bytes_requested - residue; residue 755 drivers/tty/serial/serial-tegra.c tegra_uart_rx_buffer_push(tup, state.residue); residue 909 drivers/tty/serial/serial-tegra.c tegra_uart_rx_buffer_push(tup, state.residue); residue 1512 drivers/tty/serial/sh-sci.c read = sg_dma_len(&s->sg_rx[active]) - state.residue; residue 1190 drivers/tty/serial/sirfsoc_uart.c if (SIRFSOC_RX_DMA_BUF_SIZE - tx_state.residue != residue 1192 drivers/tty/serial/sirfsoc_uart.c xmit->head = SIRFSOC_RX_DMA_BUF_SIZE - tx_state.residue; residue 220 drivers/tty/serial/sprd_serial.c if (state.residue) { residue 221 drivers/tty/serial/sprd_serial.c trans_len = state.residue - sp->tx_dma.phys_addr; residue 414 drivers/tty/serial/sprd_serial.c if (!state.residue && sp->pos == sp->rx_dma.phys_addr) residue 417 drivers/tty/serial/sprd_serial.c if (!state.residue) { residue 422 drivers/tty/serial/sprd_serial.c sp->rx_dma.trans_len = state.residue - sp->pos; residue 423 drivers/tty/serial/sprd_serial.c sp->pos = state.residue; residue 185 drivers/tty/serial/stm32-usart.c (*last_res != state.residue)) residue 56 drivers/usb/c67x00/c67x00-sched.c u8 residue; /* Byte 9 */ residue 115 drivers/usb/c67x00/c67x00-sched.c #define td_residue(td) ((__s8)(td->residue)) residue 151 drivers/usb/c67x00/c67x00-sched.c dev_dbg(dev, "residue: 0x%02x\n", td->residue); residue 623 drivers/usb/c67x00/c67x00-sched.c td->residue = 0; residue 299 drivers/usb/gadget/function/f_mass_storage.c u32 residue; residue 711 drivers/usb/gadget/function/f_mass_storage.c common->residue -= nread; residue 908 drivers/usb/gadget/function/f_mass_storage.c common->residue -= nwritten; residue 1532 drivers/usb/gadget/function/f_mass_storage.c } else if (common->residue == 0) { residue 1560 drivers/usb/gadget/function/f_mass_storage.c if (common->residue == 0) { residue 1637 drivers/usb/gadget/function/f_mass_storage.c csw->Residue = cpu_to_le32(common->residue); residue 1690 drivers/usb/gadget/function/f_mass_storage.c common->residue = common->data_size; residue 2067 drivers/usb/gadget/function/f_mass_storage.c common->residue -= reply; residue 3615 drivers/usb/host/xhci-ring.c unsigned int residue; residue 3623 drivers/usb/host/xhci-ring.c residue = total_packet_count % (max_burst + 1); residue 3627 drivers/usb/host/xhci-ring.c if (residue == 0) residue 3629 drivers/usb/host/xhci-ring.c return residue - 1; residue 245 drivers/usb/musb/musb_cppi41.c transferred = cppi41_channel->prog_len - txstate.residue; residue 1160 drivers/usb/renesas_usbhs/fifo.c received_size = pkt->length - state.residue; residue 499 drivers/usb/storage/ene_ub6250.c unsigned int residue; residue 554 drivers/usb/storage/ene_ub6250.c residue = le32_to_cpu(bcs->Residue); residue 560 drivers/usb/storage/ene_ub6250.c if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { residue 561 drivers/usb/storage/ene_ub6250.c residue = min(residue, transfer_length); residue 564 drivers/usb/storage/ene_ub6250.c (int)residue)); residue 208 drivers/usb/storage/realtek_cr.c unsigned int residue; residue 255 drivers/usb/storage/realtek_cr.c residue = bcs->Residue; residue 263 drivers/usb/storage/realtek_cr.c if (residue) residue 264 drivers/usb/storage/realtek_cr.c residue = residue < buf_len ? residue : buf_len; residue 267 drivers/usb/storage/realtek_cr.c *act_len = buf_len - residue; residue 1108 drivers/usb/storage/transport.c unsigned int residue; residue 1239 drivers/usb/storage/transport.c residue = le32_to_cpu(bcs->Residue); residue 1242 drivers/usb/storage/transport.c residue, bcs->Status); residue 1270 drivers/usb/storage/transport.c if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { residue 1286 drivers/usb/storage/transport.c residue = min(residue, transfer_length); residue 1288 drivers/usb/storage/transport.c (int) residue)); residue 457 include/linux/dmaengine.h u32 residue; residue 618 include/linux/dmaengine.h u32 residue; residue 1292 include/linux/dmaengine.h dma_set_tx_state(struct dma_tx_state *st, dma_cookie_t last, dma_cookie_t used, u32 residue) residue 1297 include/linux/dmaengine.h st->residue = residue; residue 16 include/trace/events/tegra_apb_dma.h __field(__u32, residue) residue 21 include/trace/events/tegra_apb_dma.h __entry->residue = state ? state->residue : (u32)-1; residue 24 include/trace/events/tegra_apb_dma.h __get_str(chan), __entry->cookie, __entry->residue) residue 251 sound/core/pcm_dmaengine.c if (state.residue > 0 && state.residue <= buf_size) residue 252 sound/core/pcm_dmaengine.c pos = buf_size - state.residue; residue 283 sound/soc/sh/rcar/dma.c if (state.residue > 0 && state.residue <= dmaen->dma_len) residue 284 sound/soc/sh/rcar/dma.c pos = dmaen->dma_len - state.residue; residue 420 sound/soc/sprd/sprd-pcm-dma.c pointer[i] = state.residue - runtime->dma_addr -