Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/core/
Dport.c22 struct usb_port *port_dev = to_usb_port(dev); in location_show() local
24 return sprintf(buf, "0x%08x\n", port_dev->location); in location_show()
31 struct usb_port *port_dev = to_usb_port(dev); in connect_type_show() local
34 switch (port_dev->connect_type) { in connect_type_show()
56 struct usb_port *port_dev = to_usb_port(dev); in over_current_count_show() local
58 return sprintf(buf, "%u\n", port_dev->over_current_count); in over_current_count_show()
65 struct usb_port *port_dev = to_usb_port(dev); in quirks_show() local
67 return sprintf(buf, "%08x\n", port_dev->quirks); in quirks_show()
73 struct usb_port *port_dev = to_usb_port(dev); in quirks_store() local
79 port_dev->quirks = value; in quirks_store()
[all …]
Dusb-acpi.c120 struct usb_port *port_dev; in usb_acpi_set_power_state() local
128 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state()
141 dev_dbg(&port_dev->dev, "acpi: power was set to %d\n", enable); in usb_acpi_set_power_state()
143 dev_dbg(&port_dev->dev, "acpi: power failed to be set\n"); in usb_acpi_set_power_state()
209 usb_acpi_get_companion_for_port(struct usb_port *port_dev) in usb_acpi_get_companion_for_port() argument
217 udev = to_usb_device(port_dev->dev.parent->parent); in usb_acpi_get_companion_for_port()
227 port_dev->portnum); in usb_acpi_get_companion_for_port()
235 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port()
242 usb_acpi_find_companion_for_port(struct usb_port *port_dev) in usb_acpi_find_companion_for_port() argument
249 adev = usb_acpi_get_companion_for_port(port_dev); in usb_acpi_find_companion_for_port()
[all …]
Dhub.c476 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() local
481 dev_dbg(&port_dev->dev, "indicator %s status %d\n", in set_port_led()
710 struct usb_port *port_dev; in usb_wakeup_notification() local
717 port_dev = hub->ports[portnum - 1]; in usb_wakeup_notification()
718 if (port_dev && port_dev->child) in usb_wakeup_notification()
719 pm_wakeup_event(&port_dev->child->dev, 0); in usb_wakeup_notification()
1134 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_activate() local
1135 struct usb_device *udev = port_dev->child; in hub_activate()
1144 dev_dbg(&port_dev->dev, "status %04x change %04x\n", in hub_activate()
1677 struct usb_port *port_dev = hub->ports[i]; in hub_configure() local
[all …]
/kernel/linux/linux-5.10/include/net/
Dlag.h9 static inline bool net_lag_port_dev_txable(const struct net_device *port_dev) in net_lag_port_dev_txable() argument
11 if (netif_is_team_port(port_dev)) in net_lag_port_dev_txable()
12 return team_port_dev_txable(port_dev); in net_lag_port_dev_txable()
14 return bond_is_active_slave_dev(port_dev); in net_lag_port_dev_txable()
/kernel/linux/linux-5.10/drivers/net/team/
Dteam.c48 static int __set_port_dev_addr(struct net_device *port_dev, in __set_port_dev_addr() argument
53 memcpy(addr.__data, dev_addr, port_dev->addr_len); in __set_port_dev_addr()
54 addr.ss_family = port_dev->type; in __set_port_dev_addr()
55 return dev_set_mac_address(port_dev, (struct sockaddr *)&addr, NULL); in __set_port_dev_addr()
1129 struct net_device *port_dev);
1131 static int team_port_add(struct team *team, struct net_device *port_dev, in team_port_add() argument
1136 char *portname = port_dev->name; in team_port_add()
1139 if (port_dev->flags & IFF_LOOPBACK) { in team_port_add()
1146 if (netif_is_team_port(port_dev)) { in team_port_add()
1153 if (dev == port_dev) { in team_port_add()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_port.c82 struct domain_device *port_dev; in sas_form_port() local
141 port_dev = port->port_dev; in sas_form_port()
143 sas_phy_set_target(phy, port_dev); in sas_form_port()
173 if (port_dev) in sas_form_port()
174 port_dev->pathways = port->num_phys; in sas_form_port()
182 if (port_dev && dev_is_expander(port_dev->dev_type)) { in sas_form_port()
183 struct expander_device *ex_dev = &port_dev->ex_dev; in sas_form_port()
211 dev = port->port_dev; in sas_deform_port()
Dsas_host_smp.c43 !sas_ha->sas_phy[phy_id]->port->port_dev) in sas_host_smp_discover()
46 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_host_smp_discover()
154 rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; in sas_report_phy_sata()
156 sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd; in sas_report_phy_sata()
172 &sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i]; in sas_report_phy_sata()
Dsas_discover.c138 port->port_dev = dev; in sas_get_port_device()
320 dev->port->port_dev = NULL; in sas_unregister_common_dev()
438 if (port->port_dev) in sas_discover_domain()
444 dev = port->port_dev; in sas_discover_domain()
481 port->port_dev = NULL; in sas_discover_domain()
496 struct domain_device *ddev = port->port_dev; in sas_revalidate_domain()
Dsas_init.c201 dev = asd_phy->port->port_dev; in sas_try_ata_reset()
Dsas_expander.c1627 res = sas_ex_discover_devices(port->port_dev, -1); in sas_ex_level_discovery()
2113 int sas_ex_revalidate_domain(struct domain_device *port_dev) in sas_ex_revalidate_domain() argument
2118 res = sas_find_bcast_dev(port_dev, &dev); in sas_ex_revalidate_domain()
/kernel/linux/linux-5.10/arch/um/drivers/
Dport_kern.c30 struct port_dev { struct
162 struct port_dev *dev = NULL; in port_data()
203 dev = kmalloc(sizeof(struct port_dev), GFP_KERNEL); in port_data()
209 *dev = ((struct port_dev) { .port = port, in port_data()
225 struct port_dev *dev = data; in port_wait()
273 struct port_dev *dev = d; in port_remove_dev()
285 struct port_dev *dev = d; in port_kern_free()
/kernel/linux/linux-5.10/drivers/usb/gadget/udc/aspeed-vhub/
Ddev.c528 device_unregister(d->port_dev); in ast_vhub_del_dev()
564 d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); in ast_vhub_init_dev()
565 if (!d->port_dev) { in ast_vhub_init_dev()
569 device_initialize(d->port_dev); in ast_vhub_init_dev()
570 d->port_dev->release = ast_vhub_dev_release; in ast_vhub_init_dev()
571 d->port_dev->parent = parent; in ast_vhub_init_dev()
572 dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); in ast_vhub_init_dev()
573 rc = device_add(d->port_dev); in ast_vhub_init_dev()
589 rc = usb_add_gadget_udc(d->port_dev, &d->gadget); in ast_vhub_init_dev()
596 device_del(d->port_dev); in ast_vhub_init_dev()
[all …]
Dvhub.h350 struct device *port_dev; member
/kernel/linux/linux-5.10/drivers/net/
Dvrf.c1122 static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in do_vrf_add_slave() argument
1130 if (port_dev == dev_net(dev)->loopback_dev) { in do_vrf_add_slave()
1136 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1137 ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); in do_vrf_add_slave()
1141 cycle_netdev(port_dev, extack); in do_vrf_add_slave()
1146 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1150 static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in vrf_add_slave() argument
1153 if (netif_is_l3_master(port_dev)) { in vrf_add_slave()
1159 if (netif_is_l3_slave(port_dev)) in vrf_add_slave()
1162 return do_vrf_add_slave(dev, port_dev, extack); in vrf_add_slave()
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/
Dbus.c338 struct device *port_dev = &alt->partner->adev.dev; in typec_altmode_create_links() local
342 err = sysfs_create_link(&dev->kobj, &port_dev->kobj, "port"); in typec_altmode_create_links()
346 err = sysfs_create_link(&port_dev->kobj, &dev->kobj, "partner"); in typec_altmode_create_links()
/kernel/linux/linux-5.10/drivers/fpga/
Ddfl.c1472 struct platform_device *port_dev = pdata->dev; in dfl_fpga_feature_devs_remove() local
1475 if (!device_is_registered(&port_dev->dev)) { in dfl_fpga_feature_devs_remove()
1476 dfl_id_free(feature_dev_id_type(port_dev), in dfl_fpga_feature_devs_remove()
1477 port_dev->id); in dfl_fpga_feature_devs_remove()
1478 platform_device_put(port_dev); in dfl_fpga_feature_devs_remove()
1482 put_device(&port_dev->dev); in dfl_fpga_feature_devs_remove()
1512 struct platform_device *port_dev; in __dfl_fpga_cdev_find_port() local
1515 port_dev = pdata->dev; in __dfl_fpga_cdev_find_port()
1517 if (match(port_dev, data) && get_device(&port_dev->dev)) in __dfl_fpga_cdev_find_port()
1518 return port_dev; in __dfl_fpga_cdev_find_port()
/kernel/linux/linux-5.10/drivers/ata/
Dlibahci_platform.c492 struct platform_device *port_dev __maybe_unused; in ahci_platform_get_resources()
512 port_dev = of_find_device_by_node(child); in ahci_platform_get_resources()
514 if (port_dev) { in ahci_platform_get_resources()
516 &port_dev->dev); in ahci_platform_get_resources()
/kernel/linux/linux-5.10/include/linux/
Dif_team.h88 static inline bool team_port_dev_txable(const struct net_device *port_dev) in team_port_dev_txable() argument
94 port = team_port_get_rcu(port_dev); in team_port_dev_txable()
/kernel/linux/linux-5.10/include/scsi/
Dlibsas.h247 struct domain_device *port_dev; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c6755 struct net_device *port_dev, in mlxsw_sp_inetaddr_port_vlan_event() argument
6759 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event()
6778 static int mlxsw_sp_inetaddr_port_event(struct net_device *port_dev, in mlxsw_sp_inetaddr_port_event() argument
6782 if (netif_is_bridge_port(port_dev) || in mlxsw_sp_inetaddr_port_event()
6783 netif_is_lag_port(port_dev) || in mlxsw_sp_inetaddr_port_event()
6784 netif_is_ovs_port(port_dev)) in mlxsw_sp_inetaddr_port_event()
6787 return mlxsw_sp_inetaddr_port_vlan_event(port_dev, port_dev, event, in mlxsw_sp_inetaddr_port_event()
6796 struct net_device *port_dev; in __mlxsw_sp_inetaddr_lag_event() local
6800 netdev_for_each_lower_dev(lag_dev, port_dev, iter) { in __mlxsw_sp_inetaddr_lag_event()
6801 if (mlxsw_sp_port_dev_check(port_dev)) { in __mlxsw_sp_inetaddr_lag_event()
[all …]
Dspectrum.c3977 struct net_device *port_dev, in mlxsw_sp_netdevice_port_event() argument
3983 return mlxsw_sp_netdevice_port_upper_event(lower_dev, port_dev, in mlxsw_sp_netdevice_port_event()
3986 return mlxsw_sp_netdevice_port_lower_event(port_dev, event, in mlxsw_sp_netdevice_port_event()
/kernel/linux/linux-5.10/drivers/net/usb/
Dhso.c2042 char port_dev[20]; in hso_log_port() local
2080 sprintf(port_dev, "%s", dev2net(hso_dev)->net->name); in hso_log_port()
2082 sprintf(port_dev, "/dev/%s%d", tty_filename, in hso_log_port()
2086 port_type, port_dev); in hso_log_port()
/kernel/linux/linux-5.10/drivers/scsi/hisi_sas/
Dhisi_sas_main.c1432 if (do_port_check && sas_port && sas_port->port_dev) { in hisi_sas_rescan_topology()
1433 struct domain_device *dev = sas_port->port_dev; in hisi_sas_rescan_topology()
1520 struct domain_device *port_dev = sas_port->port_dev; in hisi_sas_terminate_stp_reject() local
1523 if (!port_dev || !dev_is_expander(port_dev->dev_type)) in hisi_sas_terminate_stp_reject()
/kernel/linux/linux-5.10/drivers/net/ethernet/ibm/ehea/
Dehea_main.c2944 struct device *port_dev; in ehea_setup_single_port() local
2982 port_dev = ehea_register_port(port, dn); in ehea_setup_single_port()
2983 if (!port_dev) in ehea_setup_single_port()
2986 SET_NETDEV_DEV(dev, port_dev); in ehea_setup_single_port()
/kernel/linux/linux-5.10/drivers/net/ethernet/micrel/
Dksz884x.c4941 struct net_device *port_dev; in netdev_tx_timeout() local
4946 port_dev = hw->port_info[port].pdev; in netdev_tx_timeout()
4947 if (netif_running(port_dev)) in netdev_tx_timeout()