Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c98 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX]; member
121 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx()
396 thermal->cdevs[i] = cdev; in mlxsw_thermal_init()
418 if (thermal->cdevs[i]) in mlxsw_thermal_init()
419 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_init()
435 if (thermal->cdevs[i]) { in mlxsw_thermal_fini()
436 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_fini()
437 thermal->cdevs[i] = NULL; in mlxsw_thermal_fini()
/drivers/char/tpm/
Dtpm-chip.c246 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_chip_alloc()
248 chip->cdevs.owner = THIS_MODULE; in tpm_chip_alloc()
314 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_add_char_device()
457 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_chip_unregister()
Dtpmrm-dev.c20 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
Dtpm.h201 struct cdev cdevs; member
/drivers/tty/
Dtty_io.c2892 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
2893 if (!driver->cdevs[index]) in tty_cdev_add()
2895 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
2896 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
2897 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
2899 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3041 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3042 driver->cdevs[index] = NULL; in tty_unregister_device()
3060 unsigned int cdevs = 1; in __tty_alloc_driver() local
3094 cdevs = lines; in __tty_alloc_driver()
[all …]
/drivers/scsi/
Dst.h72 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
Dst.c2284 cd0 = STm->cdevs[0];
2285 cd1 = STm->cdevs[1];
2289 STm->cdevs[0] = cd0;
2290 STm->cdevs[1] = cd1;
4190 STm->cdevs[rew] = cdev; in create_one_cdev()
4216 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4218 STm->cdevs[rew] = NULL; in create_one_cdev()
4246 if (STm->cdevs[rew]) in remove_cdevs()
4247 cdev_del(STm->cdevs[rew]); in remove_cdevs()