| /linux/drivers/usb/core/ |
| A D | port.c | 79 port_dev->quirks = value; in quirks_store() 186 kfree(port_dev->req); in usb_port_device_release() 187 kfree(port_dev); in usb_port_device_release() 298 if (port_dev->child) in usb_port_shutdown() 537 port_dev = kzalloc(sizeof(*port_dev), GFP_KERNEL); in usb_hub_create_port_device() 538 if (!port_dev) in usb_hub_create_port_device() 541 port_dev->req = kzalloc(sizeof(*(port_dev->req)), GFP_KERNEL); in usb_hub_create_port_device() 542 if (!port_dev->req) { in usb_hub_create_port_device() 543 kfree(port_dev); in usb_hub_create_port_device() 571 retval = dev_pm_qos_add_request(&port_dev->dev, port_dev->req, in usb_hub_create_port_device() [all …]
|
| A 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() 144 usb_acpi_get_companion_for_port(struct usb_port *port_dev) in usb_acpi_get_companion_for_port() argument 152 udev = to_usb_device(port_dev->dev.parent->parent); in usb_acpi_get_companion_for_port() 162 port_dev->portnum); in usb_acpi_get_companion_for_port() 170 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port() 184 adev = usb_acpi_get_companion_for_port(port_dev); in usb_acpi_find_companion_for_port() 191 port_dev->location = USB_ACPI_LOCATION_VALID in usb_acpi_find_companion_for_port() 204 struct usb_port *port_dev; in usb_acpi_find_companion_for_device() local 221 port_dev = hub->ports[udev->portnum - 1]; in usb_acpi_find_companion_for_device() [all …]
|
| A D | hub.c | 700 struct usb_port *port_dev; in usb_wakeup_notification() local 708 if (port_dev && port_dev->child) in usb_wakeup_notification() 2969 dev_err(&port_dev->dev, in hub_port_reset() 3021 dev_dbg(&port_dev->dev, in hub_port_reset() 3343 usb_lock_port(port_dev); in usb_port_suspend() 3406 dev_dbg(&port_dev->dev, in usb_port_suspend() 3644 usb_lock_port(port_dev); in usb_port_resume() 3746 udev = port_dev->child; in hub_handle_remote_wakeup() 3766 usb_lock_port(port_dev); in hub_handle_remote_wakeup() 5498 usb_lock_port(port_dev); in hub_port_connect_change() [all …]
|
| /linux/include/net/ |
| A 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/drivers/net/team/ |
| A D | team.c | 55 addr.ss_family = port_dev->type; in __set_port_dev_addr() 1153 if (dev == port_dev) { in team_port_add() 1190 port->dev = port_dev; in team_port_add() 1201 memcpy(port->orig.dev_addr, port_dev->dev_addr, port_dev->addr_len); in team_port_add() 1232 dev_disable_lro(port_dev); in team_port_add() 1305 dev_close(port_dev); in team_port_add() 1347 dev_uc_unsync(port_dev, dev); in team_port_del() 1349 dev_close(port_dev); in team_port_del() 2113 dev->type = port_dev->type; in team_setup_by_port() 2117 dev->mtu = port_dev->mtu; in team_setup_by_port() [all …]
|
| /linux/drivers/scsi/libsas/ |
| A 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()
|
| A 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()
|
| A D | sas_discover.c | 138 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()
|
| A D | sas_expander.c | 1628 res = sas_ex_discover_devices(port->port_dev, -1); in sas_ex_level_discovery() 2114 int sas_ex_revalidate_domain(struct domain_device *port_dev) in sas_ex_revalidate_domain() argument 2119 res = sas_find_bcast_dev(port_dev, &dev); in sas_ex_revalidate_domain()
|
| A D | sas_init.c | 203 dev = asd_phy->port->port_dev; in sas_try_ata_reset()
|
| /linux/arch/um/drivers/ |
| A 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/drivers/usb/gadget/udc/aspeed-vhub/ |
| A D | dev.c | 523 device_unregister(d->port_dev); in ast_vhub_del_dev() 559 d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); in ast_vhub_init_dev() 560 if (!d->port_dev) { in ast_vhub_init_dev() 564 device_initialize(d->port_dev); in ast_vhub_init_dev() 565 d->port_dev->release = ast_vhub_dev_release; in ast_vhub_init_dev() 566 d->port_dev->parent = parent; in ast_vhub_init_dev() 567 dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); in ast_vhub_init_dev() 568 rc = device_add(d->port_dev); in ast_vhub_init_dev() 584 rc = usb_add_gadget_udc(d->port_dev, &d->gadget); in ast_vhub_init_dev() 591 device_del(d->port_dev); in ast_vhub_init_dev() [all …]
|
| A D | vhub.h | 350 struct device *port_dev; member
|
| /linux/drivers/net/ |
| A D | vrf.c | 1128 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; 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() 1145 if (netif_is_l3_master(port_dev)) { in vrf_add_slave() 1151 if (netif_is_l3_slave(port_dev)) in vrf_add_slave() 1160 netdev_upper_dev_unlink(port_dev, dev); in do_vrf_del_slave() 1161 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_del_slave() 1163 cycle_netdev(port_dev, NULL); in do_vrf_del_slave() 1170 return do_vrf_del_slave(dev, port_dev); in vrf_del_slave() 1722 struct net_device *port_dev; in vrf_dellink() local [all …]
|
| /linux/drivers/fpga/ |
| A D | dfl.c | 1479 struct platform_device *port_dev = pdata->dev; in dfl_fpga_feature_devs_remove() local 1482 if (!device_is_registered(&port_dev->dev)) { in dfl_fpga_feature_devs_remove() 1483 dfl_id_free(feature_dev_id_type(port_dev), in dfl_fpga_feature_devs_remove() 1484 port_dev->id); in dfl_fpga_feature_devs_remove() 1485 platform_device_put(port_dev); in dfl_fpga_feature_devs_remove() 1489 put_device(&port_dev->dev); in dfl_fpga_feature_devs_remove() 1519 struct platform_device *port_dev; in __dfl_fpga_cdev_find_port() local 1522 port_dev = pdata->dev; in __dfl_fpga_cdev_find_port() 1524 if (match(port_dev, data) && get_device(&port_dev->dev)) in __dfl_fpga_cdev_find_port() 1525 return port_dev; in __dfl_fpga_cdev_find_port()
|
| /linux/drivers/usb/typec/ |
| A 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/drivers/ata/ |
| A D | libahci_platform.c | 482 struct platform_device *port_dev __maybe_unused; in ahci_platform_get_resources() 502 port_dev = of_find_device_by_node(child); in ahci_platform_get_resources() 504 if (port_dev) { in ahci_platform_get_resources() 506 &port_dev->dev); in ahci_platform_get_resources()
|
| /linux/include/linux/ |
| A 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/drivers/scsi/hisi_sas/ |
| A D | hisi_sas_main.c | 1471 if (do_port_check && sas_port && sas_port->port_dev) { in hisi_sas_rescan_topology() 1472 struct domain_device *dev = sas_port->port_dev; in hisi_sas_rescan_topology() 1561 struct domain_device *port_dev = sas_port->port_dev; in hisi_sas_terminate_stp_reject() local 1564 if (!port_dev || !dev_is_expander(port_dev->dev_type)) in hisi_sas_terminate_stp_reject()
|
| /linux/include/scsi/ |
| A D | libsas.h | 247 struct domain_device *port_dev; member
|
| /linux/drivers/net/usb/ |
| A D | hso.c | 2040 char port_dev[20]; in hso_log_port() local 2078 sprintf(port_dev, "%s", dev2net(hso_dev)->net->name); in hso_log_port() 2080 sprintf(port_dev, "/dev/%s%d", tty_filename, in hso_log_port() 2084 port_type, port_dev); in hso_log_port()
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| A D | spectrum_router.c | 8611 struct net_device *port_dev, in mlxsw_sp_inetaddr_port_vlan_event() argument 8615 struct mlxsw_sp_port *mlxsw_sp_port = netdev_priv(port_dev); in mlxsw_sp_inetaddr_port_vlan_event() 8634 static int mlxsw_sp_inetaddr_port_event(struct net_device *port_dev, in mlxsw_sp_inetaddr_port_event() argument 8638 if (netif_is_bridge_port(port_dev) || in mlxsw_sp_inetaddr_port_event() 8639 netif_is_lag_port(port_dev) || in mlxsw_sp_inetaddr_port_event() 8640 netif_is_ovs_port(port_dev)) in mlxsw_sp_inetaddr_port_event() 8643 return mlxsw_sp_inetaddr_port_vlan_event(port_dev, port_dev, event, in mlxsw_sp_inetaddr_port_event() 8652 struct net_device *port_dev; in __mlxsw_sp_inetaddr_lag_event() local 8656 netdev_for_each_lower_dev(lag_dev, port_dev, iter) { in __mlxsw_sp_inetaddr_lag_event() 8657 if (mlxsw_sp_port_dev_check(port_dev)) { in __mlxsw_sp_inetaddr_lag_event() [all …]
|
| A D | spectrum.c | 4368 struct net_device *port_dev, in mlxsw_sp_netdevice_port_event() argument 4374 return mlxsw_sp_netdevice_port_upper_event(lower_dev, port_dev, in mlxsw_sp_netdevice_port_event() 4377 return mlxsw_sp_netdevice_port_lower_event(port_dev, event, in mlxsw_sp_netdevice_port_event()
|
| /linux/drivers/net/ethernet/ibm/ehea/ |
| A D | ehea_main.c | 2944 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()
|
| /linux/drivers/net/ethernet/micrel/ |
| A D | ksz884x.c | 4866 struct net_device *port_dev; in netdev_tx_timeout() local 4871 port_dev = hw->port_info[port].pdev; in netdev_tx_timeout() 4872 if (netif_running(port_dev)) in netdev_tx_timeout()
|