Home
last modified time | relevance | path

Searched refs:portno (Results 1 – 25 of 30) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/
Dsparx5_ethtool.c201 static void sparx5_get_queue_sys_stats(struct sparx5 *sparx5, int portno) in sparx5_get_queue_sys_stats() argument
208 portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_queue_sys_stats()
210 spx5_wr(XQS_STAT_CFG_STAT_VIEW_SET(portno), sparx5, XQS_STAT_CFG); in sparx5_get_queue_sys_stats()
230 static void sparx5_get_ana_ac_stats_stats(struct sparx5 *sparx5, int portno) in sparx5_get_ana_ac_stats_stats() argument
232 u64 *portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_ana_ac_stats_stats()
235 spx5_rd(sparx5, ANA_AC_PORT_STAT_LSB_CNT(portno, in sparx5_get_ana_ac_stats_stats()
505 static void sparx5_get_device_stats(struct sparx5 *sparx5, int portno) in sparx5_get_device_stats() argument
507 u64 *portstats = &sparx5->stats[portno * sparx5->num_stats]; in sparx5_get_device_stats()
508 u32 tinst = sparx5_port_dev_index(portno); in sparx5_get_device_stats()
509 u32 dev = sparx5_to_high_dev(portno); in sparx5_get_device_stats()
[all …]
Dsparx5_port.c81 u32 portno = port->portno; in sparx5_get_dev2g5_status() local
86 value = spx5_rd(sparx5, DEV2G5_PCS1G_STICKY(portno)); in sparx5_get_dev2g5_status()
89 spx5_wr(value, sparx5, DEV2G5_PCS1G_STICKY(portno)); in sparx5_get_dev2g5_status()
92 value = spx5_rd(sparx5, DEV2G5_PCS1G_LINK_STATUS(portno)); in sparx5_get_dev2g5_status()
104 value = spx5_rd(sparx5, DEV2G5_PCS1G_ANEG_STATUS(portno)); in sparx5_get_dev2g5_status()
112 value = spx5_rd(sparx5, DEV2G5_PCS1G_ANEG_CFG(portno)); in sparx5_get_dev2g5_status()
125 u32 portno = port->portno; in sparx5_get_sfi_status() local
134 dev = sparx5_to_high_dev(portno); in sparx5_get_sfi_status()
135 tinst = sparx5_port_dev_index(portno); in sparx5_get_sfi_status()
215 if ((sparx5_port_is_2g5(port->portno) && in sparx5_port_verify_speed()
[all …]
Dsparx5_port.h12 static inline bool sparx5_port_is_2g5(int portno) in sparx5_port_is_2g5() argument
14 return portno >= 16 && portno <= 47; in sparx5_port_is_2g5()
17 static inline bool sparx5_port_is_5g(int portno) in sparx5_port_is_5g() argument
19 return portno <= 11 || portno == 64; in sparx5_port_is_5g()
22 static inline bool sparx5_port_is_10g(int portno) in sparx5_port_is_10g() argument
24 return (portno >= 12 && portno <= 15) || (portno >= 48 && portno <= 55); in sparx5_port_is_10g()
27 static inline bool sparx5_port_is_25g(int portno) in sparx5_port_is_25g() argument
29 return portno >= 56 && portno <= 63; in sparx5_port_is_25g()
Dsparx5_netdev.c58 void sparx5_set_port_ifh(void *ifh_hdr, u16 portno) in sparx5_set_port_ifh() argument
65 ifh_encode_bitfield(ifh_hdr, portno, 29, 8); in sparx5_set_port_ifh()
163 if (!test_bit(port->portno, sparx5->bridge_mask)) in sparx5_set_rx_mode()
173 ret = snprintf(buf, len, "p%d", port->portno); in sparx5_port_get_phys_port_name()
250 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno) in sparx5_create_netdev() argument
267 spx5_port->portno = portno; in sparx5_create_netdev()
272 eth_hw_addr_gen(ndev, sparx5->base_mac, portno + 1); in sparx5_create_netdev()
279 int portno; in sparx5_register_netdevs() local
282 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_register_netdevs()
283 if (sparx5->ports[portno]) { in sparx5_register_netdevs()
[all …]
Dsparx5_vlan.c42 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno) in sparx5_vlan_port_setup() argument
44 struct sparx5_port *port = sparx5->ports[portno]; in sparx5_vlan_port_setup()
52 ANA_CL_VLAN_CTRL(port->portno)); in sparx5_vlan_port_setup()
73 set_bit(port->portno, sparx5->vlan_mask[vid]); in sparx5_vlan_vid_add()
100 clear_bit(port->portno, sparx5->vlan_mask[vid]); in sparx5_vlan_vid_del()
124 if (port->portno < 32) { in sparx5_pgid_update_mask()
125 mask = BIT(port->portno); in sparx5_pgid_update_mask()
128 } else if (port->portno < 64) { in sparx5_pgid_update_mask()
129 mask = BIT(port->portno - 32); in sparx5_pgid_update_mask()
132 } else if (port->portno < SPX5_PORTS) { in sparx5_pgid_update_mask()
[all …]
Dsparx5_calendar.c130 u32 portno) in sparx5_get_port_cal_speed() argument
134 if (portno >= SPX5_PORTS) { in sparx5_get_port_cal_speed()
136 if (portno == SPX5_PORT_CPU_0 || portno == SPX5_PORT_CPU_1) { in sparx5_get_port_cal_speed()
139 } else if (portno == SPX5_PORT_VD0) { in sparx5_get_port_cal_speed()
142 } else if (portno == SPX5_PORT_VD1) { in sparx5_get_port_cal_speed()
145 } else if (portno == SPX5_PORT_VD2) { in sparx5_get_port_cal_speed()
153 port = sparx5->ports[portno]; in sparx5_get_port_cal_speed()
162 u32 cal[7], value, idx, portno; in sparx5_config_auto_calendar() local
177 for (portno = 0; portno < SPX5_PORTS_ALL; portno++) { in sparx5_config_auto_calendar()
180 spd = sparx5_get_port_cal_speed(sparx5, portno); in sparx5_config_auto_calendar()
[all …]
Dsparx5_packet.c149 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_xtr_grp()
234 sparx5_set_port_ifh(ifh, port->portno); in sparx5_port_xmit_impl()
293 DSM_DEV_TX_STOP_WM_CFG(port->portno)); in sparx5_injection_timeout()
302 int portno; in sparx5_manual_injection_mode() local
314 for (portno = SPX5_PORT_CPU_0; portno <= SPX5_PORT_CPU_1; portno++) { in sparx5_manual_injection_mode()
319 sparx5, ASM_PORT_CFG(portno)); in sparx5_manual_injection_mode()
325 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode()
331 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode()
338 DSM_BUF_CFG(portno)); in sparx5_manual_injection_mode()
Dsparx5_tc.c13 static void sparx5_tc_get_layer_and_idx(u32 parent, u32 portno, u32 *layer, in sparx5_tc_get_layer_and_idx() argument
18 *idx = portno; in sparx5_tc_get_layer_and_idx()
22 *idx = SPX5_HSCH_L0_GET_IDX(portno, queue); in sparx5_tc_get_layer_and_idx()
43 sparx5_tc_get_layer_and_idx(qopt->parent, port->portno, &layer, in sparx5_tc_setup_qdisc_tbf()
Dsparx5_switchdev.c60 if (!test_bit(port->portno, sparx5->bridge_mask)) { in sparx5_attr_stp_state_set()
62 "Controlling non-bridged port %d?\n", port->portno); in sparx5_attr_stp_state_set()
68 set_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set()
71 set_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set()
76 clear_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set()
77 clear_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set()
111 if (!test_bit(port->portno, e->port_mask) && in sparx5_port_attr_mrouter_set()
183 set_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join()
201 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join()
212 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_leave()
[all …]
Dsparx5_fdma.c249 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_fdma_rx_get_frame()
490 int portno; in sparx5_fdma_injection_mode() local
503 for (portno = SPX5_PORT_CPU_0; portno <= SPX5_PORT_CPU_1; portno++) { in sparx5_fdma_injection_mode()
508 sparx5, ASM_PORT_CFG(portno)); in sparx5_fdma_injection_mode()
514 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode()
520 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode()
529 QFWD_SWITCH_PORT_MODE(portno)); in sparx5_fdma_injection_mode()
537 DSM_BUF_CFG(portno)); in sparx5_fdma_injection_mode()
543 HSCH_PORT_MODE(portno)); in sparx5_fdma_injection_mode()
Dsparx5_main.c37 u32 portno; member
263 ndev = sparx5_create_netdev(sparx5, config->portno); in sparx5_create_port()
266 config->portno); in sparx5_create_port()
282 sparx5->ports[config->portno] = spx5_port; in sparx5_create_port()
292 sparx5_vlan_port_setup(sparx5, spx5_port->portno); in sparx5_create_port()
775 u32 portno; in mchp_sparx5_probe() local
777 err = of_property_read_u32(portnp, "reg", &portno); in mchp_sparx5_probe()
789 portno); in mchp_sparx5_probe()
796 portno); in mchp_sparx5_probe()
808 portno); in mchp_sparx5_probe()
[all …]
Dsparx5_main.h175 u16 portno; member
330 u16 portno,
346 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno);
365 void sparx5_set_port_ifh(void *ifh_hdr, u16 portno);
367 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno);
Dsparx5_mactable.c291 u16 portno, in sparx5_add_mact_entry() argument
308 mact_entry = find_mact_entry(sparx5, addr, vid, portno); in sparx5_add_mact_entry()
315 mact_entry = alloc_mact_entry(sparx5, addr, vid, portno); in sparx5_add_mact_entry()
324 ret = sparx5_mact_learn(sparx5, portno, addr, vid); in sparx5_add_mact_entry()
Dsparx5_qos.c311 HSCH_HSCH_CFG_CFG_CFG_SE_IDX_SET(port->portno), in sparx5_dwrr_conf_set()
318 HSCH_SE_CFG(port->portno)); in sparx5_dwrr_conf_set()
/linux-6.1.9/drivers/staging/media/tegra-video/
Dtegra210.c152 static void vi_csi_write(struct tegra_vi_channel *chan, u8 portno, in vi_csi_write() argument
157 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_write()
162 static u32 vi_csi_read(struct tegra_vi_channel *chan, u8 portno, in vi_csi_read() argument
167 vi_csi_base = chan->vi->iomem + TEGRA210_VI_CSI_BASE(portno); in vi_csi_read()
176 u8 portno) in tegra_channel_capture_setup() argument
207 vi_csi_write(chan, portno, TEGRA_VI_CSI_ERROR_STATUS, 0xffffffff); in tegra_channel_capture_setup()
208 vi_csi_write(chan, portno, TEGRA_VI_CSI_IMAGE_DEF, in tegra_channel_capture_setup()
212 vi_csi_write(chan, portno, TEGRA_VI_CSI_IMAGE_DT, data_type); in tegra_channel_capture_setup()
213 vi_csi_write(chan, portno, TEGRA_VI_CSI_IMAGE_SIZE_WC, word_count); in tegra_channel_capture_setup()
214 vi_csi_write(chan, portno, TEGRA_VI_CSI_IMAGE_SIZE, in tegra_channel_capture_setup()
[all …]
Dcsi.c484 unsigned int lanes, portno, num_pads; in tegra_csi_channels_alloc() local
491 ret = of_property_read_u32(channel, "reg", &portno); in tegra_csi_channels_alloc()
495 if (portno >= csi->soc->csi_max_channels) { in tegra_csi_channels_alloc()
497 portno, channel); in tegra_csi_channels_alloc()
524 (lanes > CSI_LANES_PER_BRICK && ((portno & 1) != 0))) { in tegra_csi_channels_alloc()
533 ret = tegra_csi_channel_alloc(csi, channel, portno, in tegra_csi_channels_alloc()
/linux-6.1.9/drivers/usb/host/
Dohci-s3c2410.c108 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.1.9/drivers/ata/
Dsata_sx4.c302 static inline void pdc20621_ata_sg(u8 *buf, unsigned int portno, in pdc20621_ata_sg() argument
311 (PDC_DIMM_DATA_STEP * portno); in pdc20621_ata_sg()
317 static inline void pdc20621_host_sg(u8 *buf, unsigned int portno, in pdc20621_host_sg() argument
326 (PDC_DIMM_DATA_STEP * portno); in pdc20621_host_sg()
334 unsigned int portno) in pdc20621_ata_pkt() argument
341 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_ata_pkt()
356 buf[i++] = portno + 1; /* seq. id */ in pdc20621_ata_pkt()
385 unsigned int portno) in pdc20621_host_pkt() argument
392 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_host_pkt()
395 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_host_pkt()
[all …]
/linux-6.1.9/drivers/net/ethernet/cirrus/
Dmac89x0.c126 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()
Dcs89x0.c197 static void readwords(struct net_local *lp, int portno, void *buf, int length) in readwords() argument
204 tmp16 = ioread16(lp->virt_addr + portno); in readwords()
210 static void writewords(struct net_local *lp, int portno, void *buf, int length) in writewords() argument
219 iowrite16(tmp16, lp->virt_addr + portno); in writewords()
/linux-6.1.9/drivers/s390/net/
Dlcs.h212 __u8 portno; member
224 __u8 portno; member
240 __u8 portno; member
335 __s16 portno; member
Dlcs.c939 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_lanstat()
958 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_stoplan()
970 card->portno = cmd->cmd.lcs_std_cmd.portno; in __lcs_send_startlan_cb()
985 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_startlan()
1005 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_send_setipm()
1029 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_send_delipm()
1065 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_check_multicast_support()
1568 header->slot = card->portno; in __lcs_start_xmit()
1627 if (card->portno != LCS_INVALID_PORT_NO) { in lcs_startlan()
1634 card->portno = i; in lcs_startlan()
[all …]
Dqeth_core_sys.c106 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);
/linux-6.1.9/tools/testing/selftests/net/openvswitch/
Dovs-dpctl.py216 def info(self, vport_name, dpifindex=0, portno=None): argument
224 if portno is None:
227 msg["attrs"].append(["OVS_VPORT_ATTR_PORT_NO", portno])
/linux-6.1.9/arch/powerpc/platforms/4xx/
Dpci.c2080 int portno; in ppc4xx_probe_pciex_bridge() local
2095 portno = *pval; in ppc4xx_probe_pciex_bridge()
2096 if (portno >= ppc4xx_pciex_port_count) { in ppc4xx_probe_pciex_bridge()
2101 port = &ppc4xx_pciex_ports[portno]; in ppc4xx_probe_pciex_bridge()
2102 port->index = portno; in ppc4xx_probe_pciex_bridge()

12