Lines Matching refs:eth_port
17 struct nfp_eth_table_port *eth_port; in nfp_devlink_fill_eth_port() local
19 eth_port = __nfp_port_get_eth_port(port); in nfp_devlink_fill_eth_port()
20 if (!eth_port) in nfp_devlink_fill_eth_port()
23 memcpy(copy, eth_port, sizeof(*eth_port)); in nfp_devlink_fill_eth_port()
69 struct nfp_eth_table_port eth_port; in nfp_devlink_port_split() local
79 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); in nfp_devlink_port_split()
84 if (eth_port.is_split || eth_port.port_lanes % count) { in nfp_devlink_port_split()
90 lanes = eth_port.port_lanes / count; in nfp_devlink_port_split()
91 if (eth_port.lanes == 10 && count == 2) in nfp_devlink_port_split()
94 ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_split()
106 struct nfp_eth_table_port eth_port; in nfp_devlink_port_unsplit() local
113 ret = nfp_devlink_fill_eth_port_from_id(pf, port_index, ð_port); in nfp_devlink_port_unsplit()
118 if (!eth_port.is_split) { in nfp_devlink_port_unsplit()
124 lanes = eth_port.port_lanes; in nfp_devlink_port_unsplit()
125 if (eth_port.port_lanes == 8) in nfp_devlink_port_unsplit()
128 ret = nfp_devlink_set_lanes(pf, eth_port.index, lanes); in nfp_devlink_port_unsplit()
356 struct nfp_eth_table_port eth_port; in nfp_devlink_port_register() local
363 ret = nfp_devlink_fill_eth_port(port, ð_port); in nfp_devlink_port_register()
370 eth_port.label_port, eth_port.is_split, in nfp_devlink_port_register()
371 eth_port.label_subport, serial, serial_len); in nfp_devlink_port_register()