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

/linux-master/kernel/time/
H A Dtick-common.c205 struct clock_event_device *newdev, int cpu,
250 td->evtdev = newdev;
256 if (!cpumask_equal(newdev->cpumask, cpumask))
257 irq_set_affinity(newdev->irq, cpumask);
266 if (tick_device_uses_broadcast(newdev, cpu))
270 tick_setup_periodic(newdev, 0);
272 tick_setup_oneshot(newdev, handler, next_event);
275 void tick_install_replacement(struct clock_event_device *newdev) argument
280 clockevents_exchange_device(td->evtdev, newdev);
281 tick_setup_device(td, newdev, cp
204 tick_setup_device(struct tick_device *td, struct clock_event_device *newdev, int cpu, const struct cpumask *cpumask) argument
286 tick_check_percpu(struct clock_event_device *curdev, struct clock_event_device *newdev, int cpu) argument
302 tick_check_preferred(struct clock_event_device *curdev, struct clock_event_device *newdev) argument
326 tick_check_replacement(struct clock_event_device *curdev, struct clock_event_device *newdev) argument
339 tick_check_new_device(struct clock_event_device *newdev) argument
[all...]
H A Dtick-oneshot.c61 void tick_setup_oneshot(struct clock_event_device *newdev, argument
65 newdev->event_handler = handler;
66 clockevents_switch_state(newdev, CLOCK_EVT_STATE_ONESHOT);
67 clockevents_program_event(newdev, next_event, true);
H A Dtick-broadcast.c87 struct clock_event_device *newdev)
89 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) ||
90 (newdev->features & CLOCK_EVT_FEAT_PERCPU) ||
91 (newdev->features & CLOCK_EVT_FEAT_C3STOP))
95 !(newdev->features & CLOCK_EVT_FEAT_ONESHOT))
98 return !curdev || newdev->rating > curdev->rating;
116 static bool tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, argument
121 if (!newdev)
124 if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) ||
125 (newdev
86 tick_check_broadcast_device(struct clock_event_device *curdev, struct clock_event_device *newdev) argument
153 tick_set_oneshot_wakeup_device(struct clock_event_device *newdev, int cpu) argument
[all...]
H A Dtick-internal.h32 struct clock_event_device *newdev);
104 extern void tick_setup_oneshot(struct clock_event_device *newdev,
118 void tick_setup_oneshot(struct clock_event_device *newdev, argument
H A Dclockevents.c360 struct clock_event_device *dev, *newdev = NULL; local
366 if (!tick_check_replacement(newdev, dev))
372 if (newdev)
373 module_put(newdev->owner);
374 newdev = dev;
376 if (newdev) {
377 tick_install_replacement(newdev);
380 return newdev ? 0 : -EBUSY;
/linux-master/drivers/parport/
H A Ddaisy.c53 struct daisydev *newdev, **p; local
54 newdev = kmalloc(sizeof(struct daisydev), GFP_KERNEL);
55 if (newdev) {
56 newdev->port = port;
57 newdev->daisy = daisy;
58 newdev->devnum = devnum;
62 newdev->next = *p;
63 *p = newdev;
/linux-master/drivers/i2c/busses/
H A Di2c-powermac.c232 struct i2c_client *newdev; local
236 newdev = i2c_new_client_device(adap, &info);
237 if (IS_ERR(newdev))
309 struct i2c_client *newdev; local
354 newdev = i2c_new_client_device(adap, &info);
355 if (IS_ERR(newdev)) {
/linux-master/drivers/i3c/
H A Dmaster.c1999 struct i3c_dev_desc *newdev, *olddev; local
2008 newdev = i3c_master_alloc_i3c_dev(master, &info);
2009 if (IS_ERR(newdev))
2010 return PTR_ERR(newdev);
2012 ret = i3c_master_attach_i3c_dev(master, newdev);
2016 ret = i3c_master_retrieve_dev_info(newdev);
2020 i3c_master_attach_boardinfo(newdev);
2022 olddev = i3c_master_search_i3c_dev_duplicate(newdev);
2024 newdev->dev = olddev->dev;
2025 if (newdev
[all...]
/linux-master/drivers/input/misc/
H A Duinput.c380 struct uinput_device *newdev; local
382 newdev = kzalloc(sizeof(struct uinput_device), GFP_KERNEL);
383 if (!newdev)
386 mutex_init(&newdev->mutex);
387 spin_lock_init(&newdev->requests_lock);
388 init_waitqueue_head(&newdev->requests_waitq);
389 init_waitqueue_head(&newdev->waitq);
390 newdev->state = UIST_NEW_DEVICE;
392 file->private_data = newdev;
/linux-master/drivers/md/
H A Dmd.c3764 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) argument
3781 rdev->bdev_file = bdev_file_open_by_dev(newdev,
3786 MAJOR(newdev), MINOR(newdev));

Completed in 290 milliseconds