Home
last modified time | relevance | path

Searched refs:max_bytes (Results 1 – 21 of 21) sorted by relevance

/drivers/gpu/drm/radeon/
Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
126 max_bytes = ATOM_MAX_HW_I2C_READ; in radeon_atom_hw_i2c_xfer()
129 max_bytes = ATOM_MAX_HW_I2C_WRITE; in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
134 current_count = max_bytes; in radeon_atom_hw_i2c_xfer()
/drivers/gpu/drm/amd/amdgpu/
Datombios_i2c.c112 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
133 max_bytes = ATOM_MAX_HW_I2C_READ; in amdgpu_atombios_i2c_xfer()
136 max_bytes = ATOM_MAX_HW_I2C_WRITE; in amdgpu_atombios_i2c_xfer()
140 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
141 current_count = max_bytes; in amdgpu_atombios_i2c_xfer()
Damdgpu_vram_mgr.c388 u64 vis_usage = 0, max_bytes, cur_size, min_block_size; in amdgpu_vram_mgr_new() local
404 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
406 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
428 if (ttm_resource_manager_usage(man) > max_bytes) { in amdgpu_vram_mgr_new()
Damdgpu_ttm.c2021 uint32_t max_bytes; in amdgpu_copy_buffer() local
2030 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
2031 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
2039 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2076 uint32_t max_bytes; in amdgpu_ttm_fill_mem() local
2080 max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_ttm_fill_mem()
2081 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2089 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
Damdgpu_cs.c648 u64 *max_bytes, in amdgpu_cs_get_threshold_for_moves() argument
663 *max_bytes = 0; in amdgpu_cs_get_threshold_for_moves()
710 *max_bytes = us_to_bytes(adev, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()
/drivers/target/
Dtarget_core_xcopy.c662 unsigned long long max_bytes, max_bytes_src, max_bytes_dst, max_blocks; in target_xcopy_do_work() local
692 max_bytes = min_t(u64, max_bytes_src, max_bytes_dst); in target_xcopy_do_work()
693 max_bytes = min_t(u64, max_bytes, XCOPY_MAX_BYTES); in target_xcopy_do_work()
699 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work()
707 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work()
/drivers/spi/
Dspi-geni-qcom.c642 unsigned int max_bytes; in geni_spi_handle_tx() local
653 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
654 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
655 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
658 while (i < max_bytes) { in geni_spi_handle_tx()
664 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
669 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/drivers/block/
Dublk_drv.c379 unsigned max_bytes; member
391 unsigned max_bytes, bool to_vm) in ublk_copy_io_pages() argument
393 const unsigned total = min_t(unsigned, max_bytes, in ublk_copy_io_pages()
447 const unsigned int nr_pages = round_up(data->max_bytes + in ublk_copy_user_pages()
460 len = ublk_copy_io_pages(&iter, data->max_bytes, to_vm); in ublk_copy_user_pages()
466 data->max_bytes -= len; in ublk_copy_user_pages()
490 .max_bytes = rq_bytes, in ublk_map_io()
495 return rq_bytes - data.max_bytes; in ublk_map_io()
511 .max_bytes = io->res, in ublk_unmap_io()
518 return io->res - data.max_bytes; in ublk_unmap_io()
/drivers/s390/block/
Ddasd_fba.c771 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local
787 max_bytes = USHRT_MAX * logical_block_size; in dasd_fba_setup_blk_queue()
788 max_bytes = ALIGN_DOWN(max_bytes, PAGE_SIZE); in dasd_fba_setup_blk_queue()
789 max_discard_sectors = max_bytes / logical_block_size; in dasd_fba_setup_blk_queue()
/drivers/s390/scsi/
Dzfcp_fc.c693 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument
700 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft()
809 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
816 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports()
830 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()
/drivers/gpu/drm/i915/gt/
Dgen7_renderclear.c93 u32 *start, u32 offset, u32 max_bytes) in batch_init() argument
99 bc->max_items = max_bytes / sizeof(*bc->start); in batch_init()
/drivers/s390/net/
Dism_drv.c361 static unsigned int max_bytes(unsigned int start, unsigned int len, in max_bytes() function
376 bytes = max_bytes(offset, size, PAGE_SIZE); in ism_move()
/drivers/i2c/busses/
Di2c-npcm7xx.c767 static void npcm_i2c_write_to_fifo_master(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_to_fifo_master() argument
776 while (max_bytes-- && size_free_fifo) { in npcm_i2c_write_to_fifo_master()
884 static void npcm_i2c_write_fifo_slave(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_fifo_slave() argument
893 while (max_bytes-- && bus->data->fifo_size != npcm_i2c_fifo_usage(bus)) { in npcm_i2c_write_fifo_slave()
/drivers/gpu/drm/i915/display/
Dintel_audio.c1216 unsigned char *buf, int max_bytes) in i915_audio_component_get_eld() argument
1238 memcpy(buf, eld, min(max_bytes, ret)); in i915_audio_component_get_eld()
/drivers/tty/serial/
Dserial-tegra.c486 static void tegra_uart_fill_tx_fifo(struct tegra_uart_port *tup, int max_bytes) in tegra_uart_fill_tx_fifo() argument
491 for (i = 0; i < max_bytes; i++) { in tegra_uart_fill_tx_fifo()
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_core.c882 size_t max_bytes = size - pos; in copy_message_data() local
885 max_bytes); in copy_message_data()
893 if (callback_result > max_bytes) in copy_message_data()
/drivers/base/regmap/
Dregmap.c1664 static void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes, in regmap_set_work_buf_flag_mask() argument
1675 for (i = 0; i < max_bytes; i++) in regmap_set_work_buf_flag_mask()
/drivers/gpu/drm/nouveau/dispnv50/
Ddisp.c646 bool *enabled, unsigned char *buf, int max_bytes) in nv50_audio_component_get_eld() argument
676 min(max_bytes, ret)); in nv50_audio_component_get_eld()
/drivers/nvme/host/
Dpci.c380 unsigned max_bytes = (NVME_MAX_KB_SZ * 1024) + NVME_CTRL_PAGE_SIZE; in nvme_pci_npages_prp() local
381 unsigned nprps = DIV_ROUND_UP(max_bytes, NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()
/drivers/comedi/drivers/
Dcb_pcidas64.c2918 unsigned int max_bytes) in cb_pcidas64_ao_fill_buffer() argument
2920 unsigned int nsamples = comedi_bytes_to_samples(s, max_bytes); in cb_pcidas64_ao_fill_buffer()
/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c924 unsigned char *buf, int max_bytes) in amdgpu_dm_audio_component_get_eld() argument
945 memcpy(buf, connector->eld, min(max_bytes, ret)); in amdgpu_dm_audio_component_get_eld()