Home
last modified time | relevance | path

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

/linux/kernel/time/
H A Dtick-common.c185 struct clock_event_device *newdev, int cpu, in giveup_do_timer()
236 td->evtdev = newdev; in tick_setup_device()
242 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device()
243 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device()
252 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device()
256 tick_setup_periodic(newdev, 0); in tick_setup_device()
258 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device()
261 void tick_install_replacement(struct clock_event_device *newdev) in tick_setup_device()
266 clockevents_exchange_device(td->evtdev, newdev); in tick_setup_device()
267 tick_setup_device(td, newdev, cp in tick_setup_device()
205 tick_setup_device(struct tick_device * td,struct clock_event_device * newdev,int cpu,const struct cpumask * cpumask) tick_setup_device() argument
275 tick_install_replacement(struct clock_event_device * newdev) tick_install_replacement() argument
287 tick_check_percpu(struct clock_event_device * curdev,struct clock_event_device * newdev,int cpu) tick_check_percpu() argument
303 tick_check_preferred(struct clock_event_device * curdev,struct clock_event_device * newdev) tick_check_preferred() argument
327 tick_check_replacement(struct clock_event_device * curdev,struct clock_event_device * newdev) tick_check_replacement() argument
339 tick_check_new_device(struct clock_event_device * newdev) tick_check_new_device() argument
[all...]
H A Dtick-broadcast.c87 struct clock_event_device *newdev) in tick_check_broadcast_device() argument
89 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_check_broadcast_device()
90 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || in tick_check_broadcast_device()
91 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_check_broadcast_device()
95 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) in tick_check_broadcast_device()
98 return !curdev || newdev->rating > curdev->rating; in tick_check_broadcast_device()
116 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, in tick_set_oneshot_wakeup_device() argument
121 if (!newdev) in tick_set_oneshot_wakeup_device()
124 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || in tick_set_oneshot_wakeup_device()
125 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) in tick_set_oneshot_wakeup_device()
[all …]
H A 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()
H A Dclockevents.c368 struct clock_event_device *dev, *newdev = NULL; in clockevents_replace() local
374 if (!tick_check_replacement(newdev, dev)) in clockevents_replace()
380 if (newdev) in clockevents_replace()
381 module_put(newdev->owner); in clockevents_replace()
382 newdev = dev; in clockevents_replace()
384 if (newdev) { in clockevents_replace()
385 tick_install_replacement(newdev); in clockevents_replace()
388 return newdev ? 0 : -EBUSY; in clockevents_replace()
/linux/drivers/parport/
H A 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/drivers/input/misc/
H A Duinput.c380 struct uinput_device *newdev; in uinput_open() local
382 newdev = kzalloc(sizeof(*newdev), GFP_KERNEL); in uinput_open()
383 if (!newdev) in uinput_open()
386 mutex_init(&newdev->mutex); in uinput_open()
387 spin_lock_init(&newdev->requests_lock); in uinput_open()
388 init_waitqueue_head(&newdev->requests_waitq); in uinput_open()
389 init_waitqueue_head(&newdev->waitq); in uinput_open()
390 newdev->state = UIST_NEW_DEVICE; in uinput_open()
392 file->private_data = newdev; in uinput_open()
/linux/drivers/md/
H A Dmd.c3655 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device() argument
3672 rdev->bdev_file = bdev_file_open_by_dev(newdev, in md_import_device()
3677 MAJOR(newdev), MINOR(newdev)); in md_import_device()