/drivers/usb/core/ |
D | hub.c | 122 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state); 123 static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1, 439 int usb_clear_port_feature(struct usb_device *hdev, int port1, int feature) in usb_clear_port_feature() argument 442 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1, in usb_clear_port_feature() 449 static int set_port_feature(struct usb_device *hdev, int port1, int feature) in set_port_feature() argument 452 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, in set_port_feature() 476 static void set_port_led(struct usb_hub *hub, int port1, int selector) in set_port_led() argument 478 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() 481 status = set_port_feature(hub->hdev, (selector << 8) | port1, in set_port_led() 585 static int get_port_status(struct usb_device *hdev, int port1, in get_port_status() argument [all …]
|
D | port.c | 226 int port1 = port_dev->portnum; in usb_port_runtime_resume() local 232 set_bit(port1, hub->power_bits); in usb_port_runtime_resume() 247 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume() 259 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume() 262 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume() 266 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume() 284 int port1 = port_dev->portnum; in usb_port_runtime_suspend() local 303 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend() 304 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend() 306 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend() [all …]
|
D | usb-acpi.c | 29 int port1 = index + 1; in usb_acpi_power_manageable() local 32 port1); in usb_acpi_power_manageable() 63 int port1 = index + 1; in usb_acpi_port_lpm_incapable() local 71 port_handle = usb_get_hub_port_acpi_handle(hdev, port1); in usb_acpi_port_lpm_incapable() 73 dev_dbg(&hdev->dev, "port-%d no acpi handle\n", port1); in usb_acpi_port_lpm_incapable() 80 port1, USB_DSM_DISABLE_U1_U2_FOR_PORT); in usb_acpi_port_lpm_incapable() 91 dev_dbg(&hdev->dev, "evaluate port-%d _DSM failed\n", port1); in usb_acpi_port_lpm_incapable() 123 int port1 = index + 1; in usb_acpi_set_power_state() local 128 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state() 130 port_handle = (acpi_handle) usb_get_hub_port_acpi_handle(hdev, port1); in usb_acpi_set_power_state() [all …]
|
D | hub.h | 118 int port1); 120 int port1); 122 int port1, bool set); 124 extern int hub_port_debounce(struct usb_hub *hub, int port1, 127 int port1, int feature); 162 int port1) in hub_port_debounce_be_connected() argument 164 return hub_port_debounce(hub, port1, true); in hub_port_debounce_be_connected() 168 int port1) in hub_port_debounce_be_stable() argument 170 return hub_port_debounce(hub, port1, false); in hub_port_debounce_be_stable()
|
D | usb.c | 697 struct usb_bus *bus, unsigned port1) in usb_alloc_dev() argument 702 unsigned raw_port = port1; in usb_alloc_dev() 756 "%d", port1); in usb_alloc_dev() 761 "%s.%d", parent->devpath, port1); in usb_alloc_dev() 763 if (port1 < 15) in usb_alloc_dev() 765 (port1 << ((parent->level - 1)*4)); in usb_alloc_dev() 777 port1); in usb_alloc_dev() 784 dev->portnum = port1; in usb_alloc_dev()
|
D | of.c | 25 struct device_node *usb_of_get_device_node(struct usb_device *hub, int port1) in usb_of_get_device_node() argument 34 if (reg == port1) in usb_of_get_device_node()
|
D | ledtrig-usbport.c | 130 struct usb_device *usb_dev, int port1) in usbport_trig_port_observed() argument 146 port_np = usb_of_get_device_node(usb_dev, port1); in usbport_trig_port_observed()
|
/drivers/usb/host/ |
D | sl811-hcd.c | 84 if (sl811->port1 & USB_PORT_STAT_POWER) in port_power() 87 sl811->port1 = USB_PORT_STAT_POWER; in port_power() 90 sl811->port1 = 0; in port_power() 404 if (sl811->port1 & USB_PORT_STAT_SUSPEND) in start_transfer() 721 sl811->port1 &= ~USB_PORT_STAT_CONNECTION; in sl811h_irq() 723 sl811->port1 |= USB_PORT_STAT_CONNECTION; in sl811h_irq() 725 sl811->port1 |= USB_PORT_STAT_C_CONNECTION << 16; in sl811h_irq() 728 if (sl811->port1 & USB_PORT_STAT_SUSPEND) { in sl811h_irq() 730 sl811->port1 |= USB_PORT_STAT_C_SUSPEND << 16; in sl811h_irq() 737 if (sl811->port1 & USB_PORT_STAT_ENABLE) in sl811h_irq() [all …]
|
D | sl811.h | 145 u32 port1; member
|
/drivers/gpu/drm/ |
D | drm_of.c | 376 int drm_of_lvds_get_dual_link_pixel_order(const struct device_node *port1, in drm_of_lvds_get_dual_link_pixel_order() argument 381 if (!port1 || !port2) in drm_of_lvds_get_dual_link_pixel_order() 384 remote_p1_pt = drm_of_lvds_get_remote_pixels_type(port1); in drm_of_lvds_get_dual_link_pixel_order()
|
/drivers/watchdog/ |
D | pcwd.c | 810 int port1, last_port1; /* Register 1 for REV C cards */ in pcwd_isa_match() local 825 port1 = inb_p(base_addr + 1); /* For REV C boards */ in pcwd_isa_match() 826 if (port0 != 0xff || port1 != 0xff) { in pcwd_isa_match() 833 last_port1 = port1; in pcwd_isa_match() 836 port1 = inb_p(base_addr + 1); in pcwd_isa_match() 840 (port1 ^ last_port1) & WD_REVC_HRBT) { in pcwd_isa_match()
|
/drivers/platform/x86/ |
D | hdaps.c | 166 static int __hdaps_read_pair(unsigned int port1, unsigned int port2, in __hdaps_read_pair() argument 174 *x = inw(port1); in __hdaps_read_pair() 191 static int hdaps_read_pair(unsigned int port1, unsigned int port2, in hdaps_read_pair() argument 197 ret = __hdaps_read_pair(port1, port2, val1, val2); in hdaps_read_pair()
|
/drivers/media/tuners/ |
D | tda9887.c | 433 static unsigned int port1 = UNSET; variable 438 module_param(port1, int, 0644); 448 if (UNSET != port1) { in tda9887_set_insmod() 449 if (port1) in tda9887_set_insmod()
|
D | tea5767.h | 19 unsigned int port1:1; member
|
D | tea5767.c | 200 if (priv->ctrl.port1) in set_radio_freq() 454 priv->ctrl.port1 = 1; in tea5767_attach()
|
/drivers/usb/misc/ |
D | lvstest.c | 86 int port1, int feature) in lvs_rh_clear_port_feature() argument 89 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1, in lvs_rh_clear_port_feature() 94 int port1, int feature) in lvs_rh_set_port_feature() argument 97 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, in lvs_rh_set_port_feature()
|
D | cypress_cy7c63.c | 194 static DEVICE_ATTR_RW(port1);
|
/drivers/char/ |
D | sonypi.c | 142 u16 port1; member 1221 while (check_ioport && check->port1) { in sonypi_setup_ioports() 1222 if (!request_region(check->port1, in sonypi_setup_ioports() 1227 check->port1); in sonypi_setup_ioports() 1230 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports() 1234 while (ioport_list->port1) { in sonypi_setup_ioports() 1236 if (request_region(ioport_list->port1, in sonypi_setup_ioports() 1239 dev->ioport1 = ioport_list->port1; in sonypi_setup_ioports()
|
/drivers/gpu/drm/rcar-du/ |
D | rcar_lvds.c | 620 struct device_node *port0, *port1; in rcar_lvds_parse_dt_companion() local 649 port1 = of_graph_get_port_by_id(companion, 1); in rcar_lvds_parse_dt_companion() 650 dual_link = drm_of_lvds_get_dual_link_pixel_order(port0, port1); in rcar_lvds_parse_dt_companion() 652 of_node_put(port1); in rcar_lvds_parse_dt_companion()
|
/drivers/parport/ |
D | parport_pc.c | 2410 unsigned port1, port2; in sio_via_probe() local 2476 port1 = inb(VIA_CONFIG_DATA) << 2; in sio_via_probe() 2479 port1); in sio_via_probe() 2480 if (port1 == 0x3BC && have_epp) { in sio_via_probe() 2484 port1 = 0x378; in sio_via_probe() 2520 switch (port1) { in sio_via_probe() 2529 port1); in sio_via_probe() 2547 if (parport_pc_probe_port(port1, port2, irq, dma, &pdev->dev, 0)) { in sio_via_probe() 2548 pr_info("parport_pc: VIA parallel port: io=0x%X", port1); in sio_via_probe() 2558 port1, irq, dma); in sio_via_probe()
|
/drivers/usb/serial/ |
D | mxuport.c | 1156 struct usb_serial_port *port1 = serial->port[1]; in mxuport_attach() local 1170 err = usb_serial_generic_submit_read_urbs(port1, GFP_KERNEL); in mxuport_attach() 1182 struct usb_serial_port *port1 = serial->port[1]; in mxuport_release() local 1184 usb_serial_generic_close(port1); in mxuport_release()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 1507 u8 port1 = v2p->port1; in mlx4_port_map_set() local 1518 if (port1 == 0) in mlx4_port_map_set() 1519 port1 = priv->v2p.port1; in mlx4_port_map_set() 1523 if ((port1 < 1) || (port1 > MLX4_MAX_PORTS) || in mlx4_port_map_set() 1525 (port1 == 2 && port2 == 1)) { in mlx4_port_map_set() 1529 } else if ((port1 == priv->v2p.port1) && in mlx4_port_map_set() 1533 err = mlx4_virt2phy_port_map(dev, port1, port2); in mlx4_port_map_set() 1536 port1, port2); in mlx4_port_map_set() 1537 priv->v2p.port1 = port1; in mlx4_port_map_set() 3638 priv->v2p.port1 = 1; in mlx4_load_one()
|
/drivers/net/ethernet/sfc/falcon/ |
D | farch.c | 1985 __be16 rport, port1, port2; in ef4_farch_filter_from_gen_spec() local 2017 port1 = gen_spec->loc_port; in ef4_farch_filter_from_gen_spec() 2020 port1 = rport; in ef4_farch_filter_from_gen_spec() 2023 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in ef4_farch_filter_from_gen_spec() 2083 __be16 port1, port2; in ef4_farch_filter_to_gen_spec() local 2099 port1 = htons(spec->data[0]); in ef4_farch_filter_to_gen_spec() 2111 gen_spec->loc_port = port1; in ef4_farch_filter_to_gen_spec() 2115 gen_spec->rem_port = port1; in ef4_farch_filter_to_gen_spec()
|
/drivers/net/ethernet/sfc/ |
D | farch.c | 2052 __be16 rport, port1, port2; in efx_farch_filter_from_gen_spec() local 2084 port1 = gen_spec->loc_port; in efx_farch_filter_from_gen_spec() 2087 port1 = rport; in efx_farch_filter_from_gen_spec() 2090 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in efx_farch_filter_from_gen_spec() 2150 __be16 port1, port2; in efx_farch_filter_to_gen_spec() local 2166 port1 = htons(spec->data[0]); in efx_farch_filter_to_gen_spec() 2178 gen_spec->loc_port = port1; in efx_farch_filter_to_gen_spec() 2182 gen_spec->rem_port = port1; in efx_farch_filter_to_gen_spec()
|
/drivers/thunderbolt/ |
D | icm.c | 1842 int port0, port1; in icm_reset_phy_port() local 1851 port1 = 4; in icm_reset_phy_port() 1854 port1 = 2; in icm_reset_phy_port() 1864 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 1883 ret = pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port() 1893 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 1903 return pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port()
|