/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 | 376 uint64_t vis_usage = 0, mem_bytes, max_bytes; in amdgpu_vram_mgr_new() local 387 max_bytes = adev->gmc.mc_vram_size; in amdgpu_vram_mgr_new() 389 max_bytes -= AMDGPU_VM_RESERVED_VRAM; in amdgpu_vram_mgr_new() 393 if (atomic64_add_return(mem_bytes, &mgr->usage) > max_bytes) { in amdgpu_vram_mgr_new()
|
D | amdgpu_ttm.c | 1891 uint32_t max_bytes; in amdgpu_copy_buffer() local 1901 max_bytes = adev->mman.buffer_funcs->copy_max_bytes; in amdgpu_copy_buffer() 1902 num_loops = DIV_ROUND_UP(byte_count, max_bytes); in amdgpu_copy_buffer() 1925 uint32_t cur_size_in_bytes = min(byte_count, max_bytes); in amdgpu_copy_buffer() 1959 uint32_t max_bytes = adev->mman.buffer_funcs->fill_max_bytes; in amdgpu_fill_buffer() local 1990 num_loops += DIV_ROUND_UP_ULL(cursor.size, max_bytes); in amdgpu_fill_buffer() 2015 uint32_t cur_size = min_t(uint64_t, cursor.size, max_bytes); in amdgpu_fill_buffer()
|
D | amdgpu_cs.c | 286 u64 *max_bytes, in amdgpu_cs_get_threshold_for_moves() argument 302 *max_bytes = 0; in amdgpu_cs_get_threshold_for_moves() 349 *max_bytes = us_to_bytes(adev, adev->mm_stats.accum_us); in amdgpu_cs_get_threshold_for_moves()
|
/drivers/spi/ |
D | spi-geni-qcom.c | 411 unsigned int max_bytes; in geni_spi_handle_tx() local 422 max_bytes = (mas->tx_fifo_depth - mas->tx_wm) * bytes_per_fifo_word; in geni_spi_handle_tx() 423 if (mas->tx_rem_bytes < max_bytes) in geni_spi_handle_tx() 424 max_bytes = mas->tx_rem_bytes; in geni_spi_handle_tx() 427 while (i < max_bytes) { in geni_spi_handle_tx() 433 bytes_to_write = min(bytes_per_fifo_word, max_bytes - i); in geni_spi_handle_tx() 438 mas->tx_rem_bytes -= max_bytes; in geni_spi_handle_tx()
|
/drivers/s390/block/ |
D | dasd_fba.c | 771 unsigned int max_bytes, max_discard_sectors; in dasd_fba_setup_blk_queue() local 788 max_bytes = USHRT_MAX * logical_block_size; in dasd_fba_setup_blk_queue() 789 max_bytes = ALIGN_DOWN(max_bytes, PAGE_SIZE); in dasd_fba_setup_blk_queue() 790 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 | 92 u32 *start, u32 offset, u32 max_bytes) in batch_init() argument 98 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 | 744 static void npcm_i2c_write_to_fifo_master(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_to_fifo_master() argument 753 while (max_bytes-- && size_free_fifo) { in npcm_i2c_write_to_fifo_master() 861 static void npcm_i2c_write_fifo_slave(struct npcm_i2c *bus, u16 max_bytes) in npcm_i2c_write_fifo_slave() argument 870 while (max_bytes-- && I2C_HW_FIFO_SIZE != npcm_i2c_fifo_usage(bus)) { in npcm_i2c_write_fifo_slave()
|
/drivers/gpu/drm/i915/display/ |
D | intel_audio.c | 1173 unsigned char *buf, int max_bytes) in i915_audio_component_get_eld() argument 1195 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 | 891 size_t max_bytes = size - pos; in copy_message_data() local 895 pos, max_bytes); in copy_message_data() 903 if (callback_result > max_bytes) in copy_message_data()
|
/drivers/base/regmap/ |
D | regmap.c | 1643 static void regmap_set_work_buf_flag_mask(struct regmap *map, int max_bytes, in regmap_set_work_buf_flag_mask() argument 1654 for (i = 0; i < max_bytes; i++) in regmap_set_work_buf_flag_mask()
|
/drivers/gpu/drm/nouveau/dispnv50/ |
D | disp.c | 651 bool *enabled, unsigned char *buf, int max_bytes) in nv50_audio_component_get_eld() argument 681 min(max_bytes, ret)); in nv50_audio_component_get_eld()
|
/drivers/comedi/drivers/ |
D | cb_pcidas64.c | 2919 unsigned int max_bytes) in cb_pcidas64_ao_fill_buffer() argument 2921 unsigned int nsamples = comedi_bytes_to_samples(s, max_bytes); in cb_pcidas64_ao_fill_buffer()
|
/drivers/nvme/host/ |
D | pci.c | 372 unsigned max_bytes = (NVME_MAX_KB_SZ * 1024) + NVME_CTRL_PAGE_SIZE; in nvme_pci_npages_prp() local 373 unsigned nprps = DIV_ROUND_UP(max_bytes, NVME_CTRL_PAGE_SIZE); in nvme_pci_npages_prp()
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm.c | 886 unsigned char *buf, int max_bytes) in amdgpu_dm_audio_component_get_eld() argument 907 memcpy(buf, connector->eld, min(max_bytes, ret)); in amdgpu_dm_audio_component_get_eld()
|