Home
last modified time | relevance | path

Searched refs:newdev (Results 1 – 10 of 10) sorted by relevance

/kernel/linux/linux-5.10/kernel/time/
Dtick-common.c205 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument
252 td->evtdev = newdev; in tick_setup_device()
258 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
259 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
268 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
272 tick_setup_periodic(newdev, 0); in tick_setup_device()
274 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
277 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument
282 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement()
283 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement()
[all …]
Dtick-oneshot.c61 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() argument
65 newdev->event_handler = handler; in tick_setup_oneshot()
66 clockevents_switch_state(newdev, CLOCK_EVT_STATE_ONESHOT); in tick_setup_oneshot()
67 clockevents_program_event(newdev, next_event, true); in tick_setup_oneshot()
Dclockevents.c361 struct clock_event_device *dev, *newdev = NULL; in clockevents_replace() local
367 if (!tick_check_replacement(newdev, dev)) in clockevents_replace()
373 if (newdev) in clockevents_replace()
374 module_put(newdev->owner); in clockevents_replace()
375 newdev = dev; in clockevents_replace()
377 if (newdev) { in clockevents_replace()
378 tick_install_replacement(newdev); in clockevents_replace()
381 return newdev ? 0 : -EBUSY; in clockevents_replace()
Dtick-internal.h28 struct clock_event_device *newdev);
100 extern void tick_setup_oneshot(struct clock_event_device *newdev,
114 void tick_setup_oneshot(struct clock_event_device *newdev, in tick_setup_oneshot() argument
Dtick-broadcast.c77 struct clock_event_device *newdev) in tick_check_broadcast_device() argument
79 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device()
80 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device()
81 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_check_broadcast_device()
85 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_broadcast_device()
88 return !curdev || newdev->rating > curdev->rating; in tick_check_broadcast_device()
/kernel/linux/linux-5.10/drivers/parport/
Ddaisy.c53 struct daisydev *newdev, **p; in add_dev() local
54 newdev = kmalloc(sizeof(struct daisydev), GFP_KERNEL); in add_dev()
55 if (newdev) { in add_dev()
56 newdev->port = port; in add_dev()
57 newdev->daisy = daisy; in add_dev()
58 newdev->devnum = devnum; in add_dev()
62 newdev->next = *p; in add_dev()
63 *p = newdev; in add_dev()
/kernel/linux/linux-5.10/drivers/i3c/
Dmaster.c1857 struct i3c_dev_desc *newdev, *olddev; in i3c_master_add_i3c_dev_locked() local
1866 newdev = i3c_master_alloc_i3c_dev(master, &info); in i3c_master_add_i3c_dev_locked()
1867 if (IS_ERR(newdev)) in i3c_master_add_i3c_dev_locked()
1868 return PTR_ERR(newdev); in i3c_master_add_i3c_dev_locked()
1870 ret = i3c_master_attach_i3c_dev(master, newdev); in i3c_master_add_i3c_dev_locked()
1874 ret = i3c_master_retrieve_dev_info(newdev); in i3c_master_add_i3c_dev_locked()
1878 i3c_master_attach_boardinfo(newdev); in i3c_master_add_i3c_dev_locked()
1880 olddev = i3c_master_search_i3c_dev_duplicate(newdev); in i3c_master_add_i3c_dev_locked()
1882 newdev->dev = olddev->dev; in i3c_master_add_i3c_dev_locked()
1883 if (newdev->dev) in i3c_master_add_i3c_dev_locked()
[all …]
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-powermac.c239 struct i2c_client *newdev; in i2c_powermac_create_one() local
243 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_create_one()
244 if (IS_ERR(newdev)) in i2c_powermac_create_one()
316 struct i2c_client *newdev; in i2c_powermac_register_devices() local
361 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_register_devices()
362 if (IS_ERR(newdev)) { in i2c_powermac_register_devices()
/kernel/linux/linux-5.10/drivers/input/misc/
Duinput.c379 struct uinput_device *newdev; in uinput_open() local
381 newdev = kzalloc(sizeof(struct uinput_device), GFP_KERNEL); in uinput_open()
382 if (!newdev) in uinput_open()
385 mutex_init(&newdev->mutex); in uinput_open()
386 spin_lock_init(&newdev->requests_lock); in uinput_open()
387 init_waitqueue_head(&newdev->requests_waitq); in uinput_open()
388 init_waitqueue_head(&newdev->waitq); in uinput_open()
389 newdev->state = UIST_NEW_DEVICE; in uinput_open()
391 file->private_data = newdev; in uinput_open()
/kernel/linux/linux-5.10/drivers/md/
Dmd.c3707 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device() argument
3725 err = lock_rdev(rdev, newdev, super_format == -2); in md_import_device()