Home
last modified time | relevance | path

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

1234

/linux/arch/mips/math-emu/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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/drivers/comedi/drivers/
H A 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()
H A 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()
H A Dni_at_a2150.c140 unsigned int max_points, num_points, residue, leftover; in a2150_interrupt() local
168 residue = comedi_isadma_disable(desc->chan); in a2150_interrupt()
172 num_points = max_points - comedi_bytes_to_samples(s, residue); in a2150_interrupt()
190 if (residue) in a2150_interrupt()
/linux/drivers/crypto/tegra/
H A 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 …]
/linux/drivers/dma/
H A 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()
/linux/include/trace/events/
H A Dtegra_apb_dma.h16 __field(__u32, residue)
21 __entry->residue = state ? state->residue : (u32)-1;
23 TP_printk("channel %s: dma cookie %d, residue %u",
24 __get_str(chan), __entry->cookie, __entry->residue)
/linux/drivers/nvmem/
H A 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/drivers/dma/dw/
H A 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/drivers/dma/stm32/
H A 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 …]
H A Dstm32-mdma.c1325 u32 cisr, clar, cbndtr, residue, modulo, burst_size; in stm32_mdma_desc_residue() local
1330 residue = 0; in stm32_mdma_desc_residue()
1340 residue += STM32_MDMA_CBNDTR_BNDT(hwdesc->cbndtr); in stm32_mdma_desc_residue()
1343 residue += cbndtr & STM32_MDMA_CBNDTR_BNDT_MASK; in stm32_mdma_desc_residue()
1350 return residue; in stm32_mdma_desc_residue()
1353 modulo = residue % burst_size; in stm32_mdma_desc_residue()
1355 residue = residue - modulo + burst_size; in stm32_mdma_desc_residue()
1357 return residue; in stm32_mdma_desc_residue()
1368 u32 residue = 0; in stm32_mdma_tx_status() local
1378 residue = stm32_mdma_desc_residue(chan, chan->desc, chan->curr_hwdesc, state); in stm32_mdma_tx_status()
[all …]
/linux/Documentation/core-api/
H A Ddma-isa-lpc.rst118 int flags, residue;
138 residue = dma_get_residue(channel);
139 if (residue != 0)
141 " %d bytes left!\n", residue);
/linux/sound/core/
H A 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/drivers/usb/storage/
H A 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/drivers/parport/
H A Dparport_ip32.c1535 unsigned int residue; in parport_ip32_get_fifo_residue() local
1544 residue = 0; in parport_ip32_get_fifo_residue()
1563 for (residue = priv->fifo_depth; residue > 0; residue--) { in parport_ip32_get_fifo_residue()
1569 if (residue) in parport_ip32_get_fifo_residue()
1571 p->name, residue, in parport_ip32_get_fifo_residue()
1572 (residue == 1) ? " was" : "s were"); in parport_ip32_get_fifo_residue()
1599 residue++; in parport_ip32_get_fifo_residue()
1609 return residue; in parport_ip32_get_fifo_residue()
/linux/arch/arm/kernel/
H A Ddma.c256 if (dma->d_ops->residue) in get_dma_residue()
257 ret = dma->d_ops->residue(chan, dma); in get_dma_residue()
/linux/drivers/net/ethernet/brocade/bna/
H A Dbfa_ioc.c1696 u32 off, l, s, residue, fifo_sz; in bfa_flash_raw_read() local
1698 residue = len; in bfa_flash_raw_read()
1705 while (residue) { in bfa_flash_raw_read()
1709 if (l > residue) in bfa_flash_raw_read()
1710 l = residue; in bfa_flash_raw_read()
1729 residue -= l; in bfa_flash_raw_read()
3072 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send()
3073 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send()
3077 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send()
3085 flash->residue -= len; in bfa_flash_write_send()
[all …]
/linux/arch/arm/include/asm/mach/
H A Ddma.h19 int (*residue)(unsigned int, dma_t *); /* optional */ member
/linux/fs/afs/
H A Dcallback.c217 struct afs_callback_break *residue = cbb; in afs_break_some_callbacks() local
244 *residue++ = *cbb; in afs_break_some_callbacks()
/linux/drivers/dma/ti/
H A Dk3-udma.c224 u32 residue; member
246 u32 residue; member
1078 uc->tx_drain.residue = bcnt - peer_bcnt; in udma_is_desc_really_done()
1098 residue_diff = uc->tx_drain.residue; in udma_check_tx_completion()
1114 residue_diff -= uc->tx_drain.residue; in udma_check_tx_completion()
1123 uc->tx_drain.residue; in udma_check_tx_completion()
1138 udma_decrement_byte_counters(uc, d->residue); in udma_check_tx_completion()
1191 udma_decrement_byte_counters(uc, d->residue); in udma_ring_irq_handler()
1227 udma_decrement_byte_counters(uc, d->residue); in udma_udma_irq_handler()
2950 d->residue += sg_dma_len(sgent); in udma_prep_slave_sg_tr()
[all …]

1234