Lines Matching refs:devs
279 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
347 device_initialize(&chip->devs); in tpm_chip_alloc()
355 chip->devs.parent = pdev; in tpm_chip_alloc()
356 chip->devs.class = tpmrm_class; in tpm_chip_alloc()
357 chip->devs.release = tpm_devs_release; in tpm_chip_alloc()
371 chip->devs.devt = in tpm_chip_alloc()
377 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_chip_alloc()
399 put_device(&chip->devs); in tpm_chip_alloc()
448 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_add_char_device()
450 dev_err(&chip->devs, in tpm_add_char_device()
452 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_add_char_device()
453 MINOR(chip->devs.devt), rc); in tpm_add_char_device()
644 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_chip_unregister()