Home
last modified time | relevance | path

Searched refs:queue_index (Results 1 – 23 of 23) sorted by relevance

/openbmc/qemu/backends/
H A Dcryptodev-vhost-user.c204 cc->queue_index = i; in cryptodev_vhost_user_init()
238 uint32_t queue_index, Error **errp) in cryptodev_vhost_user_crypto_create_session() argument
241 backend->conf.peers.ccs[queue_index]; in cryptodev_vhost_user_crypto_create_session()
246 vhost_crypto = cryptodev_vhost_user_get_vhost(cc, backend, queue_index); in cryptodev_vhost_user_crypto_create_session()
264 uint32_t queue_index, in cryptodev_vhost_user_create_session() argument
280 queue_index, &local_error); in cryptodev_vhost_user_create_session()
306 uint32_t queue_index, in cryptodev_vhost_user_close_session() argument
311 backend->conf.peers.ccs[queue_index]; in cryptodev_vhost_user_close_session()
315 vhost_crypto = cryptodev_vhost_user_get_vhost(cc, backend, queue_index); in cryptodev_vhost_user_close_session()
H A Dcryptodev.c87 client->queue = cc->queue_index; in qmp_query_cryptodev_foreach()
143 uint32_t queue_index, in cryptodev_backend_create_session() argument
151 return bc->create_session(backend, sess_info, queue_index, cb, opaque); in cryptodev_backend_create_session()
159 uint32_t queue_index, in cryptodev_backend_close_session() argument
167 return bc->close_session(backend, session_id, queue_index, cb, opaque); in cryptodev_backend_close_session()
H A Dcryptodev-lkcf.c104 uint32_t queue_index,
228 cc->queue_index = 0; in cryptodev_lkcf_init()
572 uint32_t queue_index, in cryptodev_lkcf_create_session() argument
602 uint32_t queue_index, in cryptodev_lkcf_close_session() argument
H A Dcryptodev-builtin.c91 cc->queue_index = 0; in cryptodev_builtin_init()
373 uint32_t queue_index, in cryptodev_builtin_create_session() argument
423 uint32_t queue_index, in cryptodev_builtin_close_session() argument
H A Dcryptodev-vhost.c67 crypto->dev.vq_index = crypto->cc->queue_index * crypto->dev.nvqs; in cryptodev_vhost_init()
/openbmc/qemu/include/system/
H A Dcryptodev.h183 uint32_t queue_index; member
202 uint32_t queue_index,
208 uint32_t queue_index,
219 unsigned int queue_index; member
366 uint32_t queue_index,
388 uint32_t queue_index,
/openbmc/qemu/hw/net/
H A Dmv88w8618_eth.c190 static void eth_send(mv88w8618_eth_state *s, int queue_index) in eth_send() argument
192 uint32_t desc_addr = s->tx_queue[queue_index]; in eth_send()
209 s->icr |= 1 << (MP_ETH_IRQ_TXLO_BIT - queue_index); in eth_send()
213 } while (desc_addr != s->tx_queue[queue_index]); in eth_send()
H A Dvirtio-net.c119 return &n->vqs[nc->queue_index]; in virtio_net_get_subqueue()
122 static int vq2q(int queue_index) in vq2q() argument
124 return queue_index / 2; in vq2q()
554 static void virtio_net_queue_reset(VirtIODevice *vdev, uint32_t queue_index) in virtio_net_queue_reset() argument
560 if (queue_index >= n->max_queue_pairs * 2) { in virtio_net_queue_reset()
564 nc = qemu_get_subqueue(n->nic, vq2q(queue_index)); in virtio_net_queue_reset()
572 vhost_net_virtqueue_reset(vdev, nc, queue_index); in virtio_net_queue_reset()
578 static void virtio_net_queue_enable(VirtIODevice *vdev, uint32_t queue_index) in virtio_net_queue_enable() argument
585 if (queue_index >= n->max_queue_pairs * 2) { in virtio_net_queue_enable()
589 nc = qemu_get_subqueue(n->nic, vq2q(queue_index)); in virtio_net_queue_enable()
[all …]
H A Dvhost_net.c269 net->dev.vq_index = net->nc->queue_index * net->dev.nvqs; in vhost_net_init()
H A Digb_core.c546 igb_tx_pkt_send(IGBCore *core, struct igb_tx *tx, int queue_index) in igb_tx_pkt_send() argument
548 int target_queue = MIN(core->max_queue_num, queue_index); in igb_tx_pkt_send()
607 int queue_index) in igb_process_tx_desc() argument
659 igb_tx_insert_vlan(core, queue_index, tx, in igb_process_tx_desc()
670 if (igb_tx_pkt_send(core, tx, queue_index)) { in igb_process_tx_desc()
671 igb_on_tx_done_update_stats(core, tx->tx_pkt, queue_index); in igb_process_tx_desc()
H A De1000e_core.c633 e1000e_tx_pkt_send(E1000ECore *core, struct e1000e_tx *tx, int queue_index) in e1000e_tx_pkt_send() argument
635 int target_queue = MIN(core->max_queue_num, queue_index); in e1000e_tx_pkt_send()
686 int queue_index) in e1000e_process_tx_desc() argument
726 if (e1000e_tx_pkt_send(core, tx, queue_index)) { in e1000e_process_tx_desc()
/openbmc/qemu/net/
H A Daf-xdp.c283 idx = nc->queue_index + s->map_start_index; in af_xdp_cleanup()
328 s->ifname, s->nc.queue_index); in af_xdp_umem_create()
364 queue_id = s->nc.queue_index; in af_xdp_socket_create()
419 idx = s->nc.queue_index + s->map_start_index; in af_xdp_update_xsk_map()
541 nc->queue_index = i; in net_init_af_xdp()
H A Dnet.c347 nic->ncs[i].queue_index = i; in qemu_new_nic()
353 NetClientState *qemu_get_subqueue(NICState *nic, int queue_index) in qemu_get_subqueue() argument
355 return nic->ncs + queue_index; in qemu_get_subqueue()
365 NetClientState *nc0 = nc - nc->queue_index; in qemu_get_nic()
377 NetClientState *qemu_get_peer(NetClientState *nc, int queue_index) in qemu_get_peer() argument
380 NetClientState *ncs = nc + queue_index; in qemu_get_peer()
500 if (nc->queue_index == 0) { in qemu_foreach_nic()
1544 nc->queue_index, in print_net_client()
1583 if (nc->queue_index != 0) in qmp_query_rx_filter()
H A Dvhost-user.c217 if (nc->queue_index == 0) { in net_vhost_user_cleanup()
392 nc->queue_index = i; in net_vhost_user_init()
/openbmc/qemu/hw/virtio/
H A Dvirtio-crypto.c67 static inline int virtio_crypto_vq2q(int queue_index) in virtio_crypto_vq2q() argument
69 return queue_index; in virtio_crypto_vq2q()
120 int queue_index; in virtio_crypto_create_sym_session() local
191 queue_index = virtio_crypto_vq2q(queue_id); in virtio_crypto_create_sym_session()
193 queue_index, sreq->cb, sreq); in virtio_crypto_create_sym_session()
205 int queue_index; in virtio_crypto_create_asym_session() local
246 queue_index = virtio_crypto_vq2q(queue_id); in virtio_crypto_create_asym_session()
248 queue_index, sreq->cb, sreq); in virtio_crypto_create_asym_session()
824 int queue_index = virtio_crypto_vq2q(virtio_get_queue_index(request->vq)); in virtio_crypto_handle_request() local
880 op_info->queue_index = queue_index; in virtio_crypto_handle_request()
H A Dvhost-vdpa.c687 int queue_index) in vhost_vdpa_host_notifier_uninit() argument
694 n = &v->notifier[queue_index]; in vhost_vdpa_host_notifier_uninit()
697 virtio_queue_set_host_notifier_mr(vdev, queue_index, &n->mr, false); in vhost_vdpa_host_notifier_uninit()
704 static int vhost_vdpa_host_notifier_init(struct vhost_dev *dev, int queue_index) in vhost_vdpa_host_notifier_init() argument
714 vhost_vdpa_host_notifier_uninit(dev, queue_index); in vhost_vdpa_host_notifier_init()
716 n = &v->notifier[queue_index]; in vhost_vdpa_host_notifier_init()
719 queue_index * page_size); in vhost_vdpa_host_notifier_init()
725 v, queue_index); in vhost_vdpa_host_notifier_init()
730 if (virtio_queue_set_host_notifier_mr(vdev, queue_index, &n->mr, true)) { in vhost_vdpa_host_notifier_init()
H A Dvirtio.c145 uint16_t queue_index; member
2312 void virtio_queue_reset(VirtIODevice *vdev, uint32_t queue_index) in virtio_queue_reset() argument
2317 k->queue_reset(vdev, queue_index); in virtio_queue_reset()
2320 __virtio_queue_reset(vdev, queue_index); in virtio_queue_reset()
2323 void virtio_queue_enable(VirtIODevice *vdev, uint32_t queue_index) in virtio_queue_enable() argument
2340 k->queue_enable(vdev, queue_index); in virtio_queue_enable()
3509 vdev->vq[i].queue_index = i; in virtio_init()
3735 return vq->queue_index; in virtio_get_queue_index()
4214 status->queue_index = vdev->vq[queue].queue_index; in qmp_x_query_virtio_queue_status()
H A Dvirtio-hmp-cmds.c237 monitor_printf(mon, " queue_index: %d\n", s->queue_index); in hmp_virtio_queue_status()
/openbmc/qemu/include/net/
H A Dnet.h112 unsigned int queue_index; member
164 NetClientState *qemu_get_subqueue(NICState *nic, int queue_index);
267 NetClientState *qemu_get_peer(NetClientState *nc, int queue_index);
/openbmc/qemu/include/hw/virtio/
H A Dvirtio.h191 void (*queue_reset)(VirtIODevice *vdev, uint32_t queue_index);
193 void (*queue_enable)(VirtIODevice *vdev, uint32_t queue_index);
371 void virtio_queue_reset(VirtIODevice *vdev, uint32_t queue_index);
372 void virtio_queue_enable(VirtIODevice *vdev, uint32_t queue_index);
/openbmc/qemu/docs/devel/
H A Debpf_rss.rst27 queue_index = indirection_table[hash(<packet data>)%<indirection_table size>]
/openbmc/qemu/qapi/
H A Dvirtio.json510 # @queue-index: VirtQueue queue_index
/openbmc/qemu/hw/core/
H A Dqdev-properties-system.c467 ncs[i]->queue_index = i; in set_netdev()