Home
last modified time | relevance | path

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

/openbmc/linux/drivers/input/keyboard/
H A Datkbd.c1487 struct input_dev *old_dev, *new_dev; in atkbd_set_extra() local
1513 new_dev = input_allocate_device(); in atkbd_set_extra()
1514 if (!new_dev) in atkbd_set_extra()
1517 atkbd->dev = new_dev; in atkbd_set_extra()
1526 input_free_device(new_dev); in atkbd_set_extra()
1575 struct input_dev *old_dev, *new_dev; in atkbd_set_scroll() local
1591 new_dev = input_allocate_device(); in atkbd_set_scroll()
1592 if (!new_dev) in atkbd_set_scroll()
1595 atkbd->dev = new_dev; in atkbd_set_scroll()
1602 input_free_device(new_dev); in atkbd_set_scroll()
[all …]
/openbmc/linux/drivers/opp/
H A Ddebugfs.c218 struct opp_device *new_dev = NULL, *iter; in opp_migrate_dentry() local
225 new_dev = iter; in opp_migrate_dentry()
229 BUG_ON(!new_dev); in opp_migrate_dentry()
232 dev = new_dev->dev; in opp_migrate_dentry()
233 debugfs_remove_recursive(new_dev->dentry); in opp_migrate_dentry()
245 new_dev->dentry = dentry; in opp_migrate_dentry()
/openbmc/linux/net/8021q/
H 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()
/openbmc/linux/drivers/block/rnbd/
H A Drnbd-srv.c442 rnbd_srv_find_or_add_srv_dev(struct rnbd_srv_dev *new_dev) in rnbd_srv_find_or_add_srv_dev() argument
448 if (!strncmp(dev->name, new_dev->name, sizeof(dev->name))) { in rnbd_srv_find_or_add_srv_dev()
459 list_add(&new_dev->list, &dev_list); in rnbd_srv_find_or_add_srv_dev()
462 return new_dev; in rnbd_srv_find_or_add_srv_dev()
515 struct rnbd_srv_dev *new_dev, *dev; in rnbd_srv_get_or_create_srv_dev() local
517 new_dev = rnbd_srv_init_srv_dev(bdev); in rnbd_srv_get_or_create_srv_dev()
518 if (IS_ERR(new_dev)) in rnbd_srv_get_or_create_srv_dev()
519 return new_dev; in rnbd_srv_get_or_create_srv_dev()
521 dev = rnbd_srv_find_or_add_srv_dev(new_dev); in rnbd_srv_get_or_create_srv_dev()
522 if (dev != new_dev) in rnbd_srv_get_or_create_srv_dev()
[all …]
/openbmc/linux/drivers/net/usb/
H A Dqmi_wwan.c247 struct net_device *new_dev; in qmimux_register_device() local
251 new_dev = alloc_netdev(sizeof(struct qmimux_priv), in qmimux_register_device()
253 if (!new_dev) in qmimux_register_device()
256 dev_net_set(new_dev, dev_net(real_dev)); in qmimux_register_device()
257 priv = netdev_priv(new_dev); in qmimux_register_device()
261 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device()
262 if (!new_dev->tstats) { in qmimux_register_device()
267 new_dev->sysfs_groups[0] = &qmi_wwan_sysfs_qmimux_attr_group; in qmimux_register_device()
269 err = register_netdevice(new_dev); in qmimux_register_device()
276 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
[all …]
/openbmc/linux/drivers/input/mouse/
H 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()
H A Dpsmouse-base.c1886 struct input_dev *old_dev, *new_dev; in psmouse_attr_set_protocol() local
1898 new_dev = input_allocate_device(); in psmouse_attr_set_protocol()
1899 if (!new_dev) in psmouse_attr_set_protocol()
1906 input_free_device(new_dev); in psmouse_attr_set_protocol()
1915 input_free_device(new_dev); in psmouse_attr_set_protocol()
1920 input_free_device(new_dev); in psmouse_attr_set_protocol()
1939 psmouse->dev = new_dev; in psmouse_attr_set_protocol()
1961 input_free_device(new_dev); in psmouse_attr_set_protocol()
/openbmc/linux/net/bluetooth/
H 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()
/openbmc/linux/include/linux/mfd/
H A Dmax14577.h70 int (*set_gpio_pogo_cb) (int new_dev);
/openbmc/linux/drivers/bus/
H 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()
/openbmc/linux/net/ipv4/
H A Dipmr.c455 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
477 new_dev = __dev_get_by_name(net, p.name); in ipmr_new_tunnel()
478 if (!new_dev) in ipmr_new_tunnel()
481 new_dev->flags |= IFF_MULTICAST; in ipmr_new_tunnel()
482 if (!ipmr_init_vif_indev(new_dev)) in ipmr_new_tunnel()
484 if (dev_open(new_dev, NULL)) in ipmr_new_tunnel()
486 dev_hold(new_dev); in ipmr_new_tunnel()
487 err = dev_set_allmulti(new_dev, 1); in ipmr_new_tunnel()
489 dev_close(new_dev); in ipmr_new_tunnel()
492 dev_put(new_dev); in ipmr_new_tunnel()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_topology.c1485 struct kfd_topology_device *new_dev; in kfd_dev_create_p2p_links() local
1498 new_dev = list_last_entry(&topology_device_list, struct kfd_topology_device, list); in kfd_dev_create_p2p_links()
1499 if (WARN_ON(!new_dev->gpu)) in kfd_dev_create_p2p_links()
1505 ret = kfd_create_indirect_link_prop(new_dev, k); in kfd_dev_create_p2p_links()
1513 if (dev == new_dev) in kfd_dev_create_p2p_links()
1517 dev->gpu->kfd->hive_id == new_dev->gpu->kfd->hive_id)) in kfd_dev_create_p2p_links()
1521 ret = kfd_add_peer_prop(new_dev, dev, i, k); in kfd_dev_create_p2p_links()
1525 ret = kfd_add_peer_prop(dev, new_dev, k, i); in kfd_dev_create_p2p_links()
/openbmc/linux/drivers/media/dvb-frontends/
H 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()
/openbmc/linux/drivers/md/
H A Ddm-table.c317 struct dm_dev *old_dev, *new_dev; in upgrade_mode() local
322 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode()
326 dd->dm_dev = new_dev; in upgrade_mode()
H A Dmd.c4626 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
/openbmc/linux/drivers/block/
H A Dfloppy.c3991 int old_dev, new_dev; in floppy_open() local
4043 new_dev = disk->first_minor; 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()
/openbmc/linux/net/core/
H A Ddev.c7906 struct net_device *new_dev, in netdev_adjacent_change_prepare() argument
7916 if (!new_dev) in netdev_adjacent_change_prepare()
7919 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7921 err = __netdev_upper_dev_link(new_dev, dev, false, NULL, NULL, &priv, in netdev_adjacent_change_prepare()
7924 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7934 struct net_device *new_dev, in netdev_adjacent_change_commit() argument
7942 if (!new_dev || !old_dev) in netdev_adjacent_change_commit()
7945 if (new_dev == old_dev) in netdev_adjacent_change_commit()
7954 struct net_device *new_dev, in netdev_adjacent_change_abort() argument
7962 if (!new_dev) in netdev_adjacent_change_abort()
[all …]
/openbmc/linux/include/linux/
H A Dnetdevice.h4822 struct net_device *new_dev,
4826 struct net_device *new_dev,
4829 struct net_device *new_dev,
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dcnic.c5681 int new_dev = 0; in cnic_netdev_event() local
5689 new_dev = 1; in cnic_netdev_event()
5696 if (new_dev) in cnic_netdev_event()
/openbmc/linux/Documentation/admin-guide/
H A Dmd.rst279 new_dev