Lines Matching refs:kobj
44 struct kobject kobj; member
47 #define to_map(map) container_of(map, struct uio_map, kobj)
95 static void map_release(struct kobject *kobj) in map_release() argument
97 struct uio_map *map = to_map(kobj); in map_release()
101 static ssize_t map_type_show(struct kobject *kobj, struct attribute *attr, in map_type_show() argument
104 struct uio_map *map = to_map(kobj); in map_type_show()
127 struct kobject kobj; member
130 #define to_portio(portio) container_of(portio, struct uio_portio, kobj)
183 static void portio_release(struct kobject *kobj) in portio_release() argument
185 struct uio_portio *portio = to_portio(kobj); in portio_release()
189 static ssize_t portio_type_show(struct kobject *kobj, struct attribute *attr, in portio_type_show() argument
192 struct uio_portio *portio = to_portio(kobj); in portio_type_show()
273 &idev->dev->kobj); in uio_dev_add_attributes()
280 kobject_init(&map->kobj, &map_attr_type); in uio_dev_add_attributes()
283 ret = kobject_add(&map->kobj, idev->map_dir, "map%d", mi); in uio_dev_add_attributes()
286 ret = kobject_uevent(&map->kobj, KOBJ_ADD); in uio_dev_add_attributes()
298 &idev->dev->kobj); in uio_dev_add_attributes()
305 kobject_init(&portio->kobj, &portio_attr_type); in uio_dev_add_attributes()
308 ret = kobject_add(&portio->kobj, idev->portio_dir, in uio_dev_add_attributes()
312 ret = kobject_uevent(&portio->kobj, KOBJ_ADD); in uio_dev_add_attributes()
325 kobject_put(&portio->kobj); in uio_dev_add_attributes()
334 kobject_put(&map->kobj); in uio_dev_add_attributes()
351 kobject_put(&mem->map->kobj); in uio_dev_del_attributes()
359 kobject_put(&port->portio->kobj); in uio_dev_del_attributes()
738 kobject_set_name(&cdev->kobj, "%s", name); in uio_major_init()
748 kobject_put(&cdev->kobj); in uio_major_init()