Home
last modified time | relevance | path

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

/drivers/gpu/drm/radeon/
A 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()
A Dradeon_audio.c749 unsigned char *buf, int max_bytes) in radeon_audio_component_get_eld() argument
780 memcpy(buf, connector->eld, min(max_bytes, ret)); in radeon_audio_component_get_eld()
/drivers/gpu/drm/amd/amdgpu/
A 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()
A Damdgpu_vram_mgr.c456 u64 vis_usage = 0, max_bytes, min_block_size; in amdgpu_vram_mgr_new() local
471 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new()
473 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new()
495 if (ttm_resource_manager_usage(man) > max_bytes) { in amdgpu_vram_mgr_new()
A Damdgpu_ttm.c2206 uint32_t max_bytes; in amdgpu_copy_buffer() local
2216 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer()
2217 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer()
2225 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer()
2260 uint32_t max_bytes; in amdgpu_ttm_fill_mem() local
2264 max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_ttm_fill_mem()
2265 num_loops = DIV_ROUND_UP_ULL(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
2273 uint32_t cur_size = min(byte_count, max_bytes); in amdgpu_ttm_fill_mem()
A Damdgpu_cs.c703 u64 *max_bytes, in amdgpu_cs_get_threshold_for_moves() argument
718 *max_bytes = 0; in amdgpu_cs_get_threshold_for_moves()
765 *max_bytes = us_to_bytes(adev, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()
/drivers/target/
A Dtarget_core_xcopy.c663 unsigned long long max_bytes, max_bytes_src, max_bytes_dst, max_blocks; in target_xcopy_do_work() local
693 max_bytes = min_t(u64, max_bytes_src, max_bytes_dst); in target_xcopy_do_work()
694 max_bytes = min_t(u64, max_bytes, XCOPY_MAX_BYTES); in target_xcopy_do_work()
700 max_blocks = max_bytes >> ilog2(src_dev->dev_attrib.block_size); in target_xcopy_do_work()
708 u32 cur_bytes = min_t(u64, max_bytes, nolb * src_dev->dev_attrib.block_size); in target_xcopy_do_work()
/drivers/spi/
A Dspi-geni-qcom.c754 unsigned int max_bytes; in geni_spi_handle_tx() local
765 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx()
766 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx()
767 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx()
770 while (i < max_bytes) { in geni_spi_handle_tx()
776 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx()
781 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
/drivers/s390/scsi/
A Dzfcp_fc.c698 struct zfcp_adapter *adapter, int max_bytes) in zfcp_fc_send_gpn_ft() argument
705 zfcp_fc_ct_ns_init(&req->ct_hdr, FC_NS_GPN_FT, max_bytes); in zfcp_fc_send_gpn_ft()
814 int chain, max_entries, buf_num, max_bytes; in zfcp_fc_scan_ports() local
821 max_bytes = chain ? ZFCP_FC_GPN_FT_MAX_SIZE : ZFCP_FC_CT_SIZE_PAGE; in zfcp_fc_scan_ports()
835 ret = zfcp_fc_send_gpn_ft(fc_req, adapter, max_bytes); in zfcp_fc_scan_ports()
/drivers/gpu/drm/i915/gt/
A 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/gpu/drm/i915/display/
A Dskl_universal_plane.c476 unsigned int max_bytes) in plane_max_stride() argument
482 return min(max_pixels, max_bytes / cpp); in plane_max_stride()
484 return min(max_pixels * cpp, max_bytes); in plane_max_stride()
493 unsigned int max_bytes = 128 * 1024; in adl_plane_max_stride() local
497 max_pixels, max_bytes); in adl_plane_max_stride()
506 unsigned int max_bytes = 32 * 1024; in skl_plane_max_stride() local
510 max_pixels, max_bytes); in skl_plane_max_stride()
A Dintel_audio.c1218 unsigned char *buf, int max_bytes) in intel_audio_component_get_eld() argument
1239 memcpy(buf, eld, min(max_bytes, ret)); in intel_audio_component_get_eld()
/drivers/s390/net/
A Dism_drv.c437 static unsigned int max_bytes(unsigned int start, unsigned int len, in max_bytes() function
451 bytes = max_bytes(offset, size, PAGE_SIZE); in ism_move()
/drivers/block/null_blk/
A Dmain.c1280 unsigned int max_bytes = nr_sectors << SECTOR_SHIFT; in null_handle_data_transfer() local
1288 if (transferred_bytes + len > max_bytes) in null_handle_data_transfer()
1289 len = max_bytes - transferred_bytes; in null_handle_data_transfer()
1297 if (transferred_bytes >= max_bytes) in null_handle_data_transfer()
/drivers/i2c/busses/
A Di2c-npcm7xx.c1026 static void npcm_i2c_write_to_fifo_master(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_to_fifo_master() argument
1035 while (max_bytes-- && size_free_fifo) { in npcm_i2c_write_to_fifo_master()
1139 static void npcm_i2c_write_fifo_slave(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_fifo_slave() argument
1148 while (max_bytes-- && bus->data->fifo_size != npcm_i2c_fifo_usage(bus)) { in npcm_i2c_write_fifo_slave()
/drivers/s390/block/
A Ddasd.c339 unsigned int max_bytes; in dasd_state_basic_to_ready() local
344 max_bytes = USHRT_MAX * block->bp_block; in dasd_state_basic_to_ready()
345 max_bytes = ALIGN_DOWN(max_bytes, PAGE_SIZE); in dasd_state_basic_to_ready()
347 lim.max_hw_discard_sectors = max_bytes / block->bp_block; in dasd_state_basic_to_ready()
/drivers/tty/serial/
A Dserial-tegra.c485 static void tegra_uart_fill_tx_fifo(struct tegra_uart_port *tup, int max_bytes) in tegra_uart_fill_tx_fifo() argument
490 for (i = 0; i < max_bytes; i++) { in tegra_uart_fill_tx_fifo()
/drivers/staging/vc04_services/interface/vchiq_arm/
A Dvchiq_core.c918 size_t max_bytes = size - pos; in copy_message_data() local
921 max_bytes); in copy_message_data()
929 if (callback_result > max_bytes) in copy_message_data()
/drivers/base/regmap/
A Dregmap.c1587 static void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes, in regmap_set_work_buf_flag_mask() argument
1598 for (i = 0; i < max_bytes; i++) in regmap_set_work_buf_flag_mask()
/drivers/gpu/drm/nouveau/dispnv50/
A Ddisp.c603 bool *enabled, unsigned char *buf, int max_bytes) in nv50_audio_component_get_eld() argument
632 min(max_bytes, ret)); in nv50_audio_component_get_eld()
/drivers/comedi/drivers/
A Dcb_pcidas64.c2913 unsigned int max_bytes) in cb_pcidas64_ao_fill_buffer() argument
2915 unsigned int nsamples = comedi_bytes_to_samples(s, max_bytes); in cb_pcidas64_ao_fill_buffer()
/drivers/gpu/drm/amd/display/amdgpu_dm/
A Damdgpu_dm.c1067 unsigned char *buf, int max_bytes) in amdgpu_dm_audio_component_get_eld() argument
1093 memcpy(buf, connector->eld, min(max_bytes, ret)); in amdgpu_dm_audio_component_get_eld()
/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt.c3595 size_t len, rem_len, total_len, max_bytes; in __bnxt_copy_ring() local
3603 max_bytes = (rmem->nr_pages - start_idx) * rmem->page_size - in __bnxt_copy_ring()
3605 total_len = min(total_len, max_bytes); in __bnxt_copy_ring()

Completed in 127 milliseconds