Home
last modified time | relevance | path

Searched refs:config_item (Results 1 – 25 of 88) sorted by relevance

1234

/linux-6.12.1/include/linux/
Dconfigfs.h38 struct config_item { struct
43 struct config_item *ci_parent; argument
50 int config_item_set_name(struct config_item *, const char *, ...); argument
52 static inline char *config_item_name(struct config_item * item) in config_item_name()
57 extern void config_item_init_type_name(struct config_item *item,
61 extern struct config_item *config_item_get(struct config_item *);
62 extern struct config_item *config_item_get_unless_zero(struct config_item *);
63 extern void config_item_put(struct config_item *);
78 struct config_item cg_item;
90 static inline struct config_group *to_config_group(struct config_item *item) in to_config_group()
[all …]
/linux-6.12.1/fs/configfs/
Ditem.c22 static inline struct config_item *to_item(struct list_head *entry) in to_item()
24 return container_of(entry, struct config_item, ci_entry); in to_item()
34 static void config_item_init(struct config_item *item) in config_item_init()
49 int config_item_set_name(struct config_item *item, const char *fmt, ...) in config_item_set_name()
82 void config_item_init_type_name(struct config_item *item, in config_item_init_type_name()
101 struct config_item *config_item_get(struct config_item *item) in config_item_get()
109 struct config_item *config_item_get_unless_zero(struct config_item *item) in config_item_get_unless_zero()
117 static void config_item_cleanup(struct config_item *item) in config_item_cleanup()
121 struct config_item *parent = item->ci_parent; in config_item_cleanup()
137 config_item_cleanup(container_of(kref, struct config_item, ci_kref)); in config_item_release()
[all …]
Dsymlink.c22 static int item_depth(struct config_item * item) in item_depth()
24 struct config_item * p = item; in item_depth()
30 static int item_path_length(struct config_item * item) in item_path_length()
32 struct config_item * p = item; in item_path_length()
41 static void fill_item_path(struct config_item * item, char * buffer, int length) in fill_item_path()
43 struct config_item * p; in fill_item_path()
56 static int configfs_get_target_path(struct config_item *item, in configfs_get_target_path()
57 struct config_item *target, char *path) in configfs_get_target_path()
77 static int create_link(struct config_item *parent_item, in create_link()
78 struct config_item *item, in create_link()
[all …]
Dconfigfs_internal.h64 extern int configfs_is_root(struct config_item *item);
69 extern int configfs_create_file(struct config_item *, const struct configfs_attribute *);
70 extern int configfs_create_bin_file(struct config_item *,
102 static inline struct config_item * to_item(struct dentry * dentry) in to_item()
105 return ((struct config_item *) sd->s_element); in to_item()
121 static inline struct config_item *configfs_get_config_item(struct dentry *dentry) in configfs_get_config_item()
123 struct config_item * item = NULL; in configfs_get_config_item()
/linux-6.12.1/drivers/target/iscsi/
Discsi_target_stat.c43 static struct iscsi_tiqn *iscsi_instance_tiqn(struct config_item *item) in iscsi_instance_tiqn()
50 static ssize_t iscsi_stat_instance_inst_show(struct config_item *item, in iscsi_stat_instance_inst_show()
57 static ssize_t iscsi_stat_instance_min_ver_show(struct config_item *item, in iscsi_stat_instance_min_ver_show()
63 static ssize_t iscsi_stat_instance_max_ver_show(struct config_item *item, in iscsi_stat_instance_max_ver_show()
69 static ssize_t iscsi_stat_instance_portals_show(struct config_item *item, in iscsi_stat_instance_portals_show()
76 static ssize_t iscsi_stat_instance_nodes_show(struct config_item *item, in iscsi_stat_instance_nodes_show()
82 static ssize_t iscsi_stat_instance_sessions_show(struct config_item *item, in iscsi_stat_instance_sessions_show()
89 static ssize_t iscsi_stat_instance_fail_sess_show(struct config_item *item, in iscsi_stat_instance_fail_sess_show()
105 static ssize_t iscsi_stat_instance_fail_type_show(struct config_item *item, in iscsi_stat_instance_fail_type_show()
115 static ssize_t iscsi_stat_instance_fail_rem_name_show(struct config_item *item, in iscsi_stat_instance_fail_rem_name_show()
[all …]
Discsi_target_configfs.c34 static inline struct iscsi_tpg_np *to_iscsi_tpg_np(struct config_item *item) in to_iscsi_tpg_np()
39 static ssize_t lio_target_np_driver_show(struct config_item *item, char *page, in lio_target_np_driver_show()
55 static ssize_t lio_target_np_driver_store(struct config_item *item, in lio_target_np_driver_store()
116 static ssize_t lio_target_np_iser_show(struct config_item *item, char *page) in lio_target_np_iser_show()
121 static ssize_t lio_target_np_iser_store(struct config_item *item, in lio_target_np_iser_store()
129 static ssize_t lio_target_np_cxgbit_show(struct config_item *item, char *page) in lio_target_np_cxgbit_show()
134 static ssize_t lio_target_np_cxgbit_store(struct config_item *item, in lio_target_np_cxgbit_store()
280 static ssize_t iscsi_nacl_attrib_##name##_show(struct config_item *item,\
288 static ssize_t iscsi_nacl_attrib_##name##_store(struct config_item *item,\
317 static ssize_t iscsi_nacl_attrib_authentication_show(struct config_item *item, in iscsi_nacl_attrib_authentication_show()
[all …]
/linux-6.12.1/drivers/target/
Dtarget_core_stat.c41 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev()
48 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show()
55 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show()
60 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show()
65 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show()
91 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev()
98 static ssize_t target_stat_tgt_inst_show(struct config_item *item, char *page) in target_stat_tgt_inst_show()
105 static ssize_t target_stat_tgt_indx_show(struct config_item *item, char *page) in target_stat_tgt_indx_show()
110 static ssize_t target_stat_tgt_num_lus_show(struct config_item *item, in target_stat_tgt_num_lus_show()
116 static ssize_t target_stat_tgt_status_show(struct config_item *item, in target_stat_tgt_status_show()
[all …]
Dtarget_core_fabric_configfs.c67 struct config_item *lun_acl_ci, in target_fabric_mappedlun_link()
68 struct config_item *lun_ci) in target_fabric_mappedlun_link()
75 struct config_item *nacl_ci, *tpg_ci, *tpg_ci_s, *wwn_ci, *wwn_ci_s; in target_fabric_mappedlun_link()
143 struct config_item *lun_acl_ci, in target_fabric_mappedlun_unlink()
144 struct config_item *lun_ci) in target_fabric_mappedlun_unlink()
154 static struct se_lun_acl *item_to_lun_acl(struct config_item *item) in item_to_lun_acl()
161 struct config_item *item, char *page) in target_fabric_mappedlun_write_protect_show()
179 struct config_item *item, const char *page, size_t count) in target_fabric_mappedlun_write_protect_store()
213 static void target_fabric_mappedlun_release(struct config_item *item) in target_fabric_mappedlun_release()
244 struct config_item *item) in target_core_mappedlun_stat_rmdir()
[all …]
Dtarget_core_configfs.c80 item_to_hba(struct config_item *item) in item_to_hba()
88 static ssize_t target_core_item_version_show(struct config_item *item, in target_core_item_version_show()
101 static ssize_t target_core_item_dbroot_show(struct config_item *item, in target_core_item_dbroot_show()
107 static ssize_t target_core_item_dbroot_store(struct config_item *item, in target_core_item_dbroot_store()
272 struct config_item *item) in target_core_deregister_fabric()
323 int target_depend_item(struct config_item *item) in target_depend_item()
329 void target_undepend_item(struct config_item *item) in target_undepend_item()
535 static inline struct se_dev_attrib *to_attrib(struct config_item *item) in to_attrib()
543 static ssize_t _name##_show(struct config_item *item, char *page) \
583 static ssize_t _name##_store(struct config_item *item, const char *page,\
[all …]
/linux-6.12.1/drivers/usb/gadget/function/
Duvc_configfs.h19 static inline struct f_uvc_opts *to_f_uvc_opts(struct config_item *item) in to_f_uvc_opts()
30 struct config_item item;
35 static inline struct uvcg_control_header *to_uvcg_control_header(struct config_item *item) in to_uvcg_control_header()
69 static inline struct uvcg_format *to_uvcg_format(struct config_item *item) in to_uvcg_format()
75 struct config_item item;
82 static inline struct uvcg_streaming_header *to_uvcg_streaming_header(struct config_item *item) in to_uvcg_streaming_header()
93 struct config_item item;
112 static inline struct uvcg_frame *to_uvcg_frame(struct config_item *item) in to_uvcg_frame()
126 static inline struct uvcg_uncompressed *to_uvcg_uncompressed(struct config_item *item) in to_uvcg_uncompressed()
140 static inline struct uvcg_mjpeg *to_uvcg_mjpeg(struct config_item *item) in to_uvcg_mjpeg()
[all …]
Duvc_configfs.c123 static void uvcg_config_item_release(struct config_item *item) in uvcg_config_item_release()
188 struct config_item *item, char *page) \
192 struct config_item *opts_item; \
210 uvcg_control_header_##cname##_store(struct config_item *item, \
215 struct config_item *opts_item; \
267 static struct config_item *uvcg_control_header_make(struct config_group *group, in uvcg_control_header_make()
306 struct config_item *item, char *page) \
310 struct config_item *opts_item; \
339 struct config_item *item, const char *page, size_t len) in uvcg_default_processing_bm_controls_store()
344 struct config_item *opts_item; in uvcg_default_processing_bm_controls_store()
[all …]
Du_ether_configfs.h17 static void _f_##_attr_release(struct config_item *item) \
29 static ssize_t _f_##_opts_dev_addr_show(struct config_item *item, \
42 static ssize_t _f_##_opts_dev_addr_store(struct config_item *item, \
64 static ssize_t _f_##_opts_host_addr_show(struct config_item *item, \
77 static ssize_t _f_##_opts_host_addr_store(struct config_item *item, \
99 static ssize_t _f_##_opts_qmult_show(struct config_item *item, \
111 static ssize_t _f_##_opts_qmult_store(struct config_item *item, \
138 static ssize_t _f_##_opts_ifname_show(struct config_item *item, \
151 static ssize_t _f_##_opts_ifname_store(struct config_item *item, \
167 static ssize_t _f_##_opts_##_n_##_show(struct config_item *item,\
[all …]
/linux-6.12.1/fs/dlm/
Dconfig.c51 static void drop_cluster(struct config_group *, struct config_item *);
52 static void release_cluster(struct config_item *);
54 static void drop_space(struct config_group *, struct config_item *);
55 static void release_space(struct config_item *);
56 static struct config_item *make_comm(struct config_group *, const char *);
57 static void drop_comm(struct config_group *, struct config_item *);
58 static void release_comm(struct config_item *);
59 static struct config_item *make_node(struct config_group *, const char *);
60 static void drop_node(struct config_group *, struct config_item *);
61 static void release_node(struct config_item *);
[all …]
/linux-6.12.1/samples/configfs/
Dconfigfs_sample.c37 static inline struct childless *to_childless(struct config_item *item) in to_childless()
43 static ssize_t childless_showme_show(struct config_item *item, char *page) in childless_showme_show()
54 static ssize_t childless_storeme_show(struct config_item *item, char *page) in childless_storeme_show()
59 static ssize_t childless_storeme_store(struct config_item *item, in childless_storeme_store()
72 static ssize_t childless_description_show(struct config_item *item, char *page) in childless_description_show()
122 struct config_item item;
126 static inline struct simple_child *to_simple_child(struct config_item *item) in to_simple_child()
131 static ssize_t simple_child_storeme_show(struct config_item *item, char *page) in simple_child_storeme_show()
136 static ssize_t simple_child_storeme_store(struct config_item *item, in simple_child_storeme_store()
156 static void simple_child_release(struct config_item *item) in simple_child_release()
[all …]
/linux-6.12.1/drivers/nvme/target/
Dconfigfs.c64 static ssize_t nvmet_addr_adrfam_show(struct config_item *item, char *page) in nvmet_addr_adrfam_show()
78 static ssize_t nvmet_addr_adrfam_store(struct config_item *item, in nvmet_addr_adrfam_store()
102 static ssize_t nvmet_addr_portid_show(struct config_item *item, in nvmet_addr_portid_show()
110 static ssize_t nvmet_addr_portid_store(struct config_item *item, in nvmet_addr_portid_store()
130 static ssize_t nvmet_addr_traddr_show(struct config_item *item, in nvmet_addr_traddr_show()
138 static ssize_t nvmet_addr_traddr_store(struct config_item *item, in nvmet_addr_traddr_store()
169 static ssize_t nvmet_addr_treq_show(struct config_item *item, char *page) in nvmet_addr_treq_show()
183 static ssize_t nvmet_addr_treq_store(struct config_item *item, in nvmet_addr_treq_store()
223 static ssize_t nvmet_addr_trsvcid_show(struct config_item *item, in nvmet_addr_trsvcid_show()
231 static ssize_t nvmet_addr_trsvcid_store(struct config_item *item, in nvmet_addr_trsvcid_store()
[all …]
/linux-6.12.1/drivers/most/
Dconfigfs.c18 struct config_item item;
90 static struct mdev_link *to_mdev_link(struct config_item *item) in to_mdev_link()
113 static ssize_t mdev_link_create_link_store(struct config_item *item, in mdev_link_create_link_store()
135 static ssize_t mdev_link_destroy_link_store(struct config_item *item, in mdev_link_destroy_link_store()
160 static ssize_t mdev_link_direction_show(struct config_item *item, char *page) in mdev_link_direction_show()
165 static ssize_t mdev_link_direction_store(struct config_item *item, in mdev_link_direction_store()
178 static ssize_t mdev_link_datatype_show(struct config_item *item, char *page) in mdev_link_datatype_show()
183 static ssize_t mdev_link_datatype_store(struct config_item *item, in mdev_link_datatype_store()
197 static ssize_t mdev_link_device_show(struct config_item *item, char *page) in mdev_link_device_show()
202 static ssize_t mdev_link_device_store(struct config_item *item, in mdev_link_device_store()
[all …]
/linux-6.12.1/drivers/pci/endpoint/
Dpci-ep-cfs.c37 static inline struct pci_epf_group *to_pci_epf_group(struct config_item *item) in to_pci_epf_group()
42 static inline struct pci_epc_group *to_pci_epc_group(struct config_item *item) in to_pci_epc_group()
47 static int pci_secondary_epc_epf_link(struct config_item *epf_item, in pci_secondary_epc_epf_link()
48 struct config_item *epc_item) in pci_secondary_epc_epf_link()
72 static void pci_secondary_epc_epf_unlink(struct config_item *epc_item, in pci_secondary_epc_epf_unlink()
73 struct config_item *epf_item) in pci_secondary_epc_epf_unlink()
111 static int pci_primary_epc_epf_link(struct config_item *epf_item, in pci_primary_epc_epf_link()
112 struct config_item *epc_item) in pci_primary_epc_epf_link()
136 static void pci_primary_epc_epf_unlink(struct config_item *epc_item, in pci_primary_epc_epf_unlink()
137 struct config_item *epf_item) in pci_primary_epc_epf_unlink()
[all …]
/linux-6.12.1/drivers/acpi/
Dacpi_configfs.c19 struct config_item cfg;
24 static ssize_t acpi_table_aml_write(struct config_item *cfg, in acpi_table_aml_write()
66 static inline struct acpi_table_header *get_header(struct config_item *cfg) in get_header()
76 static ssize_t acpi_table_aml_read(struct config_item *cfg, in acpi_table_aml_read()
99 static ssize_t acpi_table_signature_show(struct config_item *cfg, char *str) in acpi_table_signature_show()
109 static ssize_t acpi_table_length_show(struct config_item *cfg, char *str) in acpi_table_length_show()
119 static ssize_t acpi_table_revision_show(struct config_item *cfg, char *str) in acpi_table_revision_show()
129 static ssize_t acpi_table_oem_id_show(struct config_item *cfg, char *str) in acpi_table_oem_id_show()
139 static ssize_t acpi_table_oem_table_id_show(struct config_item *cfg, char *str) in acpi_table_oem_table_id_show()
149 static ssize_t acpi_table_oem_revision_show(struct config_item *cfg, char *str) in acpi_table_oem_revision_show()
[all …]
/linux-6.12.1/drivers/usb/gadget/
Dconfigfs.c64 static inline struct gadget_info *to_gadget_info(struct config_item *item) in to_gadget_info()
78 static inline struct config_usb_cfg *to_config_usb_cfg(struct config_item *item) in to_config_usb_cfg()
140 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \
148 static ssize_t gadget_dev_desc_##__name##_show(struct config_item *item, \
157 static ssize_t gadget_dev_desc_##_name##_store(struct config_item *item, \
170 static ssize_t gadget_dev_desc_##_name##_store(struct config_item *item, \
208 static ssize_t gadget_dev_desc_bcdDevice_store(struct config_item *item, in gadget_dev_desc_bcdDevice_store()
225 static ssize_t gadget_dev_desc_bcdUSB_store(struct config_item *item, in gadget_dev_desc_bcdUSB_store()
242 static ssize_t gadget_dev_desc_UDC_show(struct config_item *item, char *page) in gadget_dev_desc_UDC_show()
271 static ssize_t gadget_dev_desc_UDC_store(struct config_item *item, in gadget_dev_desc_UDC_store()
[all …]
/linux-6.12.1/fs/ocfs2/cluster/
Dnodemanager.c143 static struct o2nm_cluster *to_o2nm_cluster(struct config_item *item) in to_o2nm_cluster()
151 static struct o2nm_node *to_o2nm_node(struct config_item *item) in to_o2nm_node()
156 static void o2nm_node_release(struct config_item *item) in o2nm_node_release()
162 static ssize_t o2nm_node_num_show(struct config_item *item, char *page) in o2nm_node_num_show()
183 static ssize_t o2nm_node_num_store(struct config_item *item, const char *page, in o2nm_node_num_store()
233 static ssize_t o2nm_node_ipv4_port_show(struct config_item *item, char *page) in o2nm_node_ipv4_port_show()
238 static ssize_t o2nm_node_ipv4_port_store(struct config_item *item, in o2nm_node_ipv4_port_store()
261 static ssize_t o2nm_node_ipv4_address_show(struct config_item *item, char *page) in o2nm_node_ipv4_address_show()
266 static ssize_t o2nm_node_ipv4_address_store(struct config_item *item, in o2nm_node_ipv4_address_store()
317 static ssize_t o2nm_node_local_show(struct config_item *item, char *page) in o2nm_node_local_show()
[all …]
/linux-6.12.1/drivers/virt/coco/
Dtsm.c44 struct config_item cfg;
53 static struct tsm_report *to_tsm_report(struct config_item *cfg) in to_tsm_report()
84 static ssize_t tsm_report_privlevel_store(struct config_item *cfg, in tsm_report_privlevel_store()
114 static ssize_t tsm_report_privlevel_floor_show(struct config_item *cfg, in tsm_report_privlevel_floor_show()
122 static ssize_t tsm_report_service_provider_store(struct config_item *cfg, in tsm_report_service_provider_store()
148 static ssize_t tsm_report_service_guid_store(struct config_item *cfg, in tsm_report_service_guid_store()
169 static ssize_t tsm_report_service_manifest_version_store(struct config_item *cfg, in tsm_report_service_manifest_version_store()
190 static ssize_t tsm_report_inblob_write(struct config_item *cfg, in tsm_report_inblob_write()
207 static ssize_t tsm_report_generation_show(struct config_item *cfg, char *buf) in tsm_report_generation_show()
217 static ssize_t tsm_report_provider_show(struct config_item *cfg, char *buf) in tsm_report_provider_show()
[all …]
/linux-6.12.1/drivers/net/
Dnetconsole.c273 static struct netconsole_target *to_target(struct config_item *item) in to_target()
311 static ssize_t enabled_show(struct config_item *item, char *buf) in enabled_show()
316 static ssize_t extended_show(struct config_item *item, char *buf) in extended_show()
321 static ssize_t release_show(struct config_item *item, char *buf) in release_show()
326 static ssize_t dev_name_show(struct config_item *item, char *buf) in dev_name_show()
331 static ssize_t local_port_show(struct config_item *item, char *buf) in local_port_show()
336 static ssize_t remote_port_show(struct config_item *item, char *buf) in remote_port_show()
341 static ssize_t local_ip_show(struct config_item *item, char *buf) in local_ip_show()
351 static ssize_t remote_ip_show(struct config_item *item, char *buf) in remote_ip_show()
361 static ssize_t local_mac_show(struct config_item *item, char *buf) in local_mac_show()
[all …]
/linux-6.12.1/drivers/hwtracing/stm/
Dpolicy.c60 static inline struct stp_policy *to_stp_policy(struct config_item *item) in to_stp_policy()
68 to_stp_policy_node(struct config_item *item) in to_stp_policy_node()
76 void *to_pdrv_policy_node(struct config_item *item) in to_pdrv_policy_node()
85 stp_policy_node_masters_show(struct config_item *item, char *page) in stp_policy_node_masters_show()
97 stp_policy_node_masters_store(struct config_item *item, const char *page, in stp_policy_node_masters_store()
132 stp_policy_node_channels_show(struct config_item *item, char *page) in stp_policy_node_channels_show()
144 stp_policy_node_channels_store(struct config_item *item, const char *page, in stp_policy_node_channels_store()
177 static void stp_policy_node_release(struct config_item *item) in stp_policy_node_release()
268 stp_policy_node_drop(struct config_group *group, struct config_item *item) in stp_policy_node_drop()
288 static ssize_t stp_policy_device_show(struct config_item *item, in stp_policy_device_show()
[all …]
/linux-6.12.1/Documentation/filesystems/
Dconfigfs.rst29 A configfs config_item is created via an explicit userspace operation:
121 Every object in configfs is a config_item. A config_item reflects an
138 struct config_item
143 struct config_item {
148 struct config_item *ci_parent;
154 void config_item_init(struct config_item *);
155 void config_item_init_type_name(struct config_item *,
158 struct config_item *config_item_get(struct config_item *);
159 void config_item_put(struct config_item *);
161 Generally, struct config_item is embedded in a container structure, a
[all …]
/linux-6.12.1/drivers/infiniband/core/
Dcma_configfs.c57 static struct cma_dev_port_group *to_dev_port_group(struct config_item *item) in to_dev_port_group()
73 static int cma_configfs_params_get(struct config_item *item, in cma_configfs_params_get()
99 static ssize_t default_roce_mode_show(struct config_item *item, in default_roce_mode_show()
120 static ssize_t default_roce_mode_store(struct config_item *item, in default_roce_mode_store()
147 static ssize_t default_roce_tos_show(struct config_item *item, char *buf) in default_roce_tos_show()
164 static ssize_t default_roce_tos_store(struct config_item *item, in default_roce_tos_store()
236 static void release_cma_dev(struct config_item *item) in release_cma_dev()
247 static void release_cma_ports_group(struct config_item *item) in release_cma_ports_group()
319 static void drop_cma_dev(struct config_group *cgroup, struct config_item *item) in drop_cma_dev()

1234