Home
last modified time | relevance | path

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

12

/Linux-v5.4/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);
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/ata/
Dpata_optidma.c365 struct pci_dev *dev1; in optiplus_with_udma() local
368 dev1 = pci_get_device(0x1045, 0xC701, NULL); in optiplus_with_udma()
369 if (dev1 == NULL) in optiplus_with_udma()
373 pci_read_config_byte(dev1, 0x08, &r); in optiplus_with_udma()
377 pci_read_config_byte(dev1, 0x5F, &r); in optiplus_with_udma()
388 pci_read_config_byte(dev1, 0x52, &r); in optiplus_with_udma()
394 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()
/Linux-v5.4/net/x25/
Dx25_forward.c66 new_frwd->dev1 = rt->dev; in x25_forward_call()
106 if (from->dev == frwd->dev1) { in x25_forward_data()
109 peer = frwd->dev1; in x25_forward_data()
159 if ((fwd->dev1 == dev) || (fwd->dev2 == dev)){ in x25_clear_forward_by_dev()
Dx25_proc.c143 f->lci, f->dev1->name, f->dev2->name); in x25_seq_forward_show()
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/
Dqos_dscp_router.sh162 local dev1=$1; shift
175 eval "local -A dev1_t0s=($(dscp_fetch_stats $dev1 0))"
183 eval "local -A dev1_t1s=($(dscp_fetch_stats $dev1 0))"
204 check_err $? "DSCP $dscpi@$dev1: Expected to capture $expect3 packets, got $delta."
/Linux-v5.4/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()
/Linux-v5.4/drivers/nfc/
Dnfcsim.c439 static struct nfcsim *dev1; variable
461 dev1 = nfcsim_device_new(link1, link0); in nfcsim_init()
462 if (IS_ERR(dev1)) { in nfcsim_init()
465 rc = PTR_ERR(dev1); in nfcsim_init()
492 nfcsim_device_free(dev1); in nfcsim_exit()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Dlag.c289 struct mlx5_core_dev *dev1 = ldev->pf[1].dev; in mlx5_do_bond() local
294 if (!dev0 || !dev1) in mlx5_do_bond()
305 !mlx5_sriov_is_enabled(dev1); in mlx5_do_bond()
309 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE; in mlx5_do_bond()
327 mlx5_nic_vport_enable_roce(dev1); in mlx5_do_bond()
336 mlx5_nic_vport_disable_roce(dev1); in mlx5_do_bond()
Deswitch.h438 struct mlx5_core_dev *dev1);
440 struct mlx5_core_dev *dev1);
607 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.c2598 bool mlx5_esw_lag_prereq(struct mlx5_core_dev *dev0, struct mlx5_core_dev *dev1) in mlx5_esw_lag_prereq() argument
2601 dev1->priv.eswitch->mode == MLX5_ESWITCH_NONE) || in mlx5_esw_lag_prereq()
2603 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS)) in mlx5_esw_lag_prereq()
2610 struct mlx5_core_dev *dev1) in mlx5_esw_multipath_prereq() argument
2613 dev1->priv.eswitch->mode == MLX5_ESWITCH_OFFLOADS); in mlx5_esw_multipath_prereq()
/Linux-v5.4/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()
/Linux-v5.4/drivers/ide/
Dsetup-pci.c533 int ide_pci_init_two(struct pci_dev *dev1, struct pci_dev *dev2, in ide_pci_init_two() argument
536 struct pci_dev *pdev[] = { dev1, dev2 }; in ide_pci_init_two()
570 host->dev[0] = &dev1->dev; in ide_pci_init_two()
Dide-probe.c651 void ide_undecoded_slave(ide_drive_t *dev1) in ide_undecoded_slave() argument
653 ide_drive_t *dev0 = dev1->hwif->devices[0]; in ide_undecoded_slave()
655 if ((dev1->dn & 1) == 0 || (dev0->dev_flags & IDE_DFLAG_PRESENT) == 0) in ide_undecoded_slave()
660 (char *)&dev1->id[ATA_ID_PROD])) in ide_undecoded_slave()
665 (char *)&dev1->id[ATA_ID_SERNO], ATA_ID_SERNO_LEN)) in ide_undecoded_slave()
675 dev1->dev_flags &= ~IDE_DFLAG_PRESENT; in ide_undecoded_slave()
Dhpt366.c965 struct pci_dev *dev1 = pci_get_slot(dev->bus, in init_chipset_hpt366() local
967 unsigned long io_base = pci_resource_start(dev1, 4); in init_chipset_hpt366()
970 pci_dev_put(dev1); in init_chipset_hpt366()
/Linux-v5.4/drivers/acpi/
Dacpi_lpss.c564 static void acpi_lpss_link_consumer(struct device *dev1, in acpi_lpss_link_consumer() argument
573 if (acpi_lpss_dep(ACPI_COMPANION(dev2), ACPI_HANDLE(dev1))) in acpi_lpss_link_consumer()
574 device_link_add(dev2, dev1, link->flags); in acpi_lpss_link_consumer()
579 static void acpi_lpss_link_supplier(struct device *dev1, in acpi_lpss_link_supplier() argument
588 if (acpi_lpss_dep(ACPI_COMPANION(dev1), ACPI_HANDLE(dev2))) in acpi_lpss_link_supplier()
589 device_link_add(dev1, dev2, link->flags); in acpi_lpss_link_supplier()
/Linux-v5.4/net/batman-adv/
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-v5.4/include/net/
Dx25.h174 struct net_device *dev1; member
/Linux-v5.4/drivers/staging/unisys/Documentation/
Doverview.txt148 vbus1:dev1 -> ../../../devices/visorbus1/vbus1:dev1
152 vbus2:dev1 -> ../../../devices/visorbus2/vbus2:dev1
/Linux-v5.4/drivers/net/ethernet/marvell/
Dskge.c3879 struct net_device *dev, *dev1; in skge_probe() local
3969 dev1 = skge_devinit(hw, 1, using_dac); in skge_probe()
3970 if (!dev1) { in skge_probe()
3975 err = register_netdev(dev1); in skge_probe()
3989 skge_show_addr(dev1); in skge_probe()
3996 unregister_netdev(dev1); in skge_probe()
3998 free_netdev(dev1); in skge_probe()
4020 struct net_device *dev0, *dev1; in skge_remove() local
4025 dev1 = hw->dev[1]; in skge_remove()
4026 if (dev1) in skge_remove()
[all …]
/Linux-v5.4/drivers/usb/host/
Dehci-sched.c295 static int __maybe_unused same_tt(struct usb_device *dev1, in same_tt() argument
298 if (!dev1->tt || !dev2->tt) in same_tt()
300 if (dev1->tt != dev2->tt) in same_tt()
302 if (dev1->tt->multi) in same_tt()
303 return dev1->ttport == dev2->ttport; in same_tt()
/Linux-v5.4/drivers/scsi/
Dhpsa.c1476 static inline int device_is_the_same(struct hpsa_scsi_dev_t *dev1, in device_is_the_same() argument
1483 if (memcmp(dev1->scsi3addr, dev2->scsi3addr, in device_is_the_same()
1484 sizeof(dev1->scsi3addr)) != 0) in device_is_the_same()
1486 if (memcmp(dev1->device_id, dev2->device_id, in device_is_the_same()
1487 sizeof(dev1->device_id)) != 0) in device_is_the_same()
1489 if (memcmp(dev1->model, dev2->model, sizeof(dev1->model)) != 0) in device_is_the_same()
1491 if (memcmp(dev1->vendor, dev2->vendor, sizeof(dev1->vendor)) != 0) in device_is_the_same()
1493 if (dev1->devtype != dev2->devtype) in device_is_the_same()
1495 if (dev1->bus != dev2->bus) in device_is_the_same()
1500 static inline int device_updated(struct hpsa_scsi_dev_t *dev1, in device_updated() argument
[all …]

12