Home
last modified time | relevance | path

Searched refs:queue_idx (Results 1 – 25 of 38) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/google/gve/
H A Dgve_utils.c11 void gve_tx_remove_from_block(struct gve_priv *priv, int queue_idx) in gve_tx_remove_from_block() argument
14 &priv->ntfy_blocks[gve_tx_idx_to_ntfy(priv, queue_idx)]; in gve_tx_remove_from_block()
19 void gve_tx_add_to_block(struct gve_priv *priv, int queue_idx) in gve_tx_add_to_block() argument
23 int ntfy_idx = gve_tx_idx_to_ntfy(priv, queue_idx); in gve_tx_add_to_block()
25 struct gve_tx_ring *tx = &priv->tx[queue_idx]; in gve_tx_add_to_block()
30 queue_idx); in gve_tx_add_to_block()
33 void gve_rx_remove_from_block(struct gve_priv *priv, int queue_idx) in gve_rx_remove_from_block() argument
36 &priv->ntfy_blocks[gve_rx_idx_to_ntfy(priv, queue_idx)]; in gve_rx_remove_from_block()
41 void gve_rx_add_to_block(struct gve_priv *priv, int queue_idx) in gve_rx_add_to_block() argument
43 u32 ntfy_idx = gve_rx_idx_to_ntfy(priv, queue_idx); in gve_rx_add_to_block()
[all …]
H A Dgve_utils.h14 void gve_tx_remove_from_block(struct gve_priv *priv, int queue_idx);
15 void gve_tx_add_to_block(struct gve_priv *priv, int queue_idx);
17 void gve_rx_remove_from_block(struct gve_priv *priv, int queue_idx);
18 void gve_rx_add_to_block(struct gve_priv *priv, int queue_idx);
H A Dgve_dqo.h45 void gve_rx_write_doorbell_dqo(const struct gve_priv *priv, int queue_idx);
H A Dgve.h896 static inline u32 gve_tx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_tx_idx_to_ntfy() argument
898 return queue_idx; in gve_tx_idx_to_ntfy()
903 static inline u32 gve_rx_idx_to_ntfy(struct gve_priv *priv, u32 queue_idx) in gve_rx_idx_to_ntfy() argument
905 return (priv->num_ntfy_blks / 2) + queue_idx; in gve_rx_idx_to_ntfy()
H A Dgve_rx_dqo.c332 void gve_rx_write_doorbell_dqo(const struct gve_priv *priv, int queue_idx) in gve_rx_write_doorbell_dqo() argument
334 const struct gve_rx_ring *rx = &priv->rx[queue_idx]; in gve_rx_write_doorbell_dqo()
611 int queue_idx) in gve_rx_dqo() argument
/openbmc/linux/drivers/net/ethernet/atheros/alx/
H A Dalx.h68 u16 queue_idx; member
83 u16 queue_idx; member
H A Dmain.c154 return netdev_get_tx_queue(txq->netdev, txq->queue_idx); in alx_get_tx_queue()
463 txring_header_reg[np->txq->queue_idx], in alx_init_ring_ptrs()
768 txq->queue_idx = i; in alx_alloc_napis()
784 rxq->queue_idx = 0; in alx_alloc_napis()
869 np->txq->queue_idx); in alx_request_msix()
872 np->txq->queue_idx); in alx_request_msix()
875 np->rxq->queue_idx); in alx_request_msix()
/openbmc/linux/drivers/staging/rtl8723bs/hal/
H A Dhal_sdio.c79 u32 rtw_hal_get_sdio_tx_max_length(struct adapter *padapter, u8 queue_idx) in rtw_hal_get_sdio_tx_max_length() argument
86 deviceId = ffaddr2deviceId(pdvobjpriv, queue_idx); in rtw_hal_get_sdio_tx_max_length()
/openbmc/linux/drivers/nvme/target/
H A Dloop.c84 u32 queue_idx = nvme_loop_queue_idx(queue); in nvme_loop_tagset() local
86 if (queue_idx == 0) in nvme_loop_tagset()
87 return queue->ctrl->admin_tag_set.tags[queue_idx]; in nvme_loop_tagset()
88 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_loop_tagset()
194 struct nvme_loop_iod *iod, unsigned int queue_idx) in nvme_loop_init_iod() argument
198 iod->queue = &ctrl->queues[queue_idx]; in nvme_loop_init_iod()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dhealth.c308 int queue_idx, char *lbl) in mlx5e_health_queue_dump() argument
314 key.index1 = queue_idx; in mlx5e_health_queue_dump()
326 err = devlink_fmsg_u32_pair_put(fmsg, "index", queue_idx); in mlx5e_health_queue_dump()
H A Dhealth.h58 int queue_idx, char *lbl);
/openbmc/linux/drivers/staging/rtl8723bs/include/
H A Dhal_sdio.h16 u32 rtw_hal_get_sdio_tx_max_length(struct adapter *padapter, u8 queue_idx);
/openbmc/linux/drivers/virtio/
H A Dvirtio_pci_common.c292 int i, err, nvectors, allocated_vectors, queue_idx = 0; in vp_find_vqs_msix() local
328 vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vp_find_vqs_msix()
365 int i, err, queue_idx = 0; in vp_find_vqs_intx() local
383 vqs[i] = vp_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vp_find_vqs_intx()
H A Dvirtio_vdpa.c370 int i, err, queue_idx = 0; in virtio_vdpa_find_vqs() local
384 vqs[i] = virtio_vdpa_setup_vq(vdev, queue_idx++, in virtio_vdpa_find_vqs()
H A Dvirtio_mmio.c499 int i, err, queue_idx = 0; in vm_find_vqs() local
518 vqs[i] = vm_setup_vq(vdev, queue_idx++, callbacks[i], names[i], in vm_find_vqs()
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00mac.c680 unsigned int link_id, u16 queue_idx, in rt2x00mac_conf_tx() argument
686 queue = rt2x00queue_get_tx_queue(rt2x00dev, queue_idx); in rt2x00mac_conf_tx()
709 queue_idx, queue->cw_min, queue->cw_max, queue->aifs, in rt2x00mac_conf_tx()
H A Drt73usb.c2222 unsigned int link_id, u16 queue_idx, in rt73usb_conf_tx() argument
2238 retval = rt2x00mac_conf_tx(hw, vif, link_id, queue_idx, params); in rt73usb_conf_tx()
2246 if (queue_idx >= 4) in rt73usb_conf_tx()
2249 queue = rt2x00queue_get_tx_queue(rt2x00dev, queue_idx); in rt73usb_conf_tx()
2252 offset = AC_TXOP_CSR0 + (sizeof(u32) * (!!(queue_idx & 2))); in rt73usb_conf_tx()
2253 field.bit_offset = (queue_idx & 1) * 16; in rt73usb_conf_tx()
2261 field.bit_offset = queue_idx * 4; in rt73usb_conf_tx()
H A Drt61pci.c2803 unsigned int link_id, u16 queue_idx, in rt61pci_conf_tx() argument
2819 retval = rt2x00mac_conf_tx(hw, vif, link_id, queue_idx, params); in rt61pci_conf_tx()
2827 if (queue_idx >= 4) in rt61pci_conf_tx()
2830 queue = rt2x00queue_get_tx_queue(rt2x00dev, queue_idx); in rt61pci_conf_tx()
2833 offset = AC_TXOP_CSR0 + (sizeof(u32) * (!!(queue_idx & 2))); in rt61pci_conf_tx()
2834 field.bit_offset = (queue_idx & 1) * 16; in rt61pci_conf_tx()
2842 field.bit_offset = queue_idx * 4; in rt61pci_conf_tx()
H A Drt2800lib.h259 unsigned int link_id, u16 queue_idx,
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dhw_queue.c907 int sob, reserved_mon_idx, queue_idx; in sync_stream_queue_init() local
941 queue_idx = hdev->sync_stream_queue_idx++; in sync_stream_queue_init()
944 (queue_idx * HL_RSVD_SOBS); in sync_stream_queue_init()
946 (queue_idx * HL_RSVD_MONS); in sync_stream_queue_init()
/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_virtio.c190 int i, ret, queue_idx = 0; in rproc_virtio_find_vqs() local
198 vqs[i] = rp_find_vq(vdev, queue_idx++, callbacks[i], names[i], in rproc_virtio_find_vqs()
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gfx_v9.c954 static void get_wave_count(struct amdgpu_device *adev, int queue_idx, in get_wave_count() argument
968 pipe_idx = queue_idx / adev->gfx.mec.num_queue_per_pipe; in get_wave_count()
969 queue_slot = queue_idx % adev->gfx.mec.num_queue_per_pipe; in get_wave_count()
/openbmc/linux/drivers/nvme/host/
H A Drdma.c299 int queue_idx = (set == &ctrl->tag_set) ? hctx_idx + 1 : 0; in nvme_rdma_init_request() local
300 struct nvme_rdma_queue *queue = &ctrl->queues[queue_idx]; in nvme_rdma_init_request()
1642 u32 queue_idx = nvme_rdma_queue_idx(queue); in nvme_rdma_tagset() local
1644 if (queue_idx == 0) in nvme_rdma_tagset()
1645 return queue->ctrl->admin_tag_set.tags[queue_idx]; in nvme_rdma_tagset()
1646 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_rdma_tagset()
H A Dtcp.c194 u32 queue_idx = nvme_tcp_queue_id(queue); in nvme_tcp_tagset() local
196 if (queue_idx == 0) in nvme_tcp_tagset()
197 return queue->ctrl->admin_tag_set.tags[queue_idx]; in nvme_tcp_tagset()
198 return queue->ctrl->tag_set.tags[queue_idx - 1]; in nvme_tcp_tagset()
481 int queue_idx = (set == &ctrl->tag_set) ? hctx_idx + 1 : 0; in nvme_tcp_init_request() local
482 struct nvme_tcp_queue *queue = &ctrl->queues[queue_idx]; in nvme_tcp_init_request()
/openbmc/qemu/hw/virtio/
H A Dvhost-user.c1545 int queue_idx = area->u64 & VHOST_USER_VRING_IDX_MASK; in vhost_user_backend_handle_vring_host_notifier() local
1556 vdev == NULL || queue_idx >= virtio_get_num_queues(vdev)) { in vhost_user_backend_handle_vring_host_notifier()
1564 n = fetch_or_create_notifier(user, queue_idx); in vhost_user_backend_handle_vring_host_notifier()
1583 user, queue_idx); in vhost_user_backend_handle_vring_host_notifier()
1592 if (virtio_queue_set_host_notifier_mr(vdev, queue_idx, &n->mr, true)) { in vhost_user_backend_handle_vring_host_notifier()

12