Home
last modified time | relevance | path

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

123456

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/staging/comedi/drivers/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/drivers/dma/sh/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/i2c/busses/
H A 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 …]
/OK3568_Linux_fs/kernel/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()
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/dma/sf-pdma/
H A Dsf-pdma.c160 u64 residue = 0; in sf_pdma_desc_residue() local
177 residue = readq(regs->residue); in sf_pdma_desc_residue()
184 residue = desc->xfer_size; in sf_pdma_desc_residue()
189 return residue; in sf_pdma_desc_residue()
347 u64 residue; in sf_pdma_done_isr() local
351 residue = readq(regs->residue); in sf_pdma_done_isr()
353 if (!residue) { in sf_pdma_done_isr()
359 desc->src_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
360 desc->dst_addr += desc->xfer_size - residue; in sf_pdma_done_isr()
361 desc->xfer_size = residue; in sf_pdma_done_isr()
[all …]
/OK3568_Linux_fs/kernel/include/trace/events/
H A Dtegra_apb_dma.h16 __field(__u32, residue)
21 __entry->residue = state ? state->residue : (u32)-1;
24 __get_str(chan), __entry->cookie, __entry->residue)
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Df_rockusb.c169 common->residue = 0; in rkusb_do_reset()
184 common->residue = 0x03 << 24; /* 128KB Max block xfer for SPI Nor */ in rkusb_do_test_unit_ready()
186 common->residue = 0x06 << 24; /* Max block xfer support from host */ in rkusb_do_test_unit_ready()
226 common->residue = common->data_size_from_cmnd = len; in rkusb_do_read_flash_id()
241 common->residue = common->data_size_from_cmnd = len; in rkusb_do_test_bad_block()
294 common->residue = common->data_size_from_cmnd = len; in rkusb_do_read_flash_info()
315 common->residue = common->data_size_from_cmnd = len; in rkusb_do_get_chip_info()
429 common->residue = common->data_size; in rkusb_do_vs_write()
557 common->residue -= common->data_size; in rkusb_do_vs_write()
589 common->residue = common->data_size; in rkusb_do_vs_read()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/staging/ralink-gdma/
H A 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()
/OK3568_Linux_fs/kernel/drivers/dma/dw/
H A 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 …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/
H A Dhalmac_flash_88xx.c293 u16 residue; in check_flash_88xx() local
306 residue = (pg_addr << 7) & (4096 - 1); in check_flash_88xx()
318 for (i = 0x8000 + residue; i <= 0x8FFF; i++) { in check_flash_88xx()
331 residue = 0; in check_flash_88xx()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_flash_88xx.c293 u16 residue; in check_flash_88xx() local
306 residue = (pg_addr << 7) & (4096 - 1); in check_flash_88xx()
318 for (i = 0x8000 + residue; i <= 0x8FFF; i++) { in check_flash_88xx()
331 residue = 0; in check_flash_88xx()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/halmac/halmac_88xx/
H A Dhalmac_flash_88xx.c293 u16 residue; in check_flash_88xx() local
306 residue = (pg_addr << 7) & (4096 - 1); in check_flash_88xx()
318 for (i = 0x8000 + residue; i <= 0x8FFF; i++) { in check_flash_88xx()
331 residue = 0; in check_flash_88xx()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_flash_88xx.c294 u16 residue; in check_flash_88xx() local
307 residue = (pg_addr << 7) & (4096 - 1); in check_flash_88xx()
319 for (i = 0x8000 + residue; i <= 0x8FFF; i++) { in check_flash_88xx()
332 residue = 0; in check_flash_88xx()
/OK3568_Linux_fs/kernel/drivers/dma/ti/
H A 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 …]
/OK3568_Linux_fs/kernel/drivers/scsi/bfa/
H A 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 …]
/OK3568_Linux_fs/kernel/sound/core/
H A Dpcm_dmaengine.c264 if (state.residue > 0 && state.residue <= buf_size) in snd_dmaengine_pcm_pointer()
265 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer()

123456