Lines Matching refs:devs
168 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
236 device_initialize(&chip->devs); in tpm_chip_alloc()
244 chip->devs.parent = pdev; in tpm_chip_alloc()
245 chip->devs.class = tpmrm_class; in tpm_chip_alloc()
246 chip->devs.release = tpm_devs_release; in tpm_chip_alloc()
260 chip->devs.devt = in tpm_chip_alloc()
266 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_chip_alloc()
293 put_device(&chip->devs); in tpm_chip_alloc()
342 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_add_char_device()
344 dev_err(&chip->devs, in tpm_add_char_device()
346 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_add_char_device()
347 MINOR(chip->devs.devt), rc); in tpm_add_char_device()
517 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_chip_unregister()