/linux-6.6.21/kernel/time/ |
D | tick-common.c | 206 struct clock_event_device *newdev, int cpu, in tick_setup_device() argument 251 td->evtdev = newdev; in tick_setup_device() 257 if (!cpumask_equal(newdev->cpumask, cpumask)) in tick_setup_device() 258 irq_set_affinity(newdev->irq, cpumask); in tick_setup_device() 267 if (tick_device_uses_broadcast(newdev, cpu)) in tick_setup_device() 271 tick_setup_periodic(newdev, 0); in tick_setup_device() 273 tick_setup_oneshot(newdev, handler, next_event); in tick_setup_device() 276 void tick_install_replacement(struct clock_event_device *newdev) in tick_install_replacement() argument 281 clockevents_exchange_device(td->evtdev, newdev); in tick_install_replacement() 282 tick_setup_device(td, newdev, cpu, cpumask_of(cpu)); in tick_install_replacement() [all …]
|
D | tick-broadcast.c | 87 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 …]
|
D | tick-oneshot.c | 61 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()
|
D | clockevents.c | 360 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()
|
D | tick-internal.h | 27 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.6.21/drivers/parport/ |
D | daisy.c | 53 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.6.21/drivers/i2c/busses/ |
D | i2c-powermac.c | 232 struct i2c_client *newdev; in i2c_powermac_create_one() local 236 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_create_one() 237 if (IS_ERR(newdev)) in i2c_powermac_create_one() 309 struct i2c_client *newdev; in i2c_powermac_register_devices() local 354 newdev = i2c_new_client_device(adap, &info); in i2c_powermac_register_devices() 355 if (IS_ERR(newdev)) { in i2c_powermac_register_devices()
|
/linux-6.6.21/drivers/i3c/ |
D | master.c | 1877 struct i3c_dev_desc *newdev, *olddev; in i3c_master_add_i3c_dev_locked() local 1886 newdev = i3c_master_alloc_i3c_dev(master, &info); in i3c_master_add_i3c_dev_locked() 1887 if (IS_ERR(newdev)) in i3c_master_add_i3c_dev_locked() 1888 return PTR_ERR(newdev); in i3c_master_add_i3c_dev_locked() 1890 ret = i3c_master_attach_i3c_dev(master, newdev); in i3c_master_add_i3c_dev_locked() 1894 ret = i3c_master_retrieve_dev_info(newdev); in i3c_master_add_i3c_dev_locked() 1898 i3c_master_attach_boardinfo(newdev); in i3c_master_add_i3c_dev_locked() 1900 olddev = i3c_master_search_i3c_dev_duplicate(newdev); in i3c_master_add_i3c_dev_locked() 1902 newdev->dev = olddev->dev; in i3c_master_add_i3c_dev_locked() 1903 if (newdev->dev) in i3c_master_add_i3c_dev_locked() [all …]
|
/linux-6.6.21/drivers/input/misc/ |
D | uinput.c | 380 struct uinput_device *newdev; in uinput_open() local 382 newdev = kzalloc(sizeof(struct uinput_device), 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-6.6.21/drivers/md/ |
D | md.c | 3682 static struct md_rdev *md_import_device(dev_t newdev, int super_format, int super_minor) in md_import_device() argument 3707 rdev->bdev = blkdev_get_by_dev(newdev, BLK_OPEN_READ | BLK_OPEN_WRITE, in md_import_device() 3711 MAJOR(newdev), MINOR(newdev)); in md_import_device()
|