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 | 190 struct opp_device *new_dev; in opp_migrate_dentry() local 195 list_for_each_entry(new_dev, &opp_table->dev_list, node) in opp_migrate_dentry() 196 if (new_dev != opp_dev) in opp_migrate_dentry() 200 dev = new_dev->dev; in opp_migrate_dentry() 201 debugfs_remove_recursive(new_dev->dentry); in opp_migrate_dentry() 213 new_dev->dentry = dentry; in opp_migrate_dentry()
|
/drivers/block/rnbd/ |
D | rnbd-srv.c | 440 rnbd_srv_find_or_add_srv_dev(struct rnbd_srv_dev *new_dev) in rnbd_srv_find_or_add_srv_dev() argument 446 if (!strncmp(dev->id, new_dev->id, sizeof(dev->id))) { in rnbd_srv_find_or_add_srv_dev() 457 list_add(&new_dev->list, &dev_list); in rnbd_srv_find_or_add_srv_dev() 460 return new_dev; in rnbd_srv_find_or_add_srv_dev() 514 struct rnbd_srv_dev *new_dev, *dev; in rnbd_srv_get_or_create_srv_dev() local 516 new_dev = rnbd_srv_init_srv_dev(rnbd_dev->name); in rnbd_srv_get_or_create_srv_dev() 517 if (IS_ERR(new_dev)) in rnbd_srv_get_or_create_srv_dev() 518 return new_dev; in rnbd_srv_get_or_create_srv_dev() 520 dev = rnbd_srv_find_or_add_srv_dev(new_dev); in rnbd_srv_get_or_create_srv_dev() 521 if (dev != new_dev) in rnbd_srv_get_or_create_srv_dev() [all …]
|
/drivers/net/usb/ |
D | qmi_wwan.c | 245 struct net_device *new_dev; in qmimux_register_device() local 249 new_dev = alloc_netdev(sizeof(struct qmimux_priv), in qmimux_register_device() 251 if (!new_dev) in qmimux_register_device() 254 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device() 255 priv = netdev_priv(new_dev); in qmimux_register_device() 265 err = register_netdevice(new_dev); in qmimux_register_device() 272 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device() 276 netif_stacked_transfer_operstate(real_dev, new_dev); in qmimux_register_device() 281 unregister_netdevice(new_dev); in qmimux_register_device() 285 free_netdev(new_dev); in qmimux_register_device()
|
/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 | 338 struct dm_dev *old_dev, *new_dev; in upgrade_mode() local 343 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode() 347 dd->dm_dev = new_dev; in upgrade_mode()
|
D | md.c | 4704 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
|
/drivers/block/ |
D | floppy.c | 4081 int old_dev, new_dev; in floppy_open() local 4133 new_dev = MINOR(bdev->bd_dev); in floppy_open() 4134 drive_state[drive].fd_device = new_dev; in floppy_open() 4135 set_capacity(disks[drive], floppy_sizes[new_dev]); in floppy_open() 4136 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()
|