Home
last modified time | relevance | path

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

/linux-6.1.9/kernel/time/
Dtick-common.c206 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-broadcast.c86 struct clock_event_device *newdev) in tick_check_broadcast_device() argument
88 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device()
89 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device()
90 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_check_broadcast_device()
94 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_broadcast_device()
97 return !curdev || newdev->rating > curdev->rating; in tick_check_broadcast_device()
115 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, in tick_set_oneshot_wakeup_device() argument
120 if (!newdev) in tick_set_oneshot_wakeup_device()
123 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_set_oneshot_wakeup_device()
124 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_set_oneshot_wakeup_device()
[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.c360 struct clock_event_device *dev, *newdev = NULL; in clockevents_replace() local
366 if (!tick_check_replacement(newdev, dev)) in clockevents_replace()
372 if (newdev) in clockevents_replace()
373 module_put(newdev->owner); in clockevents_replace()
374 newdev = dev; in clockevents_replace()
376 if (newdev) { in clockevents_replace()
377 tick_install_replacement(newdev); in clockevents_replace()
380 return newdev ? 0 : -EBUSY; in clockevents_replace()
Dtick-internal.h27 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
/linux-6.1.9/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()
/linux-6.1.9/drivers/i3c/
Dmaster.c1858 struct i3c_dev_desc *newdev, *olddev; in i3c_master_add_i3c_dev_locked() local
1867 newdev = i3c_master_alloc_i3c_dev(master, &info); in i3c_master_add_i3c_dev_locked()
1868 if (IS_ERR(newdev)) in i3c_master_add_i3c_dev_locked()
1869 return PTR_ERR(newdev); in i3c_master_add_i3c_dev_locked()
1871 ret = i3c_master_attach_i3c_dev(master, newdev); in i3c_master_add_i3c_dev_locked()
1875 ret = i3c_master_retrieve_dev_info(newdev); in i3c_master_add_i3c_dev_locked()
1879 i3c_master_attach_boardinfo(newdev); in i3c_master_add_i3c_dev_locked()
1881 olddev = i3c_master_search_i3c_dev_duplicate(newdev); in i3c_master_add_i3c_dev_locked()
1883 newdev->dev = olddev->dev; in i3c_master_add_i3c_dev_locked()
1884 if (newdev->dev) in i3c_master_add_i3c_dev_locked()
[all …]
/linux-6.1.9/drivers/i2c/busses/
Di2c-powermac.c234 struct i2c_client *newdev; in i2c_powermac_create_one() local
238 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_create_one()
239 if (IS_ERR(newdev)) in i2c_powermac_create_one()
311 struct i2c_client *newdev; in i2c_powermac_register_devices() local
356 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_register_devices()
357 if (IS_ERR(newdev)) { in i2c_powermac_register_devices()
/linux-6.1.9/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()
/linux-6.1.9/drivers/md/
Dmd.c3666 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device() argument
3683 err = lock_rdev(rdev, newdev, super_format == -2); in md_import_device()