Home
last modified time | relevance | path

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

12345

/linux-6.12.1/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-6.12.1/drivers/comedi/drivers/
Dcomedi_isadma.c42 unsigned int residue; in comedi_isadma_disable() local
46 residue = get_dma_residue(dma_chan); in comedi_isadma_disable()
49 return residue; in comedi_isadma_disable()
65 unsigned int residue; in comedi_isadma_disable_on_sample() local
68 residue = comedi_isadma_disable(dma_chan); in comedi_isadma_disable_on_sample()
69 while (residue % size) { in comedi_isadma_disable_on_sample()
79 if (new_residue == residue) { in comedi_isadma_disable_on_sample()
84 residue = new_residue; in comedi_isadma_disable_on_sample()
88 return residue; in comedi_isadma_disable_on_sample()
Dni_labpc_isadma.c79 unsigned int residue; in labpc_drain_dma() local
88 residue = comedi_isadma_disable(desc->chan); in labpc_drain_dma()
94 nsamples = max_samples - comedi_bytes_to_samples(s, residue); in labpc_drain_dma()
/linux-6.12.1/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-6.12.1/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()
Dst_fdma.c561 size_t residue = 0; in st_fdma_desc_residue() local
572 residue += fnode_read(fchan, FDMA_CNTN_OFST); in st_fdma_desc_residue()
575 residue += fdesc->node[i].desc->nbytes; in st_fdma_desc_residue()
578 return residue; in st_fdma_desc_residue()
597 txstate->residue = st_fdma_desc_residue(fchan, vd, true); in st_fdma_tx_status()
599 txstate->residue = st_fdma_desc_residue(fchan, vd, false); in st_fdma_tx_status()
601 txstate->residue = 0; in st_fdma_tx_status()
/linux-6.12.1/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-6.12.1/drivers/crypto/tegra/
Dtegra-se-hash.c35 struct tegra_se_datbuf residue; member
306 nresidue = (req->nbytes + rctx->residue.size) % rctx->blk_size; in tegra_sha_do_update()
307 nblks = (req->nbytes + rctx->residue.size) / rctx->blk_size; in tegra_sha_do_update()
319 rctx->datbuf.size = (req->nbytes + rctx->residue.size) - nresidue; in tegra_sha_do_update()
327 scatterwalk_map_and_copy(rctx->residue.buf + rctx->residue.size, in tegra_sha_do_update()
330 rctx->residue.size += req->nbytes; in tegra_sha_do_update()
335 if (rctx->residue.size) in tegra_sha_do_update()
336 memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size); in tegra_sha_do_update()
338 scatterwalk_map_and_copy(rctx->datbuf.buf + rctx->residue.size, in tegra_sha_do_update()
341 scatterwalk_map_and_copy(rctx->residue.buf, rctx->src_sg, in tegra_sha_do_update()
[all …]
Dtegra-se-aes.c76 struct tegra_se_datbuf residue; member
1473 nresidue = (req->nbytes + rctx->residue.size) % rctx->blk_size; in tegra_cmac_do_update()
1474 nblks = (req->nbytes + rctx->residue.size) / rctx->blk_size; in tegra_cmac_do_update()
1485 rctx->datbuf.size = (req->nbytes + rctx->residue.size) - nresidue; in tegra_cmac_do_update()
1495 scatterwalk_map_and_copy(rctx->residue.buf + rctx->residue.size, in tegra_cmac_do_update()
1498 rctx->residue.size += req->nbytes; in tegra_cmac_do_update()
1503 if (rctx->residue.size) in tegra_cmac_do_update()
1504 memcpy(rctx->datbuf.buf, rctx->residue.buf, rctx->residue.size); in tegra_cmac_do_update()
1506 scatterwalk_map_and_copy(rctx->datbuf.buf + rctx->residue.size, in tegra_cmac_do_update()
1509 scatterwalk_map_and_copy(rctx->residue.buf, rctx->src_sg, in tegra_cmac_do_update()
[all …]
/linux-6.12.1/drivers/dma/sf-pdma/
Dsf-pdma.c162 u64 residue = 0; in sf_pdma_desc_residue() local
179 residue = readq(regs->residue); in sf_pdma_desc_residue()
186 residue = desc->xfer_size; in sf_pdma_desc_residue()
191 return residue; in sf_pdma_desc_residue()
348 u64 residue; in sf_pdma_done_isr() local
352 residue = readq(regs->residue); in sf_pdma_done_isr()
354 if (!residue) { in sf_pdma_done_isr()
360 desc->src_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
361 desc->dst_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
362 desc->xfer_size = residue; in sf_pdma_done_isr()
[all …]
/linux-6.12.1/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-6.12.1/drivers/dma/dw/
Dcore.c200 first->residue = first->total_len; in dwc_dostart()
327 desc->residue -= desc->len; in dwc_scan_descriptors()
329 desc->residue -= to_dw_desc(active->prev)->len; in dwc_scan_descriptors()
365 desc->residue = desc->total_len; in dwc_scan_descriptors()
376 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
381 desc->residue -= desc->len; in dwc_scan_descriptors()
385 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
389 desc->residue -= child->len; in dwc_scan_descriptors()
984 u32 residue; in dwc_get_residue_and_status() local
991 residue = desc->residue; in dwc_get_residue_and_status()
[all …]
/linux-6.12.1/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-6.12.1/drivers/dma/stm32/
Dstm32-dma.c1360 u32 residue; in stm32_dma_desc_residue() local
1390 residue = stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue()
1397 residue = sg_req->len; in stm32_dma_desc_residue()
1409 residue += desc->sg_req[i].len; in stm32_dma_desc_residue()
1412 return residue; in stm32_dma_desc_residue()
1415 modulo = residue % burst_size; in stm32_dma_desc_residue()
1417 residue = residue - modulo + burst_size; in stm32_dma_desc_residue()
1419 return residue; in stm32_dma_desc_residue()
1430 u32 residue = 0; in stm32_dma_tx_status() local
1444 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status()
[all …]
/linux-6.12.1/drivers/usb/storage/
Dtransport.c1120 unsigned int residue; in usb_stor_Bulk_transport() local
1251 residue = le32_to_cpu(bcs->Residue); in usb_stor_Bulk_transport()
1254 residue, bcs->Status); in usb_stor_Bulk_transport()
1282 if (residue && !(us->fflags & US_FL_IGNORE_RESIDUE)) { in usb_stor_Bulk_transport()
1298 residue = min(residue, transfer_length); in usb_stor_Bulk_transport()
1299 scsi_set_resid(srb, max(scsi_get_resid(srb), residue)); in usb_stor_Bulk_transport()
Drealtek_cr.c208 unsigned int residue; in rts51x_bulk_transport() local
255 residue = bcs->Residue; in rts51x_bulk_transport()
263 if (residue) in rts51x_bulk_transport()
264 residue = residue < buf_len ? residue : buf_len; in rts51x_bulk_transport()
267 *act_len = buf_len - residue; in rts51x_bulk_transport()
/linux-6.12.1/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-6.12.1/sound/core/
Dpcm_dmaengine.c261 if (state.residue > 0 && state.residue <= buf_size) in snd_dmaengine_pcm_pointer()
262 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer()
/linux-6.12.1/arch/arm/include/asm/mach/
Ddma.h19 int (*residue)(unsigned int, dma_t *); /* optional */ member
/linux-6.12.1/arch/arm/kernel/
Ddma.c256 if (dma->d_ops->residue) in get_dma_residue()
257 ret = dma->d_ops->residue(chan, dma); in get_dma_residue()

12345