Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/input/mouse/
Dlifebook.c25 struct input_dev *dev2; /* Relative device */ member
138 struct input_dev *dev2 = priv ? priv->dev2 : NULL; in lifebook_process_byte() local
171 if (!dev2) in lifebook_process_byte()
190 if (dev2) { in lifebook_process_byte()
192 input_report_rel(dev2, REL_X, in lifebook_process_byte()
194 input_report_rel(dev2, REL_Y, in lifebook_process_byte()
197 input_report_key(dev2, BTN_LEFT, packet[0] & 0x01); in lifebook_process_byte()
198 input_report_key(dev2, BTN_RIGHT, packet[0] & 0x02); in lifebook_process_byte()
199 input_sync(dev2); in lifebook_process_byte()
251 input_unregister_device(priv->dev2); in lifebook_disconnect()
[all …]
Dalps.c216 static void alps_report_buttons(struct input_dev *dev1, struct input_dev *dev2, in alps_report_buttons() argument
226 dev = (dev2 && test_bit(BTN_LEFT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
229 dev = (dev2 && test_bit(BTN_RIGHT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
232 dev = (dev2 && test_bit(BTN_MIDDLE, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
239 if (dev2) in alps_report_buttons()
240 input_sync(dev2); in alps_report_buttons()
248 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v1_v2() local
284 input_report_rel(dev2, REL_X, (x > 383 ? (x - 768) : x)); in alps_process_packet_v1_v2()
285 input_report_rel(dev2, REL_Y, -(y > 255 ? (y - 512) : y)); in alps_process_packet_v1_v2()
287 alps_report_buttons(dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
[all …]
Dalps.h253 struct input_dev *dev2; member
/linux-4.4.14/drivers/ide/
Dpdc202xx_new.c427 struct pci_dev *dev2; in pdc20270_get_dev2() local
429 dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, in pdc20270_get_dev2()
432 if (dev2 && in pdc20270_get_dev2()
433 dev2->vendor == dev->vendor && in pdc20270_get_dev2()
434 dev2->device == dev->device) { in pdc20270_get_dev2()
436 if (dev2->irq != dev->irq) { in pdc20270_get_dev2()
437 dev2->irq = dev->irq; in pdc20270_get_dev2()
442 return dev2; in pdc20270_get_dev2()
490 struct pci_dev *dev2; in pdc202new_init_one() local
495 dev2 = pdc20270_get_dev2(dev); in pdc202new_init_one()
[all …]
Dcy82c693.c179 struct pci_dev *dev2; in cy82c693_init_one() local
186 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in cy82c693_init_one()
187 ret = ide_pci_init_two(dev, dev2, &cy82c693_chipset, NULL); in cy82c693_init_one()
189 pci_dev_put(dev2); in cy82c693_init_one()
197 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; in cy82c693_remove() local
200 pci_dev_put(dev2); in cy82c693_remove()
Dsetup-pci.c538 int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2, in ide_pci_init_two() argument
541 struct pci_dev *pdev[] = { dev1, dev2 }; in ide_pci_init_two()
543 int ret, i, n_ports = dev2 ? 4 : 2; in ide_pci_init_two()
561 if (dev2) in ide_pci_init_two()
562 host->dev[1] = &dev2->dev; in ide_pci_init_two()
568 if (dev2) in ide_pci_init_two()
607 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; in ide_pci_remove() local
624 if (dev2) in ide_pci_remove()
625 pci_release_selected_regions(dev2, bars); in ide_pci_remove()
628 if (dev2) in ide_pci_remove()
[all …]
Dhpt366.c1268 static void hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt374_init() argument
1270 if (dev2->irq != dev->irq) { in hpt374_init()
1272 dev2->irq = dev->irq; in hpt374_init()
1274 "fixed\n", pci_name(dev2)); in hpt374_init()
1293 static int hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt36x_init() argument
1306 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); in hpt36x_init()
1308 if (pin1 != pin2 && dev->irq == dev2->irq) { in hpt36x_init()
1409 struct pci_dev *dev2 = NULL; in hpt366_init_one() local
1461 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in hpt366_init_one()
1463 dyn_info = kzalloc(sizeof(*dyn_info) * (dev2 ? 2 : 1), GFP_KERNEL); in hpt366_init_one()
[all …]
/linux-4.4.14/drivers/misc/
Dfsa9480.c103 int dev2; member
210 int dev1, dev2; in fsa9480_show_device() local
213 dev2 = fsa9480_read_reg(client, FSA9480_REG_DEV_T2); in fsa9480_show_device()
215 if (!dev1 && !dev2) in fsa9480_show_device()
219 if (dev1 & DEV_T1_USB_MASK || dev2 & DEV_T2_USB_MASK) in fsa9480_show_device()
223 if (dev1 & DEV_T1_UART_MASK || dev2 & DEV_T2_UART_MASK) in fsa9480_show_device()
231 if (dev2 & DEV_T2_JIG_MASK) in fsa9480_show_device()
320 usbsw->dev2 & DEV_T2_USB_MASK) { in fsa9480_detect_dev()
327 usbsw->dev2 & DEV_T2_UART_MASK) { in fsa9480_detect_dev()
339 if (usbsw->dev2 & DEV_T2_JIG_MASK) { in fsa9480_detect_dev()
[all …]
/linux-4.4.14/drivers/ata/
Dpata_optidma.c205 int dev2 = 2 * adev->devno; in optiplus_mode_setup() local
217 udslave &= ~(0x03 << dev2); in optiplus_mode_setup()
218 udslave |= (udma << dev2); in optiplus_mode_setup()
221 udcfg &= ~(0x30 << dev2); in optiplus_mode_setup()
222 udcfg |= (udma << dev2); in optiplus_mode_setup()
/linux-4.4.14/net/x25/
Dx25_forward.c72 new_frwd->dev2 = from->dev; in x25_forward_call()
112 peer = frwd->dev2; in x25_forward_data()
164 if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){ in x25_clear_forward_by_dev()
Dx25_proc.c148 f->lci, f->dev1->name, f->dev2->name); in x25_seq_forward_show()
/linux-4.4.14/arch/x86/pci/
Dirq.c887 struct pci_dev *dev2 = NULL; in pcibios_lookup_irq() local
991 for_each_pci_dev(dev2) { in pcibios_lookup_irq()
992 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin); in pcibios_lookup_irq()
996 info = pirq_get_info(dev2); in pcibios_lookup_irq()
1004 if (dev2->irq && dev2->irq != irq && \ in pcibios_lookup_irq()
1006 ((1 << dev2->irq) & mask))) { in pcibios_lookup_irq()
1008 dev_info(&dev2->dev, "IRQ routing conflict: " in pcibios_lookup_irq()
1010 dev2->irq, irq); in pcibios_lookup_irq()
1014 dev2->irq = irq; in pcibios_lookup_irq()
1016 if (dev != dev2) in pcibios_lookup_irq()
[all …]
/linux-4.4.14/drivers/s390/net/
Dctcm_main.h266 unsigned long dev1, dev2; in ctcm_less_than() local
272 dev2 = simple_strtoul(id2, &id2, 16); in ctcm_less_than()
274 return (dev1 < dev2); in ctcm_less_than()
/linux-4.4.14/drivers/input/joystick/
Ddb9.c55 module_param_array_named(dev2, db9_cfg[1].args, int, &db9_cfg[1].nargs, 0);
56 MODULE_PARM_DESC(dev2, "Describes second attached device (<parport#>,<type>)");
372 struct input_dev *dev2 = db9->dev[1]; in db9_timer() local
380 input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
381 input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); in db9_timer()
382 input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); in db9_timer()
/linux-4.4.14/drivers/block/
Dcciss_scsi.c504 struct cciss_scsi_dev_t *dev2) in device_is_the_same() argument
506 return dev1->devtype == dev2->devtype && in device_is_the_same()
507 memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
509 memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
511 memcmp(dev1->vendor, dev2->vendor, in device_is_the_same()
513 memcmp(dev1->model, dev2->model, in device_is_the_same()
515 memcmp(dev1->revision, dev2->revision, in device_is_the_same()
/linux-4.4.14/include/net/
Dx25.h173 struct net_device *dev2; member
/linux-4.4.14/drivers/staging/unisys/Documentation/
Doverview.txt155 vbus1:dev2 -> ../../../devices/visorbus1/vbus1:dev2
159 vbus2:dev2 -> ../../../devices/visorbus2/vbus2:dev2
/linux-4.4.14/drivers/usb/host/
Dehci-sched.c309 struct usb_device *dev2) in same_tt() argument
311 if (!dev1->tt || !dev2->tt) in same_tt()
313 if (dev1->tt != dev2->tt) in same_tt()
316 return dev1->ttport == dev2->ttport; in same_tt()
Dfotg210-hcd.c3412 static int same_tt(struct usb_device *dev1, struct usb_device *dev2) in same_tt() argument
3414 if (!dev1->tt || !dev2->tt) in same_tt()
3416 if (dev1->tt != dev2->tt) in same_tt()
3419 return dev1->ttport == dev2->ttport; in same_tt()
/linux-4.4.14/drivers/scsi/
Dhpsa.c1415 struct hpsa_scsi_dev_t *dev2) in device_is_the_same() argument
1421 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1424 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1427 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1429 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1431 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1433 if (dev1->bus != dev2->bus) in device_is_the_same()
1439 struct hpsa_scsi_dev_t *dev2) in device_updated() argument
1445 if (dev1->raid_level != dev2->raid_level) in device_updated()
1447 if (dev1->offload_config != dev2->offload_config) in device_updated()
[all …]
/linux-4.4.14/Documentation/input/
Djoystick-parport.txt501 can use db9.dev2 and db9.dev3 as additional command line parameters for two