Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/
Dkfd_kernel_queue.c41 enum kfd_queue_type type, unsigned int queue_size) in kq_initialize() argument
51 queue_size); in kq_initialize()
84 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in kq_initialize()
86 pr_err("Failed to init pq queues size %d\n", queue_size); in kq_initialize()
123 memset(kq->pq_kernel_addr, 0, queue_size); in kq_initialize()
127 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()
Dkfd_queue.c34 pr_debug("Queue Size: %llu\n", q->queue_size); in print_queue_properties()
51 pr_debug("Queue Size: %llu\n", q->properties.queue_size); in print_queue()
Dkfd_mqd_manager_cik.c171 uint32_t wptr_mask = (uint32_t)((p->queue_size / 4) - 1); in load_mqd()
205 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd()
241 m->sdma_rlc_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
328 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd_hiq()
/kernel/linux/linux-5.10/sound/firewire/
Damdtp-stream.c470 if (++s->packet_index >= s->queue_size) in queue_packet()
698 unsigned int queue_size) in compute_it_cycle() argument
701 return increment_cycle_count(cycle, queue_size); in compute_it_cycle()
711 unsigned int queue_size = s->queue_size; in generate_device_pkt_descs() local
741 packet_index = (packet_index + 1) % queue_size; in generate_device_pkt_descs()
771 unsigned int index = (s->packet_index + i) % s->queue_size; in generate_pkt_descs()
775 desc->cycle = compute_it_cycle(*ctx_header, s->queue_size); in generate_pkt_descs()
1020 cycle = compute_it_cycle(*ctx_header, s->queue_size); in amdtp_stream_first_callback()
1048 int start_cycle, unsigned int queue_size, in amdtp_stream_start() argument
1097 err = iso_packets_buffer_init(&s->buffer, s->unit, queue_size, in amdtp_stream_start()
[all …]
/kernel/linux/linux-5.10/drivers/firmware/tegra/
Divc.c549 unsigned tegra_ivc_total_queue_size(unsigned queue_size) in tegra_ivc_total_queue_size() argument
551 if (!IS_ALIGNED(queue_size, TEGRA_IVC_ALIGN)) { in tegra_ivc_total_queue_size()
553 __func__, queue_size, TEGRA_IVC_ALIGN); in tegra_ivc_total_queue_size()
557 return queue_size + sizeof(struct tegra_ivc_header); in tegra_ivc_total_queue_size()
618 size_t queue_size; in tegra_ivc_init() local
636 queue_size = tegra_ivc_total_queue_size(num_frames * frame_size); in tegra_ivc_init()
639 ivc->rx.phys = dma_map_single(peer, rx, queue_size, in tegra_ivc_init()
644 ivc->tx.phys = dma_map_single(peer, tx, queue_size, in tegra_ivc_init()
647 dma_unmap_single(peer, ivc->rx.phys, queue_size, in tegra_ivc_init()
Dbpmp-tegra186.c111 size_t message_size, queue_size; in tegra186_bpmp_channel_init() local
121 queue_size = tegra_ivc_total_queue_size(message_size); in tegra186_bpmp_channel_init()
122 offset = queue_size * index; in tegra186_bpmp_channel_init()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Drx.c179 WARN_ON(rxq->queue_size & (rxq->queue_size - 1)); in iwl_rxq_space()
187 return (rxq->read - rxq->write - 1) & (rxq->queue_size - 1); in iwl_rxq_space()
326 rxq->write = (rxq->write + 1) & (rxq->queue_size - 1); in iwl_pcie_rxmq_restock()
733 free_size * rxq->queue_size, in iwl_pcie_free_rxq_dma()
744 sizeof(__le32)) * rxq->queue_size, in iwl_pcie_free_rxq_dma()
779 rxq->queue_size = trans->cfg->num_rbds; in iwl_pcie_alloc_rxq_dma()
781 rxq->queue_size = RX_QUEUE_SIZE; in iwl_pcie_alloc_rxq_dma()
789 rxq->bd = dma_alloc_coherent(dev, free_size * rxq->queue_size, in iwl_pcie_alloc_rxq_dma()
796 (use_rx_td ? sizeof(*rxq->cd) : sizeof(__le32)) * rxq->queue_size, in iwl_pcie_alloc_rxq_dma()
1082 int i, err, queue_size, allocator_pool_size, num_alloc; in _iwl_pcie_rx_init() local
[all …]
Dtrans-gen2.c233 int queue_size = max_t(u32, IWL_CMD_QUEUE_SIZE, in iwl_pcie_gen2_nic_init() local
248 if (iwl_txq_gen2_init(trans, trans->txqs.cmd.q_id, queue_size)) in iwl_pcie_gen2_nic_init()
/kernel/linux/linux-5.10/include/linux/
Dvmw_vmci_defs.h804 u64 queue_size) in vmci_q_header_add_producer_tail() argument
806 vmci_qp_add_pointer(&q_header->producer_tail, add, queue_size); in vmci_q_header_add_producer_tail()
816 u64 queue_size) in vmci_q_header_add_consumer_head() argument
818 vmci_qp_add_pointer(&q_header->consumer_head, add, queue_size); in vmci_q_header_add_consumer_head()
/kernel/linux/linux-5.10/kernel/bpf/
Dqueue_stack_maps.c72 u64 size, queue_size, cost; in queue_stack_map_alloc() local
75 cost = queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc()
81 qs = bpf_map_area_alloc(queue_size, numa_node); in queue_stack_map_alloc()
/kernel/linux/linux-5.10/sound/core/
Dtimer.c77 int queue_size; member
1330 prev = tu->qtail == 0 ? tu->queue_size - 1 : tu->qtail - 1; in snd_timer_user_interrupt()
1337 if (tu->qused >= tu->queue_size) { in snd_timer_user_interrupt()
1341 tu->qtail %= tu->queue_size; in snd_timer_user_interrupt()
1355 if (tu->qused >= tu->queue_size) { in snd_timer_user_append_to_tqueue()
1359 tu->qtail %= tu->queue_size; in snd_timer_user_append_to_tqueue()
1436 prev = tu->qtail == 0 ? tu->queue_size - 1 : tu->qtail - 1; in snd_timer_user_tinterrupt()
1478 tu->queue_size = size; in realloc_user_queue()
1858 if (params.queue_size > 0 && in snd_timer_user_params()
1859 (params.queue_size < 32 || params.queue_size > 1024)) { in snd_timer_user_params()
[all …]
/kernel/linux/linux-5.10/drivers/usb/host/
Du132-hcd.c162 u16 queue_size; member
514 if (ENDP_QUEUE_SIZE > --endp->queue_size) { in u132_hcd_giveback_urb()
553 if (ENDP_QUEUE_SIZE > --endp->queue_size) { in u132_hcd_abandon_urb()
1912 endp->queue_size = 1; in create_endpoint_and_queue_int()
1929 if (endp->queue_size++ < ENDP_QUEUE_SIZE) { in queue_int_on_old_endpoint()
1935 endp->queue_size -= 1; in queue_int_on_old_endpoint()
2011 endp->queue_size = 1; in create_endpoint_and_queue_bulk()
2026 if (endp->queue_size++ < ENDP_QUEUE_SIZE) { in queue_bulk_on_old_endpoint()
2032 endp->queue_size -= 1; in queue_bulk_on_old_endpoint()
2100 endp->queue_size = 1; in create_endpoint_and_queue_control()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
Drtrs.c21 struct rtrs_iu *rtrs_iu_alloc(u32 queue_size, size_t size, gfp_t gfp_mask, in rtrs_iu_alloc() argument
29 ius = kcalloc(queue_size, sizeof(*ius), gfp_mask); in rtrs_iu_alloc()
32 for (i = 0; i < queue_size; i++) { in rtrs_iu_alloc()
53 void rtrs_iu_free(struct rtrs_iu *ius, struct ib_device *ibdev, u32 queue_size) in rtrs_iu_free() argument
61 for (i = 0; i < queue_size; i++) { in rtrs_iu_free()
Drtrs-pri.h292 struct rtrs_iu *rtrs_iu_alloc(u32 queue_size, size_t size, gfp_t t,
295 void rtrs_iu_free(struct rtrs_iu *iu, struct ib_device *dev, u32 queue_size);
/kernel/linux/linux-5.10/drivers/nvme/host/
Drdma.c87 int queue_size; member
269 init_attr.cap.max_send_wr = factor * queue->queue_size + 1; in nvme_rdma_create_qp()
271 init_attr.cap.max_recv_wr = queue->queue_size + 1; in nvme_rdma_create_qp()
446 nvme_rdma_free_ring(ibdev, queue->rsp_ring, queue->queue_size, in nvme_rdma_destroy_queue_ib()
511 queue->cq_size = cq_factor * queue->queue_size + 1; in nvme_rdma_create_queue_ib()
521 queue->rsp_ring = nvme_rdma_alloc_ring(ibdev, queue->queue_size, in nvme_rdma_create_queue_ib()
535 queue->queue_size, in nvme_rdma_create_queue_ib()
541 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib()
547 queue->queue_size, IB_MR_TYPE_INTEGRITY, in nvme_rdma_create_queue_ib()
552 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib()
[all …]
/kernel/linux/linux-5.10/drivers/misc/genwqe/
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()
/kernel/linux/linux-5.10/include/soc/tegra/
Divc.h93 unsigned tegra_ivc_total_queue_size(unsigned queue_size);
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gfx_v10.c268 uint32_t queue_size = in kgd_hqd_load() local
271 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_hqd_load()
273 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_hqd_load()
274 guessed_wptr += queue_size; in kgd_hqd_load()
275 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_hqd_load()
Damdgpu_amdkfd_gfx_v9.c279 uint32_t queue_size = in kgd_gfx_v9_hqd_load() local
282 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_gfx_v9_hqd_load()
284 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_gfx_v9_hqd_load()
285 guessed_wptr += queue_size; in kgd_gfx_v9_hqd_load()
286 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_gfx_v9_hqd_load()
Damdgpu_amdkfd_gfx_v10_3.c253 uint32_t queue_size = in hqd_load_v10_3() local
256 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in hqd_load_v10_3()
258 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in hqd_load_v10_3()
259 guessed_wptr += queue_size; in hqd_load_v10_3()
260 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in hqd_load_v10_3()
/kernel/linux/linux-5.10/drivers/platform/chrome/wilco_ec/
Devent.c103 static int queue_size = 64; variable
104 module_param(queue_size, int, 0644);
470 dev_data->events = event_queue_new(queue_size); in event_device_add()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dloop.c529 ctrl->tag_set.queue_depth = ctrl->ctrl.opts->queue_size; in nvme_loop_create_io_queues()
608 ctrl->ctrl.sqsize = opts->queue_size - 1; in nvme_loop_create_ctrl()
621 if (opts->queue_size > ctrl->ctrl.maxcmd) { in nvme_loop_create_ctrl()
625 opts->queue_size, ctrl->ctrl.maxcmd); in nvme_loop_create_ctrl()
626 opts->queue_size = ctrl->ctrl.maxcmd; in nvme_loop_create_ctrl()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dvirtio_pci.h60 __le16 queue_size; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dvirtio_pci.h78 __le16 queue_size; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dvirtio_pci.h157 __le16 queue_size; /* read-write, power of 2. */ member

123