Home
last modified time | relevance | path

Searched refs:residue (Results 1 – 25 of 115) sorted by relevance

12345

/Linux-v5.10/arch/mips/math-emu/
Dsp_rint.c17 u32 residue; in ieee754sp_rint() local
41 residue = xm; in ieee754sp_rint()
43 sticky = residue != 0; in ieee754sp_rint()
46 residue = xm << (xe + 1); in ieee754sp_rint()
47 residue <<= 31 - SP_FBITS; in ieee754sp_rint()
48 round = (residue >> 31) != 0; in ieee754sp_rint()
49 sticky = (residue << 1) != 0; in ieee754sp_rint()
Ddp_tlong.c14 u64 residue; in ieee754dp_tlong() local
57 residue = xm; in ieee754dp_tlong()
59 sticky = residue != 0; in ieee754dp_tlong()
65 residue = xm << (xe + 1); in ieee754dp_tlong()
66 residue <<= 63 - DP_FBITS; in ieee754dp_tlong()
67 round = (residue >> 63) != 0; in ieee754dp_tlong()
68 sticky = (residue << 1) != 0; in ieee754dp_tlong()
Dsp_tint.c14 u32 residue; in ieee754sp_tint() local
57 residue = xm; in ieee754sp_tint()
59 sticky = residue != 0; in ieee754sp_tint()
65 residue = xm << (xe + 1); in ieee754sp_tint()
66 residue <<= 31 - SP_FBITS; in ieee754sp_tint()
67 round = (residue >> 31) != 0; in ieee754sp_tint()
68 sticky = (residue << 1) != 0; in ieee754sp_tint()
Ddp_rint.c17 u64 residue; in ieee754dp_rint() local
41 residue = xm; in ieee754dp_rint()
43 sticky = residue != 0; in ieee754dp_rint()
46 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_rint()
47 round = (residue >> 63) != 0; in ieee754dp_rint()
48 sticky = (residue << 1) != 0; in ieee754dp_rint()
Dsp_tlong.c14 u32 residue; in ieee754sp_tlong() local
57 residue = xm; in ieee754sp_tlong()
59 sticky = residue != 0; in ieee754sp_tlong()
62 residue = xm << (32 - SP_FBITS + xe); in ieee754sp_tlong()
63 round = (residue >> 31) != 0; in ieee754sp_tlong()
64 sticky = (residue << 1) != 0; in ieee754sp_tlong()
Ddp_tint.c14 u64 residue; in ieee754dp_tint() local
54 residue = xm; in ieee754dp_tint()
56 sticky = residue != 0; in ieee754dp_tint()
59 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_tint()
60 round = (residue >> 63) != 0; in ieee754dp_tint()
61 sticky = (residue << 1) != 0; in ieee754dp_tint()
/Linux-v5.10/drivers/staging/comedi/drivers/
Dcomedi_isadma.c44 unsigned int residue; in comedi_isadma_disable() local
48 residue = get_dma_residue(dma_chan); in comedi_isadma_disable()
51 return residue; in comedi_isadma_disable()
67 unsigned int residue; in comedi_isadma_disable_on_sample() local
70 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
71 while (residue % size) { in comedi_isadma_disable_on_sample()
81 if (new_residue == residue) { in comedi_isadma_disable_on_sample()
86 residue = new_residue; in comedi_isadma_disable_on_sample()
90 return residue; in comedi_isadma_disable_on_sample()
Dni_labpc_isadma.c80 unsigned int residue; in labpc_drain_dma() local
89 residue = comedi_isadma_disable(desc->chan); in labpc_drain_dma()
95 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma()
/Linux-v5.10/drivers/dma/sh/
Dusb-dmac.c57 u32 residue; member
473 unsigned int residue = sg->size; in usb_dmac_get_current_residue() local
480 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; in usb_dmac_get_current_residue()
482 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; in usb_dmac_get_current_residue()
484 return residue; in usb_dmac_get_current_residue()
491 u32 residue = 0; in usb_dmac_chan_get_residue_if_complete() local
495 residue = desc->residue; in usb_dmac_chan_get_residue_if_complete()
500 return residue; in usb_dmac_chan_get_residue_if_complete()
506 u32 residue = 0; in usb_dmac_chan_get_residue() local
520 residue += desc->sg[i].size; in usb_dmac_chan_get_residue()
[all …]
/Linux-v5.10/drivers/dma/
Ddmaengine.h79 state->residue = 0; in dma_cookie_status()
85 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) in dma_set_residue() argument
88 state->residue = residue; in dma_set_residue()
137 .residue = 0 in dmaengine_desc_callback_invoke()
Dstm32-dma.c1092 u32 residue; in stm32_dma_desc_residue() local
1122 residue = stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue()
1128 residue = sg_req->len; in stm32_dma_desc_residue()
1140 residue += desc->sg_req[i].len; in stm32_dma_desc_residue()
1143 return residue; in stm32_dma_desc_residue()
1146 modulo = residue % burst_size; in stm32_dma_desc_residue()
1148 residue = residue - modulo + burst_size; in stm32_dma_desc_residue()
1150 return residue; in stm32_dma_desc_residue()
1161 u32 residue = 0; in stm32_dma_tx_status() local
1170 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status()
[all …]
Dst_fdma.c560 size_t residue = 0; in st_fdma_desc_residue() local
571 residue += fnode_read(fchan, FDMA_CNTN_OFST); in st_fdma_desc_residue()
574 residue += fdesc->node[i].desc->nbytes; in st_fdma_desc_residue()
577 return residue; in st_fdma_desc_residue()
596 txstate->residue = st_fdma_desc_residue(fchan, vd, true); in st_fdma_tx_status()
598 txstate->residue = st_fdma_desc_residue(fchan, vd, false); in st_fdma_tx_status()
600 txstate->residue = 0; in st_fdma_tx_status()
/Linux-v5.10/drivers/i2c/busses/
Di2c-zx2967.c61 size_t residue; member
142 i2c->residue--; in zx2967_i2c_empty_rx_fifo()
152 size_t residue = i2c->residue; in zx2967_i2c_fill_tx_fifo() local
155 if (residue == 0) { in zx2967_i2c_fill_tx_fifo()
156 dev_err(DEV(i2c), "residue is %d\n", (int)residue); in zx2967_i2c_fill_tx_fifo()
160 if (residue <= I2C_FIFO_MAX) { in zx2967_i2c_fill_tx_fifo()
161 zx2967_i2c_writesb(i2c, buf, REG_DATA, residue); in zx2967_i2c_fill_tx_fifo()
164 i2c->residue = 0; in zx2967_i2c_fill_tx_fifo()
168 i2c->residue -= I2C_FIFO_MAX; in zx2967_i2c_fill_tx_fifo()
283 i2c->residue = msg->len; in zx2967_i2c_xfer_msg()
[all …]
/Linux-v5.10/include/trace/events/
Dtegra_apb_dma.h16 __field(__u32, residue)
21 __entry->residue = state ? state->residue : (u32)-1;
24 __get_str(chan), __entry->cookie, __entry->residue)
/Linux-v5.10/drivers/dma/sf-pdma/
Dsf-pdma.c170 u64 residue = 0; in sf_pdma_desc_residue() local
181 residue = readq(regs->residue); in sf_pdma_desc_residue()
188 residue = desc->xfer_size; in sf_pdma_desc_residue()
193 return residue; in sf_pdma_desc_residue()
330 u64 residue; in sf_pdma_done_isr() local
334 residue = readq(regs->residue); in sf_pdma_done_isr()
336 if (!residue) { in sf_pdma_done_isr()
342 desc->src_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
343 desc->dst_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
344 desc->xfer_size = residue; in sf_pdma_done_isr()
[all …]
/Linux-v5.10/drivers/nvmem/
Drave-sp-eeprom.c225 unsigned int residue; in rave_sp_eeprom_access() local
233 residue = data_len; in rave_sp_eeprom_access()
258 chunk = min(chunk, residue); in rave_sp_eeprom_access()
264 residue -= chunk; in rave_sp_eeprom_access()
267 } while (residue); in rave_sp_eeprom_access()
/Linux-v5.10/drivers/staging/ralink-gdma/
Dralink-gdma.c102 u32 residue; member
445 desc->residue -= desc->sg[chan->next_sg - 1].len; in gdma_dma_chan_irq()
528 desc->residue = 0; in gdma_dma_prep_slave_sg()
547 desc->residue += sg_dma_len(sg); in gdma_dma_prep_slave_sg()
583 desc->residue = len; in gdma_dma_prep_dma_memcpy()
628 desc->residue = buf_len; in gdma_dma_prep_dma_cyclic()
678 state->residue = desc->residue - in gdma_dma_tx_status()
681 state->residue = desc->residue; in gdma_dma_tx_status()
685 state->residue = to_gdma_dma_desc(vdesc)->residue; in gdma_dma_tx_status()
689 dev_dbg(c->device->dev, "tx residue %d bytes\n", state->residue); in gdma_dma_tx_status()
/Linux-v5.10/drivers/dma/dw/
Dcore.c202 first->residue = first->total_len; in dwc_dostart()
329 desc->residue -= desc->len; in dwc_scan_descriptors()
331 desc->residue -= to_dw_desc(active->prev)->len; in dwc_scan_descriptors()
367 desc->residue = desc->total_len; in dwc_scan_descriptors()
378 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
383 desc->residue -= desc->len; in dwc_scan_descriptors()
387 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
391 desc->residue -= child->len; in dwc_scan_descriptors()
899 u32 residue; in dwc_get_residue() local
906 residue = desc->residue; in dwc_get_residue()
[all …]
/Linux-v5.10/drivers/dma/ti/
Dk3-udma.c168 u32 residue; member
190 u32 residue; member
949 uc->tx_drain.residue = bcnt - peer_bcnt; in udma_is_desc_really_done()
969 residue_diff = uc->tx_drain.residue; in udma_check_tx_completion()
985 residue_diff -= uc->tx_drain.residue; in udma_check_tx_completion()
994 uc->tx_drain.residue; in udma_check_tx_completion()
1009 uc->bcnt += d->residue; in udma_check_tx_completion()
1063 uc->bcnt += d->residue; in udma_ring_irq_handler()
1100 uc->bcnt += d->residue; in udma_udma_irq_handler()
2086 d->residue += sg_dma_len(sgent); in udma_prep_slave_sg_tr()
[all …]
/Linux-v5.10/fs/afs/
Dcallback.c145 struct afs_callback_break *residue = cbb; in afs_break_some_callbacks() local
166 *residue++ = *cbb; in afs_break_some_callbacks()
/Linux-v5.10/sound/core/
Dpcm_dmaengine.c252 if (state.residue > 0 && state.residue <= buf_size) in snd_dmaengine_pcm_pointer()
253 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer()
/Linux-v5.10/drivers/scsi/bfa/
Dbfa_ioc.c4270 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send()
4271 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send()
4275 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send()
4283 flash->residue -= len; in bfa_flash_write_send()
4303 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send()
4304 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send()
4402 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr()
4422 flash->residue -= len; in bfa_flash_intr()
4424 if (flash->residue == 0) { in bfa_flash_intr()
4639 flash->residue = len; in bfa_flash_update_part()
[all …]
/Linux-v5.10/Documentation/core-api/
Ddma-isa-lpc.rst118 int flags, residue;
138 residue = dma_get_residue(channel);
139 if (residue != 0)
141 " %d bytes left!\n", residue);
/Linux-v5.10/arch/arm/include/asm/mach/
Ddma.h19 int (*residue)(unsigned int, dma_t *); /* optional */ member
/Linux-v5.10/drivers/usb/storage/
Dtransport.c1108 unsigned int residue; in usb_stor_Bulk_transport() local
1239 residue = le32_to_cpu(bcs->Residue); in usb_stor_Bulk_transport()
1242 residue, bcs->Status); in usb_stor_Bulk_transport()
1270 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { in usb_stor_Bulk_transport()
1286 residue = min(residue, transfer_length); in usb_stor_Bulk_transport()
1287 scsi_set_resid(srb, max(scsi_get_resid(srb), residue)); in usb_stor_Bulk_transport()

12345