Home
last modified time | relevance | path

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

/linux-4.1.27/fs/configfs/
Dmount.c50 .cg_item = {
52 .ci_name = configfs_root_group.cg_item.ci_namebuf,
58 return item == &configfs_root_group.cg_item; in configfs_is_root()
64 .s_element = &configfs_root_group.cg_item,
98 configfs_root_group.cg_item.ci_dentry = root; in configfs_fill_super()
Ddir.c611 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
659 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
661 if (!group->cg_item.ci_name) in create_default_group()
662 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
665 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
669 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
670 &group->cg_item, child); in create_default_group()
764 unlink_obj(&group->cg_item); in unlink_group()
773 link_obj(&parent_group->cg_item, &group->cg_item); in link_group()
777 else if (configfs_is_root(&parent_group->cg_item)) in link_group()
[all …]
Ditem.c128 config_item_set_name(&group->cg_item, name); in config_group_init_type_name()
129 group->cg_item.ci_type = type; in config_group_init_type_name()
184 config_item_init(&group->cg_item); in config_group_init()
/linux-4.1.27/include/linux/
Dconfigfs.h94 struct config_item cg_item; member
107 return item ? container_of(item,struct config_group,cg_item) : NULL; in to_config_group()
112 return group ? to_config_group(config_item_get(&group->cg_item)) : NULL; in config_group_get()
117 config_item_put(&group->cg_item); in config_group_put()
/linux-4.1.27/drivers/target/
Dtarget_core_configfs.c214 " %s\n", tf->tf_group.cg_item.ci_name); in target_core_register_fabric()
215 tf->tf_fabric = &tf->tf_group.cg_item; in target_core_register_fabric()
251 df_item = &tf_group->default_groups[i]->cg_item; in target_core_deregister_fabric()
283 .cg_item = {
1298 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_alias()
1299 config_item_name(&dev->dev_group.cg_item), in target_core_store_dev_alias()
1349 config_item_name(&hba->hba_group.cg_item), in target_core_store_dev_udev_path()
1350 config_item_name(&dev->dev_group.cg_item), in target_core_store_dev_udev_path()
1416 lu_ci = &lu_gp->lu_gp_group.cg_item; in target_core_show_alua_lu_gp()
1473 config_item_name(&hba->hba_group.cg_item), in target_core_store_alua_lu_gp()
[all …]
Dtarget_core_fabric_configfs.c103 nacl_ci = &lun_acl_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
104 tpg_ci = &nacl_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
105 wwn_ci = &tpg_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
106 tpg_ci_s = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
107 wwn_ci_s = &tpg_ci_s->ci_group->cg_item; in target_fabric_mappedlun_link()
344 acl_ci = &group->cg_item; in target_fabric_make_mappedlun()
440 df_item = &ml_stat_grp->default_groups[i]->cg_item; in target_fabric_drop_mappedlun()
448 df_item = &lacl_cg->default_groups[i]->cg_item; in target_fabric_drop_mappedlun()
548 df_item = &nacl_cg->default_groups[i]->cg_item; in target_fabric_drop_nodeacl()
790 tpg_ci = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_port_link()
[all …]
Dtarget_core_alua.c962 config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item)); in core_alua_update_tpg_primary_metadata()
1056 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_do_transition_tg_pt_work()
1245 config_item_name(&lu_gp->lu_gp_group.cg_item), in core_alua_do_port_transition()
1331 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_set_tg_pt_secondary_state()
1643 ci = &lu_gp->lu_gp_group.cg_item; in core_alua_get_lu_gp_by_name()
1925 ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_get_tg_pt_gp_by_name()
1992 tg_pt_ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_show_tg_pt_gp_info()
2067 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
2069 &tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_store_tg_pt_gp_info()
2094 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
[all …]
Dtarget_core_xcopy.c92 rc = target_depend_item(&se_dev->dev_group.cg_item); in target_xcopy_locate_se_dev_e4()
383 remote_dev, &remote_dev->dev_group.cg_item); in xcopy_pt_undepend_remotedev()
385 target_undepend_item(&remote_dev->dev_group.cg_item); in xcopy_pt_undepend_remotedev()
Dtarget_core_pr.c1373 return target_depend_item(&tpg->tpg_group.cg_item); in core_scsi3_tpg_depend_item()
1378 target_undepend_item(&tpg->tpg_group.cg_item); in core_scsi3_tpg_undepend_item()
1386 return target_depend_item(&nacl->acl_group.cg_item); in core_scsi3_nodeacl_depend_item()
1392 target_undepend_item(&nacl->acl_group.cg_item); in core_scsi3_nodeacl_undepend_item()
1410 return target_depend_item(&lun_acl->se_lun_group.cg_item); in core_scsi3_lunacl_depend_item()
1428 target_undepend_item(&lun_acl->se_lun_group.cg_item); in core_scsi3_lunacl_undepend_item()
Dtarget_core_device.c726 configname = config_item_name(&dev->dev_group.cg_item); in dev_set_t10_wwn_model_alias()
/linux-4.1.27/Documentation/filesystems/configfs/
Dconfigfs_example_macros.c141 .cg_item = {
306 .cg_item = {
384 .cg_item = {
422 subsys->su_group.cg_item.ci_namebuf); in configfs_example_init()
Dconfigfs_example_explicit.c178 .cg_item = {
343 .cg_item = {
421 .cg_item = {
459 subsys->su_group.cg_item.ci_namebuf); in configfs_example_init()
Dconfigfs.txt217 struct config_item cg_item;
/linux-4.1.27/drivers/usb/gadget/function/
Duvc_configfs.c218 opts_item = dp->group.cg_item.ci_parent->ci_parent->ci_parent; \
257 opts_item = dp->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_show()
340 opts_item = dc->group.cg_item.ci_parent->ci_parent->ci_parent-> \
387 opts_item = dc->group.cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_show()
472 opts_item = dout->group.cg_item.ci_parent->ci_parent-> \
704 &uvcg_uncompressed_grp.group.cg_item,
705 &uvcg_mjpeg_grp.group.cg_item,
736 opts_item = f->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_show()
762 opts_item = ch->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_store()
1282 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_frame_make()
[all …]
Df_mass_storage.c3154 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3164 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3183 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_ro_store()
3219 fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_cdrom_store()
3280 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_make()
3300 (const char **)&group->cg_item.ci_name); in fsg_lun_make()
3323 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_drop()
3329 gadget = group->cg_item.ci_parent->ci_parent; in fsg_lun_drop()
3498 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
Df_fs.c3459 if (opts->no_configfs || !opts->func_inst.group.cg_item.ci_parent in ffs_closed()
3460 || !atomic_read(&opts->func_inst.group.cg_item.ci_kref.refcount)) in ffs_closed()
3464 func_inst.group.cg_item.ci_parent->ci_parent); in ffs_closed()
/linux-4.1.27/drivers/misc/
Dspear13xx_pcie_gadget.c744 struct config_item *cg_item; in spear_pcie_gadget_probe() local
753 cg_item = &target->subsys.su_group.cg_item; in spear_pcie_gadget_probe()
754 sprintf(cg_item->ci_namebuf, "pcie_gadget.%d", pdev->id); in spear_pcie_gadget_probe()
755 cg_item->ci_type = &pcie_gadget_target_type; in spear_pcie_gadget_probe()
/linux-4.1.27/drivers/usb/gadget/
Dconfigfs.c574 ret = config_item_set_name(&fi->group.cg_item, name); in function_make()
762 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_use_show()
774 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_use_store()
796 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_b_vendor_code_show()
808 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_b_vendor_code_store()
830 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_qw_sign_show()
843 gi = to_gadget_info(os_desc->group.cg_item.ci_parent); in os_desc_qw_sign_store()
1123 struct usb_os_desc *desc = to_usb_os_desc(&group->cg_item); in ext_prop_drop()
1257 config_item_set_name(&d->group.cg_item, "interface.%s", in usb_os_desc_prepare_interf_dir()
1544 .cg_item = {
/linux-4.1.27/fs/dlm/
Dconfig.c511 tmp = &cl->group.default_groups[j]->cg_item; in drop_cluster()
570 tmp = &sp->group.default_groups[j]->cg_item; in drop_space()
624 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in make_node()
646 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in drop_node()
666 .cg_item = {
901 config_item_put(&sp->group.cg_item); in put_space()
/linux-4.1.27/drivers/target/iscsi/
Discsi_target_configfs.c305 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg()
348 " PORTAL: %pISc:%hu\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg()
798 acl_ci = &se_nacl->acl_group.cg_item; in lio_target_nacl_store_cmdsn_depth()
803 tpg_ci = &acl_ci->ci_parent->ci_group->cg_item; in lio_target_nacl_store_cmdsn_depth()
808 wwn_ci = &tpg_ci->ci_group->cg_item; in lio_target_nacl_store_cmdsn_depth()
936 df_item = &stats_cg->default_groups[i]->cg_item; in lio_target_drop_nodeacl()
1575 df_item = &stats_cg->default_groups[i]->cg_item; in lio_target_call_coredeltiqn()
/linux-4.1.27/drivers/target/tcm_fc/
Dtfc_conf.c235 config_item_name(&se_acl->acl_group.cg_item)); in ft_del_acl()
362 config_item_name(&tpg->se_tpg.tpg_group.cg_item)); in ft_del_tpg()
/linux-4.1.27/fs/ocfs2/cluster/
Dnodemanager.c722 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
863 killme = &cluster->cl_group.default_groups[i]->cg_item; in o2nm_cluster_group_drop_item()
884 .cg_item = {
/linux-4.1.27/drivers/target/loopback/
Dtcm_loop.c1244 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_make_naa_tpg()
1274 config_item_name(&wwn->wwn_group.cg_item), tpgt); in tcm_loop_drop_naa_tpg()
/linux-4.1.27/drivers/net/
Dnetconsole.c654 .cg_item = {
/linux-4.1.27/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c1014 if (!target_depend_item(&se_tpg->tpg_group.cg_item)) { in tcm_qla2xxx_depend_tpg()
1030 target_undepend_item(&se_tpg->tpg_group.cg_item); in tcm_qla2xxx_undepend_tpg()
/linux-4.1.27/drivers/vhost/
Dscsi.c1412 ret = target_depend_item(&se_tpg->tpg_group.cg_item); in vhost_scsi_set_endpoint()
1515 target_undepend_item(&se_tpg->tpg_group.cg_item); in vhost_scsi_clear_endpoint()
/linux-4.1.27/drivers/infiniband/ulp/srpt/
Dib_srpt.c3843 pr_debug("drop_tport(%s\n", config_item_name(&sport->port_wwn.wwn_group.cg_item)); in srpt_drop_tport()