/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | hw_queue.c | 53 if (!hdev->asic_prop.max_queues || q->queue_type == QUEUE_TYPE_HW) in hl_hw_queue_update_ci() 61 for (i = 0 ; i < hdev->asic_prop.max_queues ; i++, q++) { in hl_hw_queue_update_ci() 635 u32 max_queues; in hl_hw_queue_schedule_cs() local 650 max_queues = hdev->asic_prop.max_queues; in hl_hw_queue_schedule_cs() 653 for (i = 0, cq_cnt = 0 ; i < max_queues ; i++, q++) { in hl_hw_queue_schedule_cs() 784 for (i = 0 ; (i < max_queues) && (cq_cnt > 0) ; i++, q++) { in hl_hw_queue_schedule_cs() 1074 hdev->kernel_queues = kcalloc(asic->max_queues, in hl_hw_queues_create() 1084 i < asic->max_queues ; i++, q_ready_cnt++, q++) { in hl_hw_queues_create() 1112 u32 max_queues = hdev->asic_prop.max_queues; in hl_hw_queues_destroy() local 1115 for (i = 0, q = hdev->kernel_queues ; i < max_queues ; i++, q++) in hl_hw_queues_destroy() [all …]
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_main.c | 360 priv->tx_cfg.max_queues = min_t(int, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 362 priv->rx_cfg.max_queues = min_t(int, priv->rx_cfg.max_queues, in gve_alloc_notify_blocks() 366 vecs_enabled, priv->tx_cfg.max_queues, in gve_alloc_notify_blocks() 367 priv->rx_cfg.max_queues); in gve_alloc_notify_blocks() 368 if (priv->tx_cfg.num_queues > priv->tx_cfg.max_queues) in gve_alloc_notify_blocks() 369 priv->tx_cfg.num_queues = priv->tx_cfg.max_queues; in gve_alloc_notify_blocks() 370 if (priv->rx_cfg.num_queues > priv->rx_cfg.max_queues) in gve_alloc_notify_blocks() 371 priv->rx_cfg.num_queues = priv->rx_cfg.max_queues; in gve_alloc_notify_blocks() 839 priv->tx = kvcalloc(priv->tx_cfg.max_queues, sizeof(*priv->tx), in gve_alloc_rings() 852 priv->rx = kvcalloc(priv->rx_cfg.max_queues, sizeof(*priv->rx), in gve_alloc_rings() [all …]
|
H A D | gve_ethtool.c | 425 cmd->max_rx = priv->rx_cfg.max_queues; in gve_get_channels() 426 cmd->max_tx = priv->tx_cfg.max_queues; in gve_get_channels() 455 (new_tx != new_rx || (2 * new_tx > priv->tx_cfg.max_queues))) { in gve_set_channels()
|
/openbmc/qemu/subprojects/libvhost-user/ |
H A D | link-test.c | 36 uint16_t max_queues = 2; in main() local 40 rc = vu_init(&dev, max_queues, socket, panic, NULL, set_watch, remove_watch, &iface); in main()
|
H A D | libvhost-user-glib.c | 150 vug_init(VugDev *dev, uint16_t max_queues, int socket, in vug_init() argument 156 if (!vu_init(&dev->parent, max_queues, socket, panic, NULL, set_watch, in vug_init()
|
H A D | libvhost-user-glib.h | 28 bool vug_init(VugDev *dev, uint16_t max_queues, int socket,
|
H A D | libvhost-user.c | 334 for (i = 0; i < dev->max_queues; i++) { in unmap_rings() 805 for (i = 0; i < dev->max_queues; i++) { in vu_set_enable_all_rings() 1129 for (i = 0; i < dev->max_queues; i++) { in vu_set_mem_table_exec() 1297 if (index >= dev->max_queues) { in vu_check_queue_msg_file() 1730 vmsg_set_reply_u64(vmsg, dev->max_queues); in vu_get_queue_num_exec() 1743 if (index >= dev->max_queues) { in vu_set_vring_enable_exec() 2024 if (index >= dev->max_queues) { in vu_handle_vring_kick() 2198 for (i = 0; i < dev->max_queues; i++) { in vu_deinit() 2254 uint16_t max_queues, in vu_init() argument 2264 assert(max_queues > 0); in vu_init() [all …]
|
H A D | libvhost-user.h | 415 uint16_t max_queues; member 479 uint16_t max_queues,
|
/openbmc/qemu/include/qemu/ |
H A D | vhost-user-server.h | 40 int max_queues; member 60 uint16_t max_queues,
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_vf.c | 41 for (i = 0; i < hw->mac.max_queues; i++) { in fm10k_stop_hw_vf() 127 hw->mac.max_queues = i; in fm10k_init_hw_vf() 142 hw->mac.max_queues = 0; in fm10k_init_hw_vf() 454 fm10k_update_hw_stats_q(hw, stats->q, 0, hw->mac.max_queues); in fm10k_update_hw_stats_vf() 468 fm10k_unbind_hw_stats_q(stats->q, 0, hw->mac.max_queues); in fm10k_rebind_hw_stats_vf()
|
H A D | fm10k_ethtool.c | 171 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_stat_strings() 208 stats_len += hw->mac.max_queues * 2 * FM10K_QUEUE_STATS_LEN; in fm10k_get_sset_count() 283 for (i = 0; i < interface->hw.mac.max_queues; i++) { in fm10k_get_ethtool_stats() 412 if (i < hw->mac.max_queues) in fm10k_get_regs() 1110 unsigned int max_combined = interface->hw.mac.max_queues; in fm10k_max_channels()
|
/openbmc/linux/arch/mips/cavium-octeon/executive/ |
H A D | cvmx-pko.c | 215 int max_queues = in cvmx_pko_initialize_global() local 219 if (max_queues <= 32) in cvmx_pko_initialize_global() 221 else if (max_queues <= 64) in cvmx_pko_initialize_global() 224 if (max_queues <= 64) in cvmx_pko_initialize_global() 226 else if (max_queues <= 128) in cvmx_pko_initialize_global()
|
/openbmc/qemu/backends/ |
H A D | cryptodev-vhost-user.c | 97 int max_queues; in cryptodev_vhost_user_start() local 115 max_queues = in cryptodev_vhost_user_start() 117 if (queues > max_queues) { in cryptodev_vhost_user_start() 119 max_queues); in cryptodev_vhost_user_start()
|
H A D | cryptodev-vhost.c | 39 return crypto->dev.max_queues; in cryptodev_vhost_get_max_queues() 57 crypto->dev.max_queues = 1; in cryptodev_vhost_init()
|
/openbmc/qemu/util/ |
H A D | vhost-user-server.c | 346 if (!vu_init(&server->vu_dev, server->max_queues, sioc->fd, panic_cb, in vu_accept() 477 uint16_t max_queues, in vhost_user_server_start() argument 504 .max_queues = max_queues, in vhost_user_server_start()
|
/openbmc/qemu/net/ |
H A D | vhost-user.c | 84 int max_queues; in vhost_user_start() local 105 max_queues = vhost_net_get_max_queues(net); in vhost_user_start() 106 if (queues > max_queues) { in vhost_user_start() 108 max_queues); in vhost_user_start()
|
/openbmc/qemu/hw/virtio/ |
H A D | virtio-crypto.c | 1068 vcrypto->max_queues = MAX(vcrypto->cryptodev->conf.peers.queues, 1); in virtio_crypto_device_realize() 1069 if (vcrypto->max_queues + 1 > VIRTIO_QUEUE_MAX) { in virtio_crypto_device_realize() 1072 vcrypto->max_queues, VIRTIO_QUEUE_MAX); in virtio_crypto_device_realize() 1078 vcrypto->vqs = g_new0(VirtIOCryptoQueue, vcrypto->max_queues); in virtio_crypto_device_realize() 1079 for (i = 0; i < vcrypto->max_queues; i++) { in virtio_crypto_device_realize() 1104 int i, max_queues; in virtio_crypto_device_unrealize() local 1106 max_queues = vcrypto->multiqueue ? vcrypto->max_queues : 1; in virtio_crypto_device_unrealize() 1107 for (i = 0; i < max_queues; i++) { in virtio_crypto_device_unrealize() 1147 stl_le_p(&crypto_cfg.max_dataqueues, c->max_queues); in virtio_crypto_get_config() 1173 int queues = c->multiqueue ? c->max_queues : 1; in virtio_crypto_vhost_status()
|
/openbmc/linux/drivers/net/ethernet/cavium/thunder/ |
H A D | nicvf_ethtool.c | 715 channel->max_rx = nic->max_queues; in nicvf_get_channels() 716 channel->max_tx = nic->max_queues; in nicvf_get_channels() 733 if (channel->rx_count > nic->max_queues) in nicvf_set_channels() 735 if (channel->tx_count > nic->max_queues) in nicvf_set_channels() 738 if (channel->tx_count + channel->rx_count > nic->max_queues) { in nicvf_set_channels() 742 nic->max_queues); in nicvf_set_channels()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-crypto.h | 92 uint32_t max_queues; member
|
H A D | vhost.h | 121 uint64_t max_queues; member
|
/openbmc/linux/drivers/net/ethernet/samsung/sxgbe/ |
H A D | sxgbe_common.h | 194 #define SXGBE_FOR_EACH_QUEUE(max_queues, queue_num) \ argument 195 for (queue_num = 0; queue_num < max_queues; queue_num++)
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_process_queue_manager.c | 293 unsigned int max_queues = 127; /* HWS limit */ in pqm_create_queue() local 300 max_queues = 255; in pqm_create_queue() 318 max_queues = dev->kfd->device_info.max_no_of_hqd/2; in pqm_create_queue() 320 if (pdd->qpd.queue_count >= max_queues) in pqm_create_queue()
|
/openbmc/linux/drivers/net/ethernet/huawei/hinic/ |
H A D | hinic_hw_qp.c | 74 u16 num_queues, u16 max_queues) in hinic_qp_prepare_header() argument 76 u16 max_sqs = max_queues; in hinic_qp_prepare_header() 77 u16 max_rqs = max_queues; in hinic_qp_prepare_header()
|
H A D | hinic_hw_qp.h | 130 u16 num_queues, u16 max_queues);
|
/openbmc/linux/drivers/net/ethernet/amazon/ena/ |
H A D | ena_netdev.c | 2875 struct ena_admin_queue_feature_desc *max_queues = in ena_calc_io_queue_size() local 2876 &get_feat_ctx->max_queues; in ena_calc_io_queue_size() 2877 max_rx_queue_size = min_t(u32, max_queues->max_cq_depth, in ena_calc_io_queue_size() 2878 max_queues->max_sq_depth); in ena_calc_io_queue_size() 2879 max_tx_queue_size = max_queues->max_cq_depth; in ena_calc_io_queue_size() 2886 max_queues->max_sq_depth); in ena_calc_io_queue_size() 2889 max_queues->max_packet_tx_descs); in ena_calc_io_queue_size() 2891 max_queues->max_packet_rx_descs); in ena_calc_io_queue_size() 3622 struct ena_admin_queue_feature_desc *max_queues = in ena_calc_max_io_queue_num() local 3623 &get_feat_ctx->max_queues; in ena_calc_max_io_queue_num() [all …]
|