Searched refs:cdevs (Results 1 – 10 of 10) sorted by relevance
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_thermal.c | 70 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX]; member 93 if (thermal->cdevs[i] == cdev) in mlxsw_get_cooling_device_idx() 368 thermal->cdevs[i] = cdev; in mlxsw_thermal_init() 390 if (thermal->cdevs[i]) in mlxsw_thermal_init() 391 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_init() 407 if (thermal->cdevs[i]) { in mlxsw_thermal_fini() 408 thermal_cooling_device_unregister(thermal->cdevs[i]); in mlxsw_thermal_fini() 409 thermal->cdevs[i] = NULL; in mlxsw_thermal_fini()
|
/Linux-v4.19/drivers/clk/davinci/ |
D | psc.c | 483 const struct davinci_lpsc_clkdev_info *cdevs = info->cdevs; in davinci_psc_register_clocks() local 486 if (!cdevs || IS_ERR_OR_NULL(clk)) in davinci_psc_register_clocks() 489 for (; cdevs->con_id || cdevs->dev_id; cdevs++) in davinci_psc_register_clocks() 490 clk_register_clkdev(clk, cdevs->con_id, cdevs->dev_id); in davinci_psc_register_clocks()
|
D | psc.h | 63 const struct davinci_lpsc_clkdev_info *cdevs; member 73 .cdevs = (c), \
|
/Linux-v4.19/drivers/char/tpm/ |
D | tpm-chip.c | 274 cdev_init(&chip->cdevs, &tpmrm_fops); in tpm_chip_alloc() 276 chip->cdevs.owner = THIS_MODULE; in tpm_chip_alloc() 342 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_add_char_device() 517 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_chip_unregister()
|
D | tpmrm-dev.c | 20 chip = container_of(inode->i_cdev, struct tpm_chip, cdevs); in tpmrm_open()
|
D | tpm.h | 215 struct cdev cdevs; member
|
/Linux-v4.19/drivers/tty/ |
D | tty_io.c | 2882 driver->cdevs[index] = cdev_alloc(); in tty_cdev_add() 2883 if (!driver->cdevs[index]) in tty_cdev_add() 2885 driver->cdevs[index]->ops = &tty_fops; in tty_cdev_add() 2886 driver->cdevs[index]->owner = driver->owner; in tty_cdev_add() 2887 err = cdev_add(driver->cdevs[index], dev, count); in tty_cdev_add() 2889 kobject_put(&driver->cdevs[index]->kobj); in tty_cdev_add() 3031 cdev_del(driver->cdevs[index]); in tty_unregister_device() 3032 driver->cdevs[index] = NULL; in tty_unregister_device() 3050 unsigned int cdevs = 1; in __tty_alloc_driver() local 3084 cdevs = lines; in __tty_alloc_driver() [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | st.h | 72 struct cdev *cdevs[2]; /* Auto-rewind and non-rewind devices */ member
|
D | st.c | 2281 cd0 = STm->cdevs[0]; 2282 cd1 = STm->cdevs[1]; 2286 STm->cdevs[0] = cd0; 2287 STm->cdevs[1] = cd1; 4187 STm->cdevs[rew] = cdev; in create_one_cdev() 4213 cdev_del(STm->cdevs[rew]); in create_one_cdev() 4215 STm->cdevs[rew] = NULL; in create_one_cdev() 4243 if (STm->cdevs[rew]) in remove_cdevs() 4244 cdev_del(STm->cdevs[rew]); in remove_cdevs()
|
/Linux-v4.19/include/linux/ |
D | tty_driver.h | 302 struct cdev **cdevs; member
|