port_dev 162 arch/um/drivers/port_kern.c struct port_dev *dev = NULL; port_dev 203 arch/um/drivers/port_kern.c dev = kmalloc(sizeof(struct port_dev), GFP_KERNEL); port_dev 209 arch/um/drivers/port_kern.c *dev = ((struct port_dev) { .port = port, port_dev 225 arch/um/drivers/port_kern.c struct port_dev *dev = data; port_dev 273 arch/um/drivers/port_kern.c struct port_dev *dev = d; port_dev 285 arch/um/drivers/port_kern.c struct port_dev *dev = d; port_dev 485 drivers/ata/libahci_platform.c struct platform_device *port_dev __maybe_unused; port_dev 505 drivers/ata/libahci_platform.c port_dev = of_find_device_by_node(child); port_dev 507 drivers/ata/libahci_platform.c if (port_dev) { port_dev 509 drivers/ata/libahci_platform.c &port_dev->dev); port_dev 1003 drivers/fpga/dfl.c struct platform_device *port_dev = pdata->dev; port_dev 1006 drivers/fpga/dfl.c if (!device_is_registered(&port_dev->dev)) { port_dev 1007 drivers/fpga/dfl.c dfl_id_free(feature_dev_id_type(port_dev), port_dev 1008 drivers/fpga/dfl.c port_dev->id); port_dev 1009 drivers/fpga/dfl.c platform_device_put(port_dev); port_dev 1013 drivers/fpga/dfl.c put_device(&port_dev->dev); port_dev 1043 drivers/fpga/dfl.c struct platform_device *port_dev; port_dev 1046 drivers/fpga/dfl.c port_dev = pdata->dev; port_dev 1048 drivers/fpga/dfl.c if (match(port_dev, data) && get_device(&port_dev->dev)) port_dev 1049 drivers/fpga/dfl.c return port_dev; port_dev 2942 drivers/net/ethernet/ibm/ehea/ehea_main.c struct device *port_dev; port_dev 2980 drivers/net/ethernet/ibm/ehea/ehea_main.c port_dev = ehea_register_port(port, dn); port_dev 2981 drivers/net/ethernet/ibm/ehea/ehea_main.c if (!port_dev) port_dev 2984 drivers/net/ethernet/ibm/ehea/ehea_main.c SET_NETDEV_DEV(dev, port_dev); port_dev 6114 drivers/net/ethernet/mellanox/mlxsw/spectrum.c struct net_device *port_dev, port_dev 6120 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_netdevice_port_upper_event(lower_dev, port_dev, port_dev 6123 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_netdevice_port_lower_event(port_dev, event, port_dev 6741 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct net_device *port_dev, port_dev 6745 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); port_dev 6764 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c static int mlxsw_sp_inetaddr_port_event(struct net_device *port_dev, port_dev 6768 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (netif_is_bridge_port(port_dev) || port_dev 6769 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c netif_is_lag_port(port_dev) || port_dev 6770 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c netif_is_ovs_port(port_dev)) port_dev 6773 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c return mlxsw_sp_inetaddr_port_vlan_event(port_dev, port_dev, event, port_dev 6782 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c struct net_device *port_dev; port_dev 6786 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c netdev_for_each_lower_dev(lag_dev, port_dev, iter) { port_dev 6787 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (mlxsw_sp_port_dev_check(port_dev)) { port_dev 6789 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c port_dev, port_dev 4941 drivers/net/ethernet/micrel/ksz884x.c struct net_device *port_dev; port_dev 4946 drivers/net/ethernet/micrel/ksz884x.c port_dev = hw->port_info[port].pdev; port_dev 4947 drivers/net/ethernet/micrel/ksz884x.c if (netif_running(port_dev)) port_dev 48 drivers/net/team/team.c static int __set_port_dev_addr(struct net_device *port_dev, port_dev 53 drivers/net/team/team.c memcpy(addr.__data, dev_addr, port_dev->addr_len); port_dev 54 drivers/net/team/team.c addr.ss_family = port_dev->type; port_dev 55 drivers/net/team/team.c return dev_set_mac_address(port_dev, (struct sockaddr *)&addr, NULL); port_dev 1129 drivers/net/team/team.c struct net_device *port_dev); port_dev 1131 drivers/net/team/team.c static int team_port_add(struct team *team, struct net_device *port_dev, port_dev 1136 drivers/net/team/team.c char *portname = port_dev->name; port_dev 1139 drivers/net/team/team.c if (port_dev->flags & IFF_LOOPBACK) { port_dev 1146 drivers/net/team/team.c if (netif_is_team_port(port_dev)) { port_dev 1153 drivers/net/team/team.c if (dev == port_dev) { port_dev 1159 drivers/net/team/team.c if (netdev_has_upper_dev(dev, port_dev)) { port_dev 1166 drivers/net/team/team.c if (port_dev->features & NETIF_F_VLAN_CHALLENGED && port_dev 1174 drivers/net/team/team.c err = team_dev_type_check_change(dev, port_dev); port_dev 1178 drivers/net/team/team.c if (port_dev->flags & IFF_UP) { port_dev 1190 drivers/net/team/team.c port->dev = port_dev; port_dev 1194 drivers/net/team/team.c port->orig.mtu = port_dev->mtu; port_dev 1195 drivers/net/team/team.c err = dev_set_mtu(port_dev, dev->mtu); port_dev 1201 drivers/net/team/team.c memcpy(port->orig.dev_addr, port_dev->dev_addr, port_dev->addr_len); port_dev 1210 drivers/net/team/team.c err = dev_open(port_dev, extack); port_dev 1217 drivers/net/team/team.c err = vlan_vids_add_by_dev(port_dev, dev); port_dev 1232 drivers/net/team/team.c dev_disable_lro(port_dev); port_dev 1234 drivers/net/team/team.c err = netdev_rx_handler_register(port_dev, team_handle_frame, port_dev 1258 drivers/net/team/team.c err = dev_set_promiscuity(port_dev, 1); port_dev 1265 drivers/net/team/team.c err = dev_set_allmulti(port_dev, 1); port_dev 1268 drivers/net/team/team.c dev_set_promiscuity(port_dev, -1); port_dev 1274 drivers/net/team/team.c dev_uc_sync_multiple(port_dev, dev); port_dev 1275 drivers/net/team/team.c dev_mc_sync_multiple(port_dev, dev); port_dev 1282 drivers/net/team/team.c __team_port_change_port_added(port, !!netif_oper_up(port_dev)); port_dev 1296 drivers/net/team/team.c netdev_rx_handler_unregister(port_dev); port_dev 1302 drivers/net/team/team.c vlan_vids_del_by_dev(port_dev, dev); port_dev 1305 drivers/net/team/team.c dev_close(port_dev); port_dev 1312 drivers/net/team/team.c dev_set_mtu(port_dev, port->orig.mtu); port_dev 1322 drivers/net/team/team.c static int team_port_del(struct team *team, struct net_device *port_dev) port_dev 1326 drivers/net/team/team.c char *portname = port_dev->name; port_dev 1328 drivers/net/team/team.c port = team_port_get_rtnl(port_dev); port_dev 1339 drivers/net/team/team.c dev_set_promiscuity(port_dev, -1); port_dev 1341 drivers/net/team/team.c dev_set_allmulti(port_dev, -1); port_dev 1344 drivers/net/team/team.c netdev_rx_handler_unregister(port_dev); port_dev 1346 drivers/net/team/team.c vlan_vids_del_by_dev(port_dev, dev); port_dev 1347 drivers/net/team/team.c dev_uc_unsync(port_dev, dev); port_dev 1348 drivers/net/team/team.c dev_mc_unsync(port_dev, dev); port_dev 1349 drivers/net/team/team.c dev_close(port_dev); port_dev 1358 drivers/net/team/team.c dev_set_mtu(port_dev, port->orig.mtu); port_dev 1959 drivers/net/team/team.c static int team_add_slave(struct net_device *dev, struct net_device *port_dev, port_dev 1966 drivers/net/team/team.c err = team_port_add(team, port_dev, extack); port_dev 1975 drivers/net/team/team.c static int team_del_slave(struct net_device *dev, struct net_device *port_dev) port_dev 1981 drivers/net/team/team.c err = team_port_del(team, port_dev); port_dev 1987 drivers/net/team/team.c if (netif_is_team_master(port_dev)) { port_dev 2109 drivers/net/team/team.c struct net_device *port_dev) port_dev 2111 drivers/net/team/team.c dev->header_ops = port_dev->header_ops; port_dev 2112 drivers/net/team/team.c dev->type = port_dev->type; port_dev 2113 drivers/net/team/team.c dev->hard_header_len = port_dev->hard_header_len; port_dev 2114 drivers/net/team/team.c dev->addr_len = port_dev->addr_len; port_dev 2115 drivers/net/team/team.c dev->mtu = port_dev->mtu; port_dev 2116 drivers/net/team/team.c memcpy(dev->broadcast, port_dev->broadcast, port_dev->addr_len); port_dev 2117 drivers/net/team/team.c eth_hw_addr_inherit(dev, port_dev); port_dev 2121 drivers/net/team/team.c struct net_device *port_dev) port_dev 2124 drivers/net/team/team.c char *portname = port_dev->name; port_dev 2127 drivers/net/team/team.c if (dev->type == port_dev->type) port_dev 2141 drivers/net/team/team.c team_setup_by_port(dev, port_dev); port_dev 2042 drivers/net/usb/hso.c char port_dev[20]; port_dev 2080 drivers/net/usb/hso.c sprintf(port_dev, "%s", dev2net(hso_dev)->net->name); port_dev 2082 drivers/net/usb/hso.c sprintf(port_dev, "/dev/%s%d", tty_filename, port_dev 2086 drivers/net/usb/hso.c port_type, port_dev); port_dev 778 drivers/net/vrf.c static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, port_dev 786 drivers/net/vrf.c if (port_dev == dev_net(dev)->loopback_dev) { port_dev 792 drivers/net/vrf.c port_dev->priv_flags |= IFF_L3MDEV_SLAVE; port_dev 793 drivers/net/vrf.c ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); port_dev 797 drivers/net/vrf.c cycle_netdev(port_dev, extack); port_dev 802 drivers/net/vrf.c port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; port_dev 806 drivers/net/vrf.c static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, port_dev 809 drivers/net/vrf.c if (netif_is_l3_master(port_dev)) { port_dev 815 drivers/net/vrf.c if (netif_is_l3_slave(port_dev)) port_dev 818 drivers/net/vrf.c return do_vrf_add_slave(dev, port_dev, extack); port_dev 822 drivers/net/vrf.c static int do_vrf_del_slave(struct net_device *dev, struct net_device *port_dev) port_dev 824 drivers/net/vrf.c netdev_upper_dev_unlink(port_dev, dev); port_dev 825 drivers/net/vrf.c port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; port_dev 827 drivers/net/vrf.c cycle_netdev(port_dev, NULL); port_dev 832 drivers/net/vrf.c static int vrf_del_slave(struct net_device *dev, struct net_device *port_dev) port_dev 834 drivers/net/vrf.c return do_vrf_del_slave(dev, port_dev); port_dev 1315 drivers/net/vrf.c struct net_device *port_dev; port_dev 1318 drivers/net/vrf.c netdev_for_each_lower_dev(dev, port_dev, iter) port_dev 1319 drivers/net/vrf.c vrf_del_slave(dev, port_dev); port_dev 1419 drivers/scsi/hisi_sas/hisi_sas_main.c if (do_port_check && sas_port && sas_port->port_dev) { port_dev 1420 drivers/scsi/hisi_sas/hisi_sas_main.c struct domain_device *dev = sas_port->port_dev; port_dev 1508 drivers/scsi/hisi_sas/hisi_sas_main.c struct domain_device *port_dev = sas_port->port_dev; port_dev 1511 drivers/scsi/hisi_sas/hisi_sas_main.c if (!port_dev || !dev_is_expander(port_dev->dev_type)) port_dev 138 drivers/scsi/libsas/sas_discover.c port->port_dev = dev; port_dev 325 drivers/scsi/libsas/sas_discover.c dev->port->port_dev = NULL; port_dev 443 drivers/scsi/libsas/sas_discover.c if (port->port_dev) port_dev 449 drivers/scsi/libsas/sas_discover.c dev = port->port_dev; port_dev 486 drivers/scsi/libsas/sas_discover.c port->port_dev = NULL; port_dev 501 drivers/scsi/libsas/sas_discover.c struct domain_device *ddev = port->port_dev; port_dev 1627 drivers/scsi/libsas/sas_expander.c res = sas_ex_discover_devices(port->port_dev, -1); port_dev 2113 drivers/scsi/libsas/sas_expander.c int sas_ex_revalidate_domain(struct domain_device *port_dev) port_dev 2118 drivers/scsi/libsas/sas_expander.c res = sas_find_bcast_dev(port_dev, &dev); port_dev 43 drivers/scsi/libsas/sas_host_smp.c !sas_ha->sas_phy[phy_id]->port->port_dev) port_dev 46 drivers/scsi/libsas/sas_host_smp.c rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; port_dev 154 drivers/scsi/libsas/sas_host_smp.c rphy = sas_ha->sas_phy[phy_id]->port->port_dev->rphy; port_dev 156 drivers/scsi/libsas/sas_host_smp.c sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd; port_dev 172 drivers/scsi/libsas/sas_host_smp.c &sas_ha->sas_phy[phy_id]->port->port_dev->frame_rcvd[i]; port_dev 207 drivers/scsi/libsas/sas_init.c dev = asd_phy->port->port_dev; port_dev 82 drivers/scsi/libsas/sas_port.c struct domain_device *port_dev; port_dev 141 drivers/scsi/libsas/sas_port.c port_dev = port->port_dev; port_dev 143 drivers/scsi/libsas/sas_port.c sas_phy_set_target(phy, port_dev); port_dev 173 drivers/scsi/libsas/sas_port.c if (port_dev) port_dev 174 drivers/scsi/libsas/sas_port.c port_dev->pathways = port->num_phys; port_dev 182 drivers/scsi/libsas/sas_port.c if (port_dev && dev_is_expander(port_dev->dev_type)) { port_dev 183 drivers/scsi/libsas/sas_port.c struct expander_device *ex_dev = &port_dev->ex_dev; port_dev 211 drivers/scsi/libsas/sas_port.c dev = port->port_dev; port_dev 458 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 463 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "indicator %s status %d\n", port_dev 692 drivers/usb/core/hub.c struct usb_port *port_dev; port_dev 699 drivers/usb/core/hub.c port_dev = hub->ports[portnum - 1]; port_dev 700 drivers/usb/core/hub.c if (port_dev && port_dev->child) port_dev 701 drivers/usb/core/hub.c pm_wakeup_event(&port_dev->child->dev, 0); port_dev 1113 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 1114 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 1123 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "status %04x change %04x\n", port_dev 1656 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[i]; port_dev 1658 drivers/usb/core/hub.c pm_runtime_put(&port_dev->dev); port_dev 2188 drivers/usb/core/hub.c struct usb_port *port_dev = NULL; port_dev 2222 drivers/usb/core/hub.c port_dev = hub->ports[port1 - 1]; port_dev 2225 drivers/usb/core/hub.c sysfs_remove_link(&port_dev->dev.kobj, "device"); port_dev 2232 drivers/usb/core/hub.c pm_runtime_get_sync(&port_dev->dev); port_dev 2254 drivers/usb/core/hub.c if (port_dev && test_and_clear_bit(port1, hub->child_usage_bits)) port_dev 2255 drivers/usb/core/hub.c pm_runtime_put(&port_dev->dev); port_dev 2563 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 2566 drivers/usb/core/hub.c &port_dev->dev.kobj, "port"); port_dev 2570 drivers/usb/core/hub.c err = sysfs_create_link(&port_dev->dev.kobj, port_dev 2578 drivers/usb/core/hub.c pm_runtime_get_sync(&port_dev->dev); port_dev 2727 drivers/usb/core/hub.c struct usb_port *port_dev) port_dev 2730 drivers/usb/core/hub.c port_dev->quirks & USB_PORT_QUIRK_OLD_SCHEME; port_dev 2861 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 2894 drivers/usb/core/hub.c dev_err(&port_dev->dev, port_dev 2940 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, port_dev 2946 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, port_dev 2952 drivers/usb/core/hub.c dev_err(&port_dev->dev, "Cannot enable. Maybe the USB cable is bad?\n"); port_dev 2956 drivers/usb/core/hub.c if (port_dev->quirks & USB_PORT_QUIRK_FAST_ENUM) port_dev 3008 drivers/usb/core/hub.c static void usb_lock_port(struct usb_port *port_dev) port_dev 3009 drivers/usb/core/hub.c __acquires(&port_dev->status_lock) port_dev 3011 drivers/usb/core/hub.c mutex_lock(&port_dev->status_lock); port_dev 3012 drivers/usb/core/hub.c __acquire(&port_dev->status_lock); port_dev 3015 drivers/usb/core/hub.c static void usb_unlock_port(struct usb_port *port_dev) port_dev 3016 drivers/usb/core/hub.c __releases(&port_dev->status_lock) port_dev 3018 drivers/usb/core/hub.c mutex_unlock(&port_dev->status_lock); port_dev 3019 drivers/usb/core/hub.c __release(&port_dev->status_lock); port_dev 3048 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 3083 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "status %04x.%04x after resume, %d\n", port_dev 3263 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[udev->portnum - 1]; port_dev 3268 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 3320 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "can't suspend, status %d\n", status); port_dev 3350 drivers/usb/core/hub.c pm_runtime_put_sync(&port_dev->dev); port_dev 3354 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 3534 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[udev->portnum - 1]; port_dev 3540 drivers/usb/core/hub.c status = pm_runtime_get_sync(&port_dev->dev); port_dev 3548 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 3565 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "can't resume, status %d\n", status); port_dev 3615 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 3640 drivers/usb/core/hub.c __must_hold(&port_dev->status_lock) port_dev 3642 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port - 1]; port_dev 3650 drivers/usb/core/hub.c udev = port_dev->child; port_dev 3668 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 3670 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 3677 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "resume, status %d\n", ret); port_dev 3708 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 3709 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 3712 drivers/usb/core/hub.c dev_warn(&port_dev->dev, "device %s not suspended yet\n", port_dev 4229 drivers/usb/core/hub.c struct usb_port *port_dev; port_dev 4253 drivers/usb/core/hub.c port_dev = hub->ports[udev->portnum - 1]; port_dev 4255 drivers/usb/core/hub.c if (port_dev->usb3_lpm_u1_permit) port_dev 4258 drivers/usb/core/hub.c if (port_dev->usb3_lpm_u2_permit) port_dev 4279 drivers/usb/core/hub.c struct usb_port *port_dev) port_dev 4281 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 4285 drivers/usb/core/hub.c ret = hub_set_port_link_state(hub, port_dev->portnum, port_dev 4305 drivers/usb/core/hub.c struct usb_port *port_dev) { } port_dev 4349 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 4355 drivers/usb/core/hub.c hub_usb3_port_prepare_disable(hub, port_dev); port_dev 4356 drivers/usb/core/hub.c ret = hub_set_port_link_state(hub, port_dev->portnum, port_dev 4363 drivers/usb/core/hub.c if (port_dev->child && set_state) port_dev 4364 drivers/usb/core/hub.c usb_set_device_state(port_dev->child, USB_STATE_NOTATTACHED); port_dev 4366 drivers/usb/core/hub.c dev_err(&port_dev->dev, "cannot disable (err = %d)\n", ret); port_dev 4405 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 4434 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "debounce total %dms stable %dms status 0x%x\n", port_dev 4540 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 4662 drivers/usb/core/hub.c if (use_new_scheme(udev, retry_counter, port_dev)) { port_dev 4922 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 4923 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 4945 drivers/usb/core/hub.c dev_warn(&port_dev->dev, "%dmA is over %umA budget!\n", port_dev 4965 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 4966 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 4973 drivers/usb/core/hub.c usb_disconnect(&port_dev->child); port_dev 4990 drivers/usb/core/hub.c dev_err(&port_dev->dev, "connect-debounce failed\n"); port_dev 5010 drivers/usb/core/hub.c && !port_dev->port_owner) port_dev 5030 drivers/usb/core/hub.c dev_err(&port_dev->dev, port_dev 5053 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5055 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 5116 drivers/usb/core/hub.c port_dev->child = udev; port_dev 5126 drivers/usb/core/hub.c port_dev->child = NULL; port_dev 5157 drivers/usb/core/hub.c dev_info(&port_dev->dev, "attempt power cycle\n"); port_dev 5168 drivers/usb/core/hub.c dev_err(&port_dev->dev, port_dev 5190 drivers/usb/core/hub.c __must_hold(&port_dev->status_lock) port_dev 5192 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 5193 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 5196 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "status %04x, change %04x, %s\n", portstatus, port_dev 5222 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 5224 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5236 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 5238 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5242 drivers/usb/core/hub.c static void port_over_current_notify(struct usb_port *port_dev) port_dev 5248 drivers/usb/core/hub.c sysfs_notify(&port_dev->dev.kobj, NULL, "over_current_count"); port_dev 5250 drivers/usb/core/hub.c hub_dev = port_dev->dev.parent; port_dev 5255 drivers/usb/core/hub.c port_dev_path = kobject_get_path(&port_dev->dev.kobj, GFP_KERNEL); port_dev 5264 drivers/usb/core/hub.c port_dev->over_current_count); port_dev 5279 drivers/usb/core/hub.c __must_hold(&port_dev->status_lock) port_dev 5282 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 5283 drivers/usb/core/hub.c struct usb_device *udev = port_dev->child; port_dev 5301 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "enable change, status %08x\n", port_dev 5312 drivers/usb/core/hub.c dev_err(&port_dev->dev, "disabled by hub (EMI?), re-enabling...\n"); port_dev 5319 drivers/usb/core/hub.c port_dev->over_current_count++; port_dev 5320 drivers/usb/core/hub.c port_over_current_notify(port_dev); port_dev 5322 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "over-current change #%u\n", port_dev 5323 drivers/usb/core/hub.c port_dev->over_current_count); port_dev 5330 drivers/usb/core/hub.c dev_err(&port_dev->dev, "over-current condition\n"); port_dev 5334 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "reset change\n"); port_dev 5339 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "warm reset change\n"); port_dev 5344 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "link state change\n"); port_dev 5349 drivers/usb/core/hub.c dev_warn(&port_dev->dev, "config error\n"); port_dev 5355 drivers/usb/core/hub.c if (!pm_runtime_active(&port_dev->dev)) port_dev 5366 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "do warm reset\n"); port_dev 5373 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 5377 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5446 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[i - 1]; port_dev 5460 drivers/usb/core/hub.c pm_runtime_get_noresume(&port_dev->dev); port_dev 5461 drivers/usb/core/hub.c pm_runtime_barrier(&port_dev->dev); port_dev 5462 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5464 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 5465 drivers/usb/core/hub.c pm_runtime_put_sync(&port_dev->dev); port_dev 5872 drivers/usb/core/hub.c struct usb_port *port_dev; port_dev 5888 drivers/usb/core/hub.c port_dev = hub->ports[udev->portnum - 1]; port_dev 5923 drivers/usb/core/hub.c usb_lock_port(port_dev); port_dev 5925 drivers/usb/core/hub.c usb_unlock_port(port_dev); port_dev 6028 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[i - 1]; port_dev 6030 drivers/usb/core/hub.c connect_type = port_dev->connect_type; port_dev 6035 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "DeviceRemovable is changed to 1 according to platform information.\n"); port_dev 6044 drivers/usb/core/hub.c struct usb_port *port_dev = hub->ports[i - 1]; port_dev 6046 drivers/usb/core/hub.c connect_type = port_dev->connect_type; port_dev 6051 drivers/usb/core/hub.c dev_dbg(&port_dev->dev, "DeviceRemovable is changed to 1 according to platform information.\n"); port_dev 22 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 24 drivers/usb/core/port.c return sprintf(buf, "0x%08x\n", port_dev->location); port_dev 31 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 34 drivers/usb/core/port.c switch (port_dev->connect_type) { port_dev 56 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 58 drivers/usb/core/port.c return sprintf(buf, "%u\n", port_dev->over_current_count); port_dev 65 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 67 drivers/usb/core/port.c return sprintf(buf, "%08x\n", port_dev->quirks); port_dev 73 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 79 drivers/usb/core/port.c port_dev->quirks = value; port_dev 87 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 90 drivers/usb/core/port.c if (port_dev->usb3_lpm_u1_permit) { port_dev 91 drivers/usb/core/port.c if (port_dev->usb3_lpm_u2_permit) port_dev 96 drivers/usb/core/port.c if (port_dev->usb3_lpm_u2_permit) port_dev 109 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 110 drivers/usb/core/port.c struct usb_device *udev = port_dev->child; port_dev 114 drivers/usb/core/port.c port_dev->usb3_lpm_u1_permit = 1; port_dev 115 drivers/usb/core/port.c port_dev->usb3_lpm_u2_permit = 1; port_dev 118 drivers/usb/core/port.c port_dev->usb3_lpm_u1_permit = 1; port_dev 119 drivers/usb/core/port.c port_dev->usb3_lpm_u2_permit = 0; port_dev 122 drivers/usb/core/port.c port_dev->usb3_lpm_u1_permit = 0; port_dev 123 drivers/usb/core/port.c port_dev->usb3_lpm_u2_permit = 1; port_dev 126 drivers/usb/core/port.c port_dev->usb3_lpm_u1_permit = 0; port_dev 127 drivers/usb/core/port.c port_dev->usb3_lpm_u2_permit = 0; port_dev 184 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 186 drivers/usb/core/port.c kfree(port_dev->req); port_dev 187 drivers/usb/core/port.c kfree(port_dev); port_dev 193 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 197 drivers/usb/core/port.c struct usb_device *udev = port_dev->child; port_dev 198 drivers/usb/core/port.c struct usb_port *peer = port_dev->peer; port_dev 199 drivers/usb/core/port.c int port1 = port_dev->portnum; port_dev 213 drivers/usb/core/port.c if (!port_dev->is_superspeed && peer) port_dev 233 drivers/usb/core/port.c dev_dbg(&port_dev->dev, "reconnect timeout\n"); port_dev 240 drivers/usb/core/port.c pm_runtime_get_noresume(&port_dev->dev); port_dev 252 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 256 drivers/usb/core/port.c struct usb_port *peer = port_dev->peer; port_dev 257 drivers/usb/core/port.c int port1 = port_dev->portnum; port_dev 265 drivers/usb/core/port.c if (dev_pm_qos_flags(&port_dev->dev, PM_QOS_FLAG_NO_POWER_OFF) port_dev 278 drivers/usb/core/port.c if (!port_dev->is_superspeed) port_dev 287 drivers/usb/core/port.c if (!port_dev->is_superspeed && peer) port_dev 296 drivers/usb/core/port.c struct usb_port *port_dev = to_usb_port(dev); port_dev 298 drivers/usb/core/port.c if (port_dev->child) port_dev 299 drivers/usb/core/port.c usb_disable_usb2_hardware_lpm(port_dev->child); port_dev 449 drivers/usb/core/port.c struct usb_port *port_dev = p, *peer; port_dev 451 drivers/usb/core/port.c struct usb_device *hdev = to_usb_device(port_dev->dev.parent->parent); port_dev 464 drivers/usb/core/port.c if (peer && peer->location == port_dev->location) { port_dev 465 drivers/usb/core/port.c link_peers_report(port_dev, peer); port_dev 480 drivers/usb/core/port.c struct usb_port *port_dev = hub->ports[port1 - 1], *peer; port_dev 491 drivers/usb/core/port.c if (port_dev->location) { port_dev 493 drivers/usb/core/port.c usb_for_each_dev(port_dev, match_location); port_dev 528 drivers/usb/core/port.c link_peers_report(port_dev, peer); port_dev 533 drivers/usb/core/port.c struct usb_port *port_dev; port_dev 537 drivers/usb/core/port.c port_dev = kzalloc(sizeof(*port_dev), GFP_KERNEL); port_dev 538 drivers/usb/core/port.c if (!port_dev) port_dev 541 drivers/usb/core/port.c port_dev->req = kzalloc(sizeof(*(port_dev->req)), GFP_KERNEL); port_dev 542 drivers/usb/core/port.c if (!port_dev->req) { port_dev 543 drivers/usb/core/port.c kfree(port_dev); port_dev 547 drivers/usb/core/port.c hub->ports[port1 - 1] = port_dev; port_dev 548 drivers/usb/core/port.c port_dev->portnum = port1; port_dev 550 drivers/usb/core/port.c port_dev->dev.parent = hub->intfdev; port_dev 552 drivers/usb/core/port.c port_dev->usb3_lpm_u1_permit = 1; port_dev 553 drivers/usb/core/port.c port_dev->usb3_lpm_u2_permit = 1; port_dev 554 drivers/usb/core/port.c port_dev->dev.groups = port_dev_usb3_group; port_dev 556 drivers/usb/core/port.c port_dev->dev.groups = port_dev_group; port_dev 557 drivers/usb/core/port.c port_dev->dev.type = &usb_port_device_type; port_dev 558 drivers/usb/core/port.c port_dev->dev.driver = &usb_port_driver; port_dev 560 drivers/usb/core/port.c port_dev->is_superspeed = 1; port_dev 561 drivers/usb/core/port.c dev_set_name(&port_dev->dev, "%s-port%d", dev_name(&hub->hdev->dev), port_dev 563 drivers/usb/core/port.c mutex_init(&port_dev->status_lock); port_dev 564 drivers/usb/core/port.c retval = device_register(&port_dev->dev); port_dev 566 drivers/usb/core/port.c put_device(&port_dev->dev); port_dev 571 drivers/usb/core/port.c retval = dev_pm_qos_add_request(&port_dev->dev, port_dev->req, port_dev 574 drivers/usb/core/port.c device_unregister(&port_dev->dev); port_dev 585 drivers/usb/core/port.c pm_runtime_set_active(&port_dev->dev); port_dev 586 drivers/usb/core/port.c pm_runtime_get_noresume(&port_dev->dev); port_dev 587 drivers/usb/core/port.c pm_runtime_enable(&port_dev->dev); port_dev 588 drivers/usb/core/port.c device_enable_async_suspend(&port_dev->dev); port_dev 598 drivers/usb/core/port.c retval = dev_pm_qos_expose_flags(&port_dev->dev, port_dev 601 drivers/usb/core/port.c dev_warn(&port_dev->dev, "failed to expose pm_qos_no_poweroff\n"); port_dev 606 drivers/usb/core/port.c retval = dev_pm_qos_remove_request(port_dev->req); port_dev 608 drivers/usb/core/port.c kfree(port_dev->req); port_dev 609 drivers/usb/core/port.c port_dev->req = NULL; port_dev 616 drivers/usb/core/port.c struct usb_port *port_dev = hub->ports[port1 - 1]; port_dev 619 drivers/usb/core/port.c peer = port_dev->peer; port_dev 621 drivers/usb/core/port.c unlink_peers(port_dev, peer); port_dev 622 drivers/usb/core/port.c device_unregister(&port_dev->dev); port_dev 55 drivers/usb/core/usb-acpi.c struct usb_port *port_dev; port_dev 63 drivers/usb/core/usb-acpi.c port_dev = hub->ports[port1 - 1]; port_dev 76 drivers/usb/core/usb-acpi.c dev_dbg(&port_dev->dev, "acpi: power was set to %d\n", enable); port_dev 78 drivers/usb/core/usb-acpi.c dev_dbg(&port_dev->dev, "acpi: power failed to be set\n"); port_dev 143 drivers/usb/core/usb-acpi.c usb_acpi_get_companion_for_port(struct usb_port *port_dev) port_dev 151 drivers/usb/core/usb-acpi.c udev = to_usb_device(port_dev->dev.parent->parent); port_dev 161 drivers/usb/core/usb-acpi.c port_dev->portnum); port_dev 169 drivers/usb/core/usb-acpi.c port1 = port_dev->portnum; port_dev 176 drivers/usb/core/usb-acpi.c usb_acpi_find_companion_for_port(struct usb_port *port_dev) port_dev 183 drivers/usb/core/usb-acpi.c adev = usb_acpi_get_companion_for_port(port_dev); port_dev 190 drivers/usb/core/usb-acpi.c port_dev->location = USB_ACPI_LOCATION_VALID port_dev 192 drivers/usb/core/usb-acpi.c port_dev->connect_type = usb_acpi_get_connect_type(handle, pld); port_dev 203 drivers/usb/core/usb-acpi.c struct usb_port *port_dev; port_dev 220 drivers/usb/core/usb-acpi.c port_dev = hub->ports[udev->portnum - 1]; port_dev 221 drivers/usb/core/usb-acpi.c return usb_acpi_get_companion_for_port(port_dev); port_dev 528 drivers/usb/gadget/udc/aspeed-vhub/dev.c device_unregister(d->port_dev); port_dev 554 drivers/usb/gadget/udc/aspeed-vhub/dev.c d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); port_dev 555 drivers/usb/gadget/udc/aspeed-vhub/dev.c if (!d->port_dev) port_dev 557 drivers/usb/gadget/udc/aspeed-vhub/dev.c device_initialize(d->port_dev); port_dev 558 drivers/usb/gadget/udc/aspeed-vhub/dev.c d->port_dev->release = ast_vhub_dev_release; port_dev 559 drivers/usb/gadget/udc/aspeed-vhub/dev.c d->port_dev->parent = parent; port_dev 560 drivers/usb/gadget/udc/aspeed-vhub/dev.c dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); port_dev 561 drivers/usb/gadget/udc/aspeed-vhub/dev.c rc = device_add(d->port_dev); port_dev 577 drivers/usb/gadget/udc/aspeed-vhub/dev.c rc = usb_add_gadget_udc(d->port_dev, &d->gadget); port_dev 584 drivers/usb/gadget/udc/aspeed-vhub/dev.c device_del(d->port_dev); port_dev 586 drivers/usb/gadget/udc/aspeed-vhub/dev.c put_device(d->port_dev); port_dev 350 drivers/usb/gadget/udc/aspeed-vhub/vhub.h struct device *port_dev; port_dev 332 drivers/usb/typec/bus.c struct device *port_dev = &alt->partner->adev.dev; port_dev 336 drivers/usb/typec/bus.c err = sysfs_create_link(&dev->kobj, &port_dev->kobj, "port"); port_dev 340 drivers/usb/typec/bus.c err = sysfs_create_link(&port_dev->kobj, &dev->kobj, "partner"); port_dev 230 drivers/usb/typec/class.c struct device *port_dev; port_dev 235 drivers/usb/typec/class.c port_dev = device_connection_find_match(dev, NULL, NULL, port_dev 237 drivers/usb/typec/class.c if (IS_ERR_OR_NULL(port_dev)) port_dev 238 drivers/usb/typec/class.c return port_dev ? ERR_CAST(port_dev) : ERR_PTR(-ENODEV); port_dev 241 drivers/usb/typec/class.c altmode_dev = device_find_child(port_dev, &id, altmode_match); port_dev 243 drivers/usb/typec/class.c put_device(port_dev); port_dev 88 include/linux/if_team.h static inline bool team_port_dev_txable(const struct net_device *port_dev) port_dev 94 include/linux/if_team.h port = team_port_get_rcu(port_dev); port_dev 9 include/net/lag.h static inline bool net_lag_port_dev_txable(const struct net_device *port_dev) port_dev 11 include/net/lag.h if (netif_is_team_port(port_dev)) port_dev 12 include/net/lag.h return team_port_dev_txable(port_dev); port_dev 14 include/net/lag.h return bond_is_active_slave_dev(port_dev); port_dev 247 include/scsi/libsas.h struct domain_device *port_dev; port_dev 393 net/bridge/br_mdb.c struct net_device *port_dev; port_dev 398 net/bridge/br_mdb.c port_dev = __dev_get_by_index(net, entry->ifindex); port_dev 406 net/bridge/br_mdb.c mdb.obj.orig_dev = port_dev; port_dev 407 net/bridge/br_mdb.c if (p && port_dev && type == RTM_NEWMDB) { port_dev 414 net/bridge/br_mdb.c if (switchdev_port_obj_add(port_dev, &mdb.obj, NULL)) port_dev 417 net/bridge/br_mdb.c } else if (p && port_dev && type == RTM_DELMDB) { port_dev 418 net/bridge/br_mdb.c switchdev_port_obj_del(port_dev, &mdb.obj);