Home
last modified time | relevance | path

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

12

/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_kobject.c33 static void kset_join(struct kobject *kobj);
34 static void kset_leave(struct kobject *kobj);
35 static void kset_kfree(struct kobject *kobj);
40 struct kobject *kobj; in kobject_create() local
42 kobj = kzalloc(sizeof(*kobj), GFP_KERNEL); in kobject_create()
43 if (kobj == NULL) in kobject_create()
45 kobject_init(kobj, &linux_kfree_type); in kobject_create()
47 return (kobj); in kobject_create()
52 kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list args) in kobject_set_name_vargs() argument
60 old = kobj->name; in kobject_set_name_vargs()
[all …]
H A Dlinux_compat.c205 linux_class_show(struct kobject *kobj, struct attribute *attr, char *buf) in linux_device_release()
213 error = dattr->show(container_of(kobj, struct class, kobj), in linux_class_show()
219 linux_class_store(struct kobject *kobj, struct attribute *attr, const char *buf, in linux_class_show()
228 error = dattr->store(container_of(kobj, struct class, kobj), in linux_class_store()
234 linux_class_release(struct kobject *kobj) in linux_class_store()
238 class = container_of(kobj, struct class, kobj); in linux_class_release()
254 linux_dev_release(struct kobject *kobj)
208 linux_class_show(struct kobject * kobj,struct attribute * attr,char * buf) linux_class_show() argument
222 linux_class_store(struct kobject * kobj,struct attribute * attr,const char * buf,size_t count) linux_class_store() argument
237 linux_class_release(struct kobject * kobj) linux_class_release() argument
257 linux_dev_release(struct kobject * kobj) linux_dev_release() argument
270 linux_dev_show(struct kobject * kobj,struct attribute * attr,char * buf) linux_dev_show() argument
284 linux_dev_store(struct kobject * kobj,struct attribute * attr,const char * buf,size_t count) linux_dev_store() argument
2445 linux_cdev_release(struct kobject * kobj) linux_cdev_release() argument
2458 linux_cdev_static_release(struct kobject * kobj) linux_cdev_static_release() argument
[all...]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dkobject.h49 void (*release)(struct kobject *kobj);
94 ssize_t (*show)(struct kobject *kobj, struct kobj_attribute *attr,
96 ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
107 struct kobject kobj; member
112 kobject_init(struct kobject *kobj, const struct kobj_type *ktype) in kobject_init() argument
115 kref_init(&kobj->kref); in kobject_init()
116 INIT_LIST_HEAD(&kobj->entry); in kobject_init()
117 kobj->ktype = ktype; in kobject_init()
118 kobj->oidp = NULL; in kobject_init()
124 kobject_put(struct kobject *kobj) in kobject_put() argument
[all …]
H A Dsysfs.h131 struct kobject *kobj; in sysctl_handle_attr() local
138 kobj = arg1; in sysctl_handle_attr()
140 if (kobj->ktype == NULL || kobj->ktype->sysfs_ops == NULL) in sysctl_handle_attr()
145 ops = kobj->ktype->sysfs_ops; in sysctl_handle_attr()
147 len = ops->show(kobj, attr, buf); in sysctl_handle_attr()
172 len = ops->store(kobj, attr, buf, len); in sysctl_handle_attr()
182 sysfs_create_file(struct kobject *kobj, const struct attribute *attr) in sysfs_create_file() argument
186 oid = SYSCTL_ADD_OID(NULL, SYSCTL_CHILDREN(kobj->oidp), OID_AUTO, in sysfs_create_file()
187 attr->name, CTLTYPE_STRING|CTLFLAG_RW|CTLFLAG_MPSAFE, kobj, in sysfs_create_file()
197 __sysfs_lookup_group(struct kobject *kobj, const char *group) in __sysfs_lookup_group() argument
[all …]
H A Ddevice.h61 struct kobject kobj;
120 struct kobject kobj;
332 kobject_get(&dev->kobj); in dev_get_drvdata()
341 return kobject_name(&dev->kobj); in dev_set_drvdata()
352 kobject_set_name(&(_dev)->kobj, (_fmt), ##__VA_ARGS__) in get_device()
359 kobject_put(&dev->kobj); in dev_name()
374 kobject_init(&class->kobj, &linux_class_ktype); in put_device()
375 kobject_set_name(&class->kobj, class->name); in put_device()
376 kobject_add(&class->kobj, &linux_class_root, class->name); in put_device()
385 kobject_put(&class->kobj);
60 struct kobject kobj; global() member
119 struct kobject kobj; global() member
405 kobj_to_dev(struct kobject * kobj) kobj_to_dev() argument
[all...]
H A Dcdev.h49 struct kobject kobj; member
64 kobject_init(&cdev->kobj, &linux_cdev_static_ktype); in cdev_init()
72 kobject_put(&p->kobj); in cdev_put()
95 kobject_name(&cdev->kobj)); in cdev_add()
99 kobject_get(cdev->kobj.parent); in cdev_add()
120 kobject_name(&cdev->kobj), MINOR(dev)); in cdev_add_ext()
124 kobject_get(cdev->kobj.parent); in cdev_add_ext()
131 kobject_put(&cdev->kobj); in cdev_del()
H A Dmiscdevice.h59 kobject_set_name(&misc->cdev->kobj, misc->name); in misc_register()
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c55 struct kobject kobj; member
60 struct kobject kobj; member
93 ssize_t (*show)(struct kobject *kobj,
95 ssize_t (*store)(struct kobject *kobj,
103 static ssize_t port_attr_show(struct kobject *kobj, in port_attr_show() argument
108 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_show()
116 static ssize_t port_attr_store(struct kobject *kobj, in port_attr_store() argument
122 struct ib_port *p = container_of(kobj, struct ib_port, kobj); in port_attr_store()
134 static ssize_t gid_attr_show(struct kobject *kobj, in gid_attr_show() argument
139 struct ib_port *p = container_of(kobj, struct gid_attr_group, in gid_attr_show()
[all …]
H A Dib_user_mad.c104 struct kobject kobj; member
140 static void ib_umad_release_dev(struct kobject *kobj) in ib_umad_release_dev() argument
143 container_of(kobj, struct ib_umad_device, kobj); in ib_umad_release_dev()
976 kobject_get(&port->umad_dev->kobj); in ib_umad_open()
1015 kobject_put(&dev->kobj); in ib_umad_close()
1066 kobject_get(&port->umad_dev->kobj); in ib_umad_sm_open()
1096 kobject_put(&port->umad_dev->kobj); in ib_umad_sm_close()
1198 port->cdev.kobj.parent = &umad_dev->kobj; in ib_umad_init_port()
1199 kobject_set_name(&port->cdev.kobj, "umad%d", port->dev_num); in ib_umad_init_port()
1217 port->sm_cdev.kobj.parent = &umad_dev->kobj; in ib_umad_init_port()
[all …]
H A Dcore_priv.h148 struct kobject *kobj, struct kobj_type *ktype,
150 void ib_port_unregister_module_stat(struct kobject *kobj);
/freebsd/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_sysfs.c159 sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
181 vdentry->kobj = _kobj; in create_sysfs_entry()
190 ret = sysfs_create_file(vdentry->kobj, &vdentry->dentry.attr); 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()
413 static ssize_t port_attr_store(struct kobject *kobj, in port_attr_store() argument
419 struct mlx4_port *p = container_of(kobj, struct mlx4_port, kobj); in port_attr_store()
[all …]
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzfs_sysfs.c105 zfs_kobj_release(struct kobject *kobj) in zfs_kobj_fini()
107 zfs_mod_kobj_t *zkobj = container_of(kobj, zfs_mod_kobj_t, zko_kobj);
316 dataset_property_show(struct kobject *kobj, struct attribute *attr, char *buf) in zprop_sysfs_show()
318 zfs_prop_t prop = zfs_name_to_prop(kobject_name(kobj));
330 vdev_property_show(struct kobject *kobj, struct attribute *attr, char *buf) in dataset_property_show()
332 vdev_prop_t prop = vdev_name_to_prop(kobject_name(kobj));
344 pool_property_show(struct kobject *kobj, struct attribute *attr, char *buf) in vdev_property_show()
346 zpool_prop_t prop = zpool_name_to_prop(kobject_name(kobj));
376 kernel_feature_show(struct kobject *kobj, struct attribute *attr, char *buf)
450 pool_feature_show(struct kobject *kobj, struc
109 zfs_kobj_release(struct kobject * kobj) zfs_kobj_release() argument
320 dataset_property_show(struct kobject * kobj,struct attribute * attr,char * buf) dataset_property_show() argument
334 vdev_property_show(struct kobject * kobj,struct attribute * attr,char * buf) vdev_property_show() argument
348 pool_property_show(struct kobject * kobj,struct attribute * attr,char * buf) pool_property_show() argument
380 kernel_feature_show(struct kobject * kobj,struct attribute * attr,char * buf) kernel_feature_show() argument
454 pool_feature_show(struct kobject * kobj,struct attribute * attr,char * buf) pool_feature_show() argument
[all...]
/freebsd/lib/librpcsec_gss/
H A Drpcsec_gss_conf.c54 char *kobj; member
182 char *name, *oid, *lib, *kobj; in _rpc_gss_load_mech() local
205 kobj = strsep(&p, "\t\n "); in _rpc_gss_load_mech()
206 if (!name || !oid || !lib || !kobj) in _rpc_gss_load_mech()
219 info->kobj = strdup(kobj); in _rpc_gss_load_mech()
/freebsd/sys/dev/drm2/ttm/
H A Dttm_page_alloc_dma.c175 struct kobject kobj; member
200 static void ttm_pool_kobj_release(struct kobject *kobj) in ttm_pool_kobj_release() argument
203 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_kobj_release()
207 static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr, in ttm_pool_store() argument
211 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_store()
241 static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr, in ttm_pool_show() argument
245 container_of(kobj, struct ttm_pool_manager, kobj); in ttm_pool_show()
1074 ret = kobject_init_and_add(&_manager->kobj, &ttm_pool_kobj_type, in ttm_dma_page_alloc_init()
1075 &glob->kobj, "dma_pool"); in ttm_dma_page_alloc_init()
1077 kobject_put(&_manager->kobj); in ttm_dma_page_alloc_init()
[all …]
/freebsd/sys/contrib/dev/athk/ath10k/
H A Dthermal.c173 ret = sysfs_create_link(&ar->dev->kobj, &cdev->device.kobj, in ath10k_thermal_register()
207 sysfs_remove_link(&ar->dev->kobj, "cooling_device"); in ath10k_thermal_register()
218 sysfs_remove_link(&ar->dev->kobj, "cooling_device"); in ath10k_thermal_unregister()
/freebsd/sys/dev/sound/pci/
H A Dmaestro3.c320 m3_initcd(kobj_t kobj, void *devinfo) in m3_initcd() argument
334 m3_rdcd(kobj_t kobj, void *devinfo, int regno) in m3_rdcd() argument
354 m3_wrcd(kobj_t kobj, void *devinfo, int regno, uint32_t data) in m3_wrcd() argument
374 m3_pchan_init(kobj_t kobj, void *devinfo, struct snd_dbuf *b, struct pcm_channel *c, int dir) in m3_pchan_init() argument
516 m3_pchan_free(kobj_t kobj, void *chdata) in m3_pchan_free() argument
540 m3_pchan_setformat(kobj_t kobj, void *chdata, uint32_t format) in m3_pchan_setformat() argument
568 m3_pchan_setspeed(kobj_t kobj, void *chdata, uint32_t speed) in m3_pchan_setspeed() argument
591 m3_pchan_setblocksize(kobj_t kobj, void *chdata, uint32_t blocksize) in m3_pchan_setblocksize() argument
602 m3_pchan_trigger(kobj_t kobj, void *chdata, int go) in m3_pchan_trigger() argument
612 ret = m3_pchan_trigger_locked(kobj, chdat in m3_pchan_trigger()
635 m3_pchan_trigger_locked(kobj_t kobj,void * chdata,int go) m3_pchan_trigger_locked() argument
724 m3_pchan_getptr(kobj_t kobj,void * chdata) m3_pchan_getptr() argument
738 m3_pchan_getcaps(kobj_t kobj,void * chdata) m3_pchan_getcaps() argument
751 m3_rchan_init(kobj_t kobj,void * devinfo,struct snd_dbuf * b,struct pcm_channel * c,int dir) m3_rchan_init() argument
890 m3_rchan_free(kobj_t kobj,void * chdata) m3_rchan_free() argument
914 m3_rchan_setformat(kobj_t kobj,void * chdata,uint32_t format) m3_rchan_setformat() argument
941 m3_rchan_setspeed(kobj_t kobj,void * chdata,uint32_t speed) m3_rchan_setspeed() argument
964 m3_rchan_setblocksize(kobj_t kobj,void * chdata,uint32_t blocksize) m3_rchan_setblocksize() argument
975 m3_rchan_trigger(kobj_t kobj,void * chdata,int go) m3_rchan_trigger() argument
992 m3_rchan_trigger_locked(kobj_t kobj,void * chdata,int go) m3_rchan_trigger_locked() argument
1076 m3_rchan_getptr(kobj_t kobj,void * chdata) m3_rchan_getptr() argument
1090 m3_rchan_getcaps(kobj_t kobj,void * chdata) m3_rchan_getcaps() argument
[all...]
/freebsd/sys/contrib/dev/athk/ath11k/
H A Dthermal.c187 ret = sysfs_create_link(&ar->hw->wiphy->dev.kobj, &cdev->device.kobj, in ath11k_thermal_register()
227 sysfs_remove_link(&ar->hw->wiphy->dev.kobj, "cooling_device"); in ath11k_thermal_unregister()
/freebsd/lib/libgssapi/
H A Dgss_mech_switch.c189 char *name, *oid, *lib, *kobj; in _gss_load_mech() local
218 kobj = strsep(&p, "\t\n "); in _gss_load_mech()
219 if (!name || !oid || !lib || !kobj) in _gss_load_mech()
/freebsd/sys/contrib/openzfs/rpm/generic/
H A Dzfs-kmod.spec.in19 %if !%{defined kobj}
21 %define kobj ${kernel_version##*___}
23 %define kobj "$( \
164 --with-linux-obj=%{kobj} \
/freebsd/sys/sys/
H A Dkobj.h42 typedef struct kobj *kobj_t;
81 struct kobj { struct
/freebsd/crypto/heimdal/lib/gssapi/mech/
H A Dgss_mech_switch.c235 char *name, *oid, *lib, *kobj; in _gss_load_mech() local
280 kobj = strsep(&p, "\t\n "); in _gss_load_mech()
281 if (!name || !oid || !lib || !kobj) in _gss_load_mech()
/freebsd/sys/contrib/openzfs/rpm/redhat/
H A Dzfs-kmod.spec.in35 %define kobj %{ksrc}
67 --with-linux-obj=%{kobj} \
/freebsd/sys/libkern/
H A Diconv_xlat.c74 kobj_delete((struct kobj*)data, M_ICONV); in iconv_xlat_close()
/freebsd/sys/dev/sound/pcm/
H A Dac97.h86 #define AC97_DECLARE(name) static DEFINE_CLASS(name, name ## _methods, sizeof(struct kobj))
/freebsd/usr.sbin/gssd/
H A Dgssd.c199 char *name, *oid, *lib, *kobj; in gssd_load_mech() local
215 kobj = strsep(&p, "\t\n "); in gssd_load_mech()
216 if (!name || !oid || !lib || !kobj) in gssd_load_mech()
219 if (strcmp(kobj, "-")) { in gssd_load_mech()
224 if (modfind(kobj) < 0) { in gssd_load_mech()
225 if (kldload(kobj) < 0) { in gssd_load_mech()
228 getprogname(), kobj, name); in gssd_load_mech()

12