Lines Matching refs:port
359 struct opdl_port *port = &device->ports[i]; in opdl_add_event_handlers() local
361 if (port->configured) { in opdl_add_event_handlers()
362 if (port->p_type == OPDL_PURE_RX_PORT) { in opdl_add_event_handlers()
363 port->enq = opdl_rx_enqueue; in opdl_add_event_handlers()
364 port->deq = opdl_tx_error_dequeue; in opdl_add_event_handlers()
366 } else if (port->p_type == OPDL_PURE_TX_PORT) { in opdl_add_event_handlers()
368 port->enq = opdl_rx_error_enqueue; in opdl_add_event_handlers()
370 if (port->num_instance == 1) in opdl_add_event_handlers()
371 port->deq = in opdl_add_event_handlers()
374 port->deq = opdl_tx_dequeue_multi_inst; in opdl_add_event_handlers()
376 } else if (port->p_type == OPDL_REGULAR_PORT) { in opdl_add_event_handlers()
378 port->enq = opdl_disclaim; in opdl_add_event_handlers()
379 port->deq = opdl_claim; in opdl_add_event_handlers()
381 } else if (port->p_type == OPDL_ASYNC_PORT) { in opdl_add_event_handlers()
383 port->enq = opdl_rx_enqueue; in opdl_add_event_handlers()
386 port->deq = opdl_tx_dequeue_single_thread; in opdl_add_event_handlers()
390 opdl_pmd_dev_id(port->opdl), in opdl_add_event_handlers()
391 port->id); in opdl_add_event_handlers()
395 port->initialized = 1; in opdl_add_event_handlers()
708 struct opdl_port *port = &device->ports[i]; in initialise_all_other_ports() local
709 struct opdl_queue *queue = &device->queue[port->queue_id]; in initialise_all_other_ports()
711 if (port->queue_id == 0) { in initialise_all_other_ports()
722 port->deq_stage_inst = stage_inst; in initialise_all_other_ports()
723 port->enq_stage_inst = stage_inst; in initialise_all_other_ports()
726 port->atomic_claim = true; in initialise_all_other_ports()
728 port->atomic_claim = false; in initialise_all_other_ports()
730 port->p_type = OPDL_REGULAR_PORT; in initialise_all_other_ports()
733 queue->ports[queue->nb_ports] = port; in initialise_all_other_ports()
734 port->instance_id = queue->nb_ports; in initialise_all_other_ports()
737 port->queue_id); in initialise_all_other_ports()
746 port->deq_stage_inst = stage_inst; in initialise_all_other_ports()
747 port->enq_stage_inst = NULL; in initialise_all_other_ports()
748 port->p_type = OPDL_PURE_TX_PORT; in initialise_all_other_ports()
751 queue->ports[queue->nb_ports] = port; in initialise_all_other_ports()
752 port->instance_id = queue->nb_ports; in initialise_all_other_ports()
759 opdl_pmd_dev_id(port->opdl), in initialise_all_other_ports()
760 port->id, in initialise_all_other_ports()
768 port->p_type = OPDL_ASYNC_PORT; in initialise_all_other_ports()
775 port->deq_stage_inst = stage_inst; in initialise_all_other_ports()
778 queue->ports[queue->nb_ports] = port; in initialise_all_other_ports()
779 port->instance_id = queue->nb_ports; in initialise_all_other_ports()
786 opdl_pmd_dev_id(port->opdl), in initialise_all_other_ports()
805 port->enq_stage_inst = stage_inst; in initialise_all_other_ports()
808 queue->ports[queue->nb_ports] = port; in initialise_all_other_ports()
809 port->instance_id = queue->nb_ports; in initialise_all_other_ports()
817 opdl_pmd_dev_id(port->opdl), in initialise_all_other_ports()
819 port->id); in initialise_all_other_ports()
836 struct opdl_port *port = &device->ports[i]; in initialise_all_other_ports() local
838 &device->queue[port->queue_id]; in initialise_all_other_ports()
840 if (port->configured && in initialise_all_other_ports()
841 (port->queue_id != OPDL_INVALID_QID)) { in initialise_all_other_ports()
846 opdl_pmd_dev_id(port->opdl), in initialise_all_other_ports()
847 port->id); in initialise_all_other_ports()
852 port->num_instance = queue->nb_ports; in initialise_all_other_ports()
853 port->initialized = 1; in initialise_all_other_ports()
859 opdl_pmd_dev_id(port->opdl), in initialise_all_other_ports()
860 port->id); in initialise_all_other_ports()
882 struct opdl_port *port = &device->ports[i]; in initialise_queue_zero_ports() local
883 if (port->queue_id == OPDL_INVALID_QID) { in initialise_queue_zero_ports()
884 port->queue_id = 0; in initialise_queue_zero_ports()
885 port->external_qid = OPDL_INVALID_QID; in initialise_queue_zero_ports()
886 port->p_type = OPDL_PURE_RX_PORT; in initialise_queue_zero_ports()
899 struct opdl_port *port = &device->ports[i]; in initialise_queue_zero_ports() local
900 if (port->queue_id == 0) { in initialise_queue_zero_ports()
901 queue = &device->queue[port->queue_id]; in initialise_queue_zero_ports()
902 port->enq_stage_inst = stage_inst; in initialise_queue_zero_ports()
903 port->deq_stage_inst = NULL; in initialise_queue_zero_ports()
904 port->configured = 1; in initialise_queue_zero_ports()
905 port->initialized = 1; in initialise_queue_zero_ports()
907 queue->ports[queue->nb_ports] = port; in initialise_queue_zero_ports()
908 port->instance_id = queue->nb_ports; in initialise_queue_zero_ports()
926 struct opdl_port *port = &device->ports[i]; in assign_internal_queue_ids() local
927 if (port->external_qid != OPDL_INVALID_QID) { in assign_internal_queue_ids()
928 port->queue_id = in assign_internal_queue_ids()
929 device->q_map_ex_to_in[port->external_qid]; in assign_internal_queue_ids()
933 &device->queue[port->queue_id]; in assign_internal_queue_ids()
935 port->next_external_qid = in assign_internal_queue_ids()
936 device->queue[port->queue_id + 2].external_qid; in assign_internal_queue_ids()
938 port->next_external_qid = in assign_internal_queue_ids()
939 device->queue[port->queue_id + 1].external_qid; in assign_internal_queue_ids()