/linux/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_kernel_queue.c | 41 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() 245 queue_size_dwords = kq->queue->properties.queue_size / 4; in kq_acquire_packet_buffer() 316 (kq->queue->properties.queue_size / 4); in kq_rollback_packet()
|
A D | kfd_queue.c | 34 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()
|
A D | kfd_mqd_manager_cik.c | 172 uint32_t wptr_mask = (uint32_t)((p->queue_size / 4) - 1); in load_mqd() 207 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd() 253 m->sdma_rlc_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma() 341 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in update_mqd_hiq()
|
A D | kfd_mqd_manager_vi.c | 163 uint32_t wptr_mask = (uint32_t)((p->queue_size / 4) - 1); in load_mqd() 181 m->cp_hqd_pq_control |= order_base_2(q->queue_size / 4) - 1; in __update_mqd() 362 m->sdmax_rlcx_rb_cntl = order_base_2(q->queue_size / 4) in update_mqd_sdma()
|
/linux/drivers/net/ethernet/microsoft/mana/ |
A D | hw_channel.c | 231 enum gdma_queue_type type, u64 queue_size, in mana_hwc_create_gdma_wq() argument 241 spec.queue_size = queue_size; in mana_hwc_create_gdma_wq() 247 u64 queue_size, in mana_hwc_create_gdma_cq() argument 256 spec.queue_size = queue_size; in mana_hwc_create_gdma_cq() 265 u64 queue_size, in mana_hwc_create_gdma_eq() argument 273 spec.queue_size = queue_size; in mana_hwc_create_gdma_eq() 462 u32 queue_size; in mana_hwc_create_wq() local 468 queue_size = roundup_pow_of_two(GDMA_MAX_RQE_SIZE * q_depth); in mana_hwc_create_wq() 470 queue_size = roundup_pow_of_two(GDMA_MAX_SQE_SIZE * q_depth); in mana_hwc_create_wq() 472 if (queue_size < MINIMUM_SUPPORTED_PAGE_SIZE) in mana_hwc_create_wq() [all …]
|
A D | gdma_main.c | 171 req.queue_size = queue->queue_size; in mana_gd_create_hw_eq() 280 u32 num_cqe = cq->queue_size / GDMA_CQE_SIZE; in mana_gd_ring_cq() 290 u32 head = eq->head % (eq->queue_size / GDMA_EQE_SIZE); in mana_gd_process_eqe() 353 num_eqe = eq->queue_size / GDMA_EQE_SIZE; in mana_gd_process_eq_events() 609 err = mana_gd_alloc_memory(gc, spec->queue_size, gmi); in mana_gd_create_hwc_queue() 616 queue->queue_size = spec->queue_size; in mana_gd_create_hwc_queue() 741 queue->queue_size = spec->queue_size; in mana_gd_create_mana_eq() 788 queue->queue_size = spec->queue_size; in mana_gd_create_mana_wq_cq() 935 u32 wq_size = wq->queue_size; in mana_gd_wq_avail_space() 1003 end_ptr = base_ptr + wq->queue_size; in mana_gd_write_sgl() [all …]
|
A D | mana_en.c | 635 req.wq_size = wq_spec->queue_size; in mana_create_wq_obj() 636 req.cq_size = cq_spec->queue_size; in mana_create_wq_obj() 735 spec.queue_size = EQ_SIZE; in mana_create_eq() 1206 spec.queue_size = txq_size; in mana_create_txq() 1220 spec.queue_size = cq_size; in mana_create_txq() 1232 wq_spec.queue_size = txq->gdma_sq->queue_size; in mana_create_txq() 1235 cq_spec.queue_size = cq->gdma_cq->queue_size; in mana_create_txq() 1431 spec.queue_size = rq_size; in mana_create_rxq() 1444 spec.queue_size = cq_size; in mana_create_rxq() 1455 wq_spec.queue_size = rxq->gdma_rq->queue_size; in mana_create_rxq() [all …]
|
A D | gdma.h | 274 u32 queue_size; member 306 unsigned int queue_size; member 576 u32 queue_size; member
|
/linux/drivers/firmware/tegra/ |
A D | ivc.c | 549 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()
|
A D | bpmp-tegra186.c | 111 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()
|
/linux/sound/firewire/ |
A D | amdtp-stream.c | 641 if (++s->packet_index >= s->queue_size) in queue_packet() 883 unsigned int queue_size) in compute_ohci_it_cycle() argument 886 return increment_ohci_cycle_count(cycle, queue_size); in compute_ohci_it_cycle() 898 unsigned int queue_size = s->queue_size; in generate_device_pkt_descs() local 963 packet_index = (packet_index + 1) % queue_size; in generate_device_pkt_descs() 995 unsigned int index = (s->packet_index + i) % s->queue_size; in generate_pkt_descs() 1157 const unsigned int queue_size = s->queue_size; in process_rx_packets_intermediately() local 1594 s->queue_size = queue_size; in amdtp_stream_start() 1618 queue_size * 3 / 2); in amdtp_stream_start() 1646 s->ctx_data.rx.seq.size = queue_size; in amdtp_stream_start() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
A D | rx.c | 122 WARN_ON(rxq->queue_size & (rxq->queue_size - 1)); in iwl_rxq_space() 269 rxq->write = (rxq->write + 1) & (rxq->queue_size - 1); in iwl_pcie_rxmq_restock() 675 free_size * rxq->queue_size, in iwl_pcie_free_rxq_dma() 686 sizeof(__le32)) * rxq->queue_size, in iwl_pcie_free_rxq_dma() 706 rxq->queue_size = trans->cfg->num_rbds; in iwl_pcie_alloc_rxq_dma() 708 rxq->queue_size = RX_QUEUE_SIZE; in iwl_pcie_alloc_rxq_dma() 1109 queue_size = trans->trans_cfg->mq_rx_supported ? in _iwl_pcie_rx_init() 1113 num_alloc = queue_size + allocator_pool_size; in _iwl_pcie_rx_init() 1478 r &= (rxq->queue_size - 1); in iwl_pcie_rx_handle() 1528 i = (i + 1) & (rxq->queue_size - 1); in iwl_pcie_rx_handle() [all …]
|
/linux/kernel/bpf/ |
A D | queue_stack_maps.c | 71 u64 size, queue_size; in queue_stack_map_alloc() local 74 queue_size = sizeof(*qs) + size * attr->value_size; in queue_stack_map_alloc() 76 qs = bpf_map_area_alloc(queue_size, numa_node); in queue_stack_map_alloc()
|
/linux/include/linux/ |
A D | vmw_vmci_defs.h | 804 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()
|
/linux/sound/core/ |
A D | timer.c | 77 int queue_size; member 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() 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() 1892 if (params.queue_size > 0 && in snd_timer_user_params() 1893 (unsigned int)tu->queue_size != params.queue_size) { in snd_timer_user_params() [all …]
|
/linux/drivers/usb/host/ |
A D | u132-hcd.c | 162 u16 queue_size; member 1912 endp->queue_size = 1; in create_endpoint_and_queue_int() 1935 endp->queue_size -= 1; in queue_int_on_old_endpoint() 2011 endp->queue_size = 1; in create_endpoint_and_queue_bulk() 2032 endp->queue_size -= 1; in queue_bulk_on_old_endpoint() 2100 endp->queue_size = 1; in create_endpoint_and_queue_control() 2121 endp->queue_size = 1; in create_endpoint_and_queue_control() 2220 endp->queue_size -= 1; in queue_control_on_old_endpoint() 2391 endp->queue_size -= 1; in dequeue_from_overflow_chain() 2441 u16 queue_size = endp->queue_size; in u132_endp_urb_dequeue() local [all …]
|
/linux/drivers/nvme/host/ |
A D | rdma.c | 88 int queue_size; member 272 init_attr.cap.max_recv_wr = queue->queue_size + 1; in nvme_rdma_create_qp() 537 queue->queue_size, in nvme_rdma_create_queue_ib() 543 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib() 549 queue->queue_size, IB_MR_TYPE_INTEGRITY, in nvme_rdma_create_queue_ib() 554 queue->queue_size, nvme_rdma_queue_idx(queue)); in nvme_rdma_create_queue_ib() 578 int idx, size_t queue_size) in nvme_rdma_alloc_queue() argument 598 queue->queue_size = queue_size; in nvme_rdma_alloc_queue() 1825 for (i = 0; i < queue->queue_size; i++) { in nvme_rdma_conn_established() 1917 priv.hrqsize = cpu_to_le16(queue->queue_size); in nvme_rdma_route_resolved() [all …]
|
/linux/drivers/misc/genwqe/ |
A D | card_ddcb.c | 1026 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()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_amdkfd_gfx_v10.c | 267 uint32_t queue_size = in kgd_hqd_load() local 270 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_hqd_load() 272 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_hqd_load() 273 guessed_wptr += queue_size; in kgd_hqd_load() 274 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_hqd_load()
|
A D | amdgpu_amdkfd_gfx_v9.c | 281 uint32_t queue_size = in kgd_gfx_v9_hqd_load() local 284 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in kgd_gfx_v9_hqd_load() 286 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in kgd_gfx_v9_hqd_load() 287 guessed_wptr += queue_size; in kgd_gfx_v9_hqd_load() 288 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in kgd_gfx_v9_hqd_load()
|
A D | amdgpu_amdkfd_gfx_v10_3.c | 252 uint32_t queue_size = in hqd_load_v10_3() local 255 uint64_t guessed_wptr = m->cp_hqd_pq_rptr & (queue_size - 1); in hqd_load_v10_3() 257 if ((m->cp_hqd_pq_wptr_lo & (queue_size - 1)) < guessed_wptr) in hqd_load_v10_3() 258 guessed_wptr += queue_size; in hqd_load_v10_3() 259 guessed_wptr += m->cp_hqd_pq_wptr_lo & ~(queue_size - 1); in hqd_load_v10_3()
|
/linux/drivers/platform/chrome/wilco_ec/ |
A D | event.c | 103 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()
|
/linux/drivers/nvme/target/ |
A D | loop.c | 531 ctrl->tag_set.queue_depth = ctrl->ctrl.opts->queue_size; in nvme_loop_create_io_queues() 610 ctrl->ctrl.sqsize = opts->queue_size - 1; in nvme_loop_create_ctrl() 623 if (opts->queue_size > ctrl->ctrl.maxcmd) { in nvme_loop_create_ctrl() 627 opts->queue_size, ctrl->ctrl.maxcmd); in nvme_loop_create_ctrl() 628 opts->queue_size = ctrl->ctrl.maxcmd; in nvme_loop_create_ctrl()
|
/linux/include/soc/tegra/ |
A D | ivc.h | 93 unsigned tegra_ivc_total_queue_size(unsigned queue_size);
|
/linux/drivers/dma/ |
A D | fsl-qdma.c | 487 unsigned int queue_size[FSL_QDMA_QUEUE_MAX]; in fsl_qdma_alloc_queue_resources() local 501 queue_size, queue_num); in fsl_qdma_alloc_queue_resources() 508 if (queue_size[i] > FSL_QDMA_CIRCULAR_DESC_SIZE_MAX || in fsl_qdma_alloc_queue_resources() 509 queue_size[i] < FSL_QDMA_CIRCULAR_DESC_SIZE_MIN) { in fsl_qdma_alloc_queue_resources() 519 queue_size[i], in fsl_qdma_alloc_queue_resources() 526 queue_temp->n_cq = queue_size[i]; in fsl_qdma_alloc_queue_resources()
|