Home
last modified time | relevance | path

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

12

/Linux-v4.19/fs/configfs/
Ddir.c622 struct dentry * dentry = dget(group->cg_item.ci_dentry); in detach_groups()
670 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group()
672 if (!group->cg_item.ci_name) in create_default_group()
673 group->cg_item.ci_name = group->cg_item.ci_namebuf; in create_default_group()
676 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
680 ret = configfs_attach_group(&parent_group->cg_item, in create_default_group()
681 &group->cg_item, child); in create_default_group()
717 config_item_put(&g->cg_item); in configfs_remove_default_groups()
776 unlink_obj(&group->cg_item); in unlink_group()
784 link_obj(&parent_group->cg_item, &group->cg_item); in link_group()
[all …]
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()
Ditem.c111 config_item_set_name(&group->cg_item, "%s", name); in config_group_init_type_name()
112 group->cg_item.ci_type = type; in config_group_init_type_name()
175 config_item_init(&group->cg_item); in config_group_init()
/Linux-v4.19/drivers/hwtracing/stm/
Dpolicy.c52 return policy_node->group.cg_item.ci_name ? : "<none>"; in stp_policy_node_name()
191 if (group->cg_item.ci_type == &stp_policy_type) { in stp_policy_node_make()
382 .cg_item = {
420 policy_node->group.cg_item.ci_name)) { in __stp_policy_node_lookup()
451 config_item_get(&policy_node->group.cg_item); in stp_policy_node_lookup()
459 config_item_put(&policy_node->group.cg_item); in stp_policy_node_put()
/Linux-v4.19/samples/configfs/
Dconfigfs_sample.c126 .cg_item = {
273 .cg_item = {
342 .cg_item = {
380 subsys->su_group.cg_item.ci_namebuf); in configfs_example_init()
/Linux-v4.19/include/linux/
Dconfigfs.h94 struct config_item cg_item; member
108 return item ? container_of(item,struct config_group,cg_item) : NULL; in to_config_group()
113 return group ? to_config_group(config_item_get(&group->cg_item)) : NULL; in config_group_get()
118 config_item_put(&group->cg_item); in config_group_put()
/Linux-v4.19/drivers/infiniband/core/
Dcma_configfs.c62 group = container_of(item, struct config_group, cg_item); in to_dev_port_group()
242 cg_item); in release_cma_dev()
253 cg_item); in release_cma_ports_group()
333 .cg_item = {
/Linux-v4.19/drivers/usb/gadget/function/
Duvc_configfs.c204 opts_item = dp->group.cg_item.ci_parent->ci_parent->ci_parent; \
242 opts_item = dp->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_show()
310 opts_item = dc->group.cg_item.ci_parent->ci_parent->ci_parent-> \
356 opts_item = dc->group.cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_show()
427 opts_item = dout->group.cg_item.ci_parent->ci_parent-> \
624 &uvcg_uncompressed_grp.group.cg_item,
625 &uvcg_mjpeg_grp.group.cg_item,
656 opts_item = f->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_show()
682 opts_item = ch->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_store()
1180 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_frame_make()
[all …]
Df_mass_storage.c3027 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3036 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3052 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_ro_store()
3082 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_cdrom_store()
3154 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_make()
3175 (const char **)&group->cg_item.ci_name); in fsg_lun_make()
3198 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_drop()
3204 gadget = group->cg_item.ci_parent->ci_parent; in fsg_lun_drop()
3364 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
/Linux-v4.19/drivers/target/
Dtarget_core_configfs.c267 config_item_name(&tf->tf_group.cg_item)); in target_core_register_fabric()
320 .cg_item = {
615 configname = config_item_name(&dev->dev_group.cg_item); in dev_set_t10_wwn_model_alias()
1899 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
1900 config_item_name(&dev->dev_group.cg_item), in target_dev_alias_store()
1940 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
1941 config_item_name(&dev->dev_group.cg_item), in target_dev_udev_path_store()
1989 lu_ci = &lu_gp->lu_gp_group.cg_item; in target_dev_alua_lu_gp_show()
2044 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2045 config_item_name(&dev->dev_group.cg_item), in target_dev_alua_lu_gp_store()
[all …]
Dtarget_core_alua.c941 config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item)); in core_alua_update_tpg_primary_metadata()
1082 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_do_transition_tg_pt()
1199 config_item_name(&lu_gp->lu_gp_group.cg_item), in core_alua_do_port_transition()
1288 "implicit", config_item_name(&tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_set_tg_pt_secondary_state()
1597 ci = &lu_gp->lu_gp_group.cg_item; in core_alua_get_lu_gp_by_name()
1819 ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_get_tg_pt_gp_by_name()
1901 tg_pt_ci = &tg_pt_gp->tg_pt_gp_group.cg_item; in core_alua_show_tg_pt_gp_info()
1975 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
1977 &tg_pt_gp->tg_pt_gp_group.cg_item), in core_alua_store_tg_pt_gp_info()
1997 config_item_name(&lun->lun_group.cg_item), in core_alua_store_tg_pt_gp_info()
[all …]
Dtarget_core_fabric_configfs.c106 nacl_ci = &lun_acl_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
107 tpg_ci = &nacl_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
108 wwn_ci = &tpg_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
109 tpg_ci_s = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
110 wwn_ci_s = &tpg_ci_s->ci_group->cg_item; in target_fabric_mappedlun_link()
651 tpg_ci = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_port_link()
Dtarget_core_xcopy.c83 rc = target_depend_item(&se_dev->dev_group.cg_item); in target_xcopy_locate_se_dev_e4_iter()
424 remote_dev, &remote_dev->dev_group.cg_item); in xcopy_pt_undepend_remotedev()
426 target_undepend_item(&remote_dev->dev_group.cg_item); in xcopy_pt_undepend_remotedev()
Dtarget_core_pr.c1439 return target_depend_item(&tpg->tpg_group.cg_item); in core_scsi3_tpg_depend_item()
1444 target_undepend_item(&tpg->tpg_group.cg_item); in core_scsi3_tpg_undepend_item()
1452 return target_depend_item(&nacl->acl_group.cg_item); in core_scsi3_nodeacl_depend_item()
1458 target_undepend_item(&nacl->acl_group.cg_item); in core_scsi3_nodeacl_undepend_item()
1474 return target_depend_item(&lun_acl->se_lun_group.cg_item); in core_scsi3_lunacl_depend_item()
1491 target_undepend_item(&lun_acl->se_lun_group.cg_item); in core_scsi3_lunacl_undepend_item()
/Linux-v4.19/drivers/iio/
Dindustrialio-sw-device.c136 d = iio_sw_device_create(group->cg_item.ci_name, name); in device_make_group()
140 config_item_set_name(&d->group.cg_item, "%s", name); in device_make_group()
Dindustrialio-sw-trigger.c136 t = iio_sw_trigger_create(group->cg_item.ci_name, name); in trigger_make_group()
140 config_item_set_name(&t->group.cg_item, "%s", name); in trigger_make_group()
Dindustrialio-configfs.c26 .cg_item = {
/Linux-v4.19/drivers/misc/
Dspear13xx_pcie_gadget.c670 struct config_item *cg_item; in spear_pcie_gadget_probe() local
679 cg_item = &target->subsys.su_group.cg_item; in spear_pcie_gadget_probe()
680 sprintf(cg_item->ci_namebuf, "pcie_gadget.%d", pdev->id); in spear_pcie_gadget_probe()
681 cg_item->ci_type = &pcie_gadget_target_type; in spear_pcie_gadget_probe()
/Linux-v4.19/drivers/pci/endpoint/
Dpci-ep-cfs.c416 group->cg_item.ci_name, epf_group->index); in pci_epf_make()
501 .cg_item = {
519 ret, root->cg_item.ci_namebuf); in pci_ep_cfs_init()
/Linux-v4.19/fs/dlm/
Dconfig.c492 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in make_node()
514 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in drop_node()
534 .cg_item = {
741 config_item_put(&sp->group.cg_item); in put_space()
/Linux-v4.19/drivers/target/iscsi/
Discsi_target_configfs.c229 config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_addnptotpg()
272 " PORTAL: %pISpc\n", config_item_name(&se_tpg->se_tpg_wwn->wwn_group.cg_item), in lio_target_call_delnpfromtpg()
650 acl_ci = &se_nacl->acl_group.cg_item; in lio_target_nacl_cmdsn_depth_store()
655 tpg_ci = &acl_ci->ci_parent->ci_group->cg_item; in lio_target_nacl_cmdsn_depth_store()
660 wwn_ci = &tpg_ci->ci_group->cg_item; in lio_target_nacl_cmdsn_depth_store()
/Linux-v4.19/drivers/usb/gadget/
Dconfigfs.c556 ret = config_item_set_name(&fi->group.cg_item, "%s", name); in function_make()
737 return to_gadget_info(to_os_desc(item)->group.cg_item.ci_parent); in os_desc_item_to_gadget_info()
1068 struct usb_os_desc *desc = to_usb_os_desc(&group->cg_item); in ext_prop_drop()
1184 config_item_set_name(&d->group.cg_item, "interface.%s", in usb_os_desc_prepare_interf_dir()
1487 .cg_item = {
/Linux-v4.19/drivers/acpi/
Dacpi_configfs.c251 .cg_item = {
/Linux-v4.19/fs/ocfs2/cluster/
Dnodemanager.c622 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
770 .cg_item = {
/Linux-v4.19/drivers/nvme/target/
Dconfigfs.c535 struct nvmet_subsys *subsys = namespaces_to_subsys(&group->cg_item); in nvmet_ns_make()
1045 struct nvmet_port *port = ana_groups_to_port(&group->cg_item); in nvmet_ana_groups_make_group()
1235 .cg_item = {

12