| /linux-6.15/drivers/net/ethernet/microchip/sparx5/lan969x/ |
| H A D | lan969x.h | 36 return portno == 1 || portno == 2 || portno == 3 || in lan969x_port_is_2g5() 37 portno == 5 || portno == 6 || portno == 7 || in lan969x_port_is_2g5() 38 portno == 10 || portno == 11 || portno == 14 || in lan969x_port_is_2g5() 39 portno == 15 || portno == 18 || portno == 19 || in lan969x_port_is_2g5() 40 portno == 22 || portno == 23; in lan969x_port_is_2g5() 45 return portno == 9 || portno == 13 || portno == 17 || in lan969x_port_is_5g() 46 portno == 21; in lan969x_port_is_5g() 51 return portno == 0 || portno == 4 || portno == 8 || in lan969x_port_is_10g() 52 portno == 12 || portno == 16 || portno == 20 || in lan969x_port_is_10g() 53 portno == 24 || portno == 25 || portno == 26 || in lan969x_port_is_10g() [all …]
|
| H A D | lan969x.c | 190 u32 portno = port->portno; in lan969x_port_mux_set() local 198 inst = (portno - portno % 4) / 4; in lan969x_port_mux_set()
|
| H A D | lan969x_calendar.c | 92 u32 portno = data->taxi_ports[i]; in lan969x_dsm_calendar_calc() local 95 bw = sparx5_get_port_cal_speed(sparx5, portno); in lan969x_dsm_calendar_calc() 97 if (portno < sparx5->data->consts->n_ports_all) in lan969x_dsm_calendar_calc()
|
| /linux-6.15/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_ethtool.c | 521 portno) in sparx5_get_asm_phy_stats() argument 532 portno) in sparx5_get_asm_mac_stats() argument 635 portno) in sparx5_get_asm_rmon_stats() argument 742 portno) in sparx5_get_asm_misc_stats() argument 816 int portno = port->portno; in sparx5_get_eth_phy_stats() local 841 int portno = port->portno; in sparx5_get_eth_mac_stats() local 909 int portno = port->portno; in sparx5_get_eth_mac_ctrl_stats() local 941 int portno = port->portno; in sparx5_get_eth_rmon_stats() local 1023 int portno = port->portno; in sparx5_get_sset_data() local 1233 int portno; in sparx_stats_init() local [all …]
|
| H A D | sparx5_port.c | 82 u32 portno = port->portno; in sparx5_get_dev2g5_status() local 126 u32 portno = port->portno; in sparx5_get_sfi_status() local 242 if (port->portno > 47) in sparx5_port_verify_speed() 318 portno, mem); in sparx5_port_flush_poll() 330 sparx5_port_dev_index(sparx5, port->portno) : port->portno; in sparx5_port_disable() 470 u32 portno, u32 speed) in sparx5_port_fifo_sz() argument 534 u32 portno = port->portno; in sparx5_port_mux_set() local 542 inst = (portno - portno % 4) / 4; in sparx5_port_mux_set() 548 if ((portno / 4 % 2) == 0) { in sparx5_port_mux_set() 665 DSM_MAC_CFG(port->portno)); in sparx5_port_fc_setup() [all …]
|
| H A D | sparx5_netdev.c | 286 spx5_port->portno = portno; in sparx5_create_netdev() 298 int portno; in sparx5_register_netdevs() local 301 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) in sparx5_register_netdevs() 302 if (sparx5->ports[portno]) { in sparx5_register_netdevs() 307 portno); in sparx5_register_netdevs() 318 int portno; in sparx5_destroy_netdevs() local 320 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) { in sparx5_destroy_netdevs() 321 port = sparx5->ports[portno]; in sparx5_destroy_netdevs() 336 int portno; in sparx5_unregister_netdevs() local 338 for (portno = 0; portno < sparx5->data->consts->n_ports; portno++) in sparx5_unregister_netdevs() [all …]
|
| H A D | sparx5_port.h | 23 static inline bool sparx5_port_is_2g5(int portno) in sparx5_port_is_2g5() argument 25 return portno >= 16 && portno <= 47; in sparx5_port_is_2g5() 28 static inline bool sparx5_port_is_5g(int portno) in sparx5_port_is_5g() argument 30 return portno <= 11 || portno == 64; in sparx5_port_is_5g() 33 static inline bool sparx5_port_is_10g(int portno) in sparx5_port_is_10g() argument 35 return (portno >= 12 && portno <= 15) || (portno >= 48 && portno <= 55); in sparx5_port_is_10g() 38 static inline bool sparx5_port_is_25g(int portno) in sparx5_port_is_25g() argument 40 return portno >= 56 && portno <= 63; in sparx5_port_is_25g() 43 static inline bool sparx5_port_is_rgmii(int portno) in sparx5_port_is_rgmii() argument
|
| H A D | sparx5_mirror.c | 39 u64 reg = portno; in sparx5_mirror_port_add() 53 u64 reg = portno; in sparx5_mirror_port_del() 94 u32 portno) in sparx5_mirror_monitor_set() argument 96 spx5_rmw(QFWD_FRAME_COPY_CFG_FRMC_PORT_VAL_SET(portno), in sparx5_mirror_monitor_set() 112 u32 portno) in sparx5_mirror_has_monitor() argument 114 return sparx5_mirror_monitor_get(sparx5, idx) == portno; in sparx5_mirror_has_monitor() 126 if (sparx5_mirror_has_monitor(sparx5, i, sport->portno)) in sparx5_mirror_get() 134 sparx5_mirror_has_monitor(sparx5, i, mport->portno)) { in sparx5_mirror_get() 164 if (sport->portno == mport->portno) in sparx5_mirror_add() 175 sparx5_mirror_port_add(sparx5, mirror_idx, sport->portno); in sparx5_mirror_add() [all …]
|
| H A D | sparx5_vlan.c | 46 struct sparx5_port *port = sparx5->ports[portno]; in sparx5_vlan_port_setup() 54 ANA_CL_VLAN_CTRL(port->portno)); in sparx5_vlan_port_setup() 75 set_bit(port->portno, sparx5->vlan_mask[vid]); in sparx5_vlan_vid_add() 126 if (port->portno < 32) { in sparx5_pgid_update_mask() 127 mask = BIT(port->portno); in sparx5_pgid_update_mask() 130 } else if (port->portno < 64) { in sparx5_pgid_update_mask() 131 mask = BIT(port->portno - 32); in sparx5_pgid_update_mask() 134 } else if (port->portno < SPX5_PORTS) { in sparx5_pgid_update_mask() 135 mask = BIT(port->portno - 64); in sparx5_pgid_update_mask() 235 ANA_CL_VLAN_FILTER_CTRL(port->portno, 0)); in sparx5_vlan_port_apply() [all …]
|
| H A D | sparx5_vcap_impl.c | 412 int portno = port->portno; in sparx5_vcap_is0_get_port_keysets() local 466 int portno = port->portno; in sparx5_vcap_is2_get_port_keysets() local 595 int portno = port->portno; in sparx5_vcap_es0_get_port_keysets() local 620 int portno = port->portno; in sparx5_vcap_es2_get_port_keysets() local 1524 int portno = port->portno; in sparx5_vcap_is0_set_port_keyset() local 1613 int portno = port->portno; in sparx5_vcap_is2_set_port_keyset() local 1824 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_is2_port_key_selection() 1840 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_es0_port_key_selection() 1860 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_es2_port_key_selection() 1898 for (portno = 0; portno < consts->n_ports; ++portno) in sparx5_vcap_port_key_deselection() [all …]
|
| H A D | sparx5_calendar.c | 124 if (portno == in sparx5_get_port_cal_speed() 126 portno == in sparx5_get_port_cal_speed() 130 } else if (portno == in sparx5_get_port_cal_speed() 134 } else if (portno == in sparx5_get_port_cal_speed() 138 } else if (portno == in sparx5_get_port_cal_speed() 147 port = sparx5->ports[portno]; in sparx5_get_port_cal_speed() 157 u32 cal[7], value, idx, portno; in sparx5_config_auto_calendar() local 172 for (portno = 0; portno < consts->n_ports_all; portno++) { in sparx5_config_auto_calendar() 180 if (portno < consts->n_ports) in sparx5_config_auto_calendar() 186 reg = portno; in sparx5_config_auto_calendar() [all …]
|
| H A D | sparx5_packet.c | 154 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_xtr_grp() 242 sparx5_set_port_ifh(sparx5, ifh, port->portno); in sparx5_port_xmit_impl() 312 DSM_DEV_TX_STOP_WM_CFG(port->portno)); in sparx5_injection_timeout() 321 int portno; in sparx5_manual_injection_mode() local 333 for (portno = sparx5_get_internal_port(sparx5, SPX5_PORT_CPU_0); in sparx5_manual_injection_mode() 334 portno <= sparx5_get_internal_port(sparx5, SPX5_PORT_CPU_1); in sparx5_manual_injection_mode() 335 portno++) { in sparx5_manual_injection_mode() 340 sparx5, ASM_PORT_CFG(portno)); in sparx5_manual_injection_mode() 346 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode() 352 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode() [all …]
|
| H A D | sparx5_dcb.c | 122 static bool sparx5_dcb_apptrust_contains(int portno, u8 selector) in sparx5_dcb_apptrust_contains() argument 124 const struct sparx5_dcb_apptrust *conf = sparx5_port_apptrust[portno]; in sparx5_dcb_apptrust_contains() 143 int portno = port->portno; in sparx5_dcb_app_update() local 201 if (sparx5_dcb_apptrust_contains(portno, DCB_APP_SEL_PCP)) { in sparx5_dcb_app_update() 212 if (sparx5_dcb_apptrust_contains(portno, IEEE_8021QAZ_APP_SEL_DSCP)) { in sparx5_dcb_app_update() 310 sparx5_port_apptrust[port->portno] = &sparx5_dcb_apptrust_policies[idx]; in sparx5_dcb_setapptrust() 321 trust = sparx5_port_apptrust[port->portno]; in sparx5_dcb_getapptrust() 396 sparx5_port_apptrust[port->portno] = in sparx5_dcb_init()
|
| H A D | sparx5_fdma.c | 174 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_fdma_rx_get_frame() 343 int portno; in sparx5_fdma_injection_mode() local 356 for (portno = sparx5_get_internal_port(sparx5, SPX5_PORT_CPU_0); in sparx5_fdma_injection_mode() 357 portno <= sparx5_get_internal_port(sparx5, SPX5_PORT_CPU_1); in sparx5_fdma_injection_mode() 358 portno++) { in sparx5_fdma_injection_mode() 363 sparx5, ASM_PORT_CFG(portno)); in sparx5_fdma_injection_mode() 369 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode() 375 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode() 384 QFWD_SWITCH_PORT_MODE(portno)); in sparx5_fdma_injection_mode() 392 DSM_BUF_CFG(portno)); in sparx5_fdma_injection_mode() [all …]
|
| H A D | sparx5_switchdev.c | 70 if (!test_bit(port->portno, sparx5->bridge_mask)) { in sparx5_attr_stp_state_set() 78 set_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set() 81 set_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set() 86 clear_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set() 87 clear_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set() 121 if (!test_bit(port->portno, e->port_mask) && in sparx5_port_attr_mrouter_set() 193 set_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join() 211 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join() 222 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_leave() 574 set_bit(port->portno, entry->port_mask); in sparx5_handle_port_mdb_add() [all …]
|
| H A D | sparx5_tc.c | 64 u32 portno, u32 *layer, u32 *idx) in sparx5_tc_get_layer_and_idx() argument 68 *idx = portno; in sparx5_tc_get_layer_and_idx() 72 *idx = SPX5_HSCH_L0_GET_IDX(portno, queue); in sparx5_tc_get_layer_and_idx() 93 sparx5_tc_get_layer_and_idx(port->sparx5, qopt->parent, port->portno, in sparx5_tc_setup_qdisc_tbf()
|
| H A D | sparx5_vcap_debugfs.c | 84 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_is0_port_keys() 91 ANA_CL_ADV_CL_CFG(port->portno, lookup)); in sparx5_vcap_is0_port_keys() 127 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_is2_port_keys() 133 value = spx5_rd(sparx5, ANA_ACL_VCAP_S2_CFG(port->portno)); in sparx5_vcap_is2_port_keys() 142 ANA_ACL_VCAP_S2_KEY_SEL(port->portno, lookup)); in sparx5_vcap_is2_port_keys() 294 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_es0_port_keys() 307 value = spx5_rd(sparx5, REW_RTAG_ETAG_CTRL(port->portno)); in sparx5_vcap_es0_port_keys() 333 out->prf(out->dst, " port[%02d] (%s): ", port->portno, in sparx5_vcap_es2_port_keys() 339 value = spx5_rd(sparx5, EACL_VCAP_ES2_KEY_SEL(port->portno, in sparx5_vcap_es2_port_keys()
|
| H A D | sparx5_main.c | 41 u32 portno; member 326 config->portno); in sparx5_create_port() 343 sparx5->ports[config->portno] = spx5_port; in sparx5_create_port() 353 sparx5_vlan_port_setup(sparx5, spx5_port->portno); in sparx5_create_port() 362 if (ops->is_port_rgmii(spx5_port->portno)) in sparx5_create_port() 895 u32 portno; in mchp_sparx5_probe() local 909 portno); in mchp_sparx5_probe() 916 portno); in mchp_sparx5_probe() 925 if (!ops->is_port_rgmii(portno)) { in mchp_sparx5_probe() 931 portno); in mchp_sparx5_probe() [all …]
|
| H A D | sparx5_main.h | 219 u16 portno; member 329 bool (*is_port_2g5)(int portno); 330 bool (*is_port_5g)(int portno); 331 bool (*is_port_10g)(int portno); 332 bool (*is_port_25g)(int portno); 333 bool (*is_port_rgmii)(int portno); 484 u16 portno, 500 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno); 512 enum sparx5_cal_bw sparx5_get_port_cal_speed(struct sparx5 *sparx5, u32 portno); 537 void sparx5_set_port_ifh(struct sparx5 *sparx5, void *ifh_hdr, u16 portno); [all …]
|
| /linux-6.15/drivers/staging/media/tegra-video/ |
| H A D | tegra210.c | 261 u8 portno) in tegra_channel_capture_setup() argument 305 u8 portno) in tegra_channel_vi_soft_reset() argument 322 u8 portno) in tegra_channel_capture_error_recover() argument 344 tegra_channel_vi_soft_reset(chan, portno); in tegra_channel_capture_error_recover() 345 tegra_channel_capture_setup(chan, portno); in tegra_channel_capture_error_recover() 385 u8 portno, u32 buf_offset, in tegra_channel_vi_buffer_setup() argument 906 u8 portno) in tegra210_csi_port_recover() argument 968 u8 portno) in tegra210_csi_port_start_streaming() argument 1016 val = ((portno & 1) == PORT_A) ? in tegra210_csi_port_start_streaming() 1034 (portno & 1)); in tegra210_csi_port_start_streaming() [all …]
|
| H A D | csi.c | 535 unsigned int lanes, portno, num_pads; in tegra_csi_channels_alloc() local 542 ret = of_property_read_u32(channel, "reg", &portno); in tegra_csi_channels_alloc() 546 if (portno >= csi->soc->csi_max_channels) { in tegra_csi_channels_alloc() 548 portno, channel); in tegra_csi_channels_alloc() 575 (lanes > CSI_LANES_PER_BRICK && ((portno & 1) != 0))) { in tegra_csi_channels_alloc() 584 ret = tegra_csi_channel_alloc(csi, channel, portno, in tegra_csi_channels_alloc()
|
| /linux-6.15/drivers/usb/host/ |
| H A D | ohci-s3c2410.c | 108 int portno; in ohci_s3c2410_hub_status_data() local 119 for (portno = 0; portno < 2; port++, portno++) { in ohci_s3c2410_hub_status_data() 123 "oc change on port %d\n", portno); in ohci_s3c2410_hub_status_data() 128 buf[0] |= 1<<(portno+1); in ohci_s3c2410_hub_status_data() 295 int portno; in s3c2410_hcd_oc() local 304 for (portno = 0; portno < 2; port++, portno++) { in s3c2410_hcd_oc() 305 if (port_oc & (1<<portno) && in s3c2410_hcd_oc() 312 s3c2410_usb_set_power(info, portno+1, 0); in s3c2410_hcd_oc()
|
| /linux-6.15/drivers/ata/ |
| H A D | sata_sx4.c | 310 (PDC_DIMM_DATA_STEP * portno); in pdc20621_ata_sg() 325 (PDC_DIMM_DATA_STEP * portno); in pdc20621_host_sg() 333 unsigned int portno) in pdc20621_ata_pkt() argument 340 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_ata_pkt() 355 buf[i++] = portno + 1; /* seq. id */ in pdc20621_ata_pkt() 384 unsigned int portno) in pdc20621_host_pkt() argument 391 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_host_pkt() 394 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_host_pkt() 406 tmp |= ((portno + 1 + 4) << 16); /* seq. id */ in pdc20621_host_pkt() 421 unsigned int portno = ap->port_no; in pdc20621_dma_prep() local [all …]
|
| /linux-6.15/drivers/net/ethernet/cirrus/ |
| H A D | mac89x0.c | 126 readreg_io(struct net_device *dev, int portno) in readreg_io() argument 128 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in readreg_io() 133 writereg_io(struct net_device *dev, int portno, int value) in writereg_io() argument 135 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in writereg_io() 141 readreg(struct net_device *dev, int portno) in readreg() argument 143 return swab16(nubus_readw(dev->mem_start + portno)); in readreg() 147 writereg(struct net_device *dev, int portno, int value) in writereg() argument 149 nubus_writew(swab16(value), dev->mem_start + portno); in writereg()
|
| /linux-6.15/drivers/s390/net/ |
| H A D | qeth_core_sys.c | 106 unsigned int portno, limit; in qeth_dev_portno_store() local 109 rc = kstrtouint(buf, 16, &portno); in qeth_dev_portno_store() 112 if (portno > QETH_MAX_PORTNO) in qeth_dev_portno_store() 122 if (portno > limit) { in qeth_dev_portno_store() 126 card->dev->dev_port = portno; in qeth_dev_portno_store() 132 static DEVICE_ATTR(portno, 0644, qeth_dev_portno_show, qeth_dev_portno_store);
|