Lines Matching refs:dev_conf

98 	dev_info->dequeue_timeout_ns = dev->data->dev_conf.dequeue_timeout_ns;  in rte_event_dev_info_get()
297 const struct rte_event_dev_config *dev_conf) in rte_event_dev_configure() argument
315 if (dev_conf == NULL) in rte_event_dev_configure()
321 if (!(dev_conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT)) { in rte_event_dev_configure()
322 if (dev_conf->dequeue_timeout_ns && in rte_event_dev_configure()
323 (dev_conf->dequeue_timeout_ns < info.min_dequeue_timeout_ns in rte_event_dev_configure()
324 || dev_conf->dequeue_timeout_ns > in rte_event_dev_configure()
328 dev_id, dev_conf->dequeue_timeout_ns, in rte_event_dev_configure()
336 if (dev_conf->nb_events_limit > info.max_num_events) { in rte_event_dev_configure()
338 dev_id, dev_conf->nb_events_limit, info.max_num_events); in rte_event_dev_configure()
343 if (!dev_conf->nb_event_queues) { in rte_event_dev_configure()
348 if (dev_conf->nb_event_queues > info.max_event_queues + in rte_event_dev_configure()
351 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
356 if (dev_conf->nb_event_queues - in rte_event_dev_configure()
357 dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
360 dev_id, dev_conf->nb_event_queues, in rte_event_dev_configure()
361 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
365 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
366 dev_conf->nb_event_queues) { in rte_event_dev_configure()
369 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
370 dev_conf->nb_event_queues); in rte_event_dev_configure()
375 if (!dev_conf->nb_event_ports) { in rte_event_dev_configure()
379 if (dev_conf->nb_event_ports > info.max_event_ports + in rte_event_dev_configure()
382 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
387 if (dev_conf->nb_event_ports - in rte_event_dev_configure()
388 dev_conf->nb_single_link_event_port_queues in rte_event_dev_configure()
391 dev_id, dev_conf->nb_event_ports, in rte_event_dev_configure()
392 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
397 if (dev_conf->nb_single_link_event_port_queues > in rte_event_dev_configure()
398 dev_conf->nb_event_ports) { in rte_event_dev_configure()
402 dev_conf->nb_single_link_event_port_queues, in rte_event_dev_configure()
403 dev_conf->nb_event_ports); in rte_event_dev_configure()
408 if (!dev_conf->nb_event_queue_flows) { in rte_event_dev_configure()
412 if (dev_conf->nb_event_queue_flows > info.max_event_queue_flows) { in rte_event_dev_configure()
414 dev_id, dev_conf->nb_event_queue_flows, in rte_event_dev_configure()
420 if (!dev_conf->nb_event_port_dequeue_depth) { in rte_event_dev_configure()
426 (dev_conf->nb_event_port_dequeue_depth > in rte_event_dev_configure()
429 dev_id, dev_conf->nb_event_port_dequeue_depth, in rte_event_dev_configure()
435 if (!dev_conf->nb_event_port_enqueue_depth) { in rte_event_dev_configure()
441 (dev_conf->nb_event_port_enqueue_depth > in rte_event_dev_configure()
444 dev_id, dev_conf->nb_event_port_enqueue_depth, in rte_event_dev_configure()
450 memcpy(&dev->data->dev_conf, dev_conf, sizeof(dev->data->dev_conf)); in rte_event_dev_configure()
453 diag = event_dev_queue_config(dev, dev_conf->nb_event_queues); in rte_event_dev_configure()
461 diag = event_dev_port_config(dev, dev_conf->nb_event_ports); in rte_event_dev_configure()
481 rte_eventdev_trace_configure(dev_id, dev_conf, diag); in rte_event_dev_configure()
570 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
574 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
583 dev->data->dev_conf.nb_event_queue_flows) { in rte_event_queue_setup()
587 dev->data->dev_conf.nb_event_queue_flows); in rte_event_queue_setup()
663 dev->data->dev_conf.nb_events_limit)) { in rte_event_port_setup()
667 dev->data->dev_conf.nb_events_limit); in rte_event_port_setup()
674 dev->data->dev_conf.nb_event_port_dequeue_depth)) { in rte_event_port_setup()
678 dev->data->dev_conf.nb_event_port_dequeue_depth); in rte_event_port_setup()
685 dev->data->dev_conf.nb_event_port_enqueue_depth)) { in rte_event_port_setup()
689 dev->data->dev_conf.nb_event_port_enqueue_depth); in rte_event_port_setup()