Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/usb/core/
H A Dport.c24 struct usb_port *port_dev = to_usb_port(dev); in early_stop_show() local
26 return sysfs_emit(buf, "%s\n", port_dev->early_stop ? "yes" : "no"); in early_stop_show()
32 struct usb_port *port_dev = to_usb_port(dev); in early_stop_store() local
39 port_dev->early_stop = 1; in early_stop_store()
41 port_dev->early_stop = 0; in early_stop_store()
50 struct usb_port *port_dev = to_usb_port(dev); in disable_show() local
54 int port1 = port_dev->portnum; in disable_show()
102 struct usb_port *port_dev = to_usb_port(dev); in disable_store() local
106 int port1 = port_dev->portnum; in disable_store()
137 if (disabled && port_dev->child) in disable_store()
[all …]
H A Dusb-acpi.c116 struct usb_port *port_dev; in usb_acpi_set_power_state() local
124 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state()
137 dev_dbg(&port_dev->dev, "acpi: power was set to %d\n", enable); in usb_acpi_set_power_state()
139 dev_dbg(&port_dev->dev, "acpi: power failed to be set\n"); in usb_acpi_set_power_state()
189 usb_acpi_get_companion_for_port(struct usb_port *port_dev) in usb_acpi_get_companion_for_port() argument
197 udev = to_usb_device(port_dev->dev.parent->parent); in usb_acpi_get_companion_for_port()
207 port_dev->portnum); in usb_acpi_get_companion_for_port()
215 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port()
222 usb_acpi_find_companion_for_port(struct usb_port *port_dev) in usb_acpi_find_companion_for_port() argument
229 adev = usb_acpi_get_companion_for_port(port_dev); in usb_acpi_find_companion_for_port()
[all …]
H A Dhub.c489 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() local
494 dev_dbg(&port_dev->dev, "indicator %s status %d\n", in set_port_led()
723 struct usb_port *port_dev; in usb_wakeup_notification() local
730 port_dev = hub->ports[portnum - 1]; in usb_wakeup_notification()
731 if (port_dev && port_dev->child) in usb_wakeup_notification()
732 pm_wakeup_event(&port_dev->child->dev, 0); in usb_wakeup_notification()
1147 struct usb_port *port_dev = hub->ports[port1 - 1]; in hub_activate() local
1148 struct usb_device *udev = port_dev->child; in hub_activate()
1157 dev_dbg(&port_dev in hub_activate()
1690 struct usb_port *port_dev = hub->ports[i]; hub_configure() local
2072 struct usb_port *port_dev; update_port_device_state() local
2259 struct usb_port *port_dev = NULL; usb_disconnect() local
2642 struct usb_port *port_dev = hub->ports[port1 - 1]; usb_new_device() local
2843 use_new_scheme(struct usb_device * udev,int retry,struct usb_port * port_dev) use_new_scheme() argument
2990 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_reset() local
3146 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_stop_enumerate() local
3184 usb_lock_port(struct usb_port * port_dev) usb_lock_port() argument
3191 usb_unlock_port(struct usb_port * port_dev) usb_unlock_port() argument
3224 struct usb_port *port_dev = hub->ports[port1 - 1]; check_port_resume_type() local
3439 struct usb_port *port_dev = hub->ports[udev->portnum - 1]; usb_port_suspend() local
3731 struct usb_port *port_dev = hub->ports[udev->portnum - 1]; usb_port_resume() local
3839 struct usb_port *port_dev = hub->ports[port - 1]; hub_handle_remote_wakeup() local
3905 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_suspend() local
4453 struct usb_port *port_dev; usb_enable_lpm() local
4503 hub_usb3_port_prepare_disable(struct usb_hub * hub,struct usb_port * port_dev) hub_usb3_port_prepare_disable() argument
4529 hub_usb3_port_prepare_disable(struct usb_hub * hub,struct usb_port * port_dev) hub_usb3_port_prepare_disable() argument
4578 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_disable() local
4634 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_debounce() local
4841 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_init() local
5204 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_power_remaining() local
5332 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_connect() local
5575 struct usb_port *port_dev = hub->ports[port1 - 1]; hub_port_connect_change() local
5646 port_over_current_notify(struct usb_port * port_dev) port_over_current_notify() argument
5684 struct usb_port *port_dev = hub->ports[port1 - 1]; port_event() local
5866 struct usb_port *port_dev = hub->ports[i - 1]; hub_event() local
6239 struct usb_port *port_dev; usb_reset_device() local
6400 struct usb_port *port_dev = hub->ports[i - 1]; usb_hub_adjust_deviceremovable() local
6416 struct usb_port *port_dev = hub->ports[i - 1]; usb_hub_adjust_deviceremovable() local
[all...]
/openbmc/linux/drivers/tty/serial/
H A Dserial_base_bus.c139 struct serial_port_device *port_dev = to_serial_base_port_device(dev); in serial_base_port_release() local
141 kfree(port_dev); in serial_base_port_release()
147 struct serial_port_device *port_dev; in serial_base_port_add() local
151 port_dev = kzalloc(sizeof(*port_dev), GFP_KERNEL); in serial_base_port_add()
152 if (!port_dev) in serial_base_port_add()
163 kfree(port_dev); in serial_base_port_add()
169 err = serial_base_device_init(port, &port_dev->dev, in serial_base_port_add()
176 port_dev->port = port; in serial_base_port_add()
178 err = device_add(&port_dev->dev); in serial_base_port_add()
182 return port_dev; in serial_base_port_add()
[all …]
H A Dserial_port.c31 struct serial_port_device *port_dev = to_serial_base_port_device(dev); in serial_port_runtime_resume() local
35 port = port_dev->port; in serial_port_runtime_resume()
42 if (!port_dev->tx_enabled) in serial_port_runtime_resume()
58 struct serial_port_device *port_dev = to_serial_base_port_device(dev); in serial_port_runtime_suspend() local
59 struct uart_port *port = port_dev->port; in serial_port_runtime_suspend()
74 if (!port_dev->tx_enabled) { in serial_port_runtime_suspend()
91 struct serial_port_device *port_dev, in serial_base_port_set_tx() argument
97 port_dev->tx_enabled = enabled; in serial_base_port_set_tx()
103 struct serial_port_device *port_dev = port->port_dev; in serial_base_port_startup() local
105 serial_base_port_set_tx(port, port_dev, true); in serial_base_port_startup()
[all …]
H A Dserial_core.c139 struct serial_port_device *port_dev; in __uart_start() local
145 port_dev = port->port_dev; in __uart_start()
148 err = pm_runtime_get(&port_dev->dev); in __uart_start()
150 pm_runtime_put_noidle(&port_dev->dev); in __uart_start()
161 pm_runtime_mark_last_busy(&port_dev->dev); in __uart_start()
162 pm_runtime_put_autosuspend(&port_dev->dev); in __uart_start()
3296 uport->port_dev = NULL; in serial_core_remove_one_port()
3339 serial_core_get_ctrl_dev(struct serial_port_device *port_dev) in serial_core_get_ctrl_dev() argument
3341 struct device *dev = &port_dev->dev; in serial_core_get_ctrl_dev()
3361 if (!state->uart_port || !state->uart_port->port_dev) in serial_core_ctrl_find()
[all …]
H A Dserial_base.h45 void serial_base_port_device_remove(struct serial_port_device *port_dev);
/openbmc/linux/include/net/
H A 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()
/openbmc/linux/drivers/scsi/libsas/
H A Dsas_port.c74 sas_phy_set_target(phy, port->port_dev); in sas_form_port_add_phy()
109 struct domain_device *port_dev = NULL; in sas_form_port() local
140 port_dev = port->port_dev; in sas_form_port()
154 port_dev = port->port_dev; in sas_form_port()
183 if (port_dev) in sas_form_port()
184 port_dev->pathways = port->num_phys; in sas_form_port()
192 if (port_dev && dev_is_expander(port_dev->dev_type)) { in sas_form_port()
193 struct expander_device *ex_dev = &port_dev->ex_dev; in sas_form_port()
221 dev = port->port_dev; in sas_deform_port()
H A 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()
H A Dsas_discover.c137 port->port_dev = dev; in sas_get_port_device()
319 dev->port->port_dev = NULL; in sas_unregister_common_dev()
466 if (port->port_dev) in sas_discover_domain()
472 dev = port->port_dev; in sas_discover_domain()
503 port->port_dev = NULL; in sas_discover_domain()
518 struct domain_device *ddev = port->port_dev; in sas_revalidate_domain()
H A Dsas_init.c200 dev = asd_phy->port->port_dev; in sas_try_ata_reset()
394 struct domain_device *dev = port->port_dev; in sas_resume_insert_broadcast_ha()
/openbmc/linux/drivers/net/team/
H A Dteam.c49 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()
1135 struct net_device *port_dev);
1137 static int team_port_add(struct team *team, struct net_device *port_dev, in team_port_add() argument
1142 char *portname = port_dev->name; in team_port_add()
1145 if (port_dev->flags & IFF_LOOPBACK) { in team_port_add()
1152 if (netif_is_team_port(port_dev)) { in team_port_add()
1159 if (dev == port_dev) { in team_port_add()
[all …]
/openbmc/linux/arch/um/drivers/
H A 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()
/openbmc/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Ddev.c533 device_unregister(d->port_dev); in ast_vhub_del_dev()
569 d->port_dev = kzalloc(sizeof(struct device), GFP_KERNEL); in ast_vhub_init_dev()
570 if (!d->port_dev) { in ast_vhub_init_dev()
574 device_initialize(d->port_dev); in ast_vhub_init_dev()
575 d->port_dev->release = ast_vhub_dev_release; in ast_vhub_init_dev()
576 d->port_dev->parent = parent; in ast_vhub_init_dev()
577 dev_set_name(d->port_dev, "%s:p%d", dev_name(parent), idx + 1); in ast_vhub_init_dev()
578 rc = device_add(d->port_dev); in ast_vhub_init_dev()
595 rc = usb_add_gadget_udc(d->port_dev, &d->gadget); in ast_vhub_init_dev()
602 device_del(d->port_dev); in ast_vhub_init_dev()
[all …]
H A Dvhub.h350 struct device *port_dev; member
/openbmc/linux/drivers/net/
H A Dvrf.c1104 static int do_vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in do_vrf_add_slave() argument
1112 if (port_dev == dev_net(dev)->loopback_dev) { in do_vrf_add_slave()
1118 port_dev->priv_flags |= IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1119 ret = netdev_master_upper_dev_link(port_dev, dev, NULL, NULL, extack); in do_vrf_add_slave()
1123 cycle_netdev(port_dev, extack); in do_vrf_add_slave()
1128 port_dev->priv_flags &= ~IFF_L3MDEV_SLAVE; in do_vrf_add_slave()
1132 static int vrf_add_slave(struct net_device *dev, struct net_device *port_dev, in vrf_add_slave() argument
1135 if (netif_is_l3_master(port_dev)) { in vrf_add_slave()
1141 if (netif_is_l3_slave(port_dev)) in vrf_add_slave()
1144 return do_vrf_add_slave(dev, port_dev, extack); in vrf_add_slave()
[all …]
/openbmc/linux/drivers/usb/typec/
H A Dbus.c377 struct device *port_dev = &alt->partner->adev.dev; in typec_altmode_create_links() local
381 err = sysfs_create_link(&dev->kobj, &port_dev->kobj, "port"); in typec_altmode_create_links()
385 err = sysfs_create_link(&port_dev->kobj, &dev->kobj, "partner"); in typec_altmode_create_links()
/openbmc/linux/drivers/fpga/
H A Ddfl.c1624 struct platform_device *port_dev = pdata->dev; in dfl_fpga_feature_devs_remove() local
1627 if (!device_is_registered(&port_dev->dev)) { in dfl_fpga_feature_devs_remove()
1628 dfl_id_free(feature_dev_id_type(port_dev), in dfl_fpga_feature_devs_remove()
1629 port_dev->id); in dfl_fpga_feature_devs_remove()
1630 platform_device_put(port_dev); in dfl_fpga_feature_devs_remove()
1634 put_device(&port_dev->dev); in dfl_fpga_feature_devs_remove()
1664 struct platform_device *port_dev; in __dfl_fpga_cdev_find_port() local
1667 port_dev = pdata->dev; in __dfl_fpga_cdev_find_port()
1669 if (match(port_dev, data) && get_device(&port_dev->dev)) in __dfl_fpga_cdev_find_port()
1670 return port_dev; in __dfl_fpga_cdev_find_port()
/openbmc/linux/drivers/ata/
H A Dlibahci_platform.c584 struct platform_device *port_dev __maybe_unused; in ahci_platform_get_resources()
604 port_dev = of_find_device_by_node(child); in ahci_platform_get_resources()
606 if (port_dev) { in ahci_platform_get_resources()
608 &port_dev->dev); in ahci_platform_get_resources()
/openbmc/linux/include/linux/
H A 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()
/openbmc/qemu/hw/cxl/
H A Dcxl-mailbox-utils.c547 PCIDevice *port_dev; in cmd_get_physical_port_state() local
552 port_dev = pcie_find_port_by_pn(bus, in->ports[i]); in cmd_get_physical_port_state()
553 if (port_dev) { /* DSP */ in cmd_get_physical_port_state()
554 PCIDevice *ds_dev = pci_bridge_get_sec_bus(PCI_BRIDGE(port_dev)) in cmd_get_physical_port_state()
568 port_dev = PCI_DEVICE(usp); in cmd_get_physical_port_state()
577 if (!port_dev->exp.exp_cap) { in cmd_get_physical_port_state()
580 lnksta = port_dev->config_read(port_dev, in cmd_get_physical_port_state()
581 port_dev->exp.exp_cap + PCI_EXP_LNKSTA, in cmd_get_physical_port_state()
583 lnkcap = port_dev->config_read(port_dev, in cmd_get_physical_port_state()
584 port_dev->exp.exp_cap + PCI_EXP_LNKCAP, in cmd_get_physical_port_state()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c1267 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()
/openbmc/linux/drivers/scsi/hisi_sas/
H A Dhisi_sas_main.c1400 if (do_port_check && sas_port && sas_port->port_dev) { in hisi_sas_rescan_topology()
1401 struct domain_device *dev = sas_port->port_dev; in hisi_sas_rescan_topology()
1482 struct domain_device *port_dev = sas_port->port_dev; in hisi_sas_terminate_stp_reject() local
1485 if (!port_dev || !dev_is_expander(port_dev->dev_type)) in hisi_sas_terminate_stp_reject()
/openbmc/linux/include/scsi/
H A Dlibsas.h237 struct domain_device *port_dev; member

12