Home
last modified time | relevance | path

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

/linux/drivers/clk/davinci/
H A Dpsc.c469 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 Dtty_io.c3164 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add()
3165 if (!driver->cdevs[index]) in tty_cdev_add()
3167 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add()
3168 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add()
3169 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add()
3171 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add()
3309 cdev_del(driver->cdevs[index]); in tty_unregister_device()
3310 driver->cdevs[index] = NULL; in tty_unregister_device()
3330 unsigned int cdevs = 1; in __tty_alloc_driver() local
3360 cdevs = lines; in __tty_alloc_driver()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c132 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 Dtpm2-space.c601 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
625 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_devs_add()
626 chip->cdevs.owner = THIS_MODULE; in tpm_devs_add()
632 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
H A Dtpmrm-dev.c19 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
/linux/drivers/scsi/
H A Dst.h71 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
H A Dst.c2312 cd0 = STm->cdevs[0];
2313 cd1 = STm->cdevs[1];
2317 STm->cdevs[0] = cd0;
2318 STm->cdevs[1] = cd1;
4281 STm->cdevs[rew] = cdev; in create_one_cdev()
4307 cdev_del(STm->cdevs[rew]); in create_one_cdev()
4309 STm->cdevs[rew] = NULL; in create_one_cdev()
4337 if (STm->cdevs[rew]) in remove_cdevs()
4338 cdev_del(STm->cdevs[rew]); in remove_cdevs()
/linux/include/linux/
H A Dtpm.h157 struct cdev cdevs; member