Lines Matching refs:host_info
554 struct rte_avp_device_info *host_info; in _avp_set_queue_counts() local
558 host_info = (struct rte_avp_device_info *)addr; in _avp_set_queue_counts()
574 avp->num_rx_queues = RTE_MAX(host_info->min_rx_queues, in _avp_set_queue_counts()
823 struct rte_avp_device_info *host_info; in avp_dev_create() local
833 host_info = (struct rte_avp_device_info *)resource->addr; in avp_dev_create()
835 if ((host_info->magic != RTE_AVP_DEVICE_MAGIC) || in avp_dev_create()
836 avp_dev_version_check(host_info->version)) { in avp_dev_create()
838 host_info->magic, host_info->version, in avp_dev_create()
844 RTE_AVP_GET_RELEASE_VERSION(host_info->version), in avp_dev_create()
845 RTE_AVP_GET_MAJOR_VERSION(host_info->version), in avp_dev_create()
846 RTE_AVP_GET_MINOR_VERSION(host_info->version)); in avp_dev_create()
849 host_info->min_tx_queues, host_info->max_tx_queues); in avp_dev_create()
851 host_info->min_rx_queues, host_info->max_rx_queues); in avp_dev_create()
853 host_info->features); in avp_dev_create()
864 avp->host_mbuf_size = host_info->mbuf_size; in avp_dev_create()
865 avp->host_features = host_info->features; in avp_dev_create()
868 host_info->ethaddr, RTE_ETHER_ADDR_LEN); in avp_dev_create()
871 RTE_MIN(host_info->max_tx_queues, RTE_AVP_MAX_QUEUES); in avp_dev_create()
873 RTE_MIN(host_info->max_rx_queues, RTE_AVP_MAX_QUEUES); in avp_dev_create()
878 if ((host_info->features & avp->features) != avp->features) { in avp_dev_create()
880 avp->features, host_info->features); in avp_dev_create()
886 avp->device_id = host_info->device_id; in avp_dev_create()
890 host_info->tx_phys); in avp_dev_create()
892 host_info->alloc_phys); in avp_dev_create()
895 host_info->tx_phys + (i * host_info->tx_size)); in avp_dev_create()
898 host_info->alloc_phys + (i * host_info->alloc_size)); in avp_dev_create()
902 host_info->rx_phys); in avp_dev_create()
904 host_info->free_phys); in avp_dev_create()
907 host_info->rx_phys + (i * host_info->rx_size)); in avp_dev_create()
909 host_info->free_phys + (i * host_info->free_size)); in avp_dev_create()
913 host_info->req_phys); in avp_dev_create()
915 host_info->resp_phys); in avp_dev_create()
917 host_info->sync_phys); in avp_dev_create()
919 host_info->mbuf_phys); in avp_dev_create()
920 avp->req_q = avp_dev_translate_address(eth_dev, host_info->req_phys); in avp_dev_create()
921 avp->resp_q = avp_dev_translate_address(eth_dev, host_info->resp_phys); in avp_dev_create()
923 avp_dev_translate_address(eth_dev, host_info->sync_phys); in avp_dev_create()
925 avp_dev_translate_address(eth_dev, host_info->mbuf_phys); in avp_dev_create()
931 avp->host_mbuf_addr = host_info->mbuf_va; in avp_dev_create()
932 avp->host_sync_addr = host_info->sync_va; in avp_dev_create()
937 avp->max_rx_pkt_len = host_info->max_rx_pkt_len; in avp_dev_create()
939 host_info->max_rx_pkt_len); in avp_dev_create()
1982 struct rte_avp_device_info *host_info; in avp_dev_configure() local
1996 host_info = (struct rte_avp_device_info *)addr; in avp_dev_configure()
2013 config.device_id = host_info->device_id; in avp_dev_configure()