Home
last modified time | relevance | path

Searched refs:cdevs (Results 1 – 8 of 8) sorted by relevance

/drivers/clk/davinci/
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()
Dpsc.h63 const struct davinci_lpsc_clkdev_info *cdevs; member
73 .cdevs = (c), \
/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c110 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX]; member
139 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
1019 thermal->cdevs[i] = cdev; in mlxsw_thermal_init()
1066 if (thermal->cdevs[i]) in mlxsw_thermal_init()
1067 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_init()
1085 if (thermal->cdevs[i]) { in mlxsw_thermal_fini()
1086 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_fini()
1087 thermal->cdevs[i] = NULL; in mlxsw_thermal_fini()
/drivers/tty/
Dtty_io.c3039 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
3040 if (!driver->cdevs[index]) in tty_cdev_add()
3042 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
3043 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
3044 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
3046 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3188 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3189 driver->cdevs[index] = NULL; in tty_unregister_device()
3207 unsigned int cdevs = 1; in __tty_alloc_driver() local
3241 cdevs = lines; in __tty_alloc_driver()
[all …]
/drivers/char/tpm/
Dtpm-chip.c385 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_chip_alloc()
387 chip->cdevs.owner = THIS_MODULE; in tpm_chip_alloc()
453 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_add_char_device()
651 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_chip_unregister()
Dtpmrm-dev.c19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
/drivers/scsi/
Dst.h72 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
Dst.c2283 cd0 = STm->cdevs[0];
2284 cd1 = STm->cdevs[1];
2288 STm->cdevs[0] = cd0;
2289 STm->cdevs[1] = cd1;
4191 STm->cdevs[rew] = cdev; in create_one_cdev()
4217 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4219 STm->cdevs[rew] = NULL; in create_one_cdev()
4247 if (STm->cdevs[rew]) in remove_cdevs()
4248 cdev_del(STm->cdevs[rew]); in remove_cdevs()