Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/input/keyboard/
Datkbd.c1424 struct input_dev *old_dev, *new_dev; in atkbd_set_extra() local
1450 new_dev = input_allocate_device(); in atkbd_set_extra()
1451 if (!new_dev) in atkbd_set_extra()
1454 atkbd->dev = new_dev; in atkbd_set_extra()
1463 input_free_device(new_dev); in atkbd_set_extra()
1512 struct input_dev *old_dev, *new_dev; in atkbd_set_scroll() local
1528 new_dev = input_allocate_device(); in atkbd_set_scroll()
1529 if (!new_dev) in atkbd_set_scroll()
1532 atkbd->dev = new_dev; in atkbd_set_scroll()
1539 input_free_device(new_dev); in atkbd_set_scroll()
[all …]
/linux-6.1.9/drivers/opp/
Ddebugfs.c217 struct opp_device *new_dev = NULL, *iter; in opp_migrate_dentry() local
224 new_dev = iter; in opp_migrate_dentry()
228 BUG_ON(!new_dev); in opp_migrate_dentry()
231 dev = new_dev->dev; in opp_migrate_dentry()
232 debugfs_remove_recursive(new_dev->dentry); in opp_migrate_dentry()
244 new_dev->dentry = dentry; in opp_migrate_dentry()
/linux-6.1.9/net/8021q/
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-6.1.9/drivers/block/rnbd/
Drnbd-srv.c443 rnbd_srv_find_or_add_srv_dev(struct rnbd_srv_dev *new_dev) in rnbd_srv_find_or_add_srv_dev() argument
449 if (!strncmp(dev->id, new_dev->id, sizeof(dev->id))) { in rnbd_srv_find_or_add_srv_dev()
460 list_add(&new_dev->list, &dev_list); in rnbd_srv_find_or_add_srv_dev()
463 return new_dev; in rnbd_srv_find_or_add_srv_dev()
517 struct rnbd_srv_dev *new_dev, *dev; in rnbd_srv_get_or_create_srv_dev() local
519 new_dev = rnbd_srv_init_srv_dev(bdev); in rnbd_srv_get_or_create_srv_dev()
520 if (IS_ERR(new_dev)) in rnbd_srv_get_or_create_srv_dev()
521 return new_dev; in rnbd_srv_get_or_create_srv_dev()
523 dev = rnbd_srv_find_or_add_srv_dev(new_dev); in rnbd_srv_get_or_create_srv_dev()
524 if (dev != new_dev) in rnbd_srv_get_or_create_srv_dev()
[all …]
/linux-6.1.9/drivers/net/usb/
Dqmi_wwan.c245 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()
259 new_dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in qmimux_register_device()
260 if (!new_dev->tstats) { in qmimux_register_device()
265 new_dev->sysfs_groups[0] = &qmi_wwan_sysfs_qmimux_attr_group; in qmimux_register_device()
267 err = register_netdevice(new_dev); in qmimux_register_device()
274 err = netdev_upper_dev_link(real_dev, new_dev, NULL); in qmimux_register_device()
[all …]
/linux-6.1.9/drivers/input/mouse/
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()
Dpsmouse-base.c1888 struct input_dev *old_dev, *new_dev; in psmouse_attr_set_protocol() local
1900 new_dev = input_allocate_device(); in psmouse_attr_set_protocol()
1901 if (!new_dev) in psmouse_attr_set_protocol()
1908 input_free_device(new_dev); in psmouse_attr_set_protocol()
1917 input_free_device(new_dev); in psmouse_attr_set_protocol()
1922 input_free_device(new_dev); in psmouse_attr_set_protocol()
1941 psmouse->dev = new_dev; in psmouse_attr_set_protocol()
1963 input_free_device(new_dev); in psmouse_attr_set_protocol()
/linux-6.1.9/net/bluetooth/
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-6.1.9/include/linux/mfd/
Dmax14577.h70 int (*set_gpio_pogo_cb) (int new_dev);
/linux-6.1.9/drivers/bus/
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-6.1.9/net/ipv4/
Dipmr.c443 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
465 new_dev = __dev_get_by_name(net, p.name); in ipmr_new_tunnel()
466 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()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_topology.c1544 struct kfd_topology_device *new_dev; in kfd_dev_create_p2p_links() local
1557 new_dev = list_last_entry(&topology_device_list, struct kfd_topology_device, list); in kfd_dev_create_p2p_links()
1558 if (WARN_ON(!new_dev->gpu)) in kfd_dev_create_p2p_links()
1564 ret = kfd_create_indirect_link_prop(new_dev, k); in kfd_dev_create_p2p_links()
1572 if (dev == new_dev) in kfd_dev_create_p2p_links()
1576 dev->gpu->hive_id == new_dev->gpu->hive_id)) in kfd_dev_create_p2p_links()
1580 ret = kfd_add_peer_prop(new_dev, dev, i, k); in kfd_dev_create_p2p_links()
1584 ret = kfd_add_peer_prop(dev, new_dev, k, i); in kfd_dev_create_p2p_links()
/linux-6.1.9/drivers/media/dvb-frontends/
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-6.1.9/drivers/md/
Ddm-table.c313 struct dm_dev *old_dev, *new_dev; in upgrade_mode() local
318 dd->dm_dev->mode | new_mode, &new_dev); in upgrade_mode()
322 dd->dm_dev = new_dev; in upgrade_mode()
Dmd.c4603 __ATTR(new_dev, S_IWUSR, null_show, new_dev_store);
/linux-6.1.9/drivers/block/
Dfloppy.c3989 int old_dev, new_dev; in floppy_open() local
4041 new_dev = MINOR(bdev->bd_dev); in floppy_open()
4042 drive_state[drive].fd_device = new_dev; in floppy_open()
4043 set_capacity(disks[drive][ITYPE(new_dev)], floppy_sizes[new_dev]); in floppy_open()
4044 if (old_dev != -1 && old_dev != new_dev) { in floppy_open()
/linux-6.1.9/net/core/
Ddev.c7810 struct net_device *new_dev, in netdev_adjacent_change_prepare() argument
7820 if (!new_dev) in netdev_adjacent_change_prepare()
7823 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7825 err = __netdev_upper_dev_link(new_dev, dev, false, NULL, NULL, &priv, in netdev_adjacent_change_prepare()
7828 if (old_dev && new_dev != old_dev) in netdev_adjacent_change_prepare()
7838 struct net_device *new_dev, in netdev_adjacent_change_commit() argument
7846 if (!new_dev || !old_dev) in netdev_adjacent_change_commit()
7849 if (new_dev == old_dev) in netdev_adjacent_change_commit()
7858 struct net_device *new_dev, in netdev_adjacent_change_abort() argument
7866 if (!new_dev) in netdev_adjacent_change_abort()
[all …]
/linux-6.1.9/include/linux/
Dnetdevice.h4734 struct net_device *new_dev,
4738 struct net_device *new_dev,
4741 struct net_device *new_dev,
/linux-6.1.9/drivers/net/ethernet/broadcom/
Dcnic.c5683 int new_dev = 0; in cnic_netdev_event() local
5691 new_dev = 1; in cnic_netdev_event()
5698 if (new_dev) in cnic_netdev_event()
/linux-6.1.9/Documentation/admin-guide/
Dmd.rst279 new_dev