Home
last modified time | relevance | path

Searched refs:new_dev (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/input/keyboard/
A Datkbd.c1466 if (!new_dev) in atkbd_set_extra()
1469 atkbd->dev = new_dev; in atkbd_set_extra()
1478 input_free_device(new_dev); in atkbd_set_extra()
1544 if (!new_dev) in atkbd_set_scroll()
1547 atkbd->dev = new_dev; in atkbd_set_scroll()
1597 if (!new_dev) in atkbd_set_set()
1600 atkbd->dev = new_dev; in atkbd_set_set()
1651 if (!new_dev) in atkbd_set_softrepeat()
1654 atkbd->dev = new_dev; in atkbd_set_softrepeat()
1701 if (!new_dev) in atkbd_set_softraw()
[all …]
/linux/drivers/opp/
A Ddebugfs.c190 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()
/linux/net/8021q/
A Dvlan.c216 struct net_device *new_dev; in register_vlan_device() local
257 new_dev = alloc_netdev(sizeof(struct vlan_dev_priv), name, in register_vlan_device()
260 if (new_dev == NULL) in register_vlan_device()
263 dev_net_set(new_dev, net); in register_vlan_device()
267 new_dev->mtu = real_dev->mtu; in register_vlan_device()
269 vlan = vlan_dev_priv(new_dev); in register_vlan_device()
276 new_dev->rtnl_link_ops = &vlan_link_ops; in register_vlan_device()
277 err = register_vlan_dev(new_dev, NULL); in register_vlan_device()
284 free_netdev(new_dev); in register_vlan_device()
/linux/drivers/block/rnbd/
A Drnbd-srv.c449 rnbd_srv_find_or_add_srv_dev(struct rnbd_srv_dev *new_dev) in rnbd_srv_find_or_add_srv_dev() argument
455 if (!strncmp(dev->id, new_dev->id, sizeof(dev->id))) { in rnbd_srv_find_or_add_srv_dev()
466 list_add(&new_dev->list, &dev_list); in rnbd_srv_find_or_add_srv_dev()
469 return new_dev; in rnbd_srv_find_or_add_srv_dev()
523 struct rnbd_srv_dev *new_dev, *dev; in rnbd_srv_get_or_create_srv_dev() local
525 new_dev = rnbd_srv_init_srv_dev(rnbd_dev->name); in rnbd_srv_get_or_create_srv_dev()
526 if (IS_ERR(new_dev)) in rnbd_srv_get_or_create_srv_dev()
527 return new_dev; in rnbd_srv_get_or_create_srv_dev()
529 dev = rnbd_srv_find_or_add_srv_dev(new_dev); in rnbd_srv_get_or_create_srv_dev()
530 if (dev != new_dev) in rnbd_srv_get_or_create_srv_dev()
[all …]
/linux/drivers/net/usb/
A Dqmi_wwan.c246 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()
261 if (!new_dev->tstats) { 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()
279 netif_stacked_transfer_operstate(real_dev, new_dev); in qmimux_register_device()
284 unregister_netdevice(new_dev); in qmimux_register_device()
[all …]
/linux/drivers/input/mouse/
A Dhgpk.c820 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()
A Dpsmouse-base.c1902 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()
/linux/net/bluetooth/
A D6lowpan.c1184 struct lowpan_btle_dev *entry, *tmp, *new_dev; in disconnect_devices() local
1197 new_dev = kmalloc(sizeof(*new_dev), GFP_ATOMIC); in disconnect_devices()
1198 if (!new_dev) in disconnect_devices()
1201 new_dev->netdev = entry->netdev; in disconnect_devices()
1202 INIT_LIST_HEAD(&new_dev->list); in disconnect_devices()
1204 list_add_rcu(&new_dev->list, &devices); in disconnect_devices()
/linux/include/linux/mfd/
A Dmax14577.h70 int (*set_gpio_pogo_cb) (int new_dev);
/linux/drivers/bus/
A Dmoxtet.c123 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()
/linux/net/ipv4/
A Dipmr.c466 if (!new_dev) in ipmr_new_tunnel()
469 new_dev->flags |= IFF_MULTICAST; in ipmr_new_tunnel()
470 if (!ipmr_init_vif_indev(new_dev)) in ipmr_new_tunnel()
472 if (dev_open(new_dev, NULL)) in ipmr_new_tunnel()
474 dev_hold(new_dev); in ipmr_new_tunnel()
475 err = dev_set_allmulti(new_dev, 1); in ipmr_new_tunnel()
477 dev_close(new_dev); in ipmr_new_tunnel()
480 dev_put(new_dev); in ipmr_new_tunnel()
481 new_dev = ERR_PTR(err); in ipmr_new_tunnel()
483 return new_dev; in ipmr_new_tunnel()
[all …]
/linux/drivers/media/dvb-frontends/
A Dstv090x.c85 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()
/linux/drivers/md/
A Ddm-table.c315 struct dm_dev *old_dev, *new_dev; in upgrade_mode() local
320 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode()
324 dd->dm_dev = new_dev; in upgrade_mode()
A Dmd.c4634 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
/linux/drivers/block/
A Dfloppy.c3970 int old_dev, new_dev; in floppy_open() local
4022 new_dev = MINOR(bdev->bd_dev); in floppy_open()
4023 drive_state[drive].fd_device = new_dev; in floppy_open()
4024 set_capacity(disks[drive][ITYPE(new_dev)], floppy_sizes[new_dev]); in floppy_open()
4025 if (old_dev != -1 && old_dev != new_dev) { in floppy_open()
/linux/net/core/
A Ddev.c8299 struct net_device *new_dev, in netdev_adjacent_change_prepare() argument
8309 if (!new_dev) in netdev_adjacent_change_prepare()
8312 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
8317 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
8327 struct net_device *new_dev, in netdev_adjacent_change_commit() argument
8335 if (!new_dev || !old_dev) in netdev_adjacent_change_commit()
8338 if (new_dev == old_dev) in netdev_adjacent_change_commit()
8347 struct net_device *new_dev, in netdev_adjacent_change_abort() argument
8355 if (!new_dev) in netdev_adjacent_change_abort()
8358 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_abort()
[all …]
/linux/include/linux/
A Dnetdevice.h4889 struct net_device *new_dev,
4893 struct net_device *new_dev,
4896 struct net_device *new_dev,
/linux/drivers/net/ethernet/broadcom/
A Dcnic.c5684 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()
/linux/Documentation/admin-guide/
A Dmd.rst279 new_dev

Completed in 255 milliseconds