/drivers/usb/core/ |
D | hub.c | 111 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state); 112 static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1, 417 int usb_clear_port_feature(struct usb_device *hdev, int port1, int feature) in usb_clear_port_feature() argument 420 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1, in usb_clear_port_feature() 427 static int set_port_feature(struct usb_device *hdev, int port1, int feature) in set_port_feature() argument 430 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, in set_port_feature() 454 static void set_port_led(struct usb_hub *hub, int port1, int selector) in set_port_led() argument 456 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() 459 status = set_port_feature(hub->hdev, (selector << 8) | port1, in set_port_led() 563 static int get_port_status(struct usb_device *hdev, int port1, in get_port_status() argument [all …]
|
D | port.c | 199 int port1 = port_dev->portnum; in usb_port_runtime_resume() local 205 set_bit(port1, hub->power_bits); in usb_port_runtime_resume() 217 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume() 229 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume() 232 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume() 236 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume() 254 int port1 = port_dev->portnum; in usb_port_runtime_suspend() local 270 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend() 271 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend() 273 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend() [all …]
|
D | hub.h | 113 int port1); 115 int port1); 117 int port1, bool set); 119 extern int hub_port_debounce(struct usb_hub *hub, int port1, 122 int port1, int feature); 155 int port1) in hub_port_debounce_be_connected() argument 157 return hub_port_debounce(hub, port1, true); in hub_port_debounce_be_connected() 161 int port1) in hub_port_debounce_be_stable() argument 163 return hub_port_debounce(hub, port1, false); in hub_port_debounce_be_stable()
|
D | usb-acpi.c | 29 int port1 = index + 1; in usb_acpi_power_manageable() local 32 port1); in usb_acpi_power_manageable() 58 int port1 = index + 1; in usb_acpi_set_power_state() local 63 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state() 65 port_handle = (acpi_handle) usb_get_hub_port_acpi_handle(hdev, port1); in usb_acpi_set_power_state() 148 int port1; in usb_acpi_get_companion_for_port() local 160 port1 = usb_hcd_find_raw_port_number(bus_to_hcd(udev->bus), in usb_acpi_get_companion_for_port() 169 port1 = port_dev->portnum; in usb_acpi_get_companion_for_port() 172 return usb_acpi_find_port(adev, port1); in usb_acpi_get_companion_for_port()
|
D | usb.c | 576 struct usb_bus *bus, unsigned port1) in usb_alloc_dev() argument 581 unsigned raw_port = port1; in usb_alloc_dev() 647 "%d", port1); in usb_alloc_dev() 652 "%s.%d", parent->devpath, port1); in usb_alloc_dev() 654 if (port1 < 15) in usb_alloc_dev() 656 (port1 << ((parent->level - 1)*4)); in usb_alloc_dev() 668 port1); in usb_alloc_dev() 675 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()
|
D | usb.h | 206 int port1);
|
/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 | 146 u32 port1; member
|
/drivers/watchdog/ |
D | pcwd.c | 809 int port1, last_port1; /* Register 1 for REV C cards */ in pcwd_isa_match() local 824 port1 = inb_p(base_addr + 1); /* For REV C boards */ in pcwd_isa_match() 825 if (port0 != 0xff || port1 != 0xff) { in pcwd_isa_match() 832 last_port1 = port1; in pcwd_isa_match() 835 port1 = inb_p(base_addr + 1); in pcwd_isa_match() 839 (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/parport/ |
D | parport_pc.c | 2441 unsigned port1, port2; in sio_via_probe() local 2508 port1 = inb(VIA_CONFIG_DATA) << 2; in sio_via_probe() 2511 port1); in sio_via_probe() 2512 if (port1 == 0x3BC && have_epp) { in sio_via_probe() 2517 port1 = 0x378; in sio_via_probe() 2553 switch (port1) { in sio_via_probe() 2563 port1); in sio_via_probe() 2581 if (parport_pc_probe_port(port1, port2, irq, dma, &pdev->dev, 0)) { in sio_via_probe() 2583 "parport_pc: VIA parallel port: io=0x%X", port1); in sio_via_probe() 2593 port1, irq, dma); in sio_via_probe()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag.c | 144 u8 *port1, u8 *port2) in mlx5_infer_tx_affinity_mapping() argument 146 *port1 = 1; in mlx5_infer_tx_affinity_mapping() 150 *port1 = 2; in mlx5_infer_tx_affinity_mapping()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 1506 u8 port1 = v2p->port1; in mlx4_port_map_set() local 1517 if (port1 == 0) in mlx4_port_map_set() 1518 port1 = priv->v2p.port1; in mlx4_port_map_set() 1522 if ((port1 < 1) || (port1 > MLX4_MAX_PORTS) || in mlx4_port_map_set() 1524 (port1 == 2 && port2 == 1)) { in mlx4_port_map_set() 1528 } else if ((port1 == priv->v2p.port1) && in mlx4_port_map_set() 1532 err = mlx4_virt2phy_port_map(dev, port1, port2); in mlx4_port_map_set() 1535 port1, port2); in mlx4_port_map_set() 1536 priv->v2p.port1 = port1; in mlx4_port_map_set() 3620 priv->v2p.port1 = 1; in mlx4_load_one()
|
/drivers/usb/serial/ |
D | mxuport.c | 1163 struct usb_serial_port *port1 = serial->port[1]; in mxuport_attach() local 1177 err = usb_serial_generic_submit_read_urbs(port1, GFP_KERNEL); in mxuport_attach() 1189 struct usb_serial_port *port1 = serial->port[1]; in mxuport_release() local 1191 usb_serial_generic_close(port1); in mxuport_release()
|
/drivers/net/ethernet/sfc/ |
D | farch.c | 2049 __be16 rport, port1, port2; in efx_farch_filter_from_gen_spec() local 2081 port1 = gen_spec->loc_port; in efx_farch_filter_from_gen_spec() 2084 port1 = rport; in efx_farch_filter_from_gen_spec() 2087 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in efx_farch_filter_from_gen_spec() 2147 __be16 port1, port2; in efx_farch_filter_to_gen_spec() local 2163 port1 = htons(spec->data[0]); in efx_farch_filter_to_gen_spec() 2175 gen_spec->loc_port = port1; in efx_farch_filter_to_gen_spec() 2179 gen_spec->rem_port = port1; in efx_farch_filter_to_gen_spec()
|
/drivers/net/ethernet/sfc/falcon/ |
D | farch.c | 1990 __be16 rport, port1, port2; in ef4_farch_filter_from_gen_spec() local 2022 port1 = gen_spec->loc_port; in ef4_farch_filter_from_gen_spec() 2025 port1 = rport; in ef4_farch_filter_from_gen_spec() 2028 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in ef4_farch_filter_from_gen_spec() 2088 __be16 port1, port2; in ef4_farch_filter_to_gen_spec() local 2104 port1 = htons(spec->data[0]); in ef4_farch_filter_to_gen_spec() 2116 gen_spec->loc_port = port1; in ef4_farch_filter_to_gen_spec() 2120 gen_spec->rem_port = port1; in ef4_farch_filter_to_gen_spec()
|
/drivers/thunderbolt/ |
D | icm.c | 1734 int port0, port1; in icm_reset_phy_port() local 1743 port1 = 4; in icm_reset_phy_port() 1746 port1 = 2; in icm_reset_phy_port() 1756 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 1775 ret = pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port() 1785 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 1795 return pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port()
|