Home
last modified time | relevance | path

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

1234

/Linux-v4.19/arch/mips/math-emu/
Dsp_rint.c28 u32 residue; in ieee754sp_rint() local
52 residue = xm; in ieee754sp_rint()
54 sticky = residue != 0; in ieee754sp_rint()
57 residue = xm << (xe + 1); in ieee754sp_rint()
58 residue <<= 31 - SP_FBITS; in ieee754sp_rint()
59 round = (residue >> 31) != 0; in ieee754sp_rint()
60 sticky = (residue << 1) != 0; in ieee754sp_rint()
Ddp_tlong.c26 u64 residue; in ieee754dp_tlong() local
69 residue = xm; in ieee754dp_tlong()
71 sticky = residue != 0; in ieee754dp_tlong()
77 residue = xm << (xe + 1); in ieee754dp_tlong()
78 residue <<= 63 - DP_FBITS; in ieee754dp_tlong()
79 round = (residue >> 63) != 0; in ieee754dp_tlong()
80 sticky = (residue << 1) != 0; in ieee754dp_tlong()
Dsp_tint.c26 u32 residue; in ieee754sp_tint() local
69 residue = xm; in ieee754sp_tint()
71 sticky = residue != 0; in ieee754sp_tint()
77 residue = xm << (xe + 1); in ieee754sp_tint()
78 residue <<= 31 - SP_FBITS; in ieee754sp_tint()
79 round = (residue >> 31) != 0; in ieee754sp_tint()
80 sticky = (residue << 1) != 0; in ieee754sp_tint()
Ddp_rint.c28 u64 residue; in ieee754dp_rint() local
52 residue = xm; in ieee754dp_rint()
54 sticky = residue != 0; in ieee754dp_rint()
57 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_rint()
58 round = (residue >> 63) != 0; in ieee754dp_rint()
59 sticky = (residue << 1) != 0; in ieee754dp_rint()
Dsp_tlong.c26 u32 residue; in ieee754sp_tlong() local
69 residue = xm; in ieee754sp_tlong()
71 sticky = residue != 0; in ieee754sp_tlong()
74 residue = xm << (32 - SP_FBITS + xe); in ieee754sp_tlong()
75 round = (residue >> 31) != 0; in ieee754sp_tlong()
76 sticky = (residue << 1) != 0; in ieee754sp_tlong()
Ddp_tint.c26 u64 residue; in ieee754dp_tint() local
66 residue = xm; in ieee754dp_tint()
68 sticky = residue != 0; in ieee754dp_tint()
71 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_tint()
72 round = (residue >> 63) != 0; in ieee754dp_tint()
73 sticky = (residue << 1) != 0; in ieee754dp_tint()
/Linux-v4.19/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-v4.19/drivers/dma/
Ddmaengine.h79 state->residue = 0; in dma_cookie_status()
84 static inline void dma_set_residue(struct dma_tx_state *state, u32 residue) in dma_set_residue() argument
87 state->residue = residue; in dma_set_residue()
129 .residue = 0 in dmaengine_desc_callback_invoke()
Ddma-jz4740.c448 unsigned int residue, count; in jz4740_dma_desc_residue() local
451 residue = 0; in jz4740_dma_desc_residue()
454 residue += desc->sg[i].len; in jz4740_dma_desc_residue()
459 residue += count << chan->transfer_shift; in jz4740_dma_desc_residue()
462 return residue; in jz4740_dma_desc_residue()
480 state->residue = jz4740_dma_desc_residue(chan, chan->desc, in jz4740_dma_tx_status()
483 state->residue = jz4740_dma_desc_residue(chan, in jz4740_dma_tx_status()
486 state->residue = 0; in jz4740_dma_tx_status()
Dstm32-dma.c1054 u32 residue = 0; in stm32_dma_desc_residue() local
1062 residue = stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue()
1072 residue += desc->sg_req[i].len; in stm32_dma_desc_residue()
1073 residue += stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue()
1077 return residue; in stm32_dma_desc_residue()
1080 modulo = residue % burst_size; in stm32_dma_desc_residue()
1082 residue = residue - modulo + burst_size; in stm32_dma_desc_residue()
1084 return residue; in stm32_dma_desc_residue()
1095 u32 residue = 0; in stm32_dma_tx_status() local
1104 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status()
[all …]
Ddma-jz4780.c552 unsigned int residue, count; in jz4780_dma_desc_residue() local
555 residue = 0; in jz4780_dma_desc_residue()
558 residue += desc->desc[i].dtc << jzchan->transfer_shift; in jz4780_dma_desc_residue()
563 residue += count << jzchan->transfer_shift; in jz4780_dma_desc_residue()
566 return residue; in jz4780_dma_desc_residue()
586 txstate->residue = jz4780_dma_desc_residue(jzchan, in jz4780_dma_tx_status()
589 txstate->residue = jz4780_dma_desc_residue(jzchan, jzchan->desc, in jz4780_dma_tx_status()
592 txstate->residue = 0; in jz4780_dma_tx_status()
Dst_fdma.c566 size_t residue = 0; in st_fdma_desc_residue() local
577 residue += fnode_read(fchan, FDMA_CNTN_OFST); in st_fdma_desc_residue()
580 residue += fdesc->node[i].desc->nbytes; in st_fdma_desc_residue()
583 return residue; in st_fdma_desc_residue()
602 txstate->residue = st_fdma_desc_residue(fchan, vd, true); in st_fdma_tx_status()
604 txstate->residue = st_fdma_desc_residue(fchan, vd, false); in st_fdma_tx_status()
606 txstate->residue = 0; in st_fdma_tx_status()
Dstm32-mdma.c1290 u32 cbndtr, residue, modulo, burst_size; in stm32_mdma_desc_residue() local
1293 residue = 0; in stm32_mdma_desc_residue()
1296 residue += STM32_MDMA_CBNDTR_BNDT(hwdesc->cbndtr); in stm32_mdma_desc_residue()
1299 residue += cbndtr & STM32_MDMA_CBNDTR_BNDT_MASK; in stm32_mdma_desc_residue()
1302 return residue; in stm32_mdma_desc_residue()
1305 modulo = residue % burst_size; in stm32_mdma_desc_residue()
1307 residue = residue - modulo + burst_size; in stm32_mdma_desc_residue()
1309 return residue; in stm32_mdma_desc_residue()
1320 u32 residue = 0; in stm32_mdma_tx_status() local
1330 residue = stm32_mdma_desc_residue(chan, chan->desc, in stm32_mdma_tx_status()
[all …]
/Linux-v4.19/drivers/i2c/busses/
Di2c-zx2967.c64 size_t residue; member
146 i2c->residue--; in zx2967_i2c_empty_rx_fifo()
156 size_t residue = i2c->residue; in zx2967_i2c_fill_tx_fifo() local
159 if (residue == 0) { in zx2967_i2c_fill_tx_fifo()
160 dev_err(DEV(i2c), "residue is %d\n", (int)residue); in zx2967_i2c_fill_tx_fifo()
164 if (residue <= I2C_FIFO_MAX) { in zx2967_i2c_fill_tx_fifo()
165 zx2967_i2c_writesb(i2c, buf, REG_DATA, residue); in zx2967_i2c_fill_tx_fifo()
168 i2c->residue = 0; in zx2967_i2c_fill_tx_fifo()
172 i2c->residue -= I2C_FIFO_MAX; in zx2967_i2c_fill_tx_fifo()
290 i2c->residue = msg->len; in zx2967_i2c_xfer_msg()
[all …]
/Linux-v4.19/drivers/dma/sh/
Dusb-dmac.c60 u32 residue; member
476 unsigned int residue = sg->size; in usb_dmac_get_current_residue() local
483 residue -= usb_dmac_chan_read(chan, USB_DMADAR) - mem_addr; in usb_dmac_get_current_residue()
485 residue -= usb_dmac_chan_read(chan, USB_DMASAR) - mem_addr; in usb_dmac_get_current_residue()
487 return residue; in usb_dmac_get_current_residue()
494 u32 residue = 0; in usb_dmac_chan_get_residue_if_complete() local
498 residue = desc->residue; in usb_dmac_chan_get_residue_if_complete()
503 return residue; in usb_dmac_chan_get_residue_if_complete()
509 u32 residue = 0; in usb_dmac_chan_get_residue() local
523 residue += desc->sg[i].size; in usb_dmac_chan_get_residue()
[all …]
/Linux-v4.19/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-v4.19/drivers/staging/mt7621-dma/
Dralink-gdma.c108 u32 residue; member
458 desc->residue -= desc->sg[chan->next_sg - 1].len; in gdma_dma_chan_irq()
538 desc->residue = 0; in gdma_dma_prep_slave_sg()
557 desc->residue += sg_dma_len(sg); in gdma_dma_prep_slave_sg()
593 desc->residue = len; in gdma_dma_prep_dma_memcpy()
638 desc->residue = buf_len; in gdma_dma_prep_dma_cyclic()
688 state->residue = desc->residue - in gdma_dma_tx_status()
691 state->residue = desc->residue; in gdma_dma_tx_status()
695 state->residue = to_gdma_dma_desc(vdesc)->residue; in gdma_dma_tx_status()
699 dev_dbg(c->device->dev, "tx residue %d bytes\n", state->residue); in gdma_dma_tx_status()
/Linux-v4.19/drivers/dma/dw/
Dcore.c301 first->residue = first->total_len; in dwc_dostart()
427 desc->residue -= desc->len; in dwc_scan_descriptors()
429 desc->residue -= to_dw_desc(active->prev)->len; in dwc_scan_descriptors()
465 desc->residue = desc->total_len; in dwc_scan_descriptors()
476 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
481 desc->residue -= desc->len; in dwc_scan_descriptors()
485 desc->residue -= dwc_get_sent(dwc); in dwc_scan_descriptors()
489 desc->residue -= child->len; in dwc_scan_descriptors()
1004 u32 residue; in dwc_get_residue() local
1011 residue = desc->residue; in dwc_get_residue()
[all …]
/Linux-v4.19/sound/core/
Dpcm_dmaengine.c260 if (state.residue > 0 && state.residue <= buf_size) in snd_dmaengine_pcm_pointer()
261 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer()
/Linux-v4.19/arch/arm/include/asm/mach/
Ddma.h22 int (*residue)(unsigned int, dma_t *); /* optional */ member
/Linux-v4.19/drivers/scsi/bfa/
Dbfa_ioc.c4287 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send()
4288 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send()
4292 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send()
4300 flash->residue -= len; in bfa_flash_write_send()
4320 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send()
4321 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send()
4419 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr()
4439 flash->residue -= len; in bfa_flash_intr()
4441 if (flash->residue == 0) { in bfa_flash_intr()
4656 flash->residue = len; in bfa_flash_update_part()
[all …]
/Linux-v4.19/Documentation/
DDMA-ISA-LPC.txt118 int flags, residue;
138 residue = dma_get_residue(channel);
139 if (residue != 0)
141 " %d bytes left!\n", residue);
/Linux-v4.19/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()
1288 (int) residue)); in usb_stor_Bulk_transport()
/Linux-v4.19/arch/arm/kernel/
Ddma.c259 if (dma->d_ops->residue) in get_dma_residue()
260 ret = dma->d_ops->residue(chan, dma); in get_dma_residue()

1234