/linux-6.1.9/drivers/usb/core/ |
D | port.c | 23 struct usb_port *port_dev = to_usb_port(dev); in disable_show() local 27 int port1 = port_dev->portnum; in disable_show() 58 struct usb_port *port_dev = to_usb_port(dev); in disable_store() local 62 int port1 = port_dev->portnum; in disable_store() 80 if (disabled && port_dev->child) in disable_store() 81 usb_disconnect(&port_dev->child); in disable_store() 87 if (!port_dev->is_superspeed) in disable_store() 105 struct usb_port *port_dev = to_usb_port(dev); in location_show() local 107 return sprintf(buf, "0x%08x\n", port_dev->location); in location_show() 114 struct usb_port *port_dev = to_usb_port(dev); in connect_type_show() local [all …]
|
D | usb-acpi.c | 120 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() 193 usb_acpi_get_companion_for_port(struct usb_port *port_dev) in usb_acpi_get_companion_for_port() argument 201 udev = to_usb_device(port_dev->dev.parent->parent); in usb_acpi_get_companion_for_port() 211 port_dev->portnum); in usb_acpi_get_companion_for_port() 219 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port() 226 usb_acpi_find_companion_for_port(struct usb_port *port_dev) in usb_acpi_find_companion_for_port() argument 233 adev = usb_acpi_get_companion_for_port(port_dev); in usb_acpi_find_companion_for_port() [all …]
|
D | hub.c | 470 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() local 475 dev_dbg(&port_dev->dev, "indicator %s status %d\n", in set_port_led() 704 struct usb_port *port_dev; in usb_wakeup_notification() local 711 port_dev = hub->ports[portnum - 1]; in usb_wakeup_notification() 712 if (port_dev && port_dev->child) in usb_wakeup_notification() 713 pm_wakeup_event(&port_dev->child->dev, 0); in usb_wakeup_notification() 1128 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_activate() local 1129 struct usb_device *udev = port_dev->child; in hub_activate() 1138 dev_dbg(&port_dev->dev, "status %04x change %04x\n", in hub_activate() 1671 struct usb_port *port_dev = hub->ports[i]; in hub_configure() local [all …]
|
/linux-6.1.9/include/net/ |
D | lag.h | 9 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()
|
/linux-6.1.9/drivers/scsi/libsas/ |
D | sas_port.c | 74 sas_phy_set_target(phy, port->port_dev); in sas_form_port_add_phy() 110 struct domain_device *port_dev = NULL; in sas_form_port() local 141 port_dev = port->port_dev; in sas_form_port() 155 port_dev = port->port_dev; in sas_form_port() 184 if (port_dev) in sas_form_port() 185 port_dev->pathways = port->num_phys; in sas_form_port() 193 if (port_dev && dev_is_expander(port_dev->dev_type)) { in sas_form_port() 194 struct expander_device *ex_dev = &port_dev->ex_dev; in sas_form_port() 222 dev = port->port_dev; in sas_deform_port()
|
D | sas_host_smp.c | 43 !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()
|
D | sas_discover.c | 137 port->port_dev = dev; in sas_get_port_device() 319 dev->port->port_dev = NULL; in sas_unregister_common_dev() 437 if (port->port_dev) in sas_discover_domain() 443 dev = port->port_dev; in sas_discover_domain() 480 port->port_dev = NULL; in sas_discover_domain() 495 struct domain_device *ddev = port->port_dev; in sas_revalidate_domain()
|
D | sas_init.c | 203 dev = asd_phy->port->port_dev; in sas_try_ata_reset() 397 struct domain_device *dev = port->port_dev; in sas_resume_insert_broadcast_ha()
|
D | sas_expander.c | 1606 res = sas_ex_discover_devices(port->port_dev, -1); in sas_ex_level_discovery() 2088 int sas_ex_revalidate_domain(struct domain_device *port_dev) in sas_ex_revalidate_domain() argument 2093 res = sas_find_bcast_dev(port_dev, &dev); in sas_ex_revalidate_domain()
|
/linux-6.1.9/drivers/net/team/ |
D | team.c | 49 static int __set_port_dev_addr(struct net_device *port_dev, in __set_port_dev_addr() argument 54 memcpy(addr.__data, dev_addr, port_dev->addr_len); in __set_port_dev_addr() 55 addr.ss_family = port_dev->type; in __set_port_dev_addr() 56 return dev_set_mac_address(port_dev, (struct sockaddr *)&addr, NULL); in __set_port_dev_addr() 1134 struct net_device *port_dev); 1136 static int team_port_add(struct team *team, struct net_device *port_dev, in team_port_add() argument 1141 char *portname = port_dev->name; in team_port_add() 1144 if (port_dev->flags & IFF_LOOPBACK) { in team_port_add() 1151 if (netif_is_team_port(port_dev)) { in team_port_add() 1158 if (dev == port_dev) { in team_port_add() [all …]
|
/linux-6.1.9/arch/um/drivers/ |
D | port_kern.c | 30 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()
|
/linux-6.1.9/drivers/usb/gadget/udc/aspeed-vhub/ |
D | dev.c | 534 device_unregister(d->port_dev); in ast_vhub_del_dev() 570 d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); in ast_vhub_init_dev() 571 if (!d->port_dev) { in ast_vhub_init_dev() 575 device_initialize(d->port_dev); in ast_vhub_init_dev() 576 d->port_dev->release = ast_vhub_dev_release; in ast_vhub_init_dev() 577 d->port_dev->parent = parent; in ast_vhub_init_dev() 578 dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); in ast_vhub_init_dev() 579 rc = device_add(d->port_dev); in ast_vhub_init_dev() 596 rc = usb_add_gadget_udc(d->port_dev, &d->gadget); in ast_vhub_init_dev() 603 device_del(d->port_dev); in ast_vhub_init_dev() [all …]
|
D | vhub.h | 350 struct device *port_dev; member
|
/linux-6.1.9/drivers/net/ |
D | vrf.c | 1114 static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in do_vrf_add_slave() argument 1122 if (port_dev == dev_net(dev)->loopback_dev) { in do_vrf_add_slave() 1128 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; in do_vrf_add_slave() 1129 ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); in do_vrf_add_slave() 1133 cycle_netdev(port_dev, extack); in do_vrf_add_slave() 1138 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_add_slave() 1142 static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in vrf_add_slave() argument 1145 if (netif_is_l3_master(port_dev)) { in vrf_add_slave() 1151 if (netif_is_l3_slave(port_dev)) in vrf_add_slave() 1154 return do_vrf_add_slave(dev, port_dev, extack); in vrf_add_slave() [all …]
|
/linux-6.1.9/drivers/usb/typec/ |
D | bus.c | 340 struct device *port_dev = &alt->partner->adev.dev; in typec_altmode_create_links() local 344 err = sysfs_create_link(&dev->kobj, &port_dev->kobj, "port"); in typec_altmode_create_links() 348 err = sysfs_create_link(&port_dev->kobj, &dev->kobj, "partner"); in typec_altmode_create_links()
|
/linux-6.1.9/drivers/fpga/ |
D | dfl.c | 1481 struct platform_device *port_dev = pdata->dev; in dfl_fpga_feature_devs_remove() local 1484 if (!device_is_registered(&port_dev->dev)) { in dfl_fpga_feature_devs_remove() 1485 dfl_id_free(feature_dev_id_type(port_dev), in dfl_fpga_feature_devs_remove() 1486 port_dev->id); in dfl_fpga_feature_devs_remove() 1487 platform_device_put(port_dev); in dfl_fpga_feature_devs_remove() 1491 put_device(&port_dev->dev); in dfl_fpga_feature_devs_remove() 1521 struct platform_device *port_dev; in __dfl_fpga_cdev_find_port() local 1524 port_dev = pdata->dev; in __dfl_fpga_cdev_find_port() 1526 if (match(port_dev, data) && get_device(&port_dev->dev)) in __dfl_fpga_cdev_find_port() 1527 return port_dev; in __dfl_fpga_cdev_find_port()
|
/linux-6.1.9/include/linux/ |
D | if_team.h | 88 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()
|
/linux-6.1.9/drivers/ata/ |
D | libahci_platform.c | 583 struct platform_device *port_dev __maybe_unused; in ahci_platform_get_resources() 603 port_dev = of_find_device_by_node(child); in ahci_platform_get_resources() 605 if (port_dev) { in ahci_platform_get_resources() 607 &port_dev->dev); in ahci_platform_get_resources()
|
/linux-6.1.9/drivers/net/ethernet/marvell/prestera/ |
D | prestera_router.c | 1267 static int __prestera_inetaddr_port_event(struct net_device *port_dev, in __prestera_inetaddr_port_event() argument 1271 struct prestera_port *port = netdev_priv(port_dev); in __prestera_inetaddr_port_event() 1277 err = prestera_is_valid_mac_addr(port, port_dev->dev_addr); in __prestera_inetaddr_port_event() 1283 kern_tb_id = l3mdev_fib_table(port_dev); in __prestera_inetaddr_port_event() 1297 port_dev->dev_addr); in __prestera_inetaddr_port_event() 1302 dev_hold(port_dev); in __prestera_inetaddr_port_event() 1310 dev_put(port_dev); in __prestera_inetaddr_port_event()
|
/linux-6.1.9/drivers/cxl/core/ |
D | port.c | 785 struct device *port_dev; in find_cxl_root() local 788 port_dev = bus_find_device(&cxl_bus_type, NULL, dev, match_root_child); in find_cxl_root() 789 if (!port_dev) in find_cxl_root() 792 root = to_cxl_port(port_dev->parent); in find_cxl_root() 794 put_device(port_dev); in find_cxl_root()
|
/linux-6.1.9/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 1359 if (do_port_check && sas_port && sas_port->port_dev) { in hisi_sas_rescan_topology() 1360 struct domain_device *dev = sas_port->port_dev; in hisi_sas_rescan_topology() 1447 struct domain_device *port_dev = sas_port->port_dev; in hisi_sas_terminate_stp_reject() local 1450 if (!port_dev || !dev_is_expander(port_dev->dev_type)) in hisi_sas_terminate_stp_reject()
|
/linux-6.1.9/include/scsi/ |
D | libsas.h | 247 struct domain_device *port_dev; member
|
/linux-6.1.9/drivers/net/usb/ |
D | hso.c | 2041 char port_dev[20]; in hso_log_port() local 2079 sprintf(port_dev, "%s", dev2net(hso_dev)->net->name); in hso_log_port() 2081 sprintf(port_dev, "/dev/%s%d", tty_filename, in hso_log_port() 2085 port_type, port_dev); in hso_log_port()
|
/linux-6.1.9/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 2947 struct device *port_dev; in ehea_setup_single_port() local 2985 port_dev = ehea_register_port(port, dn); in ehea_setup_single_port() 2986 if (!port_dev) in ehea_setup_single_port() 2989 SET_NETDEV_DEV(dev, port_dev); in ehea_setup_single_port()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 8566 struct net_device *port_dev, in mlxsw_sp_inetaddr_port_vlan_event() argument 8570 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() 8589 static int mlxsw_sp_inetaddr_port_event(struct net_device *port_dev, in mlxsw_sp_inetaddr_port_event() argument 8593 if (netif_is_any_bridge_port(port_dev) || netif_is_lag_port(port_dev)) in mlxsw_sp_inetaddr_port_event() 8596 return mlxsw_sp_inetaddr_port_vlan_event(port_dev, port_dev, event, in mlxsw_sp_inetaddr_port_event() 8605 struct net_device *port_dev; in __mlxsw_sp_inetaddr_lag_event() local 8609 netdev_for_each_lower_dev(lag_dev, port_dev, iter) { in __mlxsw_sp_inetaddr_lag_event() 8610 if (mlxsw_sp_port_dev_check(port_dev)) { in __mlxsw_sp_inetaddr_lag_event() 8612 port_dev, in __mlxsw_sp_inetaddr_lag_event()
|