/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_ethtool.c | 201 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 …]
|
D | sparx5_port.c | 81 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 …]
|
D | sparx5_netdev.c | 57 static void sparx5_set_port_ifh(void *ifh_hdr, u16 portno) in sparx5_set_port_ifh() argument 64 ifh_encode_bitfield(ifh_hdr, portno, 29, 8); in sparx5_set_port_ifh() 142 if (!test_bit(port->portno, sparx5->bridge_mask)) in sparx5_set_rx_mode() 152 ret = snprintf(buf, len, "p%d", port->portno); in sparx5_port_get_phys_port_name() 209 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno) in sparx5_create_netdev() argument 223 spx5_port->portno = portno; in sparx5_create_netdev() 224 sparx5_set_port_ifh(spx5_port->ifh, portno); in sparx5_create_netdev() 229 val = ether_addr_to_u64(sparx5->base_mac) + portno + 1; in sparx5_create_netdev() 237 int portno; in sparx5_register_netdevs() local 240 for (portno = 0; portno < SPX5_PORTS; portno++) in sparx5_register_netdevs() [all …]
|
D | sparx5_port.h | 12 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()
|
D | sparx5_vlan.c | 42 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 …]
|
D | sparx5_calendar.c | 130 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 …]
|
D | sparx5_packet.c | 143 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_xtr_grp() 255 DSM_DEV_TX_STOP_WM_CFG(port->portno)); in sparx5_injection_timeout() 264 int portno; in sparx5_manual_injection_mode() local 276 for (portno = SPX5_PORT_CPU_0; portno <= SPX5_PORT_CPU_1; portno++) { in sparx5_manual_injection_mode() 281 sparx5, ASM_PORT_CFG(portno)); in sparx5_manual_injection_mode() 287 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode() 293 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_manual_injection_mode() 300 DSM_BUF_CFG(portno)); in sparx5_manual_injection_mode()
|
D | sparx5_switchdev.c | 34 if (!test_bit(port->portno, sparx5->bridge_mask)) { in sparx5_attr_stp_state_set() 36 "Controlling non-bridged port %d?\n", port->portno); in sparx5_attr_stp_state_set() 42 set_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set() 45 set_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set() 50 clear_bit(port->portno, sparx5->bridge_fwd_mask); in sparx5_attr_stp_state_set() 51 clear_bit(port->portno, sparx5->bridge_lrn_mask); in sparx5_attr_stp_state_set() 113 set_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join() 128 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_join() 139 clear_bit(port->portno, sparx5->bridge_mask); in sparx5_port_bridge_leave() 322 !test_bit(port->portno, sparx5->bridge_mask)) in sparx5_sync_port_dev_addr() [all …]
|
D | sparx5_fdma.c | 247 if (test_bit(port->portno, sparx5->bridge_mask)) in sparx5_fdma_rx_get_frame() 487 int portno; in sparx5_fdma_injection_mode() local 500 for (portno = SPX5_PORT_CPU_0; portno <= SPX5_PORT_CPU_1; portno++) { in sparx5_fdma_injection_mode() 505 sparx5, ASM_PORT_CFG(portno)); in sparx5_fdma_injection_mode() 511 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode() 517 DSM_DEV_TX_STOP_WM_CFG(portno)); in sparx5_fdma_injection_mode() 526 QFWD_SWITCH_PORT_MODE(portno)); in sparx5_fdma_injection_mode() 534 DSM_BUF_CFG(portno)); in sparx5_fdma_injection_mode() 540 HSCH_PORT_MODE(portno)); in sparx5_fdma_injection_mode()
|
D | sparx5_main.c | 36 u32 portno; member 262 ndev = sparx5_create_netdev(sparx5, config->portno); in sparx5_create_port() 265 config->portno); in sparx5_create_port() 280 sparx5->ports[config->portno] = spx5_port; in sparx5_create_port() 290 sparx5_vlan_port_setup(sparx5, spx5_port->portno); in sparx5_create_port() 730 u32 portno; in mchp_sparx5_probe() local 732 err = of_property_read_u32(portnp, "reg", &portno); in mchp_sparx5_probe() 744 portno); in mchp_sparx5_probe() 751 portno); in mchp_sparx5_probe() 763 portno); in mchp_sparx5_probe() [all …]
|
D | sparx5_mactable.c | 305 mact_entry = find_mact_entry(sparx5, addr, vid, port->portno); in sparx5_add_mact_entry() 312 mact_entry = alloc_mact_entry(sparx5, addr, vid, port->portno); in sparx5_add_mact_entry() 321 ret = sparx5_mact_learn(sparx5, port->portno, addr, vid); in sparx5_add_mact_entry()
|
D | sparx5_main.h | 156 u16 portno; member 274 void sparx5_vlan_port_setup(struct sparx5 *sparx5, int portno); 290 struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno);
|
/drivers/staging/media/tegra-video/ |
D | tegra210.c | 152 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 …]
|
D | csi.c | 484 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()
|
/drivers/usb/host/ |
D | ohci-s3c2410.c | 110 int portno; in ohci_s3c2410_hub_status_data() local 121 for (portno = 0; portno < 2; port++, portno++) { in ohci_s3c2410_hub_status_data() 125 "oc change on port %d\n", portno); in ohci_s3c2410_hub_status_data() 130 buf[0] |= 1<<(portno+1); in ohci_s3c2410_hub_status_data() 297 int portno; in s3c2410_hcd_oc() local 306 for (portno = 0; portno < 2; port++, portno++) { in s3c2410_hcd_oc() 307 if (port_oc & (1<<portno) && in s3c2410_hcd_oc() 314 s3c2410_usb_set_power(info, portno+1, 0); in s3c2410_hcd_oc()
|
/drivers/ata/ |
D | sata_sx4.c | 301 static inline void pdc20621_ata_sg(u8 *buf, unsigned int portno, in pdc20621_ata_sg() argument 310 (PDC_DIMM_DATA_STEP * portno); in pdc20621_ata_sg() 317 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_ata_sg() 322 static inline void pdc20621_host_sg(u8 *buf, unsigned int portno, in pdc20621_host_sg() argument 331 (PDC_DIMM_DATA_STEP * portno); in pdc20621_host_sg() 338 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_host_sg() 345 unsigned int portno) in pdc20621_ata_pkt() argument 352 (PDC_DIMM_WINDOW_STEP * portno) + in pdc20621_ata_pkt() 368 buf[i++] = portno + 1; /* seq. id */ in pdc20621_ata_pkt() 397 unsigned int portno) in pdc20621_host_pkt() argument [all …]
|
/drivers/net/ethernet/cirrus/ |
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()
|
D | cs89x0.c | 197 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()
|
/drivers/s390/net/ |
D | lcs.h | 212 __u8 portno; member 224 __u8 portno; member 240 __u8 portno; member 335 __s16 portno; member
|
D | lcs.c | 938 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_lanstat() 957 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_stoplan() 969 card->portno = cmd->cmd.lcs_std_cmd.portno; in __lcs_send_startlan_cb() 984 cmd->cmd.lcs_std_cmd.portno = card->portno; in lcs_send_startlan() 1004 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_send_setipm() 1028 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_send_delipm() 1064 cmd->cmd.lcs_qipassist.portno = card->portno; in lcs_check_multicast_support() 1567 header->slot = card->portno; in __lcs_start_xmit() 1626 if (card->portno != LCS_INVALID_PORT_NO) { in lcs_startlan() 1633 card->portno = i; in lcs_startlan() [all …]
|
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);
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 732 struct cx23885_tsport *port, int portno) in cx23885_init_tsport() argument 734 dprintk(1, "%s(portno=%d)\n", __func__, portno); in cx23885_init_tsport() 744 port->nr = portno; in cx23885_init_tsport() 758 switch (portno) { in cx23885_init_tsport()
|
/drivers/tty/serial/ |
D | sc16is7xx.c | 679 static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno) in sc16is7xx_port_irq() argument 681 struct uart_port *port = &s->p[portno].port; in sc16is7xx_port_irq()
|
D | max310x.c | 809 static irqreturn_t max310x_port_irq(struct max310x_port *s, int portno) in max310x_port_irq() argument 811 struct uart_port *port = &s->p[portno].port; in max310x_port_irq()
|
/drivers/crypto/chelsio/ |
D | chcr_algo.c | 767 unsigned int qid, fid, portno; in create_wreq() local 772 portno = rxqidx / ctx->rxq_perchan; in create_wreq() 774 rx_channel_id = cxgb4_port_e2cchan(u_ctx->lldi.ports[portno]); in create_wreq()
|