Home
last modified time | relevance | path

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

12

/linux/fs/configfs/
H A Ddir.c628 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
677 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
679 if (!group->cg_item.ci_name) in create_default_group()
680 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
683 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
687 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
688 &group->cg_item, child, frag); in create_default_group()
725 config_item_put(&g->cg_item); in configfs_remove_default_groups()
784 unlink_obj(&group->cg_item); in unlink_group()
792 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()
/linux/drivers/net/
H A Dnetconsole.c157 if (config_item_name(&nt->group.cg_item)) in netconsole_target_get()
163 if (config_item_name(&nt->group.cg_item)) in netconsole_target_put()
456 config_item_name(&nt->group.cg_item)); in release_store()
483 config_item_name(&nt->group.cg_item)); in extended_store()
507 config_item_name(&nt->group.cg_item)); in dev_name_store()
528 config_item_name(&nt->group.cg_item)); in local_port_store()
550 config_item_name(&nt->group.cg_item)); in remote_port_store()
572 config_item_name(&nt->group.cg_item)); in local_ip_store()
609 config_item_name(&nt->group.cg_item)); in remote_ip_store()
647 config_item_name(&nt->group.cg_item)); in remote_mac_store()
[all …]
/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 = {
/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()
/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()
/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()
/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 = {
/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 = {
642 configname = config_item_name(&dev->dev_group.cg_item); in dev_set_t10_wwn_model_alias()
2333 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
2334 config_item_name(&dev->dev_group.cg_item), in target_dev_alias_store()
2374 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
2375 config_item_name(&dev->dev_group.cg_item), in target_dev_udev_path_store()
2423 lu_ci = &lu_gp->lu_gp_group.cg_item; in target_dev_alua_lu_gp_show()
2477 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2478 config_item_name(&dev->dev_group.cg_item), in target_dev_alua_lu_gp_store()
[all …]
H A Dtarget_core_alua.c901 config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item)); in core_alua_update_tpg_primary_metadata()
1041 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_do_transition_tg_pt()
1158 config_item_name(&lu_gp->lu_gp_group.cg_item), in core_alua_do_port_transition()
1247 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_set_tg_pt_secondary_state()
1556 ci = &lu_gp->lu_gp_group.cg_item; in core_alua_get_lu_gp_by_name()
1780 ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_get_tg_pt_gp_by_name()
1876 tg_pt_ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_show_tg_pt_gp_info()
1951 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
1953 &tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_store_tg_pt_gp_info()
1971 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()
/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 = {
/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()
/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()
/linux/fs/dlm/
H A Dconfig.c557 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in make_node()
579 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in drop_node()
599 .cg_item = {
836 config_item_put(&sp->group.cg_item); in put_space()
/linux/drivers/pci/endpoint/
H A Dpci-ep-cfs.c622 group->cg_item.ci_name, epf_group->index); in pci_epf_make()
712 .cg_item = {
730 ret, root->cg_item.ci_namebuf); in pci_ep_cfs_init()
/linux/drivers/usb/gadget/function/
H A Duvc_v4l2.c37 unc = to_uvcg_uncompressed(&uformat->group.cg_item); in to_uvc_format()
57 u = to_uvcg_uncompressed(&uformat->group.cg_item); in uvc_v4l2_get_bytesperline()
269 to_uvcg_uncompressed(&uformat->group.cg_item); in uvc_v4l2_try_format()
H A Df_mass_storage.c3163 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3172 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3188 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_ro_store()
3218 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_cdrom_store()
3257 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_forced_eject_store()
3303 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_make()
3324 (const char **)&group->cg_item.ci_name); in fsg_lun_make()
3347 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_drop()
3353 gadget = group->cg_item.ci_parent->ci_parent; in fsg_lun_drop()
3513 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
/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()
/linux/drivers/gpio/
H A Dgpio-sim.c1349 struct gpio_sim_line *line = to_gpio_sim_line(&group->cg_item); in gpio_sim_line_config_make_hog_item()
1404 struct gpio_sim_bank *bank = to_gpio_sim_bank(&group->cg_item); in gpio_sim_bank_config_make_line_group()
1464 struct gpio_sim_device *dev = to_gpio_sim_device(&group->cg_item); in gpio_sim_device_config_make_bank_group()
1552 .cg_item = {
1574 ret, gpio_sim_config_subsys.su_group.cg_item.ci_namebuf); in gpio_sim_init()
/linux/drivers/usb/gadget/
H A Dconfigfs.c630 ret = config_item_set_name(&fi->group.cg_item, "%s", name); in function_make()
867 language = to_gadget_language(&group->cg_item); in gadget_language_string_make()
889 language = to_gadget_language(&group->cg_item); in gadget_language_string_drop()
1438 struct usb_os_desc *desc = to_usb_os_desc(&group->cg_item); in ext_prop_drop()
1554 config_item_set_name(&d->group.cg_item, "interface.%s", in usb_os_desc_prepare_interf_dir()
2066 .cg_item = {
/linux/drivers/acpi/
H A Dacpi_configfs.c247 .cg_item = {

12