Lines Matching refs:devs
589 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
601 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
602 put_device(&chip->devs); in tpm_devs_remove()
613 device_initialize(&chip->devs); in tpm_devs_add()
614 chip->devs.parent = chip->dev.parent; in tpm_devs_add()
615 chip->devs.class = &tpmrm_class; in tpm_devs_add()
623 chip->devs.release = tpm_devs_release; in tpm_devs_add()
624 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add()
628 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_devs_add()
632 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
634 dev_err(&chip->devs, in tpm_devs_add()
636 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_devs_add()
637 MINOR(chip->devs.devt), rc); in tpm_devs_add()
644 put_device(&chip->devs); in tpm_devs_add()