Home
last modified time | relevance | path

Searched refs:dev2 (Results 1 – 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/input/mouse/
Dlifebook.c23 struct input_dev *dev2; /* Relative device */ member
136 struct input_dev *dev2 = priv ? priv->dev2 : NULL; in lifebook_process_byte() local
169 if (!dev2) in lifebook_process_byte()
188 if (dev2) { in lifebook_process_byte()
190 psmouse_report_standard_motion(dev2, packet); in lifebook_process_byte()
192 psmouse_report_standard_buttons(dev2, packet[0]); in lifebook_process_byte()
193 input_sync(dev2); in lifebook_process_byte()
247 input_unregister_device(priv->dev2); in lifebook_disconnect()
272 struct input_dev *dev2; in lifebook_create_relative_device() local
277 dev2 = input_allocate_device(); in lifebook_create_relative_device()
[all …]
Dalps.c221 static void alps_report_buttons(struct input_dev *dev1, struct input_dev *dev2, in alps_report_buttons() argument
231 dev = (dev2 && test_bit(BTN_LEFT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
234 dev = (dev2 && test_bit(BTN_RIGHT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
237 dev = (dev2 && test_bit(BTN_MIDDLE, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
244 if (dev2) in alps_report_buttons()
245 input_sync(dev2); in alps_report_buttons()
253 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v1_v2() local
289 input_report_rel(dev2, REL_X, (x > 383 ? (x - 768) : x)); in alps_process_packet_v1_v2()
290 input_report_rel(dev2, REL_Y, -(y > 255 ? (y - 512) : y)); in alps_process_packet_v1_v2()
292 alps_report_buttons(dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
[all …]
Dalps.h288 struct input_dev *dev2; member
/kernel/linux/linux-5.10/drivers/ide/
Dpdc202xx_new.c422 struct pci_dev *dev2; in pdc20270_get_dev2() local
424 dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, in pdc20270_get_dev2()
427 if (dev2 && in pdc20270_get_dev2()
428 dev2->vendor == dev->vendor && in pdc20270_get_dev2()
429 dev2->device == dev->device) { in pdc20270_get_dev2()
431 if (dev2->irq != dev->irq) { in pdc20270_get_dev2()
432 dev2->irq = dev->irq; in pdc20270_get_dev2()
437 return dev2; in pdc20270_get_dev2()
485 struct pci_dev *dev2; in pdc202new_init_one() local
490 dev2 = pdc20270_get_dev2(dev); in pdc202new_init_one()
[all …]
Dcy82c693.c180 struct pci_dev *dev2; in cy82c693_init_one() local
187 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in cy82c693_init_one()
188 ret = ide_pci_init_two(dev, dev2, &cy82c693_chipset, NULL); in cy82c693_init_one()
190 pci_dev_put(dev2); in cy82c693_init_one()
198 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; in cy82c693_remove() local
201 pci_dev_put(dev2); in cy82c693_remove()
Dsetup-pci.c533 int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2, in ide_pci_init_two() argument
536 struct pci_dev *pdev[] = { dev1, dev2 }; in ide_pci_init_two()
538 int ret, i, n_ports = dev2 ? 4 : 2, bars; in ide_pci_init_two()
571 if (dev2) in ide_pci_init_two()
572 host->dev[1] = &dev2->dev; in ide_pci_init_two()
578 if (dev2) in ide_pci_init_two()
624 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; in ide_pci_remove() local
641 if (dev2) in ide_pci_remove()
642 pci_release_selected_regions(dev2, bars); in ide_pci_remove()
645 if (dev2) in ide_pci_remove()
[all …]
Dhpt366.c1265 static void hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt374_init() argument
1267 if (dev2->irq != dev->irq) { in hpt374_init()
1269 dev2->irq = dev->irq; in hpt374_init()
1271 "fixed\n", pci_name(dev2)); in hpt374_init()
1290 static int hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt36x_init() argument
1303 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); in hpt36x_init()
1305 if (pin1 != pin2 && dev->irq == dev2->irq) { in hpt36x_init()
1406 struct pci_dev *dev2 = NULL; in hpt366_init_one() local
1458 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in hpt366_init_one()
1460 dyn_info = kcalloc(dev2 ? 2 : 1, sizeof(*dyn_info), GFP_KERNEL); in hpt366_init_one()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dethtool_lib.sh59 dev2=$1; shift
64 local -a dev2_speeds=($(dev_speeds_get $dev2 $with_mode $adver))
74 local dev2=$1; shift
80 speeds_arr=($(common_speeds_get $dev1 $dev2 $with_mode $adver))
Dethtool.sh134 local dev2=$1; shift
137 local -a speeds_arr=($(common_speeds_get $dev1 $dev2 0 $adver))
142 local -a speeds_mode_arr=($(common_speeds_get $dev1 $dev2 1 $adver))
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dtest.c428 struct tb_switch *host, *dev1, *dev2; in tb_test_path_daisy_chain_walk() local
433 dev2 = alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_daisy_chain_walk()
436 dst_port = &dev2->ports[13]; in tb_test_path_daisy_chain_walk()
567 struct tb_switch *host, *dev1, *dev2, *dev3, *dev5, *dev6, *dev7, *dev9; in tb_test_path_complex_tree_walk() local
573 dev2 = alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_complex_tree_walk()
574 dev3 = alloc_dev_with_dpin(test, dev2, 0x50301, true); in tb_test_path_complex_tree_walk()
614 struct tb_switch *host, *dev1, *dev2, *dev3, *dev4, *dev5, *dev6; in tb_test_path_max_length_walk() local
673 dev2 = alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_max_length_walk()
674 dev3 = alloc_dev_default(test, dev2, 0x30301, true); in tb_test_path_max_length_walk()
717 struct tb_switch *host, *dev1, *dev2; in tb_test_path_not_connected() local
[all …]
/kernel/linux/linux-5.10/drivers/ata/
Dpata_optidma.c206 int dev2 = 2 * adev->devno; in optiplus_mode_setup() local
218 udslave &= ~(0x03 << dev2); in optiplus_mode_setup()
219 udslave |= (udma << dev2); in optiplus_mode_setup()
222 udcfg &= ~(0x30 << dev2); in optiplus_mode_setup()
223 udcfg |= (udma << dev2); in optiplus_mode_setup()
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh175 local dev2=$1; shift
188 eval "local -A dev2_t0s=($(dscp_fetch_stats $dev2 0))"
196 eval "local -A dev2_t1s=($(dscp_fetch_stats $dev2 0))"
212 check_err $? "DSCP $dscpi@$dev2: Expected to capture $expect2 packets, got $delta."
/kernel/linux/linux-5.10/net/x25/
Dx25_forward.c67 new_frwd->dev2 = from->dev; in x25_forward_call()
107 peer = frwd->dev2; in x25_forward_data()
155 if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){ in x25_clear_forward_by_dev()
Dx25_proc.c143 f->lci, f->dev1->name, f->dev2->name); in x25_seq_forward_show()
/kernel/linux/linux-5.10/arch/x86/pci/
Dirq.c889 struct pci_dev *dev2 = NULL; in pcibios_lookup_irq() local
993 for_each_pci_dev(dev2) { in pcibios_lookup_irq()
994 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin); in pcibios_lookup_irq()
998 info = pirq_get_info(dev2); in pcibios_lookup_irq()
1006 if (dev2->irq && dev2->irq != irq && \ in pcibios_lookup_irq()
1008 ((1 << dev2->irq) & mask))) { in pcibios_lookup_irq()
1010 dev_info(&dev2->dev, "IRQ routing conflict: " in pcibios_lookup_irq()
1012 dev2->irq, irq); in pcibios_lookup_irq()
1016 dev2->irq = irq; in pcibios_lookup_irq()
1018 if (dev != dev2) in pcibios_lookup_irq()
[all …]
/kernel/linux/linux-5.10/drivers/s390/net/
Dctcm_main.h267 unsigned long dev1, dev2; in ctcm_less_than() local
273 dev2 = simple_strtoul(id2, &id2, 16); in ctcm_less_than()
275 return (dev1 < dev2); in ctcm_less_than()
/kernel/linux/linux-5.10/drivers/acpi/
Dacpi_lpss.c576 struct device *dev2; in acpi_lpss_link_consumer() local
578 dev2 = acpi_lpss_find_device(link->consumer_hid, link->consumer_uid); in acpi_lpss_link_consumer()
579 if (!dev2) in acpi_lpss_link_consumer()
583 || acpi_lpss_dep(ACPI_COMPANION(dev2), ACPI_HANDLE(dev1))) in acpi_lpss_link_consumer()
584 device_link_add(dev2, dev1, link->flags); in acpi_lpss_link_consumer()
586 put_device(dev2); in acpi_lpss_link_consumer()
592 struct device *dev2; in acpi_lpss_link_supplier() local
594 dev2 = acpi_lpss_find_device(link->supplier_hid, link->supplier_uid); in acpi_lpss_link_supplier()
595 if (!dev2) in acpi_lpss_link_supplier()
599 || acpi_lpss_dep(ACPI_COMPANION(dev1), ACPI_HANDLE(dev2))) in acpi_lpss_link_supplier()
[all …]
/kernel/linux/linux-5.10/drivers/input/joystick/
Ddb9.c39 module_param_array_named(dev2, db9_cfg[1].args, int, &db9_cfg[1].nargs, 0);
40 MODULE_PARM_DESC(dev2, "Describes second attached device (<parport#>,<type>)");
360 struct input_dev *dev2 = db9->dev[1]; in db9_timer() local
368 input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
369 input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); in db9_timer()
370 input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); in db9_timer()
/kernel/linux/linux-5.10/net/batman-adv/
Dhard-interface.c116 const struct net_device *dev2, in batadv_mutual_parents() argument
120 int dev2_parent_iflink = dev_get_iflink(dev2); in batadv_mutual_parents()
125 dev2_parent_net = batadv_getlink_net(dev2, net2); in batadv_mutual_parents()
130 return (dev1_parent_iflink == dev2->ifindex) && in batadv_mutual_parents()
/kernel/linux/linux-5.10/include/net/
Dx25.h176 struct net_device *dev2; member
/kernel/linux/linux-5.10/drivers/staging/unisys/Documentation/
Doverview.txt149 vbus1:dev2 -> ../../../devices/visorbus1/vbus1:dev2
153 vbus2:dev2 -> ../../../devices/visorbus2/vbus2:dev2
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0013_linux_drivers_base.patch85 …-4354,6 +4396,13 @@ void device_set_of_node_from_dev(struct device *dev, const struct device *dev2)
/kernel/linux/linux-5.10/drivers/usb/host/
Dehci-sched.c296 struct usb_device *dev2) in same_tt() argument
298 if (!dev1->tt || !dev2->tt) in same_tt()
300 if (dev1->tt != dev2->tt) in same_tt()
303 return dev1->ttport == dev2->ttport; in same_tt()
/kernel/linux/linux-5.10/drivers/pci/
Dpci.c6142 bool pci_devs_are_dma_aliases(struct pci_dev *dev1, struct pci_dev *dev2) in pci_devs_are_dma_aliases() argument
6145 test_bit(dev2->devfn, dev1->dma_alias_mask)) || in pci_devs_are_dma_aliases()
6146 (dev2->dma_alias_mask && in pci_devs_are_dma_aliases()
6147 test_bit(dev1->devfn, dev2->dma_alias_mask)) || in pci_devs_are_dma_aliases()
6148 pci_real_dma_dev(dev1) == dev2 || in pci_devs_are_dma_aliases()
6149 pci_real_dma_dev(dev2) == dev1; in pci_devs_are_dma_aliases()
/kernel/linux/linux-5.10/drivers/scsi/
Dhpsa.c1488 struct hpsa_scsi_dev_t *dev2) in device_is_the_same() argument
1494 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1497 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1500 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1502 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1504 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1506 if (dev1->bus != dev2->bus) in device_is_the_same()
1512 struct hpsa_scsi_dev_t *dev2) in device_updated() argument
1518 if (dev1->raid_level != dev2->raid_level) in device_updated()
1520 if (dev1->offload_config != dev2->offload_config) in device_updated()
[all …]

12