Lines Matching refs:dev_conf
106 dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns; in rte_event_dev_info_get()
390 const struct rte_event_dev_config *dev_conf) in rte_event_dev_configure() argument
408 if (dev_conf == NULL) in rte_event_dev_configure()
414 if (!(dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)) { in rte_event_dev_configure()
415 if (dev_conf->dequeue_timeout_ns && in rte_event_dev_configure()
416 (dev_conf->dequeue_timeout_ns < info.min_dequeue_timeout_ns in rte_event_dev_configure()
417 || dev_conf->dequeue_timeout_ns > in rte_event_dev_configure()
421 dev_id, dev_conf->dequeue_timeout_ns, in rte_event_dev_configure()
429 if (dev_conf->nb_events_limit > info.max_num_events) { in rte_event_dev_configure()
431 dev_id, dev_conf->nb_events_limit, info.max_num_events); in rte_event_dev_configure()
436 if (!dev_conf->nb_event_queues) { in rte_event_dev_configure()
441 if (dev_conf->nb_event_queues > info.max_event_queues + in rte_event_dev_configure()
444 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
449 if (dev_conf->nb_event_queues - in rte_event_dev_configure()
450 dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
453 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
454 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
458 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
459 dev_conf->nb_event_queues) { in rte_event_dev_configure()
462 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
463 dev_conf->nb_event_queues); in rte_event_dev_configure()
468 if (!dev_conf->nb_event_ports) { in rte_event_dev_configure()
472 if (dev_conf->nb_event_ports > info.max_event_ports + in rte_event_dev_configure()
475 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
480 if (dev_conf->nb_event_ports - in rte_event_dev_configure()
481 dev_conf->nb_single_link_event_port_queues in rte_event_dev_configure()
484 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
485 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
490 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
491 dev_conf->nb_event_ports) { in rte_event_dev_configure()
495 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
496 dev_conf->nb_event_ports); in rte_event_dev_configure()
501 if (!dev_conf->nb_event_queue_flows) { in rte_event_dev_configure()
505 if (dev_conf->nb_event_queue_flows > info.max_event_queue_flows) { in rte_event_dev_configure()
507 dev_id, dev_conf->nb_event_queue_flows, in rte_event_dev_configure()
513 if (!dev_conf->nb_event_port_dequeue_depth) { in rte_event_dev_configure()
519 (dev_conf->nb_event_port_dequeue_depth > in rte_event_dev_configure()
522 dev_id, dev_conf->nb_event_port_dequeue_depth, in rte_event_dev_configure()
528 if (!dev_conf->nb_event_port_enqueue_depth) { in rte_event_dev_configure()
534 (dev_conf->nb_event_port_enqueue_depth > in rte_event_dev_configure()
537 dev_id, dev_conf->nb_event_port_enqueue_depth, in rte_event_dev_configure()
543 memcpy(&dev->data->dev_conf, dev_conf, sizeof(dev->data->dev_conf)); in rte_event_dev_configure()
546 diag = rte_event_dev_queue_config(dev, dev_conf->nb_event_queues); in rte_event_dev_configure()
554 diag = rte_event_dev_port_config(dev, dev_conf->nb_event_ports); in rte_event_dev_configure()
571 rte_eventdev_trace_configure(dev_id, dev_conf, diag); in rte_event_dev_configure()
660 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
664 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
673 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
677 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
753 dev->data->dev_conf.nb_events_limit)) { in rte_event_port_setup()
757 dev->data->dev_conf.nb_events_limit); in rte_event_port_setup()
764 dev->data->dev_conf.nb_event_port_dequeue_depth)) { in rte_event_port_setup()
768 dev->data->dev_conf.nb_event_port_dequeue_depth); in rte_event_port_setup()
775 dev->data->dev_conf.nb_event_port_enqueue_depth)) { in rte_event_port_setup()
779 dev->data->dev_conf.nb_event_port_enqueue_depth); in rte_event_port_setup()