/kernel/linux/linux-6.6/drivers/net/arcnet/ |
H A D | com90xx.c | 75 /* The number of low I/O ports used by the card */ 100 int ports[(0x3f0 - 0x200) / 16 + 1] = { 0 }; in com90xx_probe() local 127 ports[numports++] = io; in com90xx_probe() 130 ports[numports++] = count; in com90xx_probe() 137 /* Stage 1: abandon any reserved ports, or ones with status==0xFF in com90xx_probe() 141 for (port = &ports[0]; port - ports < numports; port++) { in com90xx_probe() 158 *port-- = ports[--numports]; in com90xx_probe() 167 *port-- = ports[--numports]; in com90xx_probe() 191 for (port = &ports[ in com90xx_probe() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/ |
H A D | ocelot.c | 268 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_single_vlan_aware_bridge() 386 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_manage_port_tag() 429 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_bridge_num_find() 444 /* Standalone ports use VID 0 */ in ocelot_vlan_unaware_pvid() 460 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_set_pvid() 595 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_port_vlan_filtering() 700 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_vlan_del() 730 /* Clear VLAN table, by default all ports are members of all VLANs */ in ocelot_vlan_init() 739 /* We need VID 0 to get traffic on standalone ports. in ocelot_vlan_init() 745 /* Set vlan ingress filter mask to all ports bu in ocelot_vlan_init() 1797 ocelot_pgid_alloc(struct ocelot *ocelot, int index, unsigned long ports) ocelot_pgid_alloc() argument [all...] |
H A D | ocelot_mrp.c | 24 struct ocelot_port *ocelot_port = ocelot->ports[i]; in ocelot_mrp_find_partner_port() 125 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add() 147 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_del() 164 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_add_ring_role() 204 struct ocelot_port *ocelot_port = ocelot->ports[port]; in ocelot_mrp_del_ring_role() 223 ocelot_port = ocelot->ports[i]; in ocelot_mrp_del_ring_role() 232 ocelot_mrp_del_mac(ocelot, ocelot->ports[port]); in ocelot_mrp_del_ring_role()
|
H A D | ocelot_vsc7514.c | 131 ocelot_port = ocelot->ports[port]; in mscc_ocelot_release_ports() 141 struct device_node *ports) in mscc_ocelot_init_ports() 149 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in mscc_ocelot_init_ports() 151 if (!ocelot->ports) in mscc_ocelot_init_ports() 161 for_each_available_child_of_node(ports, portnp) { in mscc_ocelot_init_ports() 204 /* Initialize unused devlink ports at the end */ in mscc_ocelot_init_ports() 222 /* Tear down devlink ports for the registered network interfaces */ in mscc_ocelot_init_ports() 234 struct device_node *ports; in mscc_ocelot_probe() local 331 ports = of_get_child_by_name(np, "ethernet-ports"); in mscc_ocelot_probe() 140 mscc_ocelot_init_ports(struct platform_device *pdev, struct device_node *ports) mscc_ocelot_init_ports() argument [all...] |
/kernel/linux/linux-6.6/drivers/usb/host/ |
H A D | xhci-hub.c | 256 struct usb_hub_descriptor *desc, int ports) in xhci_common_hub_descriptor() 262 desc->bNbrPorts = ports; in xhci_common_hub_descriptor() 272 /* Bits 6:5 - no TTs in root ports */ in xhci_common_hub_descriptor() 281 int ports; in xhci_usb2_hub_descriptor() local 289 ports = rhub->num_ports; in xhci_usb2_hub_descriptor() 290 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor() 292 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor() 300 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor() 301 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor() 313 * ports o in xhci_usb2_hub_descriptor() 255 xhci_common_hub_descriptor(struct xhci_hcd *xhci, struct usb_hub_descriptor *desc, int ports) xhci_common_hub_descriptor() argument 336 int ports; xhci_usb3_hub_descriptor() local 1212 struct xhci_port **ports; xhci_hub_control() local 1650 struct xhci_port **ports; xhci_hub_status_data() local 1722 struct xhci_port **ports; xhci_bus_suspend() local 1885 struct xhci_port **ports; xhci_bus_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp_nsp_eth.c | 181 table->max_index = max(table->max_index, table->ports[i].index); in nfp_eth_calc_port_geometry() 184 if (table->ports[i].label_port != in nfp_eth_calc_port_geometry() 185 table->ports[j].label_port) in nfp_eth_calc_port_geometry() 187 table->ports[i].port_lanes += table->ports[j].lanes; in nfp_eth_calc_port_geometry() 191 if (table->ports[i].label_subport == in nfp_eth_calc_port_geometry() 192 table->ports[j].label_subport) in nfp_eth_calc_port_geometry() 195 table->ports[i].label_port, in nfp_eth_calc_port_geometry() 196 table->ports[i].label_subport); in nfp_eth_calc_port_geometry() 198 table->ports[ in nfp_eth_calc_port_geometry() [all...] |
/kernel/linux/linux-6.6/drivers/slimbus/ |
H A D | stream.c | 209 if (rt->ports) { in slim_stream_prepare() 215 rt->ports = kcalloc(num_ports, sizeof(*port), GFP_KERNEL); in slim_stream_prepare() 216 if (!rt->ports) in slim_stream_prepare() 248 port = &rt->ports[i]; in slim_stream_prepare() 351 * This API will enable all the ports and channels associated with 370 stream->ports[i].ch.state = SLIM_CH_STATE_ACTIVE; in slim_stream_enable() 381 struct slim_port *port = &stream->ports[i]; in slim_stream_enable() 388 struct slim_port *port = &stream->ports[i]; in slim_stream_enable() 404 * This API will disable all the ports and channels associated with 417 if (!stream->ports || !strea in slim_stream_disable() [all...] |
/kernel/linux/linux-6.6/sound/soc/generic/ |
H A D | audio-graph-card.c | 75 struct device_node *ports = of_get_parent(port); in graph_parse_convert() local 79 if (of_node_name_eq(ports, "ports")) in graph_parse_convert() 80 asoc_simple_parse_convert(ports, NULL, adata); in graph_parse_convert() 85 of_node_put(ports); in graph_parse_convert() 94 struct device_node *ports = of_get_parent(port); in graph_parse_mclk_fs() local 97 if (of_node_name_eq(ports, "ports")) in graph_parse_mclk_fs() 98 of_property_read_u32(ports, "mclk-fs", &props->mclk_fs); in graph_parse_mclk_fs() 103 of_node_put(ports); in graph_parse_mclk_fs() 221 struct device_node *ports; graph_dai_link_of_dpcm() local [all...] |
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/ |
H A D | pcs-6185.c | 127 if (chip->ports[port].cmode != MV88E6185_PORT_STS_CMODE_SERDES && in mv88e6185_pcs_init() 128 chip->ports[port].cmode != MV88E6185_PORT_STS_CMODE_1000BASE_X) in mv88e6185_pcs_init() 158 chip->ports[port].pcs_private = &mpcs->phylink_pcs; in mv88e6185_pcs_init() 167 mpcs = chip->ports[port].pcs_private; in mv88e6185_pcs_teardown() 176 chip->ports[port].pcs_private = NULL; in mv88e6185_pcs_teardown() 183 return chip->ports[port].pcs_private; in mv88e6185_pcs_select()
|
/kernel/linux/linux-5.10/drivers/usb/host/ |
H A D | xhci-hub.c | 170 struct usb_hub_descriptor *desc, int ports) in xhci_common_hub_descriptor() 176 desc->bNbrPorts = ports; in xhci_common_hub_descriptor() 186 /* Bits 6:5 - no TTs in root ports */ in xhci_common_hub_descriptor() 195 int ports; in xhci_usb2_hub_descriptor() local 203 ports = rhub->num_ports; in xhci_usb2_hub_descriptor() 204 xhci_common_hub_descriptor(xhci, desc, ports); in xhci_usb2_hub_descriptor() 206 temp = 1 + (ports / 8); in xhci_usb2_hub_descriptor() 214 for (i = 0; i < ports; i++) { in xhci_usb2_hub_descriptor() 215 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor() 227 * ports o in xhci_usb2_hub_descriptor() 169 xhci_common_hub_descriptor(struct xhci_hcd *xhci, struct usb_hub_descriptor *desc, int ports) xhci_common_hub_descriptor() argument 250 int ports; xhci_usb3_hub_descriptor() local 1107 struct xhci_port **ports; xhci_hub_control() local 1545 struct xhci_port **ports; xhci_hub_status_data() local 1616 struct xhci_port **ports; xhci_bus_suspend() local 1778 struct xhci_port **ports; xhci_bus_resume() local [all...] |
/kernel/linux/linux-5.10/drivers/net/wan/ |
H A D | wanxl.c | 72 int n_ports; /* 1, 2 or 4 ports */ 81 struct port ports[]; /* 1 - 4 port structures follow */ member 203 struct port *port = &card->ports[desc->stat & in wanxl_rx_intr() 258 wanxl_tx_intr(&card->ports[i]); in wanxl_intr() 260 wanxl_cable_intr(&card->ports[i]); in wanxl_intr() 516 unregister_hdlc_device(card->ports[i].dev); in wanxl_pci_remove_one() 517 free_netdev(card->ports[i].dev); in wanxl_pci_remove_one() 566 int i, ports; in wanxl_pci_init_one() local 597 case PCI_DEVICE_ID_SBE_WANXL100: ports = 1; break; in wanxl_pci_init_one() 598 case PCI_DEVICE_ID_SBE_WANXL200: ports in wanxl_pci_init_one() [all...] |
/kernel/linux/linux-5.10/drivers/platform/chrome/ |
H A D | cros_ec_typec.c | 5 * This driver provides the ability to view and manage Type C ports through the 59 /* Array of ports, indexed by port number. */ 60 struct cros_typec_port *ports[EC_USB_PD_MAX_PORTS]; member 148 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner() 172 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner() 191 if (!typec->ports[i]) in cros_unregister_ports() 194 usb_role_switch_put(typec->ports[i]->role_sw); in cros_unregister_ports() 195 typec_switch_put(typec->ports[i]->ori_sw); in cros_unregister_ports() 196 typec_mux_put(typec->ports[i]->mux); in cros_unregister_ports() 197 typec_unregister_port(typec->ports[ in cros_unregister_ports() [all...] |
/kernel/linux/linux-6.6/drivers/net/wan/ |
H A D | wanxl.c | 69 int n_ports; /* 1, 2 or 4 ports */ 78 struct port ports[]; /* 1 - 4 port structures follow */ member 218 struct port *port = &card->ports[desc->stat & in wanxl_rx_intr() 270 wanxl_tx_intr(&card->ports[i]); in wanxl_intr() 272 wanxl_cable_intr(&card->ports[i]); in wanxl_intr() 509 unregister_hdlc_device(card->ports[i].dev); in wanxl_pci_remove_one() 510 free_netdev(card->ports[i].dev); in wanxl_pci_remove_one() 558 int i, ports; in wanxl_pci_init_one() local 592 ports = 1; in wanxl_pci_init_one() 595 ports in wanxl_pci_init_one() [all...] |
/kernel/linux/linux-6.6/drivers/platform/chrome/ |
H A D | cros_ec_typec.c | 5 * This driver provides the ability to view and manage Type C ports through the 126 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_add_partner() 150 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_unregister_altmodes() 193 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_partner() 220 struct cros_typec_port *port = typec->ports[port_num]; in cros_typec_remove_cable() 248 if (!typec->ports[i]) in cros_unregister_ports() 254 usb_role_switch_put(typec->ports[i]->role_sw); in cros_unregister_ports() 255 typec_switch_put(typec->ports[i]->ori_sw); in cros_unregister_ports() 256 typec_mux_put(typec->ports[i]->mux); in cros_unregister_ports() 257 cros_typec_unregister_port_altmodes(typec->ports[ in cros_unregister_ports() [all...] |
/kernel/linux/linux-5.10/include/linux/platform_data/ |
H A D | usb-ohci-s3c2410.h | 28 void (*report_oc)(struct s3c2410_hcd_info *, int ports); 31 static inline void s3c2410_usb_report_oc(struct s3c2410_hcd_info *info, int ports) in s3c2410_usb_report_oc() argument 34 (info->report_oc)(info, ports); in s3c2410_usb_report_oc()
|
/kernel/linux/linux-6.6/include/linux/platform_data/ |
H A D | usb-ohci-s3c2410.h | 28 void (*report_oc)(struct s3c2410_hcd_info *, int ports); 31 static inline void s3c2410_usb_report_oc(struct s3c2410_hcd_info *info, int ports) in s3c2410_usb_report_oc() argument 34 (info->report_oc)(info, ports); in s3c2410_usb_report_oc()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | icl_dsi.c | 87 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel() 94 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel() 105 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel() 111 for_each_dsi_port(port, intel_dsi->ports) { in wait_for_cmds_dispatched_to_panel() 341 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_program_esc_clk_div() 347 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_program_esc_clk_div() 359 for_each_dsi_port(port, intel_dsi->ports) { in get_dsi_io_power_domains() 376 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_enable_io_power() 510 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_enable_ddi_buffer() 534 for_each_dsi_port(port, intel_dsi->ports) { in gen11_dsi_setup_dphy_timings() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.h | 121 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \ 123 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \ 137 a->mpa_tx.ports = 0; \ 156 a->mpa_rx.ports = 0; \ 166 u32 ports; member 177 u32 ports; member 375 card->mpa_rx.ports |= (1 << port); in mp_rx_aggr_setup() 378 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt); in mp_rx_aggr_setup() 380 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt + 1); in mp_rx_aggr_setup()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_lag.c | 21 /* The visited ports bitmask holds the list of ports offloading any in lan966x_lag_set_aggr_pgids() 22 * bonding interface. Initially we mark all these ports as unvisited, in lan966x_lag_set_aggr_pgids() 25 * port ID == LAG ID. So we mark as visited all further ports in the in lan966x_lag_set_aggr_pgids() 30 struct lan966x_port *port = lan966x->ports[p]; in lan966x_lag_set_aggr_pgids() 40 struct lan966x_port *port = lan966x->ports[lag]; in lan966x_lag_set_aggr_pgids() 53 struct lan966x_port *port = lan966x->ports[p]; in lan966x_lag_set_aggr_pgids() 78 /* Mark all ports in the same LAG as visited to avoid applying in lan966x_lag_set_aggr_pgids() 82 struct lan966x_port *port = lan966x->ports[p]; in lan966x_lag_set_aggr_pgids() 101 port = lan966x->ports[ in lan966x_lag_set_port_ids() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/ |
H A D | sdio.h | 109 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt)); \ 111 a->mpa_tx.ports |= (1<<(a->mpa_tx.pkt_cnt+1+ \ 125 a->mpa_tx.ports = 0; \ 144 a->mpa_rx.ports = 0; \ 154 u32 ports; member 165 u32 ports; member 370 card->mpa_rx.ports |= (1 << port); in mp_rx_aggr_setup() 373 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt); in mp_rx_aggr_setup() 375 card->mpa_rx.ports |= 1 << (card->mpa_rx.pkt_cnt + 1); in mp_rx_aggr_setup()
|
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | pata_cs5520.c | 131 /* Check if the ATA ports are enabled */ in cs5520_init_one() 163 /* Map IO ports and initialize host accordingly */ in cs5520_init_one() 173 ioaddr = &host->ports[0]->ioaddr; in cs5520_init_one() 180 ata_port_desc(host->ports[0], in cs5520_init_one() 182 ata_port_pbar_desc(host->ports[0], 4, 0, "bmdma"); in cs5520_init_one() 184 ioaddr = &host->ports[1]->ioaddr; in cs5520_init_one() 191 ata_port_desc(host->ports[1], in cs5520_init_one() 193 ata_port_pbar_desc(host->ports[1], 4, 8, "bmdma"); in cs5520_init_one() 203 struct ata_port *ap = host->ports[i]; in cs5520_init_one()
|
/kernel/linux/linux-6.6/drivers/ata/ |
H A D | pata_cs5520.c | 133 /* Check if the ATA ports are enabled */ in cs5520_init_one() 165 /* Map IO ports and initialize host accordingly */ in cs5520_init_one() 175 ioaddr = &host->ports[0]->ioaddr; in cs5520_init_one() 182 ata_port_desc(host->ports[0], in cs5520_init_one() 184 ata_port_pbar_desc(host->ports[0], 4, 0, "bmdma"); in cs5520_init_one() 186 ioaddr = &host->ports[1]->ioaddr; in cs5520_init_one() 193 ata_port_desc(host->ports[1], in cs5520_init_one() 195 ata_port_pbar_desc(host->ports[1], 4, 8, "bmdma"); in cs5520_init_one() 205 struct ata_port *ap = host->ports[i]; in cs5520_init_one()
|
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | u_serial.c | 136 } ports[MAX_U_SERIAL_PORTS]; variable 599 mutex_lock(&ports[port_num].lock); in gs_open() 600 port = ports[port_num].port; in gs_open() 658 mutex_unlock(&ports[port_num].lock); in gs_open() 1085 mutex_lock(&ports[port_num].lock); in gserial_set_console() 1086 port = ports[port_num].port; in gserial_set_console() 1098 mutex_unlock(&ports[port_num].lock); in gserial_set_console() 1109 mutex_lock(&ports[port_num].lock); in gserial_get_console() 1110 port = ports[port_num].port; in gserial_get_console() 1117 mutex_unlock(&ports[port_nu in gserial_get_console() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | u_serial.c | 137 } ports[MAX_U_SERIAL_PORTS]; variable 602 mutex_lock(&ports[port_num].lock); in gs_open() 603 port = ports[port_num].port; in gs_open() 661 mutex_unlock(&ports[port_num].lock); in gs_open() 1088 mutex_lock(&ports[port_num].lock); in gserial_set_console() 1089 port = ports[port_num].port; in gserial_set_console() 1101 mutex_unlock(&ports[port_num].lock); in gserial_set_console() 1112 mutex_lock(&ports[port_num].lock); in gserial_get_console() 1113 port = ports[port_num].port; in gserial_get_console() 1120 mutex_unlock(&ports[port_nu in gserial_get_console() [all...] |
/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | pmic_glink_altmode.c | 104 struct pmic_glink_altmode_port ports[PMIC_GLINK_MAX_PORTS]; member 288 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8180xp_notify() 293 alt_port = &altmode->ports[port]; in pmic_glink_altmode_sc8180xp_notify() 331 if (port >= ARRAY_SIZE(altmode->ports) || !altmode->ports[port].altmode) { in pmic_glink_altmode_sc8280xp_notify() 336 alt_port = &altmode->ports[port]; in pmic_glink_altmode_sc8280xp_notify() 451 if (port >= ARRAY_SIZE(altmode->ports)) { in pmic_glink_altmode_probe() 456 if (altmode->ports[port].altmode) { in pmic_glink_altmode_probe() 462 alt_port = &altmode->ports[por in pmic_glink_altmode_probe() [all...] |