Home
last modified time | relevance | path

Searched refs:cdevs (Results 1 - 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/drivers/clk/davinci/
H A Dpsc.c465 const struct davinci_lpsc_clkdev_info *cdevs = info->cdevs; in davinci_psc_register_clocks() local
468 if (!cdevs || IS_ERR_OR_NULL(clk)) in davinci_psc_register_clocks()
471 for (; cdevs->con_id || cdevs->dev_id; cdevs++) in davinci_psc_register_clocks()
472 clk_register_clkdev(clk, cdevs->con_id, cdevs->dev_id); in davinci_psc_register_clocks()
H A Dpsc.h55 * @cdevs: optional array of clkdev lookup table info
63 const struct davinci_lpsc_clkdev_info *cdevs; member
73 .cdevs = (c), \
/kernel/linux/linux-6.6/drivers/clk/davinci/
H A Dpsc.c465 const struct davinci_lpsc_clkdev_info *cdevs = info->cdevs; in davinci_psc_register_clocks() local
468 if (!cdevs || IS_ERR_OR_NULL(clk)) in davinci_psc_register_clocks()
471 for (; cdevs->con_id || cdevs->dev_id; cdevs++) in davinci_psc_register_clocks()
472 clk_register_clkdev(clk, cdevs->con_id, cdevs->dev_id); in davinci_psc_register_clocks()
H A Dpsc.h55 * @cdevs: optional array of clkdev lookup table info
63 const struct davinci_lpsc_clkdev_info *cdevs; member
73 .cdevs = (c), \
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c101 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX]; member
130 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
936 thermal->cdevs[i] = cdev; in mlxsw_thermal_init()
987 if (thermal->cdevs[i]) in mlxsw_thermal_init()
988 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_init()
1006 if (thermal->cdevs[i]) { in mlxsw_thermal_fini()
1007 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_fini()
1008 thermal->cdevs[i] = NULL; in mlxsw_thermal_fini()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c122 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX]; member
146 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
764 thermal->cdevs[i] = cdev; in mlxsw_thermal_init()
826 if (thermal->cdevs[i]) in mlxsw_thermal_init()
827 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_init()
850 if (thermal->cdevs[i]) { in mlxsw_thermal_fini()
851 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_fini()
852 thermal->cdevs[i] = NULL; in mlxsw_thermal_fini()
/kernel/linux/linux-5.10/drivers/tty/
H A Dtty_io.c3140 /* init here, since reused cdevs cause crashes */ in tty_cdev_add()
3141 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
3142 if (!driver->cdevs[index]) in tty_cdev_add()
3144 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
3145 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
3146 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
3148 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3290 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3291 driver->cdevs[index] = NULL; in tty_unregister_device()
3309 unsigned int cdevs in __tty_alloc_driver() local
[all...]
/kernel/linux/linux-6.6/drivers/tty/
H A Dtty_io.c3153 /* init here, since reused cdevs cause crashes */ in tty_cdev_add()
3154 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
3155 if (!driver->cdevs[index]) in tty_cdev_add()
3157 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
3158 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
3159 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
3161 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3299 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3300 driver->cdevs[index] = NULL; in tty_unregister_device()
3318 unsigned int cdevs in __tty_alloc_driver() local
[all...]
/kernel/linux/linux-5.10/drivers/char/tpm/
H A Dtpmrm-dev.c19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
H A Dtpm2-space.c595 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
613 * This holds the chip structure while cdevs is in use. The in tpm_devs_add()
619 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_devs_add()
620 chip->cdevs.owner = THIS_MODULE; in tpm_devs_add()
626 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpmrm-dev.c19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
H A Dtpm2-space.c595 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
613 * This holds the chip structure while cdevs is in use. The in tpm_devs_add()
619 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_devs_add()
620 chip->cdevs.owner = THIS_MODULE; in tpm_devs_add()
626 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dst.h72 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
H A Dst.c2293 cd0 = STm->cdevs[0]; in st_set_options()
2294 cd1 = STm->cdevs[1]; in st_set_options()
2298 STm->cdevs[0] = cd0; in st_set_options()
2299 STm->cdevs[1] = cd1; in st_set_options()
4226 STm->cdevs[rew] = cdev; in create_one_cdev()
4252 cdev_del(STm->cdevs[rew]); in create_cdevs()
4254 STm->cdevs[rew] = NULL; in create_cdevs()
4282 if (STm->cdevs[rew]) in st_probe()
4283 cdev_del(STm->cdevs[rew]); in st_probe()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dst.h71 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
H A Dst.c2294 cd0 = STm->cdevs[0]; in st_set_options()
2295 cd1 = STm->cdevs[1]; in st_set_options()
2299 STm->cdevs[0] = cd0; in st_set_options()
2300 STm->cdevs[1] = cd1; in st_set_options()
4196 STm->cdevs[rew] = cdev; in create_one_cdev()
4222 cdev_del(STm->cdevs[rew]); in create_cdevs()
4224 STm->cdevs[rew] = NULL; in create_cdevs()
4252 if (STm->cdevs[rew]) in st_probe()
4253 cdev_del(STm->cdevs[rew]); in st_probe()
/kernel/linux/linux-5.10/include/linux/
H A Dtty_driver.h296 struct cdev **cdevs; member
H A Dtpm.h116 struct cdev cdevs; member
/kernel/linux/linux-6.6/include/linux/
H A Dtty_driver.h401 * @cdevs: allocated/registered character /dev devices
435 struct cdev **cdevs; member
H A Dtpm.h123 struct cdev cdevs; member

Completed in 31 milliseconds