Home
last modified time | relevance | path

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

/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.c218 static void alps_report_buttons(struct input_dev *dev1, struct input_dev *dev2, in alps_report_buttons() argument
228 dev = (dev2 && test_bit(BTN_LEFT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
231 dev = (dev2 && test_bit(BTN_RIGHT, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
234 dev = (dev2 && test_bit(BTN_MIDDLE, dev2->key)) ? dev2 : dev1; in alps_report_buttons()
241 if (dev2) in alps_report_buttons()
242 input_sync(dev2); in alps_report_buttons()
250 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v1_v2() local
286 input_report_rel(dev2, REL_X, (x > 383 ? (x - 768) : x)); in alps_process_packet_v1_v2()
287 input_report_rel(dev2, REL_Y, -(y > 255 ? (y - 512) : y)); in alps_process_packet_v1_v2()
289 alps_report_buttons(dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
[all …]
Dalps.h275 struct input_dev *dev2; member
/drivers/ide/
Dpdc202xx_new.c426 struct pci_dev *dev2; in pdc20270_get_dev2() local
428 dev2 = pci_get_slot(dev->bus, PCI_DEVFN(PCI_SLOT(dev->devfn) + 1, in pdc20270_get_dev2()
431 if (dev2 && in pdc20270_get_dev2()
432 dev2->vendor == dev->vendor && in pdc20270_get_dev2()
433 dev2->device == dev->device) { in pdc20270_get_dev2()
435 if (dev2->irq != dev->irq) { in pdc20270_get_dev2()
436 dev2->irq = dev->irq; in pdc20270_get_dev2()
441 return dev2; in pdc20270_get_dev2()
489 struct pci_dev *dev2; in pdc202new_init_one() local
494 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.c1263 static void hpt374_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt374_init() argument
1265 if (dev2->irq != dev->irq) { in hpt374_init()
1267 dev2->irq = dev->irq; in hpt374_init()
1269 "fixed\n", pci_name(dev2)); in hpt374_init()
1288 static int hpt36x_init(struct pci_dev *dev, struct pci_dev *dev2) in hpt36x_init() argument
1301 pci_read_config_byte(dev2, PCI_INTERRUPT_PIN, &pin2); in hpt36x_init()
1303 if (pin1 != pin2 && dev->irq == dev2->irq) { in hpt36x_init()
1404 struct pci_dev *dev2 = NULL; in hpt366_init_one() local
1456 dev2 = pci_get_slot(dev->bus, dev->devfn + 1); in hpt366_init_one()
1458 dyn_info = kzalloc(sizeof(*dyn_info) * (dev2 ? 2 : 1), GFP_KERNEL); in hpt366_init_one()
[all …]
/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 …]
/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()
/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()
/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()
/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()
/drivers/staging/unisys/Documentation/
Doverview.txt149 vbus1:dev2 -> ../../../devices/visorbus1/vbus1:dev2
153 vbus2:dev2 -> ../../../devices/visorbus2/vbus2:dev2
/drivers/usb/host/
Dehci-sched.c308 struct usb_device *dev2) in same_tt() argument
310 if (!dev1->tt || !dev2->tt) in same_tt()
312 if (dev1->tt != dev2->tt) in same_tt()
315 return dev1->ttport == dev2->ttport; in same_tt()
Dfotg210-hcd.c3407 static int same_tt(struct usb_device *dev1, struct usb_device *dev2) in same_tt() argument
3409 if (!dev1->tt || !dev2->tt) in same_tt()
3411 if (dev1->tt != dev2->tt) in same_tt()
3414 return dev1->ttport == dev2->ttport; in same_tt()
/drivers/scsi/
Dhpsa.c1444 struct hpsa_scsi_dev_t *dev2) in device_is_the_same() argument
1450 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1453 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1456 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1458 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1460 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1462 if (dev1->bus != dev2->bus) in device_is_the_same()
1468 struct hpsa_scsi_dev_t *dev2) in device_updated() argument
1474 if (dev1->raid_level != dev2->raid_level) in device_updated()
1476 if (dev1->offload_config != dev2->offload_config) in device_updated()
[all …]
/drivers/pci/
Dpci.c4955 bool pci_devs_are_dma_aliases(struct pci_dev *dev1, struct pci_dev *dev2) in pci_devs_are_dma_aliases() argument
4958 test_bit(dev2->devfn, dev1->dma_alias_mask)) || in pci_devs_are_dma_aliases()
4959 (dev2->dma_alias_mask && in pci_devs_are_dma_aliases()
4960 test_bit(dev1->devfn, dev2->dma_alias_mask)); in pci_devs_are_dma_aliases()
/drivers/scsi/smartpqi/
Dsmartpqi_init.c1297 struct pqi_scsi_dev *dev2) in pqi_device_equal() argument
1299 if (dev1->is_physical_device != dev2->is_physical_device) in pqi_device_equal()
1303 return dev1->wwid == dev2->wwid; in pqi_device_equal()
1305 return memcmp(dev1->volume_id, dev2->volume_id, in pqi_device_equal()