Home
last modified time | relevance | path

Searched refs:xfer_size (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/u-boot/drivers/dma/
H A Dfsl_dma.c95 uint xfer_size; in dmacpy() local
98 xfer_size = min(FSL_DMA_MAX_SIZE, count); in dmacpy()
108 out_dma32(&dma->bcr, xfer_size); in dmacpy()
118 count -= xfer_size; in dmacpy()
119 src += xfer_size; in dmacpy()
120 dest += xfer_size; in dmacpy()
/openbmc/linux/drivers/dma/
H A Dimg-mdc-dma.c92 u32 xfer_size; member
304 size_t xfer_size; in mdc_prep_dma_memcpy() local
321 xfer_size); in mdc_prep_dma_memcpy()
326 src += xfer_size; in mdc_prep_dma_memcpy()
327 dest += xfer_size; in mdc_prep_dma_memcpy()
328 len -= xfer_size; in mdc_prep_dma_memcpy()
398 size_t xfer_size; in mdc_prep_dma_cyclic() local
420 xfer_size); in mdc_prep_dma_cyclic()
425 xfer_size); in mdc_prep_dma_cyclic()
478 size_t xfer_size; in mdc_prep_slave_sg() local
[all …]
H A Dat_xdmac.c279 unsigned int xfer_size; member
587 desc->xfer_size = 0; in at_xdmac_init_used_desc()
849 xfer_size += len; in at_xdmac_prep_slave_sg()
854 first->xfer_size = xfer_size; in at_xdmac_prep_slave_sg()
1163 first->xfer_size = len; in at_xdmac_prep_interleaved()
1225 src_addr += xfer_size; in at_xdmac_prep_dma_memcpy()
1226 dst_addr += xfer_size; in at_xdmac_prep_dma_memcpy()
1270 first->xfer_size = len; in at_xdmac_prep_dma_memcpy()
1370 desc->xfer_size = len; in at_xdmac_prep_dma_memset()
1532 first->xfer_size = len; in at_xdmac_prep_dma_memset_sg()
[all …]
/openbmc/linux/drivers/dma/ioat/
H A Dprep.c193 size_t xfer_size = min_t(size_t, in __ioat_prep_xor_lock() local
211 xor->size = xfer_size; in __ioat_prep_xor_lock()
217 len -= xfer_size; in __ioat_prep_xor_lock()
218 offset += xfer_size; in __ioat_prep_xor_lock()
389 size_t xfer_size = min_t(size_t, len, in __ioat_prep_pq_lock() local
416 pq->size = xfer_size; in __ioat_prep_pq_lock()
428 len -= xfer_size; in __ioat_prep_pq_lock()
429 offset += xfer_size; in __ioat_prep_pq_lock()
530 pq->size = xfer_size; in __ioat_prep_pq16_lock()
542 len -= xfer_size; in __ioat_prep_pq16_lock()
[all …]
/openbmc/linux/drivers/dma/sh/
H A Drcar-dmac.c125 unsigned int xfer_size; member
889 unsigned int xfer_size; in rcar_dmac_chan_configure_desc() local
896 xfer_size = chan->src.xfer_size; in rcar_dmac_chan_configure_desc()
902 xfer_size = chan->dst.xfer_size; in rcar_dmac_chan_configure_desc()
1117 if (map->slave.xfer_size) { in rcar_dmac_free_chan_resources()
1120 map->slave.xfer_size = 0; in rcar_dmac_free_chan_resources()
1157 dev_size = rchan->src.xfer_size; in rcar_dmac_map_slave_addr()
1161 dev_size = rchan->dst.xfer_size; in rcar_dmac_map_slave_addr()
1172 if (map->slave.xfer_size) in rcar_dmac_map_slave_addr()
1175 map->slave.xfer_size = 0; in rcar_dmac_map_slave_addr()
[all …]
/openbmc/linux/drivers/dma/sf-pdma/
H A Dsf-pdma.h63 void __iomem *xfer_size; /* 8 bytes */ member
76 u64 xfer_size; member
H A Dsf-pdma.c69 desc->xfer_size = size; in sf_pdma_fill_desc()
183 residue = desc->xfer_size; in sf_pdma_desc_residue()
262 writeq(desc->xfer_size, regs->xfer_size); in sf_pdma_xfer_desc()
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()
462 chan->regs.xfer_size = in sf_pdma_setup_chans()
/openbmc/linux/drivers/input/joystick/
H A Dpxrc.c126 size_t xfer_size; in pxrc_probe() local
150 xfer_size = usb_endpoint_maxp(epirq); in pxrc_probe()
151 xfer_buf = devm_kmalloc(&intf->dev, xfer_size, GFP_KERNEL); in pxrc_probe()
165 xfer_buf, xfer_size, pxrc_usb_irq, pxrc, 1); in pxrc_probe()
/openbmc/linux/sound/pci/asihpi/
H A Dhpi6000.c1216 int xfer_size; in hpi6000_dsp_block_write32() local
1221 xfer_size = c6711_burst_size; in hpi6000_dsp_block_write32()
1223 xfer_size = local_count; in hpi6000_dsp_block_write32()
1228 xfer_size); in hpi6000_dsp_block_write32()
1234 pdata += xfer_size; in hpi6000_dsp_block_write32()
1236 local_count -= xfer_size; in hpi6000_dsp_block_write32()
1254 int xfer_size; in hpi6000_dsp_block_read32() local
1261 xfer_size = local_count; in hpi6000_dsp_block_read32()
1266 xfer_size); in hpi6000_dsp_block_read32()
1272 pdata += xfer_size; in hpi6000_dsp_block_read32()
[all …]
/openbmc/linux/drivers/i2c/busses/
H A Di2c-tegra.c1218 size_t xfer_size; in tegra_i2c_xfer_msg() local
1250 xfer_size = i2c_dev->msg_len; in tegra_i2c_xfer_msg()
1252 xfer_size = i2c_dev->msg_len + I2C_PACKET_HEADER_SIZE; in tegra_i2c_xfer_msg()
1254 xfer_size = ALIGN(xfer_size, BYTES_PER_FIFO_WORD); in tegra_i2c_xfer_msg()
1259 tegra_i2c_config_fifo_trig(i2c_dev, xfer_size); in tegra_i2c_xfer_msg()
1275 xfer_size, DMA_FROM_DEVICE); in tegra_i2c_xfer_msg()
1277 err = tegra_i2c_dma_submit(i2c_dev, xfer_size); in tegra_i2c_xfer_msg()
1283 xfer_size, DMA_TO_DEVICE); in tegra_i2c_xfer_msg()
1296 xfer_size, DMA_TO_DEVICE); in tegra_i2c_xfer_msg()
1298 err = tegra_i2c_dma_submit(i2c_dev, xfer_size); in tegra_i2c_xfer_msg()
[all …]
/openbmc/linux/drivers/scsi/elx/efct/
H A Defct_driver.c252 u32 xfer_size; in efct_firmware_write() local
271 xfer_size = FW_WRITE_BUFSIZE; in efct_firmware_write()
273 xfer_size = bytes_left; in efct_firmware_write()
275 memcpy(dma.virt, buf + offset, xfer_size); in efct_firmware_write()
277 if (bytes_left == xfer_size) in efct_firmware_write()
280 efct_hw_firmware_write(&efct->hw, &dma, xfer_size, offset, in efct_firmware_write()
/openbmc/u-boot/drivers/usb/gadget/
H A Ddwc2_udc_otg_xfer_dma.c196 u32 ep_tsr = 0, xfer_size = 0, is_short = 0; in complete_rx() local
210 xfer_size = (ep_tsr & DOEPT_SIZ_XFER_SIZE_MAX_EP0); in complete_rx()
212 xfer_size = (ep_tsr & DOEPT_SIZ_XFER_SIZE_MAX_EP); in complete_rx()
214 xfer_size = ep->len - xfer_size; in complete_rx()
232 ROUND(xfer_size, CONFIG_SYS_CACHELINE_SIZE)); in complete_rx()
234 req->req.actual += min(xfer_size, req->req.length - req->req.actual); in complete_rx()
235 is_short = !!(xfer_size % ep->ep.maxpacket); in complete_rx()
269 u32 ep_tsr = 0, xfer_size = 0, is_short = 0; in complete_tx() local
290 xfer_size = ep->len; in complete_tx()
291 is_short = (xfer_size < ep->ep.maxpacket); in complete_tx()
[all …]
/openbmc/qemu/hw/dma/
H A Dxlnx_dpdma.c139 uint32_t xfer_size; member
207 return desc->xfer_size; in xlnx_dpdma_desc_get_transfer_size()
352 s->registers[DPDMA_PYLD_SZ_CH(channel)] = desc->xfer_size; in xlnx_dpdma_update_desc_info()
631 desc->xfer_size = le32_to_cpu(desc->xfer_size); in xlnx_dpdma_read_descriptor()
657 tmp_desc.xfer_size = cpu_to_le32(tmp_desc.xfer_size); in xlnx_dpdma_write_descriptor()
/openbmc/linux/drivers/memory/
H A Drenesas-rpc-if.c182 u8 xfer_size; member
225 switch (rpc->xfer_size) { in rpcif_reg_read()
245 if (rpc->xfer_size != 8) in rpcif_reg_read()
260 switch (rpc->xfer_size) { in rpcif_reg_write()
279 if (rpc->xfer_size != 8) in rpcif_reg_write()
538 rpc->xfer_size = nbytes; in rpcif_manual_xfer()
597 rpc->xfer_size = nbytes; in rpcif_manual_xfer()
/openbmc/linux/drivers/cxl/core/
H A Dmbox.c653 u32 xfer_size = min_t(u32, remaining, mds->payload_size); in cxl_xfer_log() local
661 .length = cpu_to_le32(xfer_size), in cxl_xfer_log()
668 .size_out = xfer_size, in cxl_xfer_log()
679 if (rc == -EIO && mbox_cmd.size_out < xfer_size) { in cxl_xfer_log()
687 out += xfer_size; in cxl_xfer_log()
688 remaining -= xfer_size; in cxl_xfer_log()
689 offset += xfer_size; in cxl_xfer_log()
/openbmc/linux/drivers/input/
H A Devdev.c998 size_t cnt, size, xfer_size; in evdev_get_mask() local
1005 xfer_size = min_t(size_t, codes_size, size); in evdev_get_mask()
1011 xfer_size, codes, compat); in evdev_get_mask()
1016 for (i = 0; i < xfer_size; i++) in evdev_get_mask()
1022 if (xfer_size < codes_size) in evdev_get_mask()
1023 if (clear_user(codes + xfer_size, codes_size - xfer_size)) in evdev_get_mask()
/openbmc/qemu/hw/misc/
H A Dedu.c106 static void edu_check_range(uint64_t xfer_start, uint64_t xfer_size, in edu_check_range() argument
109 uint64_t xfer_end = xfer_start + xfer_size; in edu_check_range()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c1510 unsigned int start_addr = ee->offset, xfer_size = 0; in bnx2x_get_module_eeprom() local
1524 xfer_size = ETH_MODULE_SFF_8079_LEN - start_addr; in bnx2x_get_module_eeprom()
1526 xfer_size = ee->len; in bnx2x_get_module_eeprom()
1532 xfer_size, in bnx2x_get_module_eeprom()
1540 user_data += xfer_size; in bnx2x_get_module_eeprom()
1541 start_addr += xfer_size; in bnx2x_get_module_eeprom()
1547 xfer_size = ee->len - xfer_size; in bnx2x_get_module_eeprom()
1549 if (start_addr + xfer_size > ETH_MODULE_SFF_8472_LEN) in bnx2x_get_module_eeprom()
1550 xfer_size = ETH_MODULE_SFF_8472_LEN - start_addr; in bnx2x_get_module_eeprom()
1557 xfer_size, in bnx2x_get_module_eeprom()
/openbmc/linux/include/uapi/linux/
H A Didxd.h199 uint32_t xfer_size; member
/openbmc/linux/drivers/usb/host/
H A Disp1362-hcd.c177 u16 xfer_size = min_t(size_t, MAX_XFER_SIZE, size); in max_transfer_size() local
179 xfer_size = min_t(size_t, xfer_size, epq->buf_avail * epq->blk_size - PTD_HEADER_SIZE); in max_transfer_size()
180 if (xfer_size < size && xfer_size % mps) in max_transfer_size()
181 xfer_size -= xfer_size % mps; in max_transfer_size()
183 return xfer_size; in max_transfer_size()
/openbmc/linux/drivers/dma/idxd/
H A Ddma.c75 hw->xfer_size = len; in idxd_prep_desc_common()
H A Dsysfs.c1012 u64 xfer_size; in wq_max_transfer_size_store() local
1021 rc = __get_sysfs_u64(buf, &xfer_size); in wq_max_transfer_size_store()
1025 if (xfer_size > idxd->max_xfer_bytes) in wq_max_transfer_size_store()
1028 wq->max_xfer_bytes = xfer_size; in wq_max_transfer_size_store()
/openbmc/linux/drivers/dma/xilinx/
H A Dxilinx_dpdma.c163 u32 xfer_size; member
606 dev_dbg(dev, "xfer_size: 0x%08x\n", hw_desc->xfer_size); in xilinx_dpdma_chan_dump_tx_desc()
716 hw_desc->xfer_size = hsize * xt->numf; in xilinx_dpdma_chan_prep_interleaved_dma()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c3203 u16 xfer_size; in bnxt_read_sfp_module_eeprom_info() local
3205 xfer_size = min_t(u16, data_length, BNXT_MAX_PHY_I2C_RESP_SIZE); in bnxt_read_sfp_module_eeprom_info()
3206 data_length -= xfer_size; in bnxt_read_sfp_module_eeprom_info()
3208 req->data_length = xfer_size; in bnxt_read_sfp_module_eeprom_info()
3218 memcpy(buf + byte_offset, output->data, xfer_size); in bnxt_read_sfp_module_eeprom_info()
3219 byte_offset += xfer_size; in bnxt_read_sfp_module_eeprom_info()
/openbmc/linux/drivers/ata/
H A Dlibata-sff.c579 unsigned int offset, size_t xfer_size) in ata_pio_xfer() argument
585 qc->ap->ops->sff_data_xfer(qc, buf + offset, xfer_size, do_write); in ata_pio_xfer()

12