Home
last modified time | relevance | path

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

/drivers/input/mouse/
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 …]
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()
2982 struct input_dev *dev1) in alps_set_abs_params_st() argument
2984 input_set_abs_params(dev1, ABS_X, 0, priv->x_max, 0, 0); in alps_set_abs_params_st()
[all …]
Dalps.h313 void (*set_abs_params)(struct alps_data *priv, struct input_dev *dev1);
/drivers/net/ethernet/mellanox/mlx5/core/
Dlag.c234 struct mlx5_core_dev *dev1 = ldev->pf[MLX5_LAG_P2].dev; in mlx5_create_lag() local
256 dev1->priv.eswitch); in mlx5_create_lag()
383 struct mlx5_core_dev *dev1 = ldev->pf[MLX5_LAG_P2].dev; in mlx5_disable_lag() local
397 mlx5_nic_vport_disable_roce(dev1); in mlx5_disable_lag()
410 if (!(dev1->priv.flags & MLX5_PRIV_FLAGS_DISABLE_ALL_ADEV)) in mlx5_disable_lag()
411 mlx5_eswitch_reload_reps(dev1->priv.eswitch); in mlx5_disable_lag()
418 struct mlx5_core_dev *dev1 = ldev->pf[MLX5_LAG_P2].dev; in mlx5_shared_fdb_supported() local
421 is_mdev_switchdev_mode(dev1) && in mlx5_shared_fdb_supported()
423 mlx5_eswitch_vport_match_metadata_enabled(dev1->priv.eswitch) && in mlx5_shared_fdb_supported()
426 MLX5_CAP_GEN(dev1, lag_native_fdb_selection) && in mlx5_shared_fdb_supported()
[all …]
Deswitch.h528 struct mlx5_core_dev *dev1);
530 struct mlx5_core_dev *dev1);
733 static inline bool mlx5_esw_lag_prereq(struct mlx5_core_dev *dev0, struct mlx5_core_dev *dev1) { re… in mlx5_esw_lag_prereq() argument
Deswitch.c1982 bool mlx5_esw_lag_prereq(struct mlx5_core_dev *dev0, struct mlx5_core_dev *dev1) in mlx5_esw_lag_prereq() argument
1985 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE) || in mlx5_esw_lag_prereq()
1987 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS)) in mlx5_esw_lag_prereq()
1994 struct mlx5_core_dev *dev1) in mlx5_esw_multipath_prereq() argument
1997 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS); in mlx5_esw_multipath_prereq()
/drivers/char/agp/
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 …]
/drivers/thunderbolt/
Dtest.c497 struct tb_switch *host, *dev1, *dev2; in tb_test_path_daisy_chain_walk() local
501 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_daisy_chain_walk()
502 dev2 = alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_daisy_chain_walk()
558 struct tb_switch *host, *dev1, *dev3; in tb_test_path_simple_tree_walk() local
562 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_simple_tree_walk()
563 alloc_dev_default(test, dev1, 0x301, true); in tb_test_path_simple_tree_walk()
564 dev3 = alloc_dev_default(test, dev1, 0x501, true); in tb_test_path_simple_tree_walk()
565 alloc_dev_default(test, dev1, 0x701, true); in tb_test_path_simple_tree_walk()
636 struct tb_switch *host, *dev1, *dev2, *dev3, *dev5, *dev6, *dev7, *dev9; in tb_test_path_complex_tree_walk() local
641 dev1 = alloc_dev_default(test, host, 0x1, true); in tb_test_path_complex_tree_walk()
[all …]
/drivers/ata/
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()
Dpata_ep93xx.c554 unsigned int dev1 = devmask & (1 << 1); in ep93xx_pata_wait_after_reset() local
572 if (dev1) { in ep93xx_pata_wait_after_reset()
603 if (dev1) in ep93xx_pata_wait_after_reset()
Dlibata-sff.c1900 unsigned int dev1 = devmask & (1 << 1); in ata_sff_wait_after_reset() local
1916 if (dev1) { in ata_sff_wait_after_reset()
1945 if (dev1) in ata_sff_wait_after_reset()
/drivers/s390/net/
Dctcm_main.h267 unsigned long dev1, dev2; in ctcm_less_than() local
272 dev1 = simple_strtoul(id1, &id1, 16); in ctcm_less_than()
275 return (dev1 < dev2); in ctcm_less_than()
/drivers/nfc/
Dnfcsim.c434 static struct nfcsim *dev1; variable
456 dev1 = nfcsim_device_new(link1, link0); in nfcsim_init()
457 if (IS_ERR(dev1)) { in nfcsim_init()
460 rc = PTR_ERR(dev1); in nfcsim_init()
487 nfcsim_device_free(dev1); in nfcsim_exit()
/drivers/extcon/
Dextcon-rt8973a.c262 unsigned int adc, dev1; in rt8973a_muic_get_cable_type() local
274 ret = regmap_read(info->regmap, RT8973A_REG_DEV1, &dev1); in rt8973a_muic_get_cable_type()
282 if (dev1 & RT8973A_REG_DEV1_USB_MASK) in rt8973a_muic_get_cable_type()
284 else if (dev1 & RT8973A_REG_DEV1_DCPORT_MASK) in rt8973a_muic_get_cable_type()
/drivers/acpi/
Dacpi_lpss.c576 static void acpi_lpss_link_consumer(struct device *dev1, in acpi_lpss_link_consumer() argument
586 || acpi_lpss_dep(ACPI_COMPANION(dev2), ACPI_HANDLE(dev1))) in acpi_lpss_link_consumer()
587 device_link_add(dev2, dev1, link->flags); in acpi_lpss_link_consumer()
592 static void acpi_lpss_link_supplier(struct device *dev1, in acpi_lpss_link_supplier() argument
602 || acpi_lpss_dep(ACPI_COMPANION(dev1), ACPI_HANDLE(dev2))) in acpi_lpss_link_supplier()
603 device_link_add(dev1, dev2, link->flags); in acpi_lpss_link_supplier()
/drivers/staging/unisys/Documentation/
Doverview.txt148 vbus1:dev1 -> ../../../devices/visorbus1/vbus1:dev1
152 vbus2:dev1 -> ../../../devices/visorbus2/vbus2:dev1
/drivers/net/ethernet/marvell/
Dskge.c3880 struct net_device *dev, *dev1; in skge_probe() local
3970 dev1 = skge_devinit(hw, 1, using_dac); in skge_probe()
3971 if (!dev1) { in skge_probe()
3976 err = register_netdev(dev1); in skge_probe()
3990 skge_show_addr(dev1); in skge_probe()
3997 unregister_netdev(dev1); in skge_probe()
3999 free_netdev(dev1); in skge_probe()
4021 struct net_device *dev0, *dev1; in skge_remove() local
4026 dev1 = hw->dev[1]; in skge_remove()
4027 if (dev1) in skge_remove()
[all …]
Dsky2.c4953 struct net_device *dev, *dev1; in sky2_probe() local
5088 dev1 = sky2_init_netdev(hw, 1, using_dac, wol_default); in sky2_probe()
5089 if (!dev1) { in sky2_probe()
5094 err = register_netdev(dev1); in sky2_probe()
5104 sky2_show_addr(dev1); in sky2_probe()
5116 unregister_netdev(dev1); in sky2_probe()
5118 free_netdev(dev1); in sky2_probe()
/drivers/usb/host/
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()
Dfotg210-hcd.c3380 static int same_tt(struct usb_device *dev1, struct usb_device *dev2) in same_tt() argument
3382 if (!dev1->tt || !dev2->tt) in same_tt()
3384 if (dev1->tt != dev2->tt) in same_tt()
3386 if (dev1->tt->multi) in same_tt()
3387 return dev1->ttport == dev2->ttport; in same_tt()
/drivers/scsi/
Dhpsa.c1489 static inline int device_is_the_same(struct hpsa_scsi_dev_t *dev1, in device_is_the_same() argument
1496 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1497 sizeof(dev1->scsi3addr)) != 0) in device_is_the_same()
1499 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1500 sizeof(dev1->device_id)) != 0) in device_is_the_same()
1502 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1504 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1506 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1508 if (dev1->bus != dev2->bus) in device_is_the_same()
1513 static inline int device_updated(struct hpsa_scsi_dev_t *dev1, in device_updated() argument
[all …]
/drivers/pci/
Dpci.c6377 bool pci_devs_are_dma_aliases(struct pci_dev *dev1, struct pci_dev *dev2) in pci_devs_are_dma_aliases() argument
6379 return (dev1->dma_alias_mask && in pci_devs_are_dma_aliases()
6380 test_bit(dev2->devfn, dev1->dma_alias_mask)) || in pci_devs_are_dma_aliases()
6382 test_bit(dev1->devfn, dev2->dma_alias_mask)) || in pci_devs_are_dma_aliases()
6383 pci_real_dma_dev(dev1) == dev2 || in pci_devs_are_dma_aliases()
6384 pci_real_dma_dev(dev2) == dev1; in pci_devs_are_dma_aliases()
/drivers/scsi/smartpqi/
Dsmartpqi_init.c1758 static inline bool pqi_device_equal(struct pqi_scsi_dev *dev1, struct pqi_scsi_dev *dev2) in pqi_device_equal() argument
1760 if (dev1->is_physical_device != dev2->is_physical_device) in pqi_device_equal()
1763 if (dev1->is_physical_device) in pqi_device_equal()
1764 return dev1->wwid == dev2->wwid; in pqi_device_equal()
1766 return memcmp(dev1->volume_id, dev2->volume_id, sizeof(dev1->volume_id)) == 0; in pqi_device_equal()