Lines Matching defs:port

101 static int cvmx_pko_queue_alloc(u64 port, int count);
203 u64 port;
206 for (port = start; port < end; port++) {
207 ret_val = cvmx_pko_queue_alloc(port, count);
209 printf("ERROR: %sL Failed to allocate queue for port=%d count=%d\n",
210 __func__, (int)port, (int)count);
235 /* Interface 4: AGL, PKO port 24 only, DPI 32-35 */
308 * get a block of "count" queues for "port"
310 * @param port the port for which the queues are requested
316 static int cvmx_pko_queue_alloc(u64 port, int count)
323 if (cvmx_pko_queue_table[port].ccppp_num_queues == count)
324 return cvmx_pko_queue_table[port].ccppp_queue_base;
326 if (cvmx_pko_queue_table[port].ccppp_num_queues > 0) {
327 printf("WARNING: %s port=%d already %d queues\n",
328 __func__, (int)port,
329 (int)cvmx_pko_queue_table[port].ccppp_num_queues);
333 if (port >= CVMX_HELPER_CFG_MAX_PKO_QUEUES) {
334 printf("ERROR: %s port=%d > %d\n", __func__, (int)port,
340 port, count, 1);
343 __func__, (int)port, ret_val, (int)count);
347 cvmx_pko_queue_table[port].ccppp_queue_base = ret_val;
348 cvmx_pko_queue_table[port].ccppp_num_queues = count;
369 * one pko_eid is allocated to each port except for ILK, NPI, and
523 /* When not using config file, each port is assigned one internal pko port*/
533 * pko port
551 printf("ERROR: %s: failed to alloc %d queues for pko port=%d\n", __func__,
560 * Returns if port is valid for a given interface
563 * @param index port index in the interface
565 * Return: status of the port present or not.
781 * internal port count configuration.
783 int cvmx_pko_alloc_iport_and_queues(int interface, int port, int port_cnt, int queue_cnt)
787 debug("%s: intf %d/%d pcnt %d qcnt %d\n", __func__, interface, port, port_cnt,
793 rv = cvmx_pko_internal_ports_alloc(interface, port, port_cnt);
795 printf("ERROR: %s: failed to allocate internal ports forinterface=%d port=%d cnt=%d\n",
796 __func__, interface, port, port_cnt);
799 port_start = __cvmx_helper_cfg_pko_port_base(interface, port);
800 cnt = __cvmx_helper_cfg_pko_port_num(interface, port);
802 port_start = cvmx_helper_get_ipd_port(interface, port);
809 printf("ERROR: %s: failed to allocate queues for port=%d cnt=%d\n",
973 int port, port_base, queue;
975 for (port = 0; port < num_ports; port++) {
979 port_base = __cvmx_helper_cfg_pko_port_base(interface, port);
983 port_base = cvmx_helper_get_ipd_port(interface, port);
990 rv = cvmx_pko_alloc_iport_and_queues(interface, port, 1, 1);
1014 * Store the FDT node offset in the device tree of a port
1017 * @param index port index
1031 * Return the FDT node offset in the device tree of a port
1034 * @param index port index
1035 * Return: node offset of port or -1 if invalid
1051 * @param index port index
1068 * @param index port index
1082 * Override default autonegotiation for a port
1085 * @param index port index
1103 * @param index port index
1121 * @param index port index
1139 * @param index port index
1153 * Returns the PHY information data structure for a port
1156 * @param index port index
1235 * @param index port index
1249 * Gets the SFP data associated with a port
1252 * @param index port index
1266 * Sets the SFP data associated with a port
1269 * @param index port index
1270 * @param[in] sfp_info port SFP data or NULL for none