Home
last modified time | relevance | path

Searched refs:kobj (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-12.1/sys/compat/linuxkpi/common/include/linux/
H A Dkobject.h84 kobj->oidp = NULL; in kobject_init()
93 if (kobj) in kobject_put()
101 if (kobj) in kobject_get()
103 return kobj; in kobject_get()
115 kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); in kobject_create()
116 if (kobj == NULL) in kobject_create()
120 return (kobj); in kobject_create()
129 if (kobj == NULL) in kobject_create_and_add()
132 return (kobj); in kobject_create_and_add()
133 kobject_put(kobj); in kobject_create_and_add()
[all …]
H A Dsysfs.h82 struct kobject *kobj; in sysctl_handle_attr() local
89 kobj = arg1; in sysctl_handle_attr()
91 if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL) in sysctl_handle_attr()
96 ops = kobj->ktype->sysfs_ops; in sysctl_handle_attr()
98 len = ops->show(kobj, attr, buf); in sysctl_handle_attr()
151 if (kobj->oidp) in sysfs_remove_file()
189 oidp = kobj->oidp; in sysfs_create_group()
203 if (kobj->oidp) in sysfs_remove_group()
250 OID_AUTO, kobj->name, CTLFLAG_RD|CTLFLAG_MPSAFE, NULL, kobj->name); in sysfs_create_dir()
254 kobj->oidp = oid; in sysfs_create_dir()
[all …]
H A Ddevice.h54 struct kobject kobj; member
109 struct kobject kobj; member
227 kobject_get(&dev->kobj); in get_device()
236 return kobject_name(&dev->kobj); in dev_name()
247 kobject_put(&dev->kobj); in put_device()
266 kobject_put(&class->kobj); in class_unregister()
271 return container_of(kobj, struct device, kobj); in kobj_to_dev()
298 dev->class->kobj.name, unit); in device_initialize()
319 kobject_add(&dev->kobj, &dev->class->kobj, dev_name(dev)); in device_add()
417 dev->class->kobj.name, unit); in device_register()
[all …]
H A Dcdev.h50 struct kobject kobj; member
63 kobject_init(&cdev->kobj, &linux_cdev_static_ktype); in cdev_init()
74 kobject_init(&cdev->kobj, &linux_cdev_ktype); in cdev_alloc()
82 kobject_put(&p->kobj); in cdev_put()
105 kobject_name(&cdev->kobj)); in cdev_add()
109 kobject_get(cdev->kobj.parent); in cdev_add()
130 kobject_name(&cdev->kobj), MINOR(dev)); in cdev_add_ext()
134 kobject_get(cdev->kobj.parent); in cdev_add_ext()
145 kobject_put(&cdev->kobj); in cdev_del()
H A Dmiscdevice.h61 kobject_set_name(&misc->cdev->kobj, misc->name); in misc_register()
/freebsd-12.1/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c55 struct kobject kobj; member
108 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show()
126 kobj)->port; in gid_attr_show()
642 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in ib_port_release()
666 kobj); in ib_port_gid_attr_release()
801 port = container_of(kobj, struct ib_port, kobj); in show_hw_stats()
824 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in show_stats_lifespan()
851 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in set_stats_lifespan()
952 struct kobject *kobj = &port->kobj; in setup_hw_stats() local
959 struct kobject *kobj = &device->dev.kobj; in setup_hw_stats() local
[all …]
H A Dib_user_mad.c106 struct kobject kobj; member
142 static void ib_umad_release_dev(struct kobject *kobj) in ib_umad_release_dev() argument
145 container_of(kobj, struct ib_umad_device, kobj); in ib_umad_release_dev()
972 kobject_get(&port->umad_dev->kobj); in ib_umad_open()
1011 kobject_put(&dev->kobj); in ib_umad_close()
1062 kobject_get(&port->umad_dev->kobj); in ib_umad_sm_open()
1092 kobject_put(&port->umad_dev->kobj); in ib_umad_sm_close()
1194 port->cdev.kobj.parent = &umad_dev->kobj; in ib_umad_init_port()
1213 port->sm_cdev.kobj.parent = &umad_dev->kobj; in ib_umad_init_port()
1331 kobject_put(&umad_dev->kobj); in ib_umad_add_one()
[all …]
H A Dib_uverbs_main.c160 static void ib_uverbs_release_dev(struct kobject *kobj) in ib_uverbs_release_dev() argument
163 container_of(kobj, struct ib_uverbs_device, kobj); in ib_uverbs_release_dev()
981 kobject_get(&dev->kobj); in ib_uverbs_open()
1023 kobject_put(&dev->kobj); in ib_uverbs_close()
1185 kobject_init(&uverbs_dev->kobj, &ib_uverbs_dev_ktype); in ib_uverbs_add_one()
1215 uverbs_dev->cdev.kobj.parent = &uverbs_dev->kobj; in ib_uverbs_add_one()
1216 kobject_set_name(&uverbs_dev->cdev.kobj, "uverbs%d", uverbs_dev->devnum); in ib_uverbs_add_one()
1230 if (sysfs_create_group(&uverbs_dev->dev->kobj, &device_group)) in ib_uverbs_add_one()
1251 kobject_put(&uverbs_dev->kobj); in ib_uverbs_add_one()
1333 sysfs_remove_group(&uverbs_dev->dev->kobj, &device_group); in ib_uverbs_remove_one()
[all …]
/freebsd-12.1/sys/compat/linuxkpi/common/src/
H A Dlinux_compat.c192 if (error == 0 && kobj->ktype && kobj->ktype->default_attrs) { in kobject_add_complete()
232 if (kobj->ktype && kobj->ktype->release) in linux_kobject_release()
233 kobj->ktype->release(kobj); in linux_kobject_release()
240 kfree(kobj); in linux_kobject_kfree()
246 if (kobj) { in linux_kobject_kfree_name()
271 error = dattr->show(container_of(kobj, struct class, kobj), in linux_class_show()
286 error = dattr->store(container_of(kobj, struct class, kobj), in linux_class_store()
296 class = container_of(kobj, struct class, kobj); in linux_class_release()
316 dev = container_of(kobj, struct device, kobj); in linux_dev_release()
2097 cdev = container_of(kobj, struct linux_cdev, kobj); in linux_cdev_release()
[all …]
H A Dlinux_pci.c163 kobject_init(&pdev->dev.kobj, &linux_dev_ktype); in linux_pci_attach()
164 kobject_set_name(&pdev->dev.kobj, device_get_nameunit(dev)); in linux_pci_attach()
165 kobject_add(&pdev->dev.kobj, &linux_root_device.kobj, in linux_pci_attach()
166 kobject_name(&pdev->dev.kobj)); in linux_pci_attach()
/freebsd-12.1/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c181 vdentry->kobj = _kobj; in create_sysfs_entry()
368 struct kobject kobj; member
379 static void mlx4_port_release(struct kobject *kobj) in mlx4_port_release() argument
381 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in mlx4_port_release()
401 static ssize_t port_attr_show(struct kobject *kobj, in port_attr_show() argument
406 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in port_attr_show()
419 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in port_attr_store()
634 sysfs_remove_file(&p->kobj, &p->smi_enabled.attr); in remove_vf_smi_entries()
654 ret = kobject_init_and_add(&p->kobj, &port_type, in add_port()
753 mport = container_of(p, struct mlx4_port, kobj); in register_one_pkey_tree()
[all …]
/freebsd-12.1/lib/librpcsec_gss/
H A Drpcsec_gss_conf.c56 char *kobj; member
184 char *name, *oid, *lib, *kobj; in _rpc_gss_load_mech() local
207 kobj = strsep(&p, "\t\n "); in _rpc_gss_load_mech()
208 if (!name || !oid || !lib || !kobj) in _rpc_gss_load_mech()
221 info->kobj = strdup(kobj); in _rpc_gss_load_mech()
/freebsd-12.1/sys/dev/drm2/ttm/
H A Dttm_page_alloc_dma.c177 struct kobject kobj; member
202 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument
205 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release()
209 static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr, in ttm_pool_store() argument
213 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store()
243 static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr, in ttm_pool_show() argument
247 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show()
1076 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_dma_page_alloc_init()
1077 &glob->kobj, "dma_pool"); in ttm_dma_page_alloc_init()
1079 kobject_put(&_manager->kobj); in ttm_dma_page_alloc_init()
[all …]
/freebsd-12.1/sys/dev/sound/pci/
H A Dmaestro3.c322 m3_initcd(kobj_t kobj, void *devinfo) in m3_initcd() argument
336 m3_rdcd(kobj_t kobj, void *devinfo, int regno) in m3_rdcd() argument
518 m3_pchan_free(kobj_t kobj, void *chdata) in m3_pchan_free() argument
604 m3_pchan_trigger(kobj_t kobj, void *chdata, int go) in m3_pchan_trigger() argument
614 ret = m3_pchan_trigger_locked(kobj, chdata, go); in m3_pchan_trigger()
726 m3_pchan_getptr(kobj_t kobj, void *chdata) in m3_pchan_getptr() argument
740 m3_pchan_getcaps(kobj_t kobj, void *chdata) in m3_pchan_getcaps() argument
892 m3_rchan_free(kobj_t kobj, void *chdata) in m3_rchan_free() argument
987 ret = m3_rchan_trigger_locked(kobj, chdata, go); in m3_rchan_trigger()
1078 m3_rchan_getptr(kobj_t kobj, void *chdata) in m3_rchan_getptr() argument
[all …]
/freebsd-12.1/lib/libgssapi/
H A Dgss_mech_switch.c191 char *name, *oid, *lib, *kobj; in _gss_load_mech() local
222 kobj = strsep(&p, "\t\n "); in _gss_load_mech()
223 if (!name || !oid || !lib || !kobj) in _gss_load_mech()
/freebsd-12.1/sys/sys/
H A Dkobj.h37 typedef struct kobj *kobj_t;
74 struct kobj { struct
/freebsd-12.1/crypto/heimdal/lib/gssapi/mech/
H A Dgss_mech_switch.c233 char *name, *oid, *lib, *kobj; in _gss_load_mech() local
278 kobj = strsep(&p, "\t\n "); in _gss_load_mech()
279 if (!name || !oid || !lib || !kobj) in _gss_load_mech()
/freebsd-12.1/usr.sbin/gssd/
H A Dgssd.c271 char *name, *oid, *lib, *kobj; in gssd_load_mech() local
287 kobj = strsep(&p, "\t\n "); in gssd_load_mech()
288 if (!name || !oid || !lib || !kobj) in gssd_load_mech()
291 if (strcmp(kobj, "-")) { in gssd_load_mech()
296 if (modfind(kobj) < 0) { in gssd_load_mech()
297 if (kldload(kobj) < 0) { in gssd_load_mech()
300 getprogname(), kobj, name); in gssd_load_mech()
/freebsd-12.1/sys/cddl/compat/opensolaris/sys/
H A Dkobj.h34 #include_next <sys/kobj.h>
/freebsd-12.1/sys/dev/sound/pcm/
H A Dac97.h88 #define AC97_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj))
H A Dmixer.h83 #define MIXER_SIZE (512 + sizeof(struct kobj) + \
H A Dchannel_if.m184 * @param obj standard kobj object (usually @c channel->methods)
211 * @param obj standard kobj object (usually @c channel->methods)
/freebsd-12.1/sys/libkern/
H A Diconv_xlat.c77 kobj_delete((struct kobj*)data, M_ICONV); in iconv_xlat_close()
/freebsd-12.1/share/man/man9/
H A DMakefile183 kobj.9 \
1231 MLINKS+=kobj.9 DEFINE_CLASS.9 \
1232 kobj.9 kobj_class_compile.9 \
1233 kobj.9 kobj_class_compile_static.9 \
1234 kobj.9 kobj_class_free.9 \
1235 kobj.9 kobj_create.9 \
1236 kobj.9 kobj_delete.9 \
1237 kobj.9 kobj_init.9 \
1238 kobj.9 kobj_init_static.9
/freebsd-12.1/sys/kern/
H A Dsubr_kobj.c81 SYSINIT(kobj, SI_SUB_LOCK, SI_ORDER_ANY, kobj_init_mutex, NULL);

12