/kernel/linux/linux-6.6/tools/lib/thermal/ |
H A D | events.c | 83 return ops->cdev_add(nla_get_string(attrs[THERMAL_GENL_ATTR_CDEV_NAME]), in handle_thermal_event() 113 enabled_ops[THERMAL_GENL_EVENT_CDEV_ADD] = !!ops->cdev_add; in thermal_events_ops_init()
|
/kernel/linux/linux-6.6/tools/thermal/thermal-engine/ |
H A D | thermal-engine.c | 167 static int cdev_add(const char *name, int cdev_id, int max_state, __maybe_unused void *arg) in cdev_add() function 210 .events.cdev_add = cdev_add,
|
/kernel/linux/linux-5.10/fs/ |
H A D | char_dev.c | 288 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev() 470 * cdev_add() - add a char device to the system 476 * cdev_add() adds the device represented by @p to the system, making it 479 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() function 506 * should be called before cdev_add. 521 * just as cdev_add does. It then adds @dev to the system using device_add 544 rc = cdev_add(cdev, dev->devt, 1); in cdev_device_add() 649 * system with cdev_add(). 680 EXPORT_SYMBOL(cdev_add); variable
|
/kernel/linux/linux-6.6/fs/ |
H A D | char_dev.c | 288 err = cdev_add(cdev, MKDEV(cd->major, baseminor), count); in __register_chrdev() 470 * cdev_add() - add a char device to the system 476 * cdev_add() adds the device represented by @p to the system, making it 479 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() function 513 * should be called before cdev_add. 528 * just as cdev_add does. It then adds @dev to the system using device_add 551 rc = cdev_add(cdev, dev->devt, 1); in cdev_device_add() 656 * system with cdev_add(). 687 EXPORT_SYMBOL(cdev_add); variable
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | cdev.h | 29 int cdev_add(struct cdev *, dev_t, unsigned);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | cdev.h | 29 int cdev_add(struct cdev *, dev_t, unsigned);
|
/kernel/linux/linux-5.10/arch/sh/boards/mach-landisk/ |
H A D | gio.c | 147 error = cdev_add(cdev_p, dev, DEVCOUNT); in gio_init() 150 "gio: Couldn't cdev_add, error=%d\n", error); in gio_init()
|
/kernel/linux/linux-5.10/drivers/char/ |
H A D | scx200_gpio.c | 111 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); in scx200_gpio_init()
|
H A D | pc8736x_gpio.c | 327 cdev_add(&pc8736x_gpio_cdev, devid, PC8736X_GPIO_CT); in pc8736x_gpio_init()
|
H A D | bsr.c | 241 result = cdev_add(&cur->bsr_cdev, cur->bsr_dev, 1); in bsr_add_node()
|
/kernel/linux/linux-6.6/arch/sh/boards/mach-landisk/ |
H A D | gio.c | 145 error = cdev_add(cdev_p, dev, DEVCOUNT); in gio_init() 148 "gio: Couldn't cdev_add, error=%d\n", error); in gio_init()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | device.c | 75 ret = cdev_add(cdev, dev, 1); in hfi1_cdev_init()
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | tape_class.c | 73 rc = cdev_add(tcd->char_device, dev, 1); in register_tape_dev()
|
H A D | hmcdrv_dev.c | 302 rc = cdev_add(&hmcdrv_dev.dev, hmcdrv_dev_no, 1); in hmcdrv_dev_init()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | remoteproc_cdev.c | 105 ret = cdev_add(&rproc->cdev, rproc->dev.devt, 1); in rproc_char_device_add()
|
/kernel/linux/linux-6.6/drivers/s390/char/ |
H A D | tape_class.c | 73 rc = cdev_add(tcd->char_device, dev, 1); in register_tape_dev()
|
H A D | hmcdrv_dev.c | 302 rc = cdev_add(&hmcdrv_dev.dev, hmcdrv_dev_no, 1); in hmcdrv_dev_init()
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | remoteproc_cdev.c | 107 ret = cdev_add(&rproc->cdev, rproc->dev.devt, 1); in rproc_char_device_add()
|
/kernel/linux/linux-6.6/drivers/char/ |
H A D | scx200_gpio.c | 111 cdev_add(&scx200_gpio_cdev, devid, MAX_PINS); in scx200_gpio_init()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | device.c | 53 ret = cdev_add(cdev, dev, 1); in hfi1_cdev_init()
|
/kernel/linux/linux-6.6/tools/lib/thermal/include/ |
H A D | thermal.h | 30 int (*cdev_add)(const char *name, int cdev_id, int max_state, void *arg); member
|
/kernel/linux/linux-5.10/drivers/dma-buf/ |
H A D | dma-heap.c | 245 ret = cdev_add(&heap->heap_cdev, heap->heap_devt, 1); in dma_heap_add()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | vas-api.c | 238 rc = cdev_add(&coproc_device.cdev, devno, 1); in vas_register_coproc_api() 240 pr_err("cdev_add() failed %d\n", rc); in vas_register_coproc_api()
|
/kernel/linux/linux-6.6/drivers/char/xillybus/ |
H A D | xillybus_class.c | 102 rc = cdev_add(unit->cdev, MKDEV(unit->major, unit->lowest_minor), in xillybus_init_chrdev()
|
/kernel/linux/linux-5.10/drivers/char/pcmcia/ |
H A D | scr24x_cs.c | 269 ret = cdev_add(&dev->c_dev, MKDEV(MAJOR(scr24x_devt), dev->devno), 1); in scr24x_probe()
|