Searched refs:new_dev (Results 1 – 12 of 12) sorted by relevance
/drivers/input/keyboard/ |
D | atkbd.c | 1482 struct input_dev *old_dev, *new_dev; in atkbd_set_extra() local 1508 new_dev = input_allocate_device(); in atkbd_set_extra() 1509 if (!new_dev) in atkbd_set_extra() 1512 atkbd->dev = new_dev; in atkbd_set_extra() 1521 input_free_device(new_dev); in atkbd_set_extra() 1570 struct input_dev *old_dev, *new_dev; in atkbd_set_scroll() local 1586 new_dev = input_allocate_device(); in atkbd_set_scroll() 1587 if (!new_dev) in atkbd_set_scroll() 1590 atkbd->dev = new_dev; in atkbd_set_scroll() 1597 input_free_device(new_dev); in atkbd_set_scroll() [all …]
|
/drivers/opp/ |
D | debugfs.c | 195 struct opp_device *new_dev; in opp_migrate_dentry() local 200 list_for_each_entry(new_dev, &opp_table->dev_list, node) in opp_migrate_dentry() 201 if (new_dev != opp_dev) in opp_migrate_dentry() 205 dev = new_dev->dev; in opp_migrate_dentry() 206 debugfs_remove_recursive(new_dev->dentry); in opp_migrate_dentry() 218 new_dev->dentry = dentry; in opp_migrate_dentry()
|
/drivers/block/rnbd/ |
D | rnbd-srv.c | 450 rnbd_srv_find_or_add_srv_dev(struct rnbd_srv_dev *new_dev) in rnbd_srv_find_or_add_srv_dev() argument 456 if (!strncmp(dev->id, new_dev->id, sizeof(dev->id))) { in rnbd_srv_find_or_add_srv_dev() 467 list_add(&new_dev->list, &dev_list); in rnbd_srv_find_or_add_srv_dev() 470 return new_dev; in rnbd_srv_find_or_add_srv_dev() 524 struct rnbd_srv_dev *new_dev, *dev; in rnbd_srv_get_or_create_srv_dev() local 526 new_dev = rnbd_srv_init_srv_dev(rnbd_dev->name); in rnbd_srv_get_or_create_srv_dev() 527 if (IS_ERR(new_dev)) in rnbd_srv_get_or_create_srv_dev() 528 return new_dev; in rnbd_srv_get_or_create_srv_dev() 530 dev = rnbd_srv_find_or_add_srv_dev(new_dev); in rnbd_srv_get_or_create_srv_dev() 531 if (dev != new_dev) in rnbd_srv_get_or_create_srv_dev() [all …]
|
/drivers/net/usb/ |
D | qmi_wwan.c | 246 struct net_device *new_dev; in qmimux_register_device() local 250 new_dev = alloc_netdev(sizeof(struct qmimux_priv), in qmimux_register_device() 252 if (!new_dev) in qmimux_register_device() 255 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device() 256 priv = netdev_priv(new_dev); in qmimux_register_device() 260 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device() 261 if (!new_dev->tstats) { in qmimux_register_device() 266 new_dev->sysfs_groups[0] = &qmi_wwan_sysfs_qmimux_attr_group; in qmimux_register_device() 268 err = register_netdevice(new_dev); in qmimux_register_device() 275 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device() [all …]
|
/drivers/input/mouse/ |
D | hgpk.c | 820 struct input_dev *new_dev; in attr_set_mode() local 829 new_dev = input_allocate_device(); in attr_set_mode() 830 if (!new_dev) in attr_set_mode() 841 hgpk_setup_input_device(new_dev, old_dev, new_mode); in attr_set_mode() 845 err = input_register_device(new_dev); in attr_set_mode() 849 psmouse->dev = new_dev; in attr_set_mode() 855 input_free_device(new_dev); in attr_set_mode()
|
D | psmouse-base.c | 1902 struct input_dev *old_dev, *new_dev; in psmouse_attr_set_protocol() local 1914 new_dev = input_allocate_device(); in psmouse_attr_set_protocol() 1915 if (!new_dev) in psmouse_attr_set_protocol() 1922 input_free_device(new_dev); in psmouse_attr_set_protocol() 1931 input_free_device(new_dev); in psmouse_attr_set_protocol() 1936 input_free_device(new_dev); in psmouse_attr_set_protocol() 1955 psmouse->dev = new_dev; in psmouse_attr_set_protocol() 1977 input_free_device(new_dev); in psmouse_attr_set_protocol()
|
/drivers/bus/ |
D | moxtet.c | 123 struct moxtet_device *new_dev = data; in moxtet_dev_check() local 125 if (mdev->moxtet == new_dev->moxtet && mdev->id == new_dev->id && in moxtet_dev_check() 126 mdev->idx == new_dev->idx) in moxtet_dev_check()
|
/drivers/media/dvb-frontends/ |
D | stv090x.c | 85 struct stv090x_dev *new_dev; in append_internal() local 88 new_dev = kmalloc(sizeof(struct stv090x_dev), GFP_KERNEL); in append_internal() 89 if (new_dev != NULL) { in append_internal() 90 new_dev->internal = internal; in append_internal() 91 new_dev->next_dev = NULL; in append_internal() 95 stv090x_first_dev = new_dev; in append_internal() 101 temp_dev->next_dev = new_dev; in append_internal() 105 return new_dev; in append_internal()
|
/drivers/md/ |
D | dm-table.c | 320 struct dm_dev *old_dev, *new_dev; in upgrade_mode() local 325 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode() 329 dd->dm_dev = new_dev; in upgrade_mode()
|
D | md.c | 4699 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
|
/drivers/block/ |
D | floppy.c | 3991 int old_dev, new_dev; in floppy_open() local 4043 new_dev = MINOR(bdev->bd_dev); in floppy_open() 4044 drive_state[drive].fd_device = new_dev; in floppy_open() 4045 set_capacity(disks[drive][ITYPE(new_dev)], floppy_sizes[new_dev]); in floppy_open() 4046 if (old_dev != -1 && old_dev != new_dev) { in floppy_open()
|
/drivers/net/ethernet/broadcom/ |
D | cnic.c | 5684 int new_dev = 0; in cnic_netdev_event() local 5692 new_dev = 1; in cnic_netdev_event() 5699 if (new_dev) in cnic_netdev_event()
|