Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/configfs/
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 …]
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()
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-6.1.9/drivers/infiniband/core/
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-6.1.9/samples/configfs/
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-6.1.9/include/linux/
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-6.1.9/drivers/usb/gadget/function/
Duvc_configfs.c110 config_item_put(&child->cg_item); in uvcg_config_remove_children()
250 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; \
284 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_default_processing_bm_controls_show()
353 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> \
395 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent-> in uvcg_default_camera_bm_controls_show()
467 opts_item = group->cg_item.ci_parent->ci_parent-> \
556 group.cg_item); in uvcg_get_ctl_class_arr()
760 opts_item = f->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_show()
786 opts_item = ch->group.cg_item.ci_parent->ci_parent->ci_parent; in uvcg_format_bma_controls_store()
1280 opts_item = group->cg_item.ci_parent->ci_parent->ci_parent; in uvcg_frame_make()
[all …]
Df_mass_storage.c3151 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_show()
3160 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_file_store()
3176 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_ro_store()
3206 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_cdrom_store()
3245 struct fsg_opts *fsg_opts = to_fsg_opts(opts->group.cg_item.ci_parent); in fsg_lun_opts_forced_eject_store()
3291 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_make()
3312 (const char **)&group->cg_item.ci_name); in fsg_lun_make()
3335 fsg_opts = to_fsg_opts(&group->cg_item); in fsg_lun_drop()
3341 gadget = group->cg_item.ci_parent->ci_parent; in fsg_lun_drop()
3501 (const char **)&opts->func_inst.group.cg_item.ci_name); in fsg_alloc_inst()
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()
/linux-6.1.9/drivers/hwtracing/stm/
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-6.1.9/drivers/most/
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-6.1.9/drivers/target/
Dtarget_core_configfs.c262 config_item_name(&tf->tf_group.cg_item)); in target_core_register_fabric()
315 .cg_item = {
611 configname = config_item_name(&dev->dev_group.cg_item); in dev_set_t10_wwn_model_alias()
2248 config_item_name(&hba->hba_group.cg_item), in target_dev_alias_store()
2249 config_item_name(&dev->dev_group.cg_item), in target_dev_alias_store()
2289 config_item_name(&hba->hba_group.cg_item), in target_dev_udev_path_store()
2290 config_item_name(&dev->dev_group.cg_item), in target_dev_udev_path_store()
2338 lu_ci = &lu_gp->lu_gp_group.cg_item; in target_dev_alua_lu_gp_show()
2392 config_item_name(&hba->hba_group.cg_item), in target_dev_alua_lu_gp_store()
2393 config_item_name(&dev->dev_group.cg_item), in target_dev_alua_lu_gp_store()
[all …]
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 …]
Dtarget_core_fabric_configfs.c98 nacl_ci = &lun_acl_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
99 tpg_ci = &nacl_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
100 wwn_ci = &tpg_ci->ci_group->cg_item; in target_fabric_mappedlun_link()
101 tpg_ci_s = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_mappedlun_link()
102 wwn_ci_s = &tpg_ci_s->ci_group->cg_item; in target_fabric_mappedlun_link()
643 tpg_ci = &lun_ci->ci_parent->ci_group->cg_item; in target_fabric_port_link()
/linux-6.1.9/drivers/iio/
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()
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()
Dindustrialio-configfs.c23 .cg_item = {
/linux-6.1.9/drivers/hwtracing/coresight/
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-6.1.9/drivers/pci/endpoint/
Dpci-ep-cfs.c508 struct pci_epf_group *epf_group = to_pci_epf_group(&group->cg_item); in pci_epf_type_make()
577 group->cg_item.ci_name, epf_group->index); in pci_epf_make()
667 .cg_item = {
685 ret, root->cg_item.ci_namebuf); in pci_ep_cfs_init()
/linux-6.1.9/fs/dlm/
Dconfig.c564 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in make_node()
586 struct dlm_space *sp = config_item_to_space(g->cg_item.ci_parent); in drop_node()
606 .cg_item = {
843 config_item_put(&sp->group.cg_item); in put_space()
/linux-6.1.9/drivers/gpio/
Dgpio-sim.c1332 struct gpio_sim_line *line = to_gpio_sim_line(&group->cg_item); in gpio_sim_line_config_make_hog_item()
1392 struct gpio_sim_bank *bank = to_gpio_sim_bank(&group->cg_item); in gpio_sim_bank_config_make_line_group()
1459 struct gpio_sim_device *dev = to_gpio_sim_device(&group->cg_item); in gpio_sim_device_config_make_bank_group()
1555 .cg_item = {
1577 ret, gpio_sim_config_subsys.su_group.cg_item.ci_namebuf); in gpio_sim_init()
/linux-6.1.9/drivers/target/iscsi/
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-6.1.9/drivers/acpi/
Dacpi_configfs.c247 .cg_item = {
/linux-6.1.9/fs/ocfs2/cluster/
Dnodemanager.c606 struct o2nm_cluster *cluster = to_o2nm_cluster(group->cg_item.ci_parent); in o2nm_node_group_drop_item()
756 .cg_item = {
/linux-6.1.9/drivers/usb/gadget/
Dconfigfs.c610 ret = config_item_set_name(&fi->group.cg_item, "%s", name); in function_make()
1109 struct usb_os_desc *desc = to_usb_os_desc(&group->cg_item); in ext_prop_drop()
1225 config_item_set_name(&d->group.cg_item, "interface.%s", in usb_os_desc_prepare_interf_dir()
1662 .cg_item = {

12