Lines Matching refs:dev_conf

107 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;  in rte_event_dev_info_get()
350 const struct rte_event_dev_config *dev_conf) in rte_event_dev_configure() argument
370 if (dev_conf == NULL) in rte_event_dev_configure()
376 if (!(dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)) { in rte_event_dev_configure()
377 if (dev_conf->dequeue_timeout_ns && in rte_event_dev_configure()
378 (dev_conf->dequeue_timeout_ns < info.min_dequeue_timeout_ns in rte_event_dev_configure()
379 || dev_conf->dequeue_timeout_ns > in rte_event_dev_configure()
383 dev_id, dev_conf->dequeue_timeout_ns, in rte_event_dev_configure()
391 if (dev_conf->nb_events_limit > info.max_num_events) { in rte_event_dev_configure()
393 dev_id, dev_conf->nb_events_limit, info.max_num_events); in rte_event_dev_configure()
398 if (!dev_conf->nb_event_queues) { in rte_event_dev_configure()
403 if (dev_conf->nb_event_queues > info.max_event_queues + in rte_event_dev_configure()
406 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
411 if (dev_conf->nb_event_queues - in rte_event_dev_configure()
412 dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
415 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
416 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
420 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
421 dev_conf->nb_event_queues) { in rte_event_dev_configure()
424 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
425 dev_conf->nb_event_queues); in rte_event_dev_configure()
430 if (!dev_conf->nb_event_ports) { in rte_event_dev_configure()
434 if (dev_conf->nb_event_ports > info.max_event_ports + in rte_event_dev_configure()
437 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
442 if (dev_conf->nb_event_ports - in rte_event_dev_configure()
443 dev_conf->nb_single_link_event_port_queues in rte_event_dev_configure()
446 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
447 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
452 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
453 dev_conf->nb_event_ports) { in rte_event_dev_configure()
457 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
458 dev_conf->nb_event_ports); in rte_event_dev_configure()
463 if (!dev_conf->nb_event_queue_flows) { in rte_event_dev_configure()
467 if (dev_conf->nb_event_queue_flows > info.max_event_queue_flows) { in rte_event_dev_configure()
469 dev_id, dev_conf->nb_event_queue_flows, in rte_event_dev_configure()
475 if (!dev_conf->nb_event_port_dequeue_depth) { in rte_event_dev_configure()
481 (dev_conf->nb_event_port_dequeue_depth > in rte_event_dev_configure()
484 dev_id, dev_conf->nb_event_port_dequeue_depth, in rte_event_dev_configure()
490 if (!dev_conf->nb_event_port_enqueue_depth) { in rte_event_dev_configure()
496 (dev_conf->nb_event_port_enqueue_depth > in rte_event_dev_configure()
499 dev_id, dev_conf->nb_event_port_enqueue_depth, in rte_event_dev_configure()
505 memcpy(&dev->data->dev_conf, dev_conf, sizeof(dev->data->dev_conf)); in rte_event_dev_configure()
508 diag = event_dev_queue_config(dev, dev_conf->nb_event_queues); in rte_event_dev_configure()
516 diag = event_dev_port_config(dev, dev_conf->nb_event_ports); in rte_event_dev_configure()
536 rte_eventdev_trace_configure(dev_id, dev_conf, diag); in rte_event_dev_configure()
629 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
633 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
642 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
646 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
727 dev->data->dev_conf.nb_events_limit)) { in rte_event_port_setup()
731 dev->data->dev_conf.nb_events_limit); in rte_event_port_setup()
738 dev->data->dev_conf.nb_event_port_dequeue_depth)) { in rte_event_port_setup()
742 dev->data->dev_conf.nb_event_port_dequeue_depth); in rte_event_port_setup()
749 dev->data->dev_conf.nb_event_port_enqueue_depth)) { in rte_event_port_setup()
753 dev->data->dev_conf.nb_event_port_enqueue_depth); in rte_event_port_setup()