/drivers/usb/core/ |
D | hub.c | 108 static int hub_port_disable(struct usb_hub *hub, int port1, int set_state); 109 static bool hub_port_warm_reset_required(struct usb_hub *hub, int port1, 414 int usb_clear_port_feature(struct usb_device *hdev, int port1, int feature) in usb_clear_port_feature() argument 417 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1, in usb_clear_port_feature() 424 static int set_port_feature(struct usb_device *hdev, int port1, int feature) in set_port_feature() argument 427 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, in set_port_feature() 451 static void set_port_led(struct usb_hub *hub, int port1, int selector) in set_port_led() argument 453 struct usb_port *port_dev = hub->ports[port1 - 1]; in set_port_led() 456 status = set_port_feature(hub->hdev, (selector << 8) | port1, in set_port_led() 560 static int get_port_status(struct usb_device *hdev, int port1, in get_port_status() argument [all …]
|
D | port.c | 165 int port1 = port_dev->portnum; in usb_port_runtime_resume() local 171 set_bit(port1, hub->power_bits); in usb_port_runtime_resume() 186 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume() 198 if (hub_port_debounce_be_connected(hub, port1) < 0) { in usb_port_runtime_resume() 201 set_bit(port1, hub->warm_reset_bits); in usb_port_runtime_resume() 205 if (!test_and_set_bit(port1, hub->child_usage_bits)) { in usb_port_runtime_resume() 223 int port1 = port_dev->portnum; in usb_port_runtime_suspend() local 242 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend() 243 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_CONNECTION); in usb_port_runtime_suspend() 245 usb_clear_port_feature(hdev, port1, USB_PORT_FEAT_C_ENABLE); in usb_port_runtime_suspend() [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); 160 int port1) in hub_port_debounce_be_connected() argument 162 return hub_port_debounce(hub, port1, true); in hub_port_debounce_be_connected() 166 int port1) in hub_port_debounce_be_stable() argument 168 return hub_port_debounce(hub, port1, false); in hub_port_debounce_be_stable()
|
D | usb-acpi.c | 33 int port1 = index + 1; in usb_acpi_power_manageable() local 36 port1); in usb_acpi_power_manageable() 62 int port1 = index + 1; in usb_acpi_set_power_state() local 67 port_dev = hub->ports[port1 - 1]; in usb_acpi_set_power_state() 69 port_handle = (acpi_handle) usb_get_hub_port_acpi_handle(hdev, port1); in usb_acpi_set_power_state() 175 int port1 = port_dev->portnum; in usb_acpi_find_companion() local 192 raw = usb_hcd_find_raw_port_number(hcd, port1); in usb_acpi_find_companion() 208 adev = usb_acpi_find_port(adev, port1); in usb_acpi_find_companion()
|
D | usb.c | 556 struct usb_bus *bus, unsigned port1) in usb_alloc_dev() argument 561 unsigned raw_port = port1; in usb_alloc_dev() 627 "%d", port1); in usb_alloc_dev() 632 "%s.%d", parent->devpath, port1); in usb_alloc_dev() 634 if (port1 < 15) in usb_alloc_dev() 636 (port1 << ((parent->level - 1)*4)); in usb_alloc_dev() 648 port1); in usb_alloc_dev() 656 dev->portnum = port1; in usb_alloc_dev()
|
D | ledtrig-usbport.c | 132 struct usb_device *usb_dev, int port1) in usbport_trig_port_observed() argument 148 port_np = usb_of_get_child_node(usb_dev->dev.of_node, port1); in usbport_trig_port_observed()
|
D | usb.h | 196 int port1);
|
/drivers/usb/host/ |
D | sl811-hcd.c | 83 if (sl811->port1 & USB_PORT_STAT_POWER) in port_power() 86 sl811->port1 = USB_PORT_STAT_POWER; in port_power() 89 sl811->port1 = 0; in port_power() 403 if (sl811->port1 & USB_PORT_STAT_SUSPEND) in start_transfer() 720 sl811->port1 &= ~USB_PORT_STAT_CONNECTION; in sl811h_irq() 722 sl811->port1 |= USB_PORT_STAT_CONNECTION; in sl811h_irq() 724 sl811->port1 |= USB_PORT_STAT_C_CONNECTION << 16; in sl811h_irq() 727 if (sl811->port1 & USB_PORT_STAT_SUSPEND) { in sl811h_irq() 729 sl811->port1 |= USB_PORT_STAT_C_SUSPEND << 16; in sl811h_irq() 736 if (sl811->port1 & USB_PORT_STAT_ENABLE) in sl811h_irq() [all …]
|
D | sl811.h | 146 u32 port1; member
|
/drivers/watchdog/ |
D | pcwd.c | 808 int port1, last_port1; /* Register 1 for REV C cards */ in pcwd_isa_match() local 823 port1 = inb_p(base_addr + 1); /* For REV C boards */ in pcwd_isa_match() 824 if (port0 != 0xff || port1 != 0xff) { in pcwd_isa_match() 831 last_port1 = port1; in pcwd_isa_match() 834 port1 = inb_p(base_addr + 1); in pcwd_isa_match() 838 (port1 ^ last_port1) & WD_REVC_HRBT) { in pcwd_isa_match()
|
/drivers/platform/x86/ |
D | hdaps.c | 178 static int __hdaps_read_pair(unsigned int port1, unsigned int port2, in __hdaps_read_pair() argument 186 *x = inw(port1); in __hdaps_read_pair() 203 static int hdaps_read_pair(unsigned int port1, unsigned int port2, in hdaps_read_pair() argument 209 ret = __hdaps_read_pair(port1, port2, val1, val2); in hdaps_read_pair()
|
/drivers/media/tuners/ |
D | tda9887.c | 432 static unsigned int port1 = UNSET; variable 437 module_param(port1, int, 0644); 447 if (UNSET != port1) { in tda9887_set_insmod() 448 if (port1) in tda9887_set_insmod()
|
D | tea5767.h | 31 unsigned int port1:1; member
|
D | tea5767.c | 203 if (priv->ctrl.port1) in set_radio_freq() 457 priv->ctrl.port1 = 1; in tea5767_attach()
|
/drivers/usb/misc/ |
D | lvstest.c | 89 int port1, int feature) in lvs_rh_clear_port_feature() argument 92 USB_REQ_CLEAR_FEATURE, USB_RT_PORT, feature, port1, in lvs_rh_clear_port_feature() 97 int port1, int feature) in lvs_rh_set_port_feature() argument 100 USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, in lvs_rh_set_port_feature()
|
D | cypress_cy7c63.c | 199 static DEVICE_ATTR(port1, S_IRUGO | S_IWUSR, get_port1_handler, set_port1_handler);
|
/drivers/char/ |
D | sonypi.c | 156 u16 port1; member 1235 while (check_ioport && check->port1) { in sonypi_setup_ioports() 1236 if (!request_region(check->port1, in sonypi_setup_ioports() 1241 check->port1); in sonypi_setup_ioports() 1244 release_region(check->port1, sonypi_device.region_size); in sonypi_setup_ioports() 1248 while (ioport_list->port1) { in sonypi_setup_ioports() 1250 if (request_region(ioport_list->port1, in sonypi_setup_ioports() 1253 dev->ioport1 = ioport_list->port1; in sonypi_setup_ioports()
|
/drivers/thunderbolt/ |
D | icm.c | 775 int port0, port1; in icm_reset_phy_port() local 784 port1 = 4; in icm_reset_phy_port() 787 port1 = 2; in icm_reset_phy_port() 797 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 816 ret = pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port() 826 ret = pcie2cio_read(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, &val1); in icm_reset_phy_port() 836 return pcie2cio_write(icm, TB_CFG_PORT, port1, PHY_PORT_CS1, val1); in icm_reset_phy_port()
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag.c | 163 u8 *port1, u8 *port2) in mlx5_infer_tx_affinity_mapping() argument 165 *port1 = 1; in mlx5_infer_tx_affinity_mapping() 169 *port1 = 2; in mlx5_infer_tx_affinity_mapping()
|
/drivers/parport/ |
D | parport_pc.c | 2440 unsigned port1, port2; in sio_via_probe() local 2507 port1 = inb(VIA_CONFIG_DATA) << 2; in sio_via_probe() 2510 port1); in sio_via_probe() 2511 if (port1 == 0x3BC && have_epp) { in sio_via_probe() 2516 port1 = 0x378; in sio_via_probe() 2552 switch (port1) { in sio_via_probe() 2562 port1); in sio_via_probe() 2580 if (parport_pc_probe_port(port1, port2, irq, dma, &pdev->dev, 0)) { in sio_via_probe() 2582 "parport_pc: VIA parallel port: io=0x%X", port1); in sio_via_probe() 2592 port1, irq, dma); in sio_via_probe()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | main.c | 1471 u8 port1 = v2p->port1; in mlx4_port_map_set() local 1482 if (port1 == 0) in mlx4_port_map_set() 1483 port1 = priv->v2p.port1; in mlx4_port_map_set() 1487 if ((port1 < 1) || (port1 > MLX4_MAX_PORTS) || in mlx4_port_map_set() 1489 (port1 == 2 && port2 == 1)) { in mlx4_port_map_set() 1493 } else if ((port1 == priv->v2p.port1) && in mlx4_port_map_set() 1497 err = mlx4_virt2phy_port_map(dev, port1, port2); in mlx4_port_map_set() 1500 port1, port2); in mlx4_port_map_set() 1501 priv->v2p.port1 = port1; in mlx4_port_map_set() 3569 priv->v2p.port1 = 1; in mlx4_load_one()
|
/drivers/usb/serial/ |
D | mxuport.c | 1167 struct usb_serial_port *port1 = serial->port[1]; in mxuport_attach() local 1181 err = usb_serial_generic_submit_read_urbs(port1, GFP_KERNEL); in mxuport_attach() 1193 struct usb_serial_port *port1 = serial->port[1]; in mxuport_release() local 1195 usb_serial_generic_close(port1); in mxuport_release()
|
/drivers/net/ethernet/sfc/falcon/ |
D | farch.c | 1993 __be16 rport, port1, port2; in ef4_farch_filter_from_gen_spec() local 2025 port1 = gen_spec->loc_port; in ef4_farch_filter_from_gen_spec() 2028 port1 = rport; in ef4_farch_filter_from_gen_spec() 2031 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in ef4_farch_filter_from_gen_spec() 2091 __be16 port1, port2; in ef4_farch_filter_to_gen_spec() local 2107 port1 = htons(spec->data[0]); in ef4_farch_filter_to_gen_spec() 2119 gen_spec->loc_port = port1; in ef4_farch_filter_to_gen_spec() 2123 gen_spec->rem_port = port1; in ef4_farch_filter_to_gen_spec()
|
/drivers/net/ethernet/sfc/ |
D | farch.c | 2058 __be16 rport, port1, port2; in efx_farch_filter_from_gen_spec() local 2090 port1 = gen_spec->loc_port; in efx_farch_filter_from_gen_spec() 2093 port1 = rport; in efx_farch_filter_from_gen_spec() 2096 spec->data[0] = ntohl(host1) << 16 | ntohs(port1); in efx_farch_filter_from_gen_spec() 2156 __be16 port1, port2; in efx_farch_filter_to_gen_spec() local 2172 port1 = htons(spec->data[0]); in efx_farch_filter_to_gen_spec() 2184 gen_spec->loc_port = port1; in efx_farch_filter_to_gen_spec() 2188 gen_spec->rem_port = port1; in efx_farch_filter_to_gen_spec()
|
/drivers/tty/serial/ |
D | serial_core.c | 2940 int uart_match_port(struct uart_port *port1, struct uart_port *port2) in uart_match_port() argument 2942 if (port1->iotype != port2->iotype) in uart_match_port() 2945 switch (port1->iotype) { in uart_match_port() 2947 return (port1->iobase == port2->iobase); in uart_match_port() 2949 return (port1->iobase == port2->iobase) && in uart_match_port() 2950 (port1->hub6 == port2->hub6); in uart_match_port() 2957 return (port1->mapbase == port2->mapbase); in uart_match_port()
|