Home
last modified time | relevance | path

Searched refs:cg_item (Results 1 – 25 of 42) sorted by relevance

12

/openbmc/linux/fs/configfs/
H A Ddir.c618 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
667 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
669 if (!group->cg_item.ci_name) in create_default_group()
670 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
673 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
677 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
678 &group->cg_item, child, frag); in create_default_group()
715 config_item_put(&g->cg_item); in configfs_remove_default_groups()
774 unlink_obj(&group->cg_item); in unlink_group()
782 link_obj(&parent_group->cg_item, &group->cg_item); in link_group()
[all …]
H A Dmount.c44 .cg_item = {
46 .ci_name = configfs_root_group.cg_item.ci_namebuf,
52 return item == &configfs_root_group.cg_item; in configfs_is_root()
58 .s_element = &configfs_root_group.cg_item,
92 configfs_root_group.cg_item.ci_dentry = root; in configfs_fill_super()
H A Ditem.c95 config_item_set_name(&group->cg_item, "%s", name); in config_group_init_type_name()
96 group->cg_item.ci_type = type; in config_group_init_type_name()
159 config_item_init(&group->cg_item); in config_group_init()
/openbmc/linux/drivers/infiniband/core/
H A Dcma_configfs.c64 group = container_of(item, struct config_group, cg_item); in to_dev_port_group()
239 cg_item); in release_cma_dev()
250 cg_item); in release_cma_ports_group()
322 container_of(item, struct config_group, cg_item); in drop_cma_dev()
343 .cg_item = {
/openbmc/linux/samples/configfs/
H A Dconfigfs_sample.c102 .cg_item = {
239 .cg_item = {
307 .cg_item = {
343 ret, subsys->su_group.cg_item.ci_namebuf); in configfs_example_init()
/openbmc/linux/include/linux/
H A Dconfigfs.h78 struct config_item cg_item; member
92 return item ? container_of(item,struct config_group,cg_item) : NULL; in to_config_group()
97 return group ? to_config_group(config_item_get(&group->cg_item)) : NULL; in config_group_get()
102 config_item_put(&group->cg_item); in config_group_put()
/openbmc/linux/drivers/usb/gadget/function/
H A Duvc_configfs.c177 config_item_put(&child->cg_item); in uvcg_config_remove_children()
317 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; \
352 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_store()
409 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_show()
478 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> \
521 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_store()
579 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_show()
651 opts_item = group->cg_item.ci_parent->ci_parent-> \
686 opts_item = group->cg_item.ci_parent->ci_parent-> in uvcg_default_output_b_source_id_show()
717 opts_item = group->cg_item.ci_parent->ci_parent-> in uvcg_default_output_b_source_id_store()
[all …]
H A Df_mass_storage.c3164 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3173 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3189 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_ro_store()
3219 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_cdrom_store()
3258 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_forced_eject_store()
3304 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_make()
3325 (const char **)&group->cg_item.ci_name); in fsg_lun_make()
3348 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_drop()
3354 gadget = group->cg_item.ci_parent->ci_parent; in fsg_lun_drop()
3514 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
/openbmc/linux/drivers/hwtracing/stm/
H A Dpolicy.c230 if (group->cg_item.ci_type == &stp_policy_type) { in stp_policy_node_make()
480 .cg_item = {
514 policy_node->group.cg_item.ci_name)) { in __stp_policy_node_lookup()
545 config_item_get(&policy_node->group.cg_item); in stp_policy_node_lookup()
557 config_item_put(&policy_node->group.cg_item); in stp_policy_node_put()
/openbmc/linux/drivers/most/
H A Dconfigfs.c440 if (!strcmp(group->cg_item.ci_namebuf, "most_cdev")) in most_common_make_item()
442 else if (!strcmp(group->cg_item.ci_namebuf, "most_net")) in most_common_make_item()
444 else if (!strcmp(group->cg_item.ci_namebuf, "most_video")) in most_common_make_item()
483 .cg_item = {
494 .cg_item = {
505 .cg_item = {
641 .cg_item = {
/openbmc/linux/drivers/target/
H A Dtarget_core_configfs.c263 config_item_name(&tf->tf_group.cg_item)); in target_core_register_fabric()
316 .cg_item = {
641 configname = config_item_name(&dev->dev_group.cg_item); in dev_set_t10_wwn_model_alias()
2295 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
2296 config_item_name(&dev->dev_group.cg_item), in target_dev_alias_store()
2336 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
2337 config_item_name(&dev->dev_group.cg_item), in target_dev_udev_path_store()
2385 lu_ci = &lu_gp->lu_gp_group.cg_item; in target_dev_alua_lu_gp_show()
2439 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2440 config_item_name(&dev->dev_group.cg_item), in target_dev_alua_lu_gp_store()
[all …]
H A Dtarget_core_alua.c902 config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item)); in core_alua_update_tpg_primary_metadata()
1042 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_do_transition_tg_pt()
1159 config_item_name(&lu_gp->lu_gp_group.cg_item), in core_alua_do_port_transition()
1248 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_set_tg_pt_secondary_state()
1557 ci = &lu_gp->lu_gp_group.cg_item; in core_alua_get_lu_gp_by_name()
1781 ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_get_tg_pt_gp_by_name()
1877 tg_pt_ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_show_tg_pt_gp_info()
1952 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
1954 &tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_store_tg_pt_gp_info()
1972 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
[all …]
H A Dtarget_core_fabric_configfs.c99 nacl_ci = &lun_acl_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
100 tpg_ci = &nacl_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
101 wwn_ci = &tpg_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
102 tpg_ci_s = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
103 wwn_ci_s = &tpg_ci_s->ci_group->cg_item; in target_fabric_mappedlun_link()
644 tpg_ci = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_port_link()
/openbmc/linux/drivers/iio/
H A Dindustrialio-sw-device.c133 d = iio_sw_device_create(group->cg_item.ci_name, name); in device_make_group()
137 config_item_set_name(&d->group.cg_item, "%s", name); in device_make_group()
H A Dindustrialio-sw-trigger.c137 t = iio_sw_trigger_create(group->cg_item.ci_name, name); in trigger_make_group()
141 config_item_set_name(&t->group.cg_item, "%s", name); in trigger_make_group()
H A Dindustrialio-configfs.c23 .cg_item = {
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-syscfg-configfs.c388 .cg_item = {
422 .cg_item = {
464 config_item_set_name(&subsys->su_group.cg_item, CSCFG_FS_SUBSYS_NAME); in cscfg_configfs_init()
465 subsys->su_group.cg_item.ci_type = ci_type; in cscfg_configfs_init()
/openbmc/linux/drivers/target/tcm_remote/
H A Dtcm_remote.c122 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_make_tpg()
147 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_remote_drop_tpg()
/openbmc/linux/fs/dlm/
H A Dconfig.c549 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in make_node()
571 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in drop_node()
591 .cg_item = {
828 config_item_put(&sp->group.cg_item); in put_space()
/openbmc/linux/drivers/pci/endpoint/
H A Dpci-ep-cfs.c614 group->cg_item.ci_name, epf_group->index); in pci_epf_make()
704 .cg_item = {
722 ret, root->cg_item.ci_namebuf); in pci_ep_cfs_init()
/openbmc/linux/drivers/gpio/
H A Dgpio-sim.c1272 struct gpio_sim_line *line = to_gpio_sim_line(&group->cg_item); in gpio_sim_line_config_make_hog_item()
1327 struct gpio_sim_bank *bank = to_gpio_sim_bank(&group->cg_item); in gpio_sim_bank_config_make_line_group()
1387 struct gpio_sim_device *dev = to_gpio_sim_device(&group->cg_item); in gpio_sim_device_config_make_bank_group()
1475 .cg_item = {
1497 ret, gpio_sim_config_subsys.su_group.cg_item.ci_namebuf); in gpio_sim_init()
/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_configfs.c220 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg()
263 " PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg()
666 acl_ci = &se_nacl->acl_group.cg_item; in lio_target_nacl_cmdsn_depth_store()
671 tpg_ci = &acl_ci->ci_parent->ci_group->cg_item; in lio_target_nacl_cmdsn_depth_store()
676 wwn_ci = &tpg_ci->ci_group->cg_item; in lio_target_nacl_cmdsn_depth_store()
/openbmc/linux/drivers/usb/gadget/
H A Dconfigfs.c629 ret = config_item_set_name(&fi->group.cg_item, "%s", name); in function_make()
868 language = to_gadget_language(&group->cg_item); in gadget_language_string_make()
890 language = to_gadget_language(&group->cg_item); in gadget_language_string_drop()
1439 struct usb_os_desc *desc = to_usb_os_desc(&group->cg_item); in ext_prop_drop()
1555 config_item_set_name(&d->group.cg_item, "interface.%s", in usb_os_desc_prepare_interf_dir()
2067 .cg_item = {
/openbmc/linux/drivers/acpi/
H A Dacpi_configfs.c247 .cg_item = {
/openbmc/linux/fs/ocfs2/cluster/
H A Dnodemanager.c606 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
756 .cg_item = {

12