Lines Matching refs:devs
583 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs); in tpm_devs_release()
595 cdev_device_del(&chip->cdevs, &chip->devs); in tpm_devs_remove()
596 put_device(&chip->devs); in tpm_devs_remove()
607 device_initialize(&chip->devs); in tpm_devs_add()
608 chip->devs.parent = chip->dev.parent; in tpm_devs_add()
609 chip->devs.class = tpmrm_class; in tpm_devs_add()
617 chip->devs.release = tpm_devs_release; in tpm_devs_add()
618 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES); in tpm_devs_add()
622 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num); in tpm_devs_add()
626 rc = cdev_device_add(&chip->cdevs, &chip->devs); in tpm_devs_add()
628 dev_err(&chip->devs, in tpm_devs_add()
630 dev_name(&chip->devs), MAJOR(chip->devs.devt), in tpm_devs_add()
631 MINOR(chip->devs.devt), rc); in tpm_devs_add()
638 put_device(&chip->devs); in tpm_devs_add()