Home
last modified time | relevance | path

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

12345

/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_kernel_queue.c42 enum kfd_queue_type type, unsigned int queue_size) in kq_initialize() argument
52 queue_size); in kq_initialize()
85 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in kq_initialize()
87 pr_err("Failed to init pq queues size %d\n", queue_size); in kq_initialize()
124 memset(kq->pq_kernel_addr, 0, queue_size); in kq_initialize()
128 prop.queue_size = queue_size; in kq_initialize()
246 queue_size_dwords = kq->queue->properties.queue_size / 4; in kq_acquire_packet_buffer()
317 (kq->queue->properties.queue_size / 4); in kq_rollback_packet()
H A Dkfd_queue.c35 pr_debug("Queue Size: %llu\n", q->queue_size); in print_queue_properties()
52 pr_debug("Queue Size: %llu\n", q->properties.queue_size); in print_queue()
H 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()
/openbmc/qemu/block/export/
H A Dvduse-blk.c275 uint16_t queue_size = VDUSE_DEFAULT_QUEUE_SIZE; in vduse_blk_exp_create() local
290 queue_size = vblk_opts->queue_size; in vduse_blk_exp_create()
291 if (queue_size <= 2 || !is_power_of_2(queue_size) || in vduse_blk_exp_create()
292 queue_size > VIRTQUEUE_MAX_SIZE) { in vduse_blk_exp_create()
316 config.seg_max = cpu_to_le32(queue_size - 2); in vduse_blk_exp_create()
364 vduse_dev_setup_queue(vblk_exp->dev, i, queue_size); in vduse_blk_exp_create()
/openbmc/linux/drivers/vdpa/ifcvf/
H A Difcvf_base.c74 u16 queue_size; in ifcvf_get_vq_size() local
77 queue_size = vp_ioread16(&hw->common_cfg->queue_size); in ifcvf_get_vq_size()
79 return queue_size; in ifcvf_get_vq_size()
88 u16 queue_size, max_size, qid; in ifcvf_get_max_vq_size() local
92 queue_size = ifcvf_get_vq_size(hw, qid); in ifcvf_get_max_vq_size()
94 if (!queue_size) in ifcvf_get_max_vq_size()
97 max_size = min(queue_size, max_size); in ifcvf_get_max_vq_size()
353 vp_iowrite16(num, &cfg->queue_size); in ifcvf_set_vq_num()
/openbmc/linux/drivers/net/ethernet/microsoft/mana/
H A Dhw_channel.c263 enum gdma_queue_type type, u64 queue_size, in mana_hwc_create_gdma_wq() argument
273 spec.queue_size = queue_size; in mana_hwc_create_gdma_wq()
279 u64 queue_size, in mana_hwc_create_gdma_cq() argument
288 spec.queue_size = queue_size; in mana_hwc_create_gdma_cq()
297 u64 queue_size, in mana_hwc_create_gdma_eq() argument
305 spec.queue_size = queue_size; in mana_hwc_create_gdma_eq()
494 u32 queue_size; in mana_hwc_create_wq() local
500 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq()
502 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth); in mana_hwc_create_wq()
504 if (queue_size < MANA_MIN_QSIZE) in mana_hwc_create_wq()
[all …]
H A Dgdma_main.c221 req.queue_size = queue->queue_size; in mana_gd_create_hw_eq()
333 u32 num_cqe = cq->queue_size / GDMA_CQE_SIZE; in mana_gd_ring_cq()
343 u32 head = eq->head % (eq->queue_size / GDMA_EQE_SIZE); in mana_gd_process_eqe()
406 num_eqe = eq->queue_size / GDMA_EQE_SIZE; in mana_gd_process_eq_events()
667 err = mana_gd_alloc_memory(gc, spec->queue_size, gmi); in mana_gd_create_hwc_queue()
674 queue->queue_size = spec->queue_size; in mana_gd_create_hwc_queue()
805 queue->queue_size = spec->queue_size; in mana_gd_create_mana_eq()
852 queue->queue_size = spec->queue_size; in mana_gd_create_mana_wq_cq()
1008 u32 wq_size = wq->queue_size; in mana_gd_wq_avail_space()
1076 end_ptr = base_ptr + wq->queue_size; in mana_gd_write_sgl()
[all …]
/openbmc/linux/drivers/firmware/tegra/
H 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()
H 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()
/openbmc/qemu/hw/virtio/
H A Dvdpa-dev.c82 if (v->queue_size > max_queue_size) { in vhost_vdpa_device_realize()
84 v->queue_size, max_queue_size); in vhost_vdpa_device_realize()
86 } else if (!v->queue_size) { in vhost_vdpa_device_realize()
87 v->queue_size = max_queue_size; in vhost_vdpa_device_realize()
154 v->virtqs[i] = virtio_add_queue(vdev, v->queue_size, in vhost_vdpa_device_realize()
342 DEFINE_PROP_UINT16("queue-size", VhostVdpaDevice, queue_size, 0),
H A Dvhost-user-fs.c224 if (!is_power_of_2(fs->conf.queue_size)) { in vuf_device_realize()
229 if (fs->conf.queue_size > VIRTQUEUE_MAX_SIZE) { in vuf_device_realize()
242 fs->hiprio_vq = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize()
247 fs->req_vqs[i] = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize()
411 DEFINE_PROP_UINT16("queue-size", VHostUserFS, conf.queue_size, 128),
/openbmc/linux/sound/firewire/
H A Damdtp-stream.c652 if (++s->packet_index >= s->queue_size) in queue_packet()
912 unsigned int queue_size) in compute_ohci_it_cycle() argument
915 return increment_ohci_cycle_count(cycle, queue_size); in compute_ohci_it_cycle()
925 unsigned int queue_size = s->queue_size; in generate_tx_packet_descs() local
994 packet_index = (packet_index + 1) % queue_size; in generate_tx_packet_descs()
1263 const unsigned int queue_size = s->queue_size; in process_rx_packets_intermediately() local
1709 s->queue_size = queue_size; in amdtp_stream_start()
1733 queue_size * 3 / 2); in amdtp_stream_start()
1761 s->ctx_data.rx.seq.size = queue_size; in amdtp_stream_start()
1789 for (i = 0; i < s->queue_size; ++i) { in amdtp_stream_start()
[all …]
/openbmc/linux/kernel/bpf/
H A Dqueue_stack_maps.c68 u64 size, queue_size; in queue_stack_map_alloc() local
71 queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
73 qs = bpf_map_area_alloc(queue_size, numa_node); in queue_stack_map_alloc()
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/pcie/
H A Drx.c122 WARN_ON(rxq->queue_size & (rxq->queue_size - 1)); in iwl_rxq_space()
685 free_size * rxq->queue_size, in iwl_pcie_free_rxq_dma()
696 rxq->queue_size, in iwl_pcie_free_rxq_dma()
724 rxq->queue_size = trans->cfg->num_rbds; in iwl_pcie_alloc_rxq_dma()
726 rxq->queue_size = RX_QUEUE_SIZE; in iwl_pcie_alloc_rxq_dma()
742 rxq->queue_size, in iwl_pcie_alloc_rxq_dma()
1142 queue_size = trans->trans_cfg->mq_rx_supported ? in _iwl_pcie_rx_init()
1146 num_alloc = queue_size + allocator_pool_size; in _iwl_pcie_rx_init()
1517 r &= (rxq->queue_size - 1); in iwl_pcie_rx_handle()
1567 i = (i + 1) & (rxq->queue_size - 1); in iwl_pcie_rx_handle()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gc_9_4_3.c329 uint32_t queue_size = in kgd_gfx_v9_4_3_hqd_load() local
332 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_gfx_v9_4_3_hqd_load()
334 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_gfx_v9_4_3_hqd_load()
335 guessed_wptr += queue_size; in kgd_gfx_v9_4_3_hqd_load()
336 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_gfx_v9_4_3_hqd_load()
H 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()
/openbmc/linux/include/linux/
H A Dvmw_vmci_defs.h866 u64 queue_size) in vmci_q_header_add_producer_tail() argument
868 vmci_qp_add_pointer(&q_header->producer_tail, add, queue_size); in vmci_q_header_add_producer_tail()
878 u64 queue_size) in vmci_q_header_add_consumer_head() argument
880 vmci_qp_add_pointer(&q_header->consumer_head, add, queue_size); in vmci_q_header_add_consumer_head()
/openbmc/qemu/hw/i386/
H A Dvmmouse.c67 int32_t queue_size; member
281 VMSTATE_INT32_EQUAL(queue_size, VMMouseState, NULL),
294 s->queue_size = VMMOUSE_QUEUE_SIZE; in vmmouse_reset()
/openbmc/qemu/hw/block/
H A Dvhost-user-blk.c154 ret = vhost_dev_get_inflight(&s->dev, s->queue_size, s->inflight); in vhost_user_blk_start()
452 if (!s->queue_size) { in vhost_user_blk_device_realize()
456 if (s->queue_size > VIRTQUEUE_MAX_SIZE) { in vhost_user_blk_device_realize()
472 s->virtqs[i] = virtio_add_queue(vdev, s->queue_size, in vhost_user_blk_device_realize()
565 DEFINE_PROP_UINT32("queue-size", VHostUserBlk, queue_size, 128),
/openbmc/qemu/include/hw/virtio/
H A Dvhost-user-fs.h30 uint16_t queue_size; member
H A Dvhost-user-blk.h36 uint32_t queue_size; member
H A Dvdpa-dev.h38 uint16_t queue_size; member
/openbmc/linux/drivers/nvme/host/
H 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()
1770 for (i = 0; i < queue->queue_size; i++) { in nvme_rdma_conn_established()
1862 priv.hrqsize = cpu_to_le16(queue->queue_size); in nvme_rdma_route_resolved()
[all …]
/openbmc/linux/sound/core/
H A Dtimer.c77 int queue_size; member
1351 if (tu->qused >= tu->queue_size) { in snd_timer_user_interrupt()
1355 tu->qtail %= tu->queue_size; in snd_timer_user_interrupt()
1369 if (tu->qused >= tu->queue_size) { in snd_timer_user_append_to_tqueue()
1373 tu->qtail %= tu->queue_size; in snd_timer_user_append_to_tqueue()
1492 tu->queue_size = size; in realloc_user_queue()
1877 if (params.queue_size > 0 && in snd_timer_user_params()
1878 (params.queue_size < 32 || params.queue_size > 1024)) { in snd_timer_user_params()
1911 if (params.queue_size > 0 && in snd_timer_user_params()
1912 (unsigned int)tu->queue_size != params.queue_size) { in snd_timer_user_params()
[all …]
/openbmc/linux/include/soc/tegra/
H A Divc.h95 unsigned tegra_ivc_total_queue_size(unsigned queue_size);

12345