Home
last modified time | relevance | path

Searched full:subsys (Results 1 – 25 of 151) sorted by relevance

1234567

/linux/include/linux/
H A Dcgroup_subsys.h9 * This file *must* be included with SUBSYS() defined.
13 SUBSYS(cpuset)
17 SUBSYS(cpu)
21 SUBSYS(cpuacct)
25 SUBSYS(io)
29 SUBSYS(memory)
33 SUBSYS(devices)
37 SUBSYS(freezer)
41 SUBSYS(net_cls)
45 SUBSYS(perf_event)
[all …]
/linux/drivers/nvme/target/
H A Dcore.c120 static u32 nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
126 nvmet_for_each_enabled_ns(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
238 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
242 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
244 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
254 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
259 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
260 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
268 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
277 nvmet_send_ana_event(p->subsys, por in nvmet_port_send_ana_event()
304 nvmet_port_del_ctrls(struct nvmet_port * port,struct nvmet_subsys * subsys) nvmet_port_del_ctrls() argument
440 struct nvmet_subsys *subsys = nvmet_req_subsys(req); nvmet_req_find_ns() local
571 struct nvmet_subsys *subsys = ns->subsys; nvmet_ns_enable() local
628 struct nvmet_subsys *subsys = ns->subsys; nvmet_ns_disable() local
668 struct nvmet_subsys *subsys = ns->subsys; nvmet_ns_free() local
689 nvmet_ns_alloc(struct nvmet_subsys * subsys,u32 nsid) nvmet_ns_alloc() argument
1466 struct nvmet_subsys *subsys; nvmet_ctrl_find_get() local
1524 nvmet_host_allowed(struct nvmet_subsys * subsys,const char * hostnqn) nvmet_host_allowed() argument
1585 struct nvmet_subsys *subsys; nvmet_alloc_ctrl() local
1736 struct nvmet_subsys *subsys = ctrl->subsys; nvmet_ctrl_free() local
1827 struct nvmet_subsys *subsys; nvmet_subsys_alloc() local
1902 struct nvmet_subsys *subsys = nvmet_subsys_free() local
1920 nvmet_subsys_del_ctrls(struct nvmet_subsys * subsys) nvmet_subsys_del_ctrls() argument
1930 nvmet_subsys_put(struct nvmet_subsys * subsys) nvmet_subsys_put() argument
[all...]
H A Dpassthru.c29 if (!nvme_multi_css(ctrl->subsys->passthru_ctrl)) in nvmet_passthrough_override_cap()
42 if (!ctrl->subsys->clear_ids) in nvmet_passthru_override_id_descs()
83 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl()
98 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_passthru_override_id_ctrl()
153 strscpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_passthru_override_id_ctrl()
202 if (req->sq->ctrl->subsys->clear_ids) { in nvmet_passthru_override_id_ns()
578 int nvmet_passthru_ctrl_enable(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl_enable() argument
585 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_enable()
586 if (!subsys->passthru_ctrl_path) in nvmet_passthru_ctrl_enable()
588 if (subsys->passthru_ctrl) in nvmet_passthru_ctrl_enable()
[all …]
H A Ddiscovery.c29 struct nvmet_subsys *subsys) in nvmet_port_disc_changed() argument
38 if (subsys && !nvmet_host_allowed(subsys, ctrl->hostnqn)) in nvmet_port_disc_changed()
51 struct nvmet_subsys *subsys, in __nvmet_subsys_disc_changed() argument
66 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys, in nvmet_subsys_disc_changed() argument
77 if (s->subsys != subsys) in nvmet_subsys_disc_changed()
79 __nvmet_subsys_disc_changed(port, subsys, host); in nvmet_subsys_disc_changed()
152 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in discovery_log_entries()
217 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in nvmet_execute_disc_get_log_page()
221 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
272 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_disc_identify()
[all …]
H A Dnvmet.h115 struct nvmet_subsys *subsys; member
253 struct nvmet_subsys *subsys;
407 struct nvmet_subsys *subsys;
630 void nvmet_subsys_put(struct nvmet_subsys *subsys);
631 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
637 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
640 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
648 struct nvmet_subsys *subsys);
667 struct nvmet_subsys *subsys);
668 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
252 struct nvmet_subsys *subsys; global() member
406 struct nvmet_subsys *subsys; global() member
754 nvmet_is_disc_subsys(struct nvmet_subsys * subsys) nvmet_is_disc_subsys() argument
770 nvmet_is_passthru_subsys(struct nvmet_subsys * subsys) nvmet_is_passthru_subsys() argument
775 nvmet_passthru_subsys_free(struct nvmet_subsys * subsys) nvmet_passthru_subsys_free() argument
778 nvmet_passthru_ctrl_disable(struct nvmet_subsys * subsys) nvmet_passthru_ctrl_disable() argument
789 nvmet_is_passthru_subsys(struct nvmet_subsys * subsys) nvmet_is_passthru_subsys() argument
[all...]
H A Dadmin-cmd.c269 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
477 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_format_ana_group()
651 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
656 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
657 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
658 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
659 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
668 id->vid = cpu_to_le16(subsys->vendor_id); in nvmet_execute_identify_ctrl()
669 id->ssvid = cpu_to_le16(subsys in nvmet_execute_identify_ctrl()
1197 struct nvmet_subsys *subsys = nvmet_req_subsys(req); nvmet_set_feat_write_protect() local
1342 struct nvmet_subsys *subsys = nvmet_req_subsys(req); nvmet_execute_set_features() local
1398 struct nvmet_subsys *subsys = nvmet_req_subsys(req); nvmet_get_feat_write_protect() local
1501 struct nvmet_subsys *subsys = nvmet_req_subsys(req); nvmet_execute_get_features() local
[all...]
H A Ddebugfs.h13 int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys);
14 void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys);
21 static inline int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys) in nvmet_debugfs_subsys_setup() argument
25 static inline void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys){} in nvmet_debugfs_subsys_free() argument
H A Dpr.c63 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_set_feat_resv_notif_mask()
159 struct nvmet_subsys *subsys = ns->subsys; in nvmet_pr_resv_released() local
165 mutex_lock(&subsys->lock); in nvmet_pr_resv_released()
166 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_pr_resv_released()
176 mutex_unlock(&subsys->lock); in nvmet_pr_resv_released()
183 struct nvmet_subsys *subsys = ns->subsys; in nvmet_pr_send_event_to_host() local
186 mutex_lock(&subsys->lock); in nvmet_pr_send_event_to_host()
187 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_pr_send_event_to_host()
195 mutex_unlock(&subsys->lock); in nvmet_pr_send_event_to_host()
1042 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_ctrl_init_pr() local
[all …]
/linux/drivers/soc/mediatek/
H A Dmtk-cmdq-helper.c39 u8 subsys; member
85 /* make subsys invalid */ in cmdq_dev_get_client_reg()
86 client_reg->subsys = CMDQ_SUBSYS_INVALID; in cmdq_dev_get_client_reg()
89 * All GCEs support writing register PA with mask without subsys, in cmdq_dev_get_client_reg()
92 * directly using subsys. Therefore, when subsys is available, in cmdq_dev_get_client_reg()
93 * we prefer to use subsys for writing register PA. in cmdq_dev_get_client_reg()
101 client_reg->subsys = (u8)spec.args[0]; in cmdq_dev_get_client_reg()
218 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write() argument
224 .subsys = subsys in cmdq_pkt_write()
230 int cmdq_pkt_write_pa(struct cmdq_pkt *pkt, u8 subsys /*unused*/, u32 pa_base, in cmdq_pkt_write_pa() argument
[all …]
/linux/drivers/most/
H A Dconfigfs.c415 struct configfs_subsystem subsys; member
418 static struct most_common *to_most_common(struct configfs_subsystem *subsys) in to_most_common() argument
420 return container_of(subsys, struct most_common, subsys); in to_most_common()
481 .subsys = {
492 .subsys = {
503 .subsys = {
590 struct configfs_subsystem subsys; member
600 struct most_sound, subsys); in most_sound_make_group()
624 struct most_sound, subsys); in most_sound_disconnect()
639 .subsys = {
[all …]
/linux/drivers/soc/samsung/
H A Dexynos-asv.c30 struct exynos_asv_subsys *subsys = NULL; in exynos_asv_update_cpu_opps() local
35 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) { in exynos_asv_update_cpu_opps()
37 asv->subsys[i].cpu_dt_compat)) { in exynos_asv_update_cpu_opps()
38 subsys = &asv->subsys[i]; in exynos_asv_update_cpu_opps()
42 if (!subsys) in exynos_asv_update_cpu_opps()
45 for (i = 0; i < subsys->table.num_rows; i++) { in exynos_asv_update_cpu_opps()
49 opp_freq = exynos_asv_opp_get_frequency(subsys, i); in exynos_asv_update_cpu_opps()
60 new_volt = asv->opp_get_voltage(subsys, i, volt); in exynos_asv_update_cpu_opps()
161 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) in exynos_asv_init()
162 asv->subsys[i].asv = asv; in exynos_asv_init()
H A Dexynos5422-asv.c391 struct exynos_asv_subsys *subsys; in exynos5422_asv_offset_voltage_setup() local
397 subsys = &asv->subsys[EXYNOS_ASV_SUBSYS_ID_ARM]; in exynos5422_asv_offset_voltage_setup()
399 subsys->base_volt = 1000000; in exynos5422_asv_offset_voltage_setup()
402 subsys->offset_volt_h = __asv_offset_voltage(value); in exynos5422_asv_offset_voltage_setup()
405 subsys->offset_volt_l = __asv_offset_voltage(value); in exynos5422_asv_offset_voltage_setup()
408 subsys = &asv->subsys[EXYNOS_ASV_SUBSYS_ID_KFC]; in exynos5422_asv_offset_voltage_setup()
410 subsys->base_volt = 1000000; in exynos5422_asv_offset_voltage_setup()
413 subsys->offset_volt_h = __asv_offset_voltage(value); in exynos5422_asv_offset_voltage_setup()
416 subsys->offset_volt_l = __asv_offset_voltage(value); in exynos5422_asv_offset_voltage_setup()
419 static int exynos5422_asv_opp_get_voltage(const struct exynos_asv_subsys *subsys, in exynos5422_asv_opp_get_voltage() argument
[all …]
H A Dexynos-asv.h40 struct exynos_asv_subsys subsys[2]; member
59 static inline u32 exynos_asv_opp_get_voltage(const struct exynos_asv_subsys *subsys, in exynos_asv_opp_get_voltage() argument
62 return __asv_get_table_entry(&subsys->table, level, group + 1); in exynos_asv_opp_get_voltage()
65 static inline u32 exynos_asv_opp_get_frequency(const struct exynos_asv_subsys *subsys, in exynos_asv_opp_get_frequency() argument
68 return __asv_get_table_entry(&subsys->table, level, 0); in exynos_asv_opp_get_frequency()
/linux/tools/lib/api/fs/
H A Dcgroup.c12 char subsys[32]; member
19 int cgroupfs_find_mountpoint(char *buf, size_t maxlen, const char *subsys) in cgroupfs_find_mountpoint() argument
27 if (cached && !strcmp(cached->subsys, subsys)) { in cgroupfs_find_mountpoint()
80 p = strstr(p, subsys); in cgroupfs_find_mountpoint()
85 if (!strchr(" ,", p[-1]) || !strchr(" ,", p[strlen(subsys)])) in cgroupfs_find_mountpoint()
98 strncpy(cached->subsys, subsys, sizeof(cached->subsys) - 1); in cgroupfs_find_mountpoint()
/linux/drivers/nvme/host/
H A Dmultipath.c102 void nvme_mpath_default_iopolicy(struct nvme_subsystem *subsys) in nvme_mpath_default_iopolicy() argument
104 subsys->iopolicy = iopolicy; in nvme_mpath_default_iopolicy()
107 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument
111 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze()
112 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze()
117 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
121 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze()
122 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze()
127 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
131 lockdep_assert_held(&subsys in nvme_mpath_start_freeze()
1011 struct nvme_subsystem *subsys = nvme_subsys_iopolicy_show() local
1018 nvme_subsys_iopolicy_update(struct nvme_subsystem * subsys,int iopolicy) nvme_subsys_iopolicy_update() argument
1044 struct nvme_subsystem *subsys = nvme_subsys_iopolicy_store() local
[all...]
H A Dcore.c150 static void nvme_put_subsystem(struct nvme_subsystem *subsys);
676 ida_free(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head()
678 nvme_put_subsystem(head->subsys); in nvme_tryget_ns_head()
1250 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start()
1251 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start()
1252 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start()
1265 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end()
1266 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end()
3103 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn()
3112 strscpy(subsys in nvme_init_subnqn()
3098 nvme_init_subnqn(struct nvme_subsystem * subsys,struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_init_subnqn() argument
3132 struct nvme_subsystem *subsys = nvme_release_subsystem() local
3142 struct nvme_subsystem *subsys = nvme_destroy_subsystem() local
3154 nvme_put_subsystem(struct nvme_subsystem * subsys) nvme_put_subsystem() argument
3161 struct nvme_subsystem *subsys; __nvme_find_get_subsystem() local
3202 nvme_validate_cntlid(struct nvme_subsystem * subsys,struct nvme_ctrl * ctrl,struct nvme_id_ctrl * id) nvme_validate_cntlid() argument
3235 struct nvme_subsystem *subsys, *found; nvme_init_subsystem() local
3821 nvme_subsys_check_duplicate_ids(struct nvme_subsystem * subsys,struct nvme_ns_ids * ids) nvme_subsys_check_duplicate_ids() argument
5071 struct nvme_subsystem *subsys = ctrl->subsys; nvme_free_ctrl() local
[all...]
H A Dsysfs.c108 struct nvme_subsystem *subsys = head->subsys; in wwid_show() local
109 int serial_len = sizeof(subsys->serial); in wwid_show()
110 int model_len = sizeof(subsys->model); in wwid_show()
121 while (serial_len > 0 && (subsys->serial[serial_len - 1] == ' ' || in wwid_show()
122 subsys->serial[serial_len - 1] == '\0')) in wwid_show()
124 while (model_len > 0 && (subsys->model[model_len - 1] == ' ' || in wwid_show()
125 subsys->model[model_len - 1] == '\0')) in wwid_show()
128 return sysfs_emit(buf, "nvme.%04x-%*phN-%*phN-%08x\n", subsys->vendor_id, in wwid_show()
129 serial_len, subsys in wwid_show()
937 struct nvme_subsystem *subsys = nvme_subsys_show_nqn() local
948 struct nvme_subsystem *subsys = nvme_subsys_show_type() local
[all...]
/linux/drivers/base/
H A Dbus.c76 sp = container_of_const(kset, struct subsys_private, subsys); in bus_to_subsys()
189 error = sysfs_create_file(&sp->subsys.kobj, &attr->attr); in bus_create_file()
203 sysfs_remove_file(&sp->subsys.kobj, &attr->attr); in bus_remove_file()
580 error = sysfs_create_link(&dev->kobj, &sp->subsys.kobj, "subsystem"); in bus_add_device()
910 ret = kobject_synth_uevent(&sp->subsys.kobj, buf, count); in bus_uevent_store()
949 bus_kobj = &priv->subsys.kobj; in bus_register()
958 retval = kset_register(&priv->subsys); in bus_register()
981 __mutex_init(&priv->mutex, "subsys mutex", key); in bus_register()
1005 kset_unregister(&priv->subsys); in bus_register()
1033 bus_kobj = &sp->subsys.kobj; in bus_unregister()
[all …]
H A Dclass.c58 sp = container_of_const(kset, struct subsys_private, subsys); in class_to_subsys()
138 error = sysfs_create_file_ns(&sp->subsys.kobj, &attr->attr, ns); in class_create_file_ns()
153 sysfs_remove_file_ns(&sp->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
205 __mutex_init(&cp->mutex, "subsys mutex", key); in class_register()
206 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in class_register()
210 cp->subsys.kobj.kset = class_kset; in class_register()
211 cp->subsys.kobj.ktype = &class_ktype; in class_register()
214 error = kset_register(&cp->subsys); in class_register()
218 error = sysfs_create_groups(&cp->subsys.kobj, cls->class_groups); in class_register()
220 kobject_del(&cp->subsys.kobj); in class_register()
[all …]
/linux/tools/lib/python/feat/
H A Dparse_features.py110 subsys = os.path.dirname(fname).split("/")[-2]
111 self.max_size_subsys = max(self.max_size_subsys, len(subsys))
195 if not subsys:
210 "subsys": subsys,
266 key=lambda x: (self.data[x]["subsys"],
278 self.emit(f"{self.data[name]['subsys']:<{self.max_size_subsys}} ",
310 if self.data[feat]["subsys"]:
311 self.emit(f":Subsystem: {self.data[feat]['subsys']}")
393 key=lambda x: (self.data[x]["subsys"],
[all...]
/linux/samples/configfs/
H A Dconfigfs_sample.c32 struct configfs_subsystem subsys; member
40 struct childless, subsys); in to_childless()
100 .subsys = {
324 &childless_subsys.subsys,
332 struct configfs_subsystem *subsys; in configfs_example_init() local
336 subsys = example_subsys[i]; in configfs_example_init()
338 config_group_init(&subsys->su_group); in configfs_example_init()
339 mutex_init(&subsys->su_mutex); in configfs_example_init()
340 ret = configfs_register_subsystem(subsys); in configfs_example_init()
343 ret, subsys in configfs_example_init()
[all...]
/linux/tools/testing/selftests/turbostat/
H A Dadded_perf_counters.py9 def __init__(self, subsys, event): argument
10 self.subsys = subsys
14 return f'{self.subsys}/{self.event}/'
17 return f'perf/{self.subsys}/{self.event},{counter_scope},{counter_type},{column_name}'
94 if counter.subsys == 'cstate_core':
96 elif counter.subsys == 'cstate_pkg':
/linux/fs/configfs/
H A Ddir.c39 * subsys->su_mutex is held.
756 * subsys->su_mutex is held.
814 struct configfs_subsystem *subsys = NULL; /* gcc is a turd */ in link_group() local
819 subsys = parent_group->cg_subsys; in link_group()
821 subsys = to_configfs_subsystem(group); in link_group()
824 group->cg_subsys = subsys; in link_group()
1142 int configfs_depend_item(struct configfs_subsystem *subsys, in configfs_depend_item() argument
1147 struct config_item *s_item = &subsys->su_group.cg_item; in configfs_depend_item()
1171 /* Ok, now we can trust subsys/s_item */ in configfs_depend_item()
1217 * determine if we should lock root and check subsys or not. When we are
[all …]
/linux/include/linux/netfilter/
H A Dnfnetlink.h62 static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type) in nfnl_msg_type() argument
64 return subsys << 8 | msg_type; in nfnl_msg_type()
105 #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ argument
106 MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys))
/linux/scripts/gdb/linux/
H A Ddevice.py37 subsys = container_of(kobj, kset_type.get_type().pointer(), 'kobj')
38 subsys_priv = container_of(subsys, subsys_private_type.get_type().pointer(), 'subsys')
44 subsys = container_of(kobj, kset_type.get_type().pointer(), 'kobj')
45 subsys_priv = container_of(subsys, subsys_private_type.get_type().pointer(), 'subsys')

1234567