Home
last modified time | relevance | path

Searched refs:dev2 (Results 1 – 16 of 16) 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.c154 struct input_dev *dev1, struct input_dev *dev2, in alps_report_buttons() argument
164 dev = test_bit(BTN_LEFT, dev2->key) ? dev2 : dev1; in alps_report_buttons()
167 dev = test_bit(BTN_RIGHT, dev2->key) ? dev2 : dev1; in alps_report_buttons()
170 dev = test_bit(BTN_MIDDLE, dev2->key) ? dev2 : dev1; in alps_report_buttons()
177 input_sync(dev2); in alps_report_buttons()
185 struct input_dev *dev2 = priv->dev2; in alps_process_packet_v1_v2() local
221 input_report_rel(dev2, REL_X, (x > 383 ? (x - 768) : x)); in alps_process_packet_v1_v2()
222 input_report_rel(dev2, REL_Y, -(y > 255 ? (y - 512) : y)); in alps_process_packet_v1_v2()
224 alps_report_buttons(psmouse, dev2, dev, left, right, middle); in alps_process_packet_v1_v2()
226 input_sync(dev2); in alps_process_packet_v1_v2()
[all …]
Dalps.h163 struct input_dev *dev2; member
/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 …]
/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>)");
371 struct input_dev *dev2 = db9->dev[1]; in db9_timer() local
379 input_report_abs(dev2, ABS_X, (data & DB9_RIGHT ? 0 : 1) - (data & DB9_LEFT ? 0 : 1)); in db9_timer()
380 input_report_abs(dev2, ABS_Y, (data & DB9_DOWN ? 0 : 1) - (data & DB9_UP ? 0 : 1)); in db9_timer()
381 input_report_key(dev2, BTN_TRIGGER, ~data & DB9_FIRE1); in db9_timer()
/drivers/block/
Dcciss_scsi.c505 struct cciss_scsi_dev_t *dev2) in device_is_the_same() argument
507 return dev1->devtype == dev2->devtype && in device_is_the_same()
508 memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
510 memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
512 memcmp(dev1->vendor, dev2->vendor, in device_is_the_same()
514 memcmp(dev1->model, dev2->model, in device_is_the_same()
516 memcmp(dev1->revision, dev2->revision, in device_is_the_same()
/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()
Dfusbh200-hcd.c3477 static int same_tt (struct usb_device *dev1, struct usb_device *dev2) in same_tt() argument
3479 if (!dev1->tt || !dev2->tt) in same_tt()
3481 if (dev1->tt != dev2->tt) in same_tt()
3484 return dev1->ttport == dev2->ttport; in same_tt()
Dfotg210-hcd.c3535 static int same_tt(struct usb_device *dev1, struct usb_device *dev2) in same_tt() argument
3537 if (!dev1->tt || !dev2->tt) in same_tt()
3539 if (dev1->tt != dev2->tt) in same_tt()
3542 return dev1->ttport == dev2->ttport; in same_tt()
/drivers/scsi/
Dhpsa.c1084 struct hpsa_scsi_dev_t *dev2) in device_is_the_same() argument
1090 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1093 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1096 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1098 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1100 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1102 if (dev1->bus != dev2->bus) in device_is_the_same()
1108 struct hpsa_scsi_dev_t *dev2) in device_updated() argument
1114 if (dev1->raid_level != dev2->raid_level) in device_updated()
1116 if (dev1->offload_config != dev2->offload_config) in device_updated()
[all …]