/Linux-v5.4/drivers/usb/core/ |
D | port.c | 22 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 …]
|
D | usb-acpi.c | 55 struct usb_port *port_dev; in usb_acpi_set_power_state() local 63 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state() 76 dev_dbg(&port_dev->dev, "acpi: power was set to %d\n", enable); in usb_acpi_set_power_state() 78 dev_dbg(&port_dev->dev, "acpi: power failed to be set\n"); in usb_acpi_set_power_state() 143 usb_acpi_get_companion_for_port(struct usb_port *port_dev) in usb_acpi_get_companion_for_port() argument 151 udev = to_usb_device(port_dev->dev.parent->parent); in usb_acpi_get_companion_for_port() 161 port_dev->portnum); in usb_acpi_get_companion_for_port() 169 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port() 176 usb_acpi_find_companion_for_port(struct usb_port *port_dev) in usb_acpi_find_companion_for_port() argument 183 adev = usb_acpi_get_companion_for_port(port_dev); in usb_acpi_find_companion_for_port() [all …]
|
D | hub.c | 455 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() local 460 dev_dbg(&port_dev->dev, "indicator %s status %d\n", in set_port_led() 689 struct usb_port *port_dev; in usb_wakeup_notification() local 696 port_dev = hub->ports[portnum - 1]; in usb_wakeup_notification() 697 if (port_dev && port_dev->child) in usb_wakeup_notification() 698 pm_wakeup_event(&port_dev->child->dev, 0); in usb_wakeup_notification() 1106 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_activate() local 1107 struct usb_device *udev = port_dev->child; in hub_activate() 1116 dev_dbg(&port_dev->dev, "status %04x change %04x\n", in hub_activate() 1648 struct usb_port *port_dev = hub->ports[i]; in hub_configure() local [all …]
|
/Linux-v5.4/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-v5.4/drivers/net/team/ |
D | team.c | 48 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() 1125 struct net_device *port_dev); 1127 static int team_port_add(struct team *team, struct net_device *port_dev, in team_port_add() argument 1132 char *portname = port_dev->name; in team_port_add() 1135 if (port_dev->flags & IFF_LOOPBACK) { in team_port_add() 1142 if (netif_is_team_port(port_dev)) { in team_port_add() 1149 if (dev == port_dev) { in team_port_add() [all …]
|
/Linux-v5.4/drivers/scsi/libsas/ |
D | sas_port.c | 82 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()
|
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 | 129 port->port_dev = dev; in sas_get_port_device() 316 dev->port->port_dev = NULL; in sas_unregister_common_dev() 434 if (port->port_dev) in sas_discover_domain() 440 dev = port->port_dev; in sas_discover_domain() 477 port->port_dev = NULL; in sas_discover_domain() 492 struct domain_device *ddev = port->port_dev; in sas_revalidate_domain()
|
D | sas_init.c | 207 dev = asd_phy->port->port_dev; in sas_try_ata_reset()
|
D | sas_expander.c | 1627 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()
|
/Linux-v5.4/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-v5.4/drivers/usb/gadget/udc/aspeed-vhub/ |
D | dev.c | 528 device_unregister(d->port_dev); in ast_vhub_del_dev() 554 d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); in ast_vhub_init_dev() 555 if (!d->port_dev) in ast_vhub_init_dev() 557 device_initialize(d->port_dev); in ast_vhub_init_dev() 558 d->port_dev->release = ast_vhub_dev_release; in ast_vhub_init_dev() 559 d->port_dev->parent = parent; in ast_vhub_init_dev() 560 dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); in ast_vhub_init_dev() 561 rc = device_add(d->port_dev); in ast_vhub_init_dev() 577 rc = usb_add_gadget_udc(d->port_dev, &d->gadget); in ast_vhub_init_dev() 584 device_del(d->port_dev); in ast_vhub_init_dev() [all …]
|
D | vhub.h | 350 struct device *port_dev; member
|
/Linux-v5.4/drivers/net/ |
D | vrf.c | 776 static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in do_vrf_add_slave() argument 784 if (port_dev == dev_net(dev)->loopback_dev) { in do_vrf_add_slave() 790 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; in do_vrf_add_slave() 791 ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); in do_vrf_add_slave() 795 cycle_netdev(port_dev, extack); in do_vrf_add_slave() 800 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_add_slave() 804 static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in vrf_add_slave() argument 807 if (netif_is_l3_master(port_dev)) { in vrf_add_slave() 813 if (netif_is_l3_slave(port_dev)) in vrf_add_slave() 816 return do_vrf_add_slave(dev, port_dev, extack); in vrf_add_slave() [all …]
|
/Linux-v5.4/drivers/fpga/ |
D | dfl.c | 1003 struct platform_device *port_dev = pdata->dev; in dfl_fpga_feature_devs_remove() local 1006 if (!device_is_registered(&port_dev->dev)) { in dfl_fpga_feature_devs_remove() 1007 dfl_id_free(feature_dev_id_type(port_dev), in dfl_fpga_feature_devs_remove() 1008 port_dev->id); in dfl_fpga_feature_devs_remove() 1009 platform_device_put(port_dev); in dfl_fpga_feature_devs_remove() 1013 put_device(&port_dev->dev); in dfl_fpga_feature_devs_remove() 1043 struct platform_device *port_dev; in __dfl_fpga_cdev_find_port() local 1046 port_dev = pdata->dev; in __dfl_fpga_cdev_find_port() 1048 if (match(port_dev, data) && get_device(&port_dev->dev)) in __dfl_fpga_cdev_find_port() 1049 return port_dev; in __dfl_fpga_cdev_find_port()
|
/Linux-v5.4/drivers/usb/typec/ |
D | bus.c | 329 struct device *port_dev = &alt->partner->adev.dev; in typec_altmode_create_links() local 333 err = sysfs_create_link(&dev->kobj, &port_dev->kobj, "port"); in typec_altmode_create_links() 337 err = sysfs_create_link(&port_dev->kobj, &dev->kobj, "partner"); in typec_altmode_create_links()
|
D | class.c | 230 struct device *port_dev; in typec_altmode_register_notifier() local 235 port_dev = device_connection_find_match(dev, NULL, NULL, in typec_altmode_register_notifier() 237 if (IS_ERR_OR_NULL(port_dev)) in typec_altmode_register_notifier() 238 return port_dev ? ERR_CAST(port_dev) : ERR_PTR(-ENODEV); in typec_altmode_register_notifier() 241 altmode_dev = device_find_child(port_dev, &id, altmode_match); in typec_altmode_register_notifier() 243 put_device(port_dev); in typec_altmode_register_notifier()
|
/Linux-v5.4/net/bridge/ |
D | br_mdb.c | 393 struct net_device *port_dev; in __br_mdb_notify() local 398 port_dev = __dev_get_by_index(net, entry->ifindex); in __br_mdb_notify() 406 mdb.obj.orig_dev = port_dev; in __br_mdb_notify() 407 if (p && port_dev && type == RTM_NEWMDB) { in __br_mdb_notify() 414 if (switchdev_port_obj_add(port_dev, &mdb.obj, NULL)) in __br_mdb_notify() 417 } else if (p && port_dev && type == RTM_DELMDB) { in __br_mdb_notify() 418 switchdev_port_obj_del(port_dev, &mdb.obj); in __br_mdb_notify()
|
/Linux-v5.4/drivers/ata/ |
D | libahci_platform.c | 483 struct platform_device *port_dev __maybe_unused; in ahci_platform_get_resources() 503 port_dev = of_find_device_by_node(child); in ahci_platform_get_resources() 505 if (port_dev) { in ahci_platform_get_resources() 507 &port_dev->dev); in ahci_platform_get_resources()
|
/Linux-v5.4/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-v5.4/include/scsi/ |
D | libsas.h | 247 struct domain_device *port_dev; member
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 6736 struct net_device *port_dev, in mlxsw_sp_inetaddr_port_vlan_event() argument 6740 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() 6759 static int mlxsw_sp_inetaddr_port_event(struct net_device *port_dev, in mlxsw_sp_inetaddr_port_event() argument 6763 if (netif_is_bridge_port(port_dev) || in mlxsw_sp_inetaddr_port_event() 6764 netif_is_lag_port(port_dev) || in mlxsw_sp_inetaddr_port_event() 6765 netif_is_ovs_port(port_dev)) in mlxsw_sp_inetaddr_port_event() 6768 return mlxsw_sp_inetaddr_port_vlan_event(port_dev, port_dev, event, in mlxsw_sp_inetaddr_port_event() 6777 struct net_device *port_dev; in __mlxsw_sp_inetaddr_lag_event() local 6781 netdev_for_each_lower_dev(lag_dev, port_dev, iter) { in __mlxsw_sp_inetaddr_lag_event() 6782 if (mlxsw_sp_port_dev_check(port_dev)) { in __mlxsw_sp_inetaddr_lag_event() [all …]
|
/Linux-v5.4/drivers/net/usb/ |
D | hso.c | 2042 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()
|
/Linux-v5.4/drivers/scsi/hisi_sas/ |
D | hisi_sas_main.c | 1412 if (do_port_check && sas_port && sas_port->port_dev) { in hisi_sas_rescan_topology() 1413 struct domain_device *dev = sas_port->port_dev; in hisi_sas_rescan_topology() 1501 struct domain_device *port_dev = sas_port->port_dev; in hisi_sas_terminate_stp_reject() local 1504 if (!port_dev || !dev_is_expander(port_dev->dev_type)) in hisi_sas_terminate_stp_reject()
|
/Linux-v5.4/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 2942 struct device *port_dev; in ehea_setup_single_port() local 2980 port_dev = ehea_register_port(port, dn); in ehea_setup_single_port() 2981 if (!port_dev) in ehea_setup_single_port() 2984 SET_NETDEV_DEV(dev, port_dev); in ehea_setup_single_port()
|