Home
last modified time | relevance | path

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

1234567

/linux/drivers/nvme/target/
H A Dconfigfs.c507 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local
511 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store()
527 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
531 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
554 mutex_lock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
571 mutex_unlock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
588 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local
591 mutex_lock(&subsys->lock); in nvmet_ns_device_uuid_store()
601 mutex_unlock(&subsys->lock); in nvmet_ns_device_uuid_store()
616 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local
[all …]
H A Dcore.c124 static u32 nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
130 nvmet_for_each_enabled_ns(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
242 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
246 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
248 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
258 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
263 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
264 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
272 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
281 nvmet_send_ana_event(p->subsys, port); in nvmet_port_send_ana_event()
[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()
202 if (req->sq->ctrl->subsys->clear_ids) { in nvmet_passthru_override_id_ns()
575 int nvmet_passthru_ctrl_enable(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl_enable() argument
582 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_enable()
583 if (!subsys->passthru_ctrl_path) in nvmet_passthru_ctrl_enable()
585 if (subsys->passthru_ctrl) in nvmet_passthru_ctrl_enable()
588 if (subsys->nr_namespaces) { in nvmet_passthru_ctrl_enable()
[all …]
H A Ddebugfs.c138 struct dentry *parent = ctrl->subsys->debugfs_dir; in nvmet_debugfs_ctrl_setup()
168 int nvmet_debugfs_subsys_setup(struct nvmet_subsys *subsys) in nvmet_debugfs_subsys_setup() argument
172 subsys->debugfs_dir = debugfs_create_dir(subsys->subsysnqn, in nvmet_debugfs_subsys_setup()
174 if (IS_ERR(subsys->debugfs_dir)) { in nvmet_debugfs_subsys_setup()
175 ret = PTR_ERR(subsys->debugfs_dir); in nvmet_debugfs_subsys_setup()
176 subsys->debugfs_dir = NULL; in nvmet_debugfs_subsys_setup()
181 void nvmet_debugfs_subsys_free(struct nvmet_subsys *subsys) in nvmet_debugfs_subsys_free() argument
183 debugfs_remove_recursive(subsys->debugfs_dir); in nvmet_debugfs_subsys_free()
H A Dnvmet.h115 struct nvmet_subsys *subsys; member
245 struct nvmet_subsys *subsys; member
395 struct nvmet_subsys *subsys; member
608 void nvmet_subsys_put(struct nvmet_subsys *subsys);
609 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
615 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
618 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
626 struct nvmet_subsys *subsys);
645 struct nvmet_subsys *subsys);
646 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
[all …]
H A Dadmin-cmd.c278 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
486 nvmet_for_each_enabled_ns(&ctrl->subsys->namespaces, idx, ns) { in nvmet_format_ana_group()
661 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
666 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
667 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
668 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
669 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
678 id->vid = cpu_to_le16(subsys->vendor_id); in nvmet_execute_identify_ctrl()
679 id->ssvid = cpu_to_le16(subsys->subsys_vendor_id); in nvmet_execute_identify_ctrl()
681 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
[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/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/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.c29 struct exynos_asv_subsys *subsys = NULL; in exynos_asv_update_cpu_opps() local
34 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) { in exynos_asv_update_cpu_opps()
36 asv->subsys[i].cpu_dt_compat)) { in exynos_asv_update_cpu_opps()
37 subsys = &asv->subsys[i]; in exynos_asv_update_cpu_opps()
41 if (!subsys) in exynos_asv_update_cpu_opps()
44 for (i = 0; i < subsys->table.num_rows; i++) { in exynos_asv_update_cpu_opps()
48 opp_freq = exynos_asv_opp_get_frequency(subsys, i); in exynos_asv_update_cpu_opps()
59 new_volt = asv->opp_get_voltage(subsys, i, volt); in exynos_asv_update_cpu_opps()
160 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) in exynos_asv_init()
161 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/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()
506 error = sysfs_create_link(&dev->kobj, &sp->subsys.kobj, "subsystem"); in bus_add_device()
832 ret = kobject_synth_uevent(&sp->subsys.kobj, buf, count); in bus_uevent_store()
871 bus_kobj = &priv->subsys.kobj; in bus_register()
880 retval = kset_register(&priv->subsys); in bus_register()
903 __mutex_init(&priv->mutex, "subsys mutex", key); in bus_register()
927 kset_unregister(&priv->subsys); in bus_register()
955 bus_kobj = &sp->subsys in bus_unregister()
1208 subsys_register(const struct bus_type * subsys,const struct attribute_group ** groups,struct kobject * parent_of_root) subsys_register() argument
1278 subsys_system_register(const struct bus_type * subsys,const struct attribute_group ** groups) subsys_system_register() argument
1296 subsys_virtual_register(const struct bus_type * subsys,const struct attribute_group ** groups) subsys_virtual_register() argument
[all...]
/linux/scripts/
H A Dget_feat.pl104 my $subsys = "";
105 $subsys = $2 if ( m,.*($prefix)/([^/]+).*,);
107 if (length($subsys) > $max_size_subsys) {
108 $max_size_subsys = length($subsys);
189 parse_error($file, $ln, "Subsystem not found", "") if (!$subsys);
199 $data{$name}->{subsys} = $subsys;
245 ($data{$a}->{subsys} cmp $data{$b}->{subsys}) ||
251 printf "%-${max_size_subsys}s ", $data{$name}->{subsys};
277 ($data{$a}->{subsys} cmp $data{$b}->{subsys}) ||
287 printf " %${max_size_subsys}s/ ", $data{$name}->{subsys};
[all …]
/linux/drivers/nvme/host/
H A Dcore.c148 static void nvme_put_subsystem(struct nvme_subsystem *subsys);
668 ida_free(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head()
670 nvme_put_subsystem(head->subsys); in nvme_free_ns_head()
1221 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start()
1222 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start()
1223 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start()
1236 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end()
1237 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end()
2062 atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; in nvme_update_disk_info()
2875 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn() argument
[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->serial, model_len, subsys->model, in wwid_show()
313 (int)sizeof(ctrl->subsys->field), ctrl->subsys->field); \
[all …]
H A Dnvme.h309 struct nvme_subsystem *subsys; member
472 struct nvme_subsystem *subsys; member
631 struct nvme_subsystem *subsys = ctrl->subsys; in nvme_print_device_info() local
639 "VID:%04x model:%.*s firmware:%.*s\n", subsys->vendor_id, in nvme_print_device_info()
640 nvme_strlen(subsys->model, sizeof(subsys->model)), in nvme_print_device_info()
641 subsys->model, nvme_strlen(subsys->firmware_rev, in nvme_print_device_info()
642 sizeof(subsys->firmware_rev)), in nvme_print_device_info()
643 subsys->firmware_rev); in nvme_print_device_info()
871 (ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA) || in nvme_is_unique_nsid()
951 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys);
[all …]
/linux/include/linux/soc/mediatek/
H A Dmtk-cmdq.h54 u8 subsys; member
116 * @subsys: the CMDQ sub system code
122 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
127 * @subsys: the CMDQ sub system code
134 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
158 * Support write value to physical address without subsys. Use CMDQ_ADDR_HIGH()
176 * Support write value to physical address without subsys. Use CMDQ_ADDR_HIGH()
274 * @subsys: the CMDQ sub system code
280 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys,
290 * @subsys
424 cmdq_pkt_write(struct cmdq_pkt * pkt,u8 subsys,u16 offset,u32 value) cmdq_pkt_write() argument
429 cmdq_pkt_write_mask(struct cmdq_pkt * pkt,u8 subsys,u16 offset,u32 value,u32 mask) cmdq_pkt_write_mask() argument
480 cmdq_pkt_poll(struct cmdq_pkt * pkt,u8 subsys,u16 offset,u32 value) cmdq_pkt_poll() argument
486 cmdq_pkt_poll_mask(struct cmdq_pkt * pkt,u8 subsys,u16 offset,u32 value,u32 mask) cmdq_pkt_poll_mask() argument
[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->su_group.cg_item.ci_namebuf); in configfs_example_init()
/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/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')
/linux/drivers/hwtracing/coresight/
H A Dcoresight-syscfg-configfs.c453 struct configfs_subsystem *subsys; in cscfg_configfs_init() local
463 subsys = &cscfg_mgr->cfgfs_subsys; in cscfg_configfs_init()
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()
467 config_group_init(&subsys->su_group); in cscfg_configfs_init()
468 mutex_init(&subsys->su_mutex); in cscfg_configfs_init()
472 configfs_add_default_group(&cscfg_configs_grp, &subsys->su_group); in cscfg_configfs_init()
475 configfs_add_default_group(&cscfg_features_grp, &subsys->su_group); in cscfg_configfs_init()
477 return configfs_register_subsystem(subsys); in cscfg_configfs_init()

1234567