/drivers/gpu/drm/radeon/ |
D | atombios_i2c.c | 105 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/ |
D | atombios_i2c.c | 112 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()
|
D | amdgpu_vram_mgr.c | 388 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()
|
D | amdgpu_ttm.c | 2021 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()
|
D | amdgpu_cs.c | 648 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/ |
D | target_core_xcopy.c | 662 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/ |
D | spi-geni-qcom.c | 642 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/ |
D | ublk_drv.c | 379 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/ |
D | dasd_fba.c | 771 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/ |
D | zfcp_fc.c | 693 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/ |
D | gen7_renderclear.c | 93 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/ |
D | ism_drv.c | 361 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/ |
D | i2c-npcm7xx.c | 767 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/ |
D | intel_audio.c | 1216 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/ |
D | serial-tegra.c | 486 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/ |
D | vchiq_core.c | 882 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/ |
D | regmap.c | 1664 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/ |
D | disp.c | 646 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/ |
D | pci.c | 380 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/ |
D | cb_pcidas64.c | 2918 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/ |
D | amdgpu_dm.c | 924 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()
|