/openbmc/linux/drivers/input/keyboard/ |
H A D | atkbd.c | 1487 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 D | debugfs.c | 218 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 D | vlan.c | 216 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 D | rnbd-srv.c | 442 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 D | qmi_wwan.c | 247 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 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()
|
H A D | psmouse-base.c | 1886 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 D | 6lowpan.c | 1184 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 D | max14577.h | 70 int (*set_gpio_pogo_cb) (int new_dev);
|
/openbmc/linux/drivers/bus/ |
H A 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()
|
/openbmc/linux/net/ipv4/ |
H A D | ipmr.c | 455 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 D | kfd_topology.c | 1485 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 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()
|
/openbmc/linux/drivers/md/ |
H A D | dm-table.c | 317 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 D | md.c | 4626 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
|
/openbmc/linux/drivers/block/ |
H A D | floppy.c | 3991 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 D | dev.c | 7906 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 D | netdevice.h | 4822 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 D | cnic.c | 5681 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 D | md.rst | 279 new_dev
|