/openbmc/linux/arch/mips/math-emu/ |
H A D | sp_rint.c | 17 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 D | sp_tint.c | 14 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 D | dp_tlong.c | 14 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 D | dp_rint.c | 17 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 D | sp_tlong.c | 14 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 D | dp_tint.c | 14 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()
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | comedi_isadma.c | 42 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 D | ni_labpc_isadma.c | 79 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()
|
/openbmc/linux/drivers/dma/sh/ |
H A D | usb-dmac.c | 57 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 …]
|
/openbmc/linux/drivers/dma/ |
H A D | dmaengine.h | 79 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 D | stm32-dma.c | 1364 u32 residue; in stm32_dma_desc_residue() local 1394 residue = stm32_dma_get_remaining_bytes(chan); in stm32_dma_desc_residue() 1401 residue = sg_req->len; in stm32_dma_desc_residue() 1413 residue += desc->sg_req[i].len; in stm32_dma_desc_residue() 1416 return residue; in stm32_dma_desc_residue() 1419 modulo = residue % burst_size; in stm32_dma_desc_residue() 1421 residue = residue - modulo + burst_size; in stm32_dma_desc_residue() 1423 return residue; in stm32_dma_desc_residue() 1434 u32 residue = 0; in stm32_dma_tx_status() local 1448 residue = stm32_dma_desc_residue(chan, chan->desc, in stm32_dma_tx_status() [all …]
|
H A D | st_fdma.c | 560 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()
|
/openbmc/qemu/libdecnumber/ |
H A D | decNumber.c | 670 Int residue; /* rounding residue */ in decNumberFromString() local 862 residue=0; in decNumberFromString() 863 decSetCoeff(dn, set, res, d, &residue, &status); in decNumberFromString() 865 decFinalize(dn, set, &residue, &status); in decNumberFromString() 871 residue=0; in decNumberFromString() 872 decFinalize(dn, set, &residue, &status); in decNumberFromString() 1602 Int residue=0; /* (no residue) */ in decNumberLog10() local 1607 decCopyFit(w, rhs, &aset, &residue, ©stat); /* copy & shorten */ in decNumberLog10() 1615 residue=0; in decNumberLog10() 1616 decCopyFit(res, w, set, &residue, &status); /* copy & round */ in decNumberLog10() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | tegra_apb_dma.h | 16 __field(__u32, residue) 21 __entry->residue = state ? state->residue : (u32)-1; 24 __get_str(chan), __entry->cookie, __entry->residue)
|
/openbmc/linux/drivers/dma/sf-pdma/ |
H A D | sf-pdma.c | 159 u64 residue = 0; in sf_pdma_desc_residue() local 176 residue = readq(regs->residue); in sf_pdma_desc_residue() 183 residue = desc->xfer_size; in sf_pdma_desc_residue() 188 return residue; in sf_pdma_desc_residue() 345 u64 residue; in sf_pdma_done_isr() local 349 residue = readq(regs->residue); in sf_pdma_done_isr() 351 if (!residue) { in sf_pdma_done_isr() 357 desc->src_addr += desc->xfer_size - residue; in sf_pdma_done_isr() 358 desc->dst_addr += desc->xfer_size - residue; in sf_pdma_done_isr() 359 desc->xfer_size = residue; in sf_pdma_done_isr() [all …]
|
/openbmc/u-boot/common/ |
H A D | avb_verify.c | 396 u64 start_offset, start_sector, sectors, residue; in mmc_byte_io() local 419 residue = part->info.blksz - in mmc_byte_io() 421 if (residue > num_bytes) in mmc_byte_io() 422 residue = num_bytes; in mmc_byte_io() 424 residue = num_bytes; in mmc_byte_io() 443 memcpy(buffer, (void *)tmp_buf, residue); in mmc_byte_io() 457 buffer, residue); in mmc_byte_io() 468 io_cnt += residue; in mmc_byte_io() 469 buffer += residue; in mmc_byte_io() 470 start_offset += residue; in mmc_byte_io() [all …]
|
/openbmc/linux/drivers/nvmem/ |
H A D | rave-sp-eeprom.c | 225 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()
|
/openbmc/linux/drivers/dma/dw/ |
H A D | core.c | 200 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() 972 u32 residue; in dwc_get_residue_and_status() local 979 residue = desc->residue; in dwc_get_residue_and_status() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | dev-storage.c | 273 s->csw.residue = cpu_to_le32(s->data_len); in usb_msd_command_complete() 446 assert(le32_to_cpu(s->csw.residue) == 0); in usb_msd_handle_data() 467 if (le32_to_cpu(s->csw.residue)) { in usb_msd_handle_data() 528 if (le32_to_cpu(s->csw.residue)) { in usb_msd_handle_data() 583 VMSTATE_UINT32(csw.residue, MSDState),
|
/openbmc/linux/drivers/scsi/bfa/ |
H A D | bfa_ioc.c | 4271 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_write_send() 4272 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_write_send() 4276 msg->last = (len == flash->residue) ? 1 : 0; in bfa_flash_write_send() 4284 flash->residue -= len; in bfa_flash_write_send() 4304 len = (flash->residue < BFA_FLASH_DMA_BUF_SZ) ? in bfa_flash_read_send() 4305 flash->residue : BFA_FLASH_DMA_BUF_SZ; in bfa_flash_read_send() 4403 if (status != BFA_STATUS_OK || flash->residue == 0) { in bfa_flash_intr() 4423 flash->residue -= len; in bfa_flash_intr() 4425 if (flash->residue == 0) { in bfa_flash_intr() 4640 flash->residue = len; in bfa_flash_update_part() [all …]
|
/openbmc/linux/drivers/usb/storage/ |
H A D | transport.c | 1120 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()
|
H A D | realtek_cr.c | 208 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()
|
/openbmc/linux/Documentation/core-api/ |
H A D | dma-isa-lpc.rst | 118 int flags, residue; 138 residue = dma_get_residue(channel); 139 if (residue != 0) 141 " %d bytes left!\n", residue);
|
/openbmc/linux/sound/core/ |
H A D | pcm_dmaengine.c | 261 if (state.residue > 0 && state.residue <= buf_size) in snd_dmaengine_pcm_pointer() 262 pos = buf_size - state.residue; in snd_dmaengine_pcm_pointer()
|
/openbmc/linux/arch/arm/include/asm/mach/ |
H A D | dma.h | 19 int (*residue)(unsigned int, dma_t *); /* optional */ member
|