Searched refs:newdev (Results 1 - 12 of 12) sorted by relevance

/linux-4.1.27/kernel/time/
H A Dtick-common.c167 struct clock_event_device *newdev, int cpu, tick_setup_device()
200 td->evtdev = newdev; tick_setup_device()
206 if (!cpumask_equal(newdev->cpumask, cpumask)) tick_setup_device()
207 irq_set_affinity(newdev->irq, cpumask); tick_setup_device()
216 if (tick_device_uses_broadcast(newdev, cpu)) tick_setup_device()
220 tick_setup_periodic(newdev, 0); tick_setup_device()
222 tick_setup_oneshot(newdev, handler, next_event); tick_setup_device()
225 void tick_install_replacement(struct clock_event_device *newdev) tick_install_replacement() argument
230 clockevents_exchange_device(td->evtdev, newdev); tick_install_replacement()
231 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); tick_install_replacement()
232 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_install_replacement()
237 struct clock_event_device *newdev, int cpu) tick_check_percpu()
239 if (!cpumask_test_cpu(cpu, newdev->cpumask)) tick_check_percpu()
241 if (cpumask_equal(newdev->cpumask, cpumask_of(cpu))) tick_check_percpu()
244 if (newdev->irq >= 0 && !irq_can_set_affinity(newdev->irq)) tick_check_percpu()
253 struct clock_event_device *newdev) tick_check_preferred()
256 if (!(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) { tick_check_preferred()
268 newdev->rating > curdev->rating || tick_check_preferred()
269 !cpumask_equal(curdev->cpumask, newdev->cpumask); tick_check_preferred()
277 struct clock_event_device *newdev) tick_check_replacement()
279 if (!tick_check_percpu(curdev, newdev, smp_processor_id())) tick_check_replacement()
282 return tick_check_preferred(curdev, newdev); tick_check_replacement()
289 void tick_check_new_device(struct clock_event_device *newdev) tick_check_new_device() argument
296 if (!cpumask_test_cpu(cpu, newdev->cpumask)) tick_check_new_device()
303 if (!tick_check_percpu(curdev, newdev, cpu)) tick_check_new_device()
307 if (!tick_check_preferred(curdev, newdev)) tick_check_new_device()
310 if (!try_module_get(newdev->owner)) tick_check_new_device()
322 clockevents_exchange_device(curdev, newdev); tick_check_new_device()
323 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); tick_check_new_device()
324 if (newdev->features & CLOCK_EVT_FEAT_ONESHOT) tick_check_new_device()
332 tick_install_broadcast_device(newdev); tick_check_new_device()
166 tick_setup_device(struct tick_device *td, struct clock_event_device *newdev, int cpu, const struct cpumask *cpumask) tick_setup_device() argument
236 tick_check_percpu(struct clock_event_device *curdev, struct clock_event_device *newdev, int cpu) tick_check_percpu() argument
252 tick_check_preferred(struct clock_event_device *curdev, struct clock_event_device *newdev) tick_check_preferred() argument
276 tick_check_replacement(struct clock_event_device *curdev, struct clock_event_device *newdev) tick_check_replacement() argument
H A Dtick-oneshot.c48 void tick_setup_oneshot(struct clock_event_device *newdev, tick_setup_oneshot() argument
52 newdev->event_handler = handler; tick_setup_oneshot()
53 clockevents_set_state(newdev, CLOCK_EVT_STATE_ONESHOT); tick_setup_oneshot()
54 clockevents_program_event(newdev, next_event, true); tick_setup_oneshot()
H A Dtick-internal.h27 struct clock_event_device *newdev);
90 extern void tick_setup_oneshot(struct clock_event_device *newdev, tick_resume()
104 void tick_setup_oneshot(struct clock_event_device *newdev, tick_setup_oneshot() argument
H A Dclockevents.c362 struct clock_event_device *dev, *newdev = NULL; clockevents_replace() local
368 if (!tick_check_replacement(newdev, dev)) clockevents_replace()
374 if (newdev) clockevents_replace()
375 module_put(newdev->owner); clockevents_replace()
376 newdev = dev; clockevents_replace()
378 if (newdev) { clockevents_replace()
379 tick_install_replacement(newdev); clockevents_replace()
382 return newdev ? 0 : -EBUSY; clockevents_replace()
H A Dtick-broadcast.c72 struct clock_event_device *newdev) tick_check_broadcast_device()
74 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) || tick_check_broadcast_device()
75 (newdev->features & CLOCK_EVT_FEAT_PERCPU) || tick_check_broadcast_device()
76 (newdev->features & CLOCK_EVT_FEAT_C3STOP)) tick_check_broadcast_device()
80 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT)) tick_check_broadcast_device()
83 return !curdev || newdev->rating > curdev->rating; tick_check_broadcast_device()
71 tick_check_broadcast_device(struct clock_event_device *curdev, struct clock_event_device *newdev) tick_check_broadcast_device() argument
/linux-4.1.27/drivers/parport/
H A Ddaisy.c58 struct daisydev *newdev, **p; add_dev() local
59 newdev = kmalloc(sizeof(struct daisydev), GFP_KERNEL); add_dev()
60 if (newdev) { add_dev()
61 newdev->port = port; add_dev()
62 newdev->daisy = daisy; add_dev()
63 newdev->devnum = devnum; add_dev()
67 newdev->next = *p; add_dev()
68 *p = newdev; add_dev()
/linux-4.1.27/drivers/input/misc/
H A Duinput.c293 struct uinput_device *newdev; uinput_open() local
295 newdev = kzalloc(sizeof(struct uinput_device), GFP_KERNEL); uinput_open()
296 if (!newdev) uinput_open()
299 mutex_init(&newdev->mutex); uinput_open()
300 spin_lock_init(&newdev->requests_lock); uinput_open()
301 init_waitqueue_head(&newdev->requests_waitq); uinput_open()
302 init_waitqueue_head(&newdev->waitq); uinput_open()
303 newdev->state = UIST_NEW_DEVICE; uinput_open()
305 file->private_data = newdev; uinput_open()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-powermac.c249 struct i2c_client *newdev; i2c_powermac_create_one() local
253 newdev = i2c_new_device(adap, &info); i2c_powermac_create_one()
254 if (!newdev) i2c_powermac_create_one()
328 struct i2c_client *newdev; i2c_powermac_register_devices() local
374 newdev = i2c_new_device(adap, &info); i2c_powermac_register_devices()
375 if (!newdev) { i2c_powermac_register_devices()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
H A Dgenops.c279 struct obd_device *newdev; class_newdev() local
295 newdev = obd_device_alloc(); class_newdev()
296 if (newdev == NULL) { class_newdev()
301 LASSERT(newdev->obd_magic == OBD_DEVICE_MAGIC); class_newdev()
325 result = newdev; class_newdev()
351 obd_device_free(newdev); class_newdev()
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
H A Do2iblnd.c2935 static int kiblnd_dev_start_threads(kib_dev_t *dev, int newdev, __u32 *cpts, kiblnd_dev_start_threads() argument
2948 if (!newdev && sched->ibs_nthreads > 0) kiblnd_dev_start_threads()
3001 int newdev; kiblnd_startup() local
3045 newdev = ibdev == NULL; kiblnd_startup()
3056 rc = kiblnd_dev_start_threads(ibdev, newdev, kiblnd_startup()
/linux-4.1.27/drivers/s390/net/
H A Dlcs.c2134 LCS_DBF_TEXT(2, setup, "newdev"); lcs_new_device()
/linux-4.1.27/drivers/md/
H A Dmd.c3104 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) md_import_device() argument
3124 err = lock_rdev(rdev, newdev, super_format == -2); md_import_device()

Completed in 434 milliseconds