Lines Matching full:ent
90 struct scom_debug_entry *ent = filp->private_data; in scom_debug_read() local
103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read()
121 struct scom_debug_entry *ent = filp->private_data; in scom_debug_write() local
136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write()
158 struct scom_debug_entry *ent; in scom_debug_init_one() local
161 ent = kzalloc(sizeof(*ent), GFP_KERNEL); in scom_debug_init_one()
162 if (!ent) in scom_debug_init_one()
165 ent->chip = chip; in scom_debug_init_one()
166 snprintf(ent->name, 16, "%08x", chip); in scom_debug_init_one()
167 ent->path.data = (void *)kasprintf(GFP_KERNEL, "%pOF", dn); in scom_debug_init_one()
168 if (!ent->path.data) { in scom_debug_init_one()
169 kfree(ent); in scom_debug_init_one()
173 ent->path.size = strlen((char *)ent->path.data); in scom_debug_init_one()
175 dir = debugfs_create_dir(ent->name, root); in scom_debug_init_one()
177 kfree(ent->path.data); in scom_debug_init_one()
178 kfree(ent); in scom_debug_init_one()
182 debugfs_create_blob("devspec", 0400, dir, &ent->path); in scom_debug_init_one()
183 debugfs_create_file("access", 0600, dir, ent, &scom_debug_fops); in scom_debug_init_one()