Searched refs:cdevs (Results 1 – 9 of 9) sorted by relevance
| /linux/drivers/clk/davinci/ |
| H A D | psc.c | 469 const struct davinci_lpsc_clkdev_info *cdevs = info->cdevs; in davinci_psc_register_clocks() local 472 if (!cdevs || IS_ERR_OR_NULL(clk)) in davinci_psc_register_clocks() 475 for (; cdevs->con_id || cdevs->dev_id; cdevs++) in davinci_psc_register_clocks() 476 clk_register_clkdev(clk, cdevs->con_id, cdevs->dev_id); in davinci_psc_register_clocks()
|
| /linux/drivers/tty/ |
| H A D | tty_io.c | 3153 /* 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() 3162 driver->cdevs[index] = NULL; in tty_cdev_add() 3302 if (!(driver->flags & TTY_DRIVER_DYNAMIC_ALLOC) && driver->cdevs[index]) { in tty_unregister_device() 3303 cdev_del(driver->cdevs[inde in tty_unregister_device() 3325 unsigned int cdevs = 1; __tty_alloc_driver() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | core_thermal.c | 132 struct mlxsw_thermal_cooling_device cdevs[MLXSW_MFCR_PWMS_MAX]; member 156 if (thermal->cdevs[i].cdev == cdev) in mlxsw_get_cooling_device_idx() 690 mlxsw_cdev = &thermal->cdevs[i]; in mlxsw_thermal_init() 759 thermal_cooling_device_unregister(thermal->cdevs[i].cdev); in mlxsw_thermal_init() 779 thermal_cooling_device_unregister(thermal->cdevs[i].cdev); in mlxsw_thermal_fini()
|
| /linux/drivers/char/tpm/ |
| H A D | tpm2-space.c | 580 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove() 604 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_devs_add() 605 chip->cdevs.owner = THIS_MODULE; in tpm_devs_add() 611 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
|
| H A D | tpmrm-dev.c | 19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
|
| /linux/drivers/scsi/ |
| H A D | st.h | 71 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
|
| H A D | st.c | 2326 cd0 = STm->cdevs[0]; 2327 cd1 = STm->cdevs[1]; 2331 STm->cdevs[0] = cd0; 2332 STm->cdevs[1] = cd1; 4396 STm->cdevs[rew] = cdev; in st_probe() 4422 cdev_del(STm->cdevs[rew]); in st_probe() 4424 STm->cdevs[rew] = NULL; in st_probe() 4452 if (STm->cdevs[rew]) in st_probe() 4453 cdev_del(STm->cdevs[rew]); in st_probe()
|
| /linux/include/linux/ |
| H A D | tty_driver.h | 540 struct cdev **cdevs; member
|
| H A D | tpm.h | 112 struct cdev cdevs; member
|