Home
last modified time | relevance | path

Searched refs:queue_size (Results 1 – 25 of 83) sorted by relevance

1234

/drivers/gpu/drm/amd/amdkfd/
A Dkfd_kernel_queue.c43 enum kfd_queue_type type, unsigned int queue_size) in kq_initialize() argument
53 queue_size); in kq_initialize()
86 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in kq_initialize()
89 queue_size); in kq_initialize()
126 memset(kq->pq_kernel_addr, 0, queue_size); in kq_initialize()
130 prop.queue_size = queue_size; in kq_initialize()
250 queue_size_dwords = kq->queue->properties.queue_size / 4; in kq_acquire_packet_buffer()
332 (kq->queue->properties.queue_size / 4); in kq_rollback_packet()
A Dkfd_mqd_manager_cik.c165 uint32_t wptr_mask = (uint32_t)((p->queue_size / 4) - 1); in load_mqd()
191 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd()
230 m->sdma_rlc_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
351 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd_hiq()
A Dkfd_queue.c37 pr_debug("Queue Size: %llu\n", q->queue_size); in print_queue_properties()
54 pr_debug("Queue Size: %llu\n", q->properties.queue_size); in print_queue()
250 expected_queue_size = properties->queue_size / 2; in kfd_queue_acquire_buffers()
252 expected_queue_size = properties->queue_size; in kfd_queue_acquire_buffers()
A Dkfd_process_queue_manager.c591 if (p->queue_address && p->queue_size) { in pqm_update_queue_properties()
606 p->queue_size)) { in pqm_update_queue_properties()
608 p->queue_address, p->queue_size); in pqm_update_queue_properties()
620 pqn->q->properties.queue_size = p->queue_size; in pqm_update_queue_properties()
840 q_data->q_size = q->properties.queue_size; in criu_checkpoint_queue()
975 qp->queue_size = q_data->q_size; in set_queue_properties_from_criu()
/drivers/net/ethernet/microsoft/mana/
A Dhw_channel.c284 enum gdma_queue_type type, u64 queue_size, in mana_hwc_create_gdma_wq() argument
294 spec.queue_size = queue_size; in mana_hwc_create_gdma_wq()
300 u64 queue_size, in mana_hwc_create_gdma_cq() argument
309 spec.queue_size = queue_size; in mana_hwc_create_gdma_cq()
318 u64 queue_size, in mana_hwc_create_gdma_eq() argument
326 spec.queue_size = queue_size; in mana_hwc_create_gdma_eq()
517 u32 queue_size; in mana_hwc_create_wq() local
523 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq()
527 if (queue_size < MANA_MIN_QSIZE) in mana_hwc_create_wq()
528 queue_size = MANA_MIN_QSIZE; in mana_hwc_create_wq()
[all …]
A Dgdma_main.c265 req.queue_size = queue->queue_size; in mana_gd_create_hw_eq()
850 spec->type, spec->queue_size, err); in mana_gd_create_hwc_queue()
857 queue->queue_size = spec->queue_size; in mana_gd_create_hwc_queue()
874 spec->type, spec->queue_size, err); in mana_gd_create_hwc_queue()
1000 queue->queue_size = spec->queue_size; in mana_gd_create_mana_eq()
1013 spec->type, spec->queue_size, err); in mana_gd_create_mana_eq()
1053 queue->queue_size = spec->queue_size; in mana_gd_create_mana_wq_cq()
1065 spec->type, spec->queue_size, err); in mana_gd_create_mana_wq_cq()
1215 u32 wq_size = wq->queue_size; in mana_gd_wq_avail_space()
1283 end_ptr = base_ptr + wq->queue_size; in mana_gd_write_sgl()
[all …]
/drivers/vdpa/ifcvf/
A Difcvf_base.c74 u16 queue_size; in ifcvf_get_vq_size() local
80 queue_size = vp_ioread16(&hw->common_cfg->queue_size); in ifcvf_get_vq_size()
82 return queue_size; in ifcvf_get_vq_size()
87 u16 queue_size, max_size, qid; in ifcvf_get_max_vq_size() local
91 queue_size = ifcvf_get_vq_size(hw, qid); in ifcvf_get_max_vq_size()
93 if (!queue_size) in ifcvf_get_max_vq_size()
96 max_size = max(queue_size, max_size); in ifcvf_get_max_vq_size()
352 vp_iowrite16(num, &cfg->queue_size); in ifcvf_set_vq_num()
/drivers/staging/media/ipu7/
A Dipu7-boot.c252 u32 queue_size = qconfigs[i].max_capacity * in ipu7_boot_init_boot_config() local
255 queue_size = ALIGN(queue_size, 64U); in ipu7_boot_init_boot_config()
256 total_queue_size_aligned += queue_size; in ipu7_boot_init_boot_config()
257 qconfigs[i].queue_size = queue_size; in ipu7_boot_init_boot_config()
279 queue_mem_dma_ptr += qconfigs[i].queue_size; in ipu7_boot_init_boot_config()
280 queue_mem_ptr += qconfigs[i].queue_size; in ipu7_boot_init_boot_config()
/drivers/firmware/tegra/
A Divc.c562 unsigned tegra_ivc_total_queue_size(unsigned queue_size) in tegra_ivc_total_queue_size() argument
564 if (!IS_ALIGNED(queue_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_total_queue_size()
566 __func__, queue_size, TEGRA_IVC_ALIGN); in tegra_ivc_total_queue_size()
570 return queue_size + sizeof(struct tegra_ivc_header); in tegra_ivc_total_queue_size()
652 size_t queue_size; in tegra_ivc_init() local
670 queue_size = tegra_ivc_total_queue_size(num_frames * frame_size); in tegra_ivc_init()
673 ivc->rx.phys = dma_map_single(peer, iosys_map_get_vaddr(rx), queue_size, in tegra_ivc_init()
678 ivc->tx.phys = dma_map_single(peer, iosys_map_get_vaddr(tx), queue_size, in tegra_ivc_init()
681 dma_unmap_single(peer, ivc->rx.phys, queue_size, in tegra_ivc_init()
A Dbpmp-tegra186.c112 size_t message_size, queue_size; in tegra186_bpmp_channel_init() local
123 queue_size = tegra_ivc_total_queue_size(message_size); in tegra186_bpmp_channel_init()
124 offset = queue_size * index; in tegra186_bpmp_channel_init()
/drivers/media/platform/qcom/iris/
A Diris_hfi_queue.c250 u32 queue_size; in iris_hfi_queues_init() local
253 queue_size = ALIGN((sizeof(*q_tbl_hdr) + (IFACEQ_QUEUE_SIZE * IFACEQ_NUMQ)), SZ_4K); in iris_hfi_queues_init()
254 core->iface_q_table_vaddr = dma_alloc_attrs(core->dev, queue_size, in iris_hfi_queues_init()
295 u32 queue_size; in iris_hfi_queues_deinit() local
310 queue_size = ALIGN(sizeof(struct iris_hfi_queue_table_header) + in iris_hfi_queues_deinit()
313 dma_free_attrs(core->dev, queue_size, core->iface_q_table_vaddr, in iris_hfi_queues_deinit()
A Diris_vpu_common.c86 u32 queue_size, value; in iris_vpu_setup_ucregion_memory_map() local
89 queue_size = ALIGN(sizeof(struct iris_hfi_queue_table_header) + in iris_vpu_setup_ucregion_memory_map()
96 value = ALIGN(SFR_SIZE + queue_size, SZ_1M); in iris_vpu_setup_ucregion_memory_map()
/drivers/gpu/drm/amd/amdgpu/
A Dmes_userqueue.c142 queue_input.queue_size = userq_props->queue_size >> 2; in mes_userq_map()
219 !mqd_user->queue_va || mqd_user->queue_size == 0) { in mes_userq_mqd_create()
234 userq_props->queue_size = mqd_user->queue_size; in mes_userq_mqd_create()
A Damdgpu_amdkfd_gc_9_4_3.c328 uint32_t queue_size = in kgd_gfx_v9_4_3_hqd_load() local
331 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_gfx_v9_4_3_hqd_load()
333 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_gfx_v9_4_3_hqd_load()
334 guessed_wptr += queue_size; in kgd_gfx_v9_4_3_hqd_load()
335 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_gfx_v9_4_3_hqd_load()
A Damdgpu_amdkfd_gfx_v10_3.c239 uint32_t queue_size = in hqd_load_v10_3() local
242 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in hqd_load_v10_3()
244 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in hqd_load_v10_3()
245 guessed_wptr += queue_size; in hqd_load_v10_3()
246 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in hqd_load_v10_3()
A Damdgpu_amdkfd_gfx_v11.c224 uint32_t queue_size = in hqd_load_v11() local
227 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in hqd_load_v11()
229 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in hqd_load_v11()
230 guessed_wptr += queue_size; in hqd_load_v11()
231 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in hqd_load_v11()
/drivers/infiniband/hw/mana/
A Dqp.c187 wq_spec.queue_size = wq->wq_buf_size; in mana_ib_create_qp_rss()
190 cq_spec.queue_size = cq->cqe * COMP_ENTRY_SIZE; in mana_ib_create_qp_rss()
338 wq_spec.queue_size = ucmd.sq_buf_size; in mana_ib_create_qp_raw()
341 cq_spec.queue_size = send_cq->cqe * COMP_ENTRY_SIZE; in mana_ib_create_qp_raw()
410 u32 queue_size; in mana_ib_queue_size() local
416 queue_size = attr->cap.max_send_wr * in mana_ib_queue_size()
419 queue_size = attr->cap.max_recv_wr * in mana_ib_queue_size()
426 return MANA_PAGE_ALIGN(roundup_pow_of_two(queue_size)); in mana_ib_queue_size()
558 err = mana_ib_create_queue(mdev, ucmd.queue_buf[j], ucmd.queue_size[j], in mana_ib_create_rc_qp()
638 u32 doorbell, queue_size; in mana_ib_create_ud_qp() local
[all …]
/drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/
A Drx.c123 WARN_ON(rxq->queue_size & (rxq->queue_size - 1)); in iwl_rxq_space()
686 free_size * rxq->queue_size, in iwl_pcie_free_rxq_dma()
697 rxq->queue_size, in iwl_pcie_free_rxq_dma()
725 rxq->queue_size = iwl_trans_get_num_rbds(trans); in iwl_pcie_alloc_rxq_dma()
727 rxq->queue_size = RX_QUEUE_SIZE; in iwl_pcie_alloc_rxq_dma()
743 rxq->queue_size, in iwl_pcie_alloc_rxq_dma()
1147 queue_size = trans->mac_cfg->mq_rx_supported ? in _iwl_pcie_rx_init()
1151 num_alloc = queue_size + allocator_pool_size; in _iwl_pcie_rx_init()
1521 r &= (rxq->queue_size - 1); in iwl_pcie_rx_handle()
1571 i = (i + 1) & (rxq->queue_size - 1); in iwl_pcie_rx_handle()
[all …]
/drivers/nvme/host/
A Drdma.c87 int queue_size; member
268 init_attr.cap.max_recv_wr = queue->queue_size + 1; in nvme_rdma_create_qp()
529 queue->queue_size, in nvme_rdma_create_queue_ib()
535 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib()
541 queue->queue_size, IB_MR_TYPE_INTEGRITY, in nvme_rdma_create_queue_ib()
546 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib()
570 int idx, size_t queue_size) in nvme_rdma_alloc_queue() argument
590 queue->queue_size = queue_size; in nvme_rdma_alloc_queue()
1778 for (i = 0; i < queue->queue_size; i++) { in nvme_rdma_conn_established()
1870 priv.hrqsize = cpu_to_le16(queue->queue_size); in nvme_rdma_route_resolved()
[all …]
/drivers/media/pci/intel/ipu6/
A Dipu6-fw-isys.c287 input_queue_cfg[i].queue_size = IPU6_ISYS_SIZE_PROXY_SEND_QUEUE; in ipu6_isys_fwcom_cfg_init()
293 input_queue_cfg[base_dev_send + i].queue_size = max_devq_size; in ipu6_isys_fwcom_cfg_init()
299 input_queue_cfg[base_msg_send + i].queue_size = in ipu6_isys_fwcom_cfg_init()
306 output_queue_cfg[i].queue_size = in ipu6_isys_fwcom_cfg_init()
313 output_queue_cfg[base_msg_recv + i].queue_size = in ipu6_isys_fwcom_cfg_init()
A Dipu6-fw-com.c199 sizeinput += size_mul(cfg->input[i].queue_size + 1, in ipu6_fw_com_prepare()
203 sizeoutput += size_mul(cfg->output[i].queue_size + 1, in ipu6_fw_com_prepare()
249 cfg->input[i].queue_size, in ipu6_fw_com_prepare()
258 cfg->output[i].queue_size, in ipu6_fw_com_prepare()
/drivers/misc/genwqe/
A Dcard_ddcb.c1026 unsigned int queue_size; in setup_ddcb_queue() local
1032 queue_size = roundup(GENWQE_DDCB_MAX * sizeof(struct ddcb), PAGE_SIZE); in setup_ddcb_queue()
1042 queue->ddcb_vaddr = __genwqe_alloc_consistent(cd, queue_size, in setup_ddcb_queue()
1090 __genwqe_free_consistent(cd, queue_size, queue->ddcb_vaddr, in setup_ddcb_queue()
1105 unsigned int queue_size; in free_ddcb_queue() local
1107 queue_size = roundup(queue->ddcb_max * sizeof(struct ddcb), PAGE_SIZE); in free_ddcb_queue()
1113 __genwqe_free_consistent(cd, queue_size, queue->ddcb_vaddr, in free_ddcb_queue()
/drivers/i2c/busses/
A Di2c-qcom-cci.c122 u16 queue_size[NUM_QUEUES]; member
322 if (val == cci->data->queue_size[queue]) in cci_validate_queue()
679 .queue_size = { 64, 16 },
712 .queue_size = { 64, 16 },
745 .queue_size = { 64, 16 },
/drivers/platform/chrome/wilco_ec/
A Devent.c102 static int queue_size = 64; variable
103 module_param(queue_size, int, 0644);
468 dev_data->events = event_queue_new(queue_size); in event_device_add()
/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/
A Dsend.h197 u16 queue_size);
205 u16 queue_size);

Completed in 63 milliseconds

1234