Home
last modified time | relevance | path

Searched refs:dev1 (Results 1 – 25 of 37) sorted by relevance

12

/linux/drivers/input/mouse/
H A Dlifebook.c135 struct input_dev *dev1 = psmouse->dev; in lifebook_process_byte() local
174 input_report_abs(dev1, ABS_X, in lifebook_process_byte()
176 input_report_abs(dev1, ABS_Y, in lifebook_process_byte()
179 input_report_abs(dev1, ABS_X, in lifebook_process_byte()
181 input_report_abs(dev1, ABS_Y, in lifebook_process_byte()
184 input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04); in lifebook_process_byte()
185 input_sync(dev1); in lifebook_process_byte()
313 struct input_dev *dev1 = psmouse->dev; in lifebook_init() local
322 bitmap_zero(dev1->evbit, EV_CNT); in lifebook_init()
323 bitmap_zero(dev1->relbit, REL_CNT); in lifebook_init()
[all …]
H A Dalps.c205 struct input_dev *dev1);
207 struct input_dev *dev1);
209 struct input_dev *dev1);
211 struct input_dev *dev1);
221 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()
2988 struct input_dev *dev1) in alps_set_abs_params_st() argument
2990 input_set_abs_params(dev1, ABS_X, 0, priv->x_max, 0, 0); in alps_set_abs_params_st()
[all …]
H A Dalps.h313 void (*set_abs_params)(struct alps_data *priv, struct input_dev *dev1);
/linux/drivers/char/agp/
H A Damd64-agp.c393 struct pci_dev *dev1; in uli_agp_init() local
398 dev1 = pci_get_slot (pdev->bus,PCI_DEVFN(0,0)); in uli_agp_init()
399 if (dev1 == NULL) { in uli_agp_init()
432 pci_write_config_dword(dev1, ULI_X86_64_HTT_FEA_REG, httfea); in uli_agp_init()
433 pci_write_config_dword(dev1, ULI_X86_64_ENU_SCR_REG, enuscr); in uli_agp_init()
436 pci_dev_put(dev1); in uli_agp_init()
455 struct pci_dev *dev1; in nforce3_agp_init() local
461 dev1 = pci_get_slot(pdev->bus, PCI_DEVFN(11, 0)); in nforce3_agp_init()
462 if (dev1 == NULL) { in nforce3_agp_init()
477 pci_read_config_dword(dev1, NVIDIA_X86_64_1_APSIZE, &tmp); in nforce3_agp_init()
[all …]
/linux/tools/testing/selftests/drivers/net/hw/
H A Dethtool_lib.sh92 dev1=$1; shift
97 local -a dev1_speeds=($(dev_speeds_get $dev1 $with_mode $adver))
107 local dev1=$1; shift
114 speeds_arr=($(common_speeds_get $dev1 $dev2 $with_mode $adver))
H A Dethtool.sh132 local dev1=$1; shift
136 local -a speeds_arr=($(common_speeds_get $dev1 $dev2 0 $adver))
141 local -a speeds_mode_arr=($(common_speeds_get $dev1 $dev2 1 $adver))
/linux/drivers/thunderbolt/
H A Dtest.c555 struct tb_switch *host, *dev1, *dev2; in tb_test_path_daisy_chain_walk() local
559 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_daisy_chain_walk()
560 dev2 = alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_daisy_chain_walk()
616 struct tb_switch *host, *dev1, *dev3; in tb_test_path_simple_tree_walk() local
620 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_simple_tree_walk()
621 alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_simple_tree_walk()
622 dev3 = alloc_dev_default(test, dev1, 0x501, true); in tb_test_path_simple_tree_walk()
623 alloc_dev_default(test, dev1, 0x701, true); in tb_test_path_simple_tree_walk()
694 struct tb_switch *host, *dev1, *dev2, *dev3, *dev5, *dev6, *dev7, *dev9; in tb_test_path_complex_tree_walk() local
699 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_complex_tree_walk()
[all …]
/linux/drivers/ata/
H A Dpata_optidma.c366 struct pci_dev *dev1; in optiplus_with_udma() local
369 dev1 = pci_get_device(0x1045, 0xC701, NULL); in optiplus_with_udma()
370 if (dev1 == NULL) in optiplus_with_udma()
374 pci_read_config_byte(dev1, 0x08, &r); in optiplus_with_udma()
378 pci_read_config_byte(dev1, 0x5F, &r); in optiplus_with_udma()
389 pci_read_config_byte(dev1, 0x52, &r); in optiplus_with_udma()
395 pci_dev_put(dev1); in optiplus_with_udma()
H A Dpata_ep93xx.c553 unsigned int dev1 = devmask & (1 << 1); in ep93xx_pata_wait_after_reset() local
571 if (dev1) { in ep93xx_pata_wait_after_reset()
602 if (dev1) in ep93xx_pata_wait_after_reset()
/linux/net/x25/
H A Dx25_forward.c64 new_frwd->dev1 = rt->dev; in x25_forward_call()
102 if (from->dev == frwd->dev1) { in x25_forward_data()
105 peer = frwd->dev1; in x25_forward_data()
151 if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){ in x25_clear_forward_by_dev()
H A Dx25_proc.c142 f->lci, f->dev1->name, f->dev2->name); in x25_seq_forward_show()
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dqos_dscp_router.sh161 local dev1=$1; shift
174 eval "local -A dev1_t0s=($(dscp_fetch_stats $dev1 0))"
182 eval "local -A dev1_t1s=($(dscp_fetch_stats $dev1 0))"
203 check_err $? "DSCP $dscpi@$dev1: Expected to capture $expect3 packets, got $delta."
/linux/drivers/s390/net/
H A Dctcm_main.h268 unsigned long dev1, dev2; in ctcm_less_than() local
273 dev1 = simple_strtoul(id1, &id1, 16); in ctcm_less_than()
276 return (dev1 < dev2); in ctcm_less_than()
/linux/drivers/nfc/
H A Dnfcsim.c429 static struct nfcsim *dev1; variable
451 dev1 = nfcsim_device_new(link1, link0); in nfcsim_init()
452 if (IS_ERR(dev1)) { in nfcsim_init()
455 rc = PTR_ERR(dev1); in nfcsim_init()
482 nfcsim_device_free(dev1); in nfcsim_exit()
/linux/tools/testing/selftests/tc-testing/plugin-lib/
H A DnsPlugin.py121 dev1 = self.args.NAMES["DEV1"];
130 … ip.link('add', ifname=dev1, kind='veth', peer={'ifname': dev0, 'net_ns_fd':'/proc/1/ns/net'})
137 dev1_idx = ip.link_lookup(ifname=dev1)[0]
/linux/drivers/extcon/
H A Dextcon-rt8973a.c261 unsigned int adc, dev1; in rt8973a_muic_get_cable_type() local
273 ret = regmap_read(info->regmap, RT8973A_REG_DEV1, &dev1); in rt8973a_muic_get_cable_type()
281 if (dev1 & RT8973A_REG_DEV1_USB_MASK) in rt8973a_muic_get_cable_type()
283 else if (dev1 & RT8973A_REG_DEV1_DCPORT_MASK) in rt8973a_muic_get_cable_type()
/linux/drivers/acpi/x86/
H A Dlpss.c567 static void acpi_lpss_link_consumer(struct device *dev1, in acpi_lpss_link_consumer() argument
577 || acpi_device_dep(ACPI_HANDLE(dev2), ACPI_HANDLE(dev1))) in acpi_lpss_link_consumer()
578 device_link_add(dev2, dev1, link->flags); in acpi_lpss_link_consumer()
583 static void acpi_lpss_link_supplier(struct device *dev1, in acpi_lpss_link_supplier() argument
593 || acpi_device_dep(ACPI_HANDLE(dev1), ACPI_HANDLE(dev2))) in acpi_lpss_link_supplier()
594 device_link_add(dev1, dev2, link->flags); in acpi_lpss_link_supplier()
/linux/net/batman-adv/
H A Dhard-interface.c114 static bool batadv_mutual_parents(const struct net_device *dev1, in batadv_mutual_parents() argument
119 int dev1_parent_iflink = dev_get_iflink(dev1); in batadv_mutual_parents()
124 dev1_parent_net = batadv_getlink_net(dev1, net1); in batadv_mutual_parents()
131 (dev2_parent_iflink == dev1->ifindex) && in batadv_mutual_parents()
/linux/drivers/ata/pata_parport/
H A Dpata_parport.c90 unsigned int dev1 = devmask & (1 << 1); in pata_parport_wait_after_reset() local
102 if (!dev1) in pata_parport_wait_after_reset()
111 if (dev1) { in pata_parport_wait_after_reset()
141 if (dev1) in pata_parport_wait_after_reset()
/linux/tools/testing/selftests/net/
H A Dnetns-name.sh8 DEV2=dummy-dev1
/linux/include/net/
H A Dx25.h175 struct net_device *dev1; member
/linux/drivers/net/ethernet/marvell/
H A Dskge.c3886 struct net_device *dev, *dev1; in skge_probe() local
3976 dev1 = skge_devinit(hw, 1, using_dac); in skge_probe()
3977 if (!dev1) { in skge_probe()
3982 err = register_netdev(dev1); in skge_probe()
3996 skge_show_addr(dev1); in skge_probe()
4003 unregister_netdev(dev1); in skge_probe()
4005 free_netdev(dev1); in skge_probe()
4027 struct net_device *dev0, *dev1; in skge_remove() local
4032 dev1 = hw->dev[1]; in skge_remove()
4033 if (dev1) in skge_remove()
[all …]
/linux/drivers/usb/host/
H A Dehci-sched.c301 static int __maybe_unused same_tt(struct usb_device *dev1, in same_tt() argument
304 if (!dev1->tt || !dev2->tt) in same_tt()
306 if (dev1->tt != dev2->tt) in same_tt()
308 if (dev1->tt->multi) in same_tt()
309 return dev1->ttport == dev2->ttport; in same_tt()
/linux/drivers/scsi/
H A Dhpsa.c1493 static inline int device_is_the_same(struct hpsa_scsi_dev_t *dev1, in device_is_the_same() argument
1500 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1501 sizeof(dev1->scsi3addr)) != 0) in device_is_the_same()
1503 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1504 sizeof(dev1->device_id)) != 0) in device_is_the_same()
1506 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1508 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1510 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1512 if (dev1->bus != dev2->bus) in device_is_the_same()
1517 static inline int device_updated(struct hpsa_scsi_dev_t *dev1, in device_updated() argument
[all …]
/linux/tools/testing/selftests/tc-testing/
H A Dtdc.py379 dev1 = NAMES['DEV1']
475 NAMES['DEV1'] = dev1

12