Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-6.6/drivers/nvme/target/
Dconfigfs.c346 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local
350 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store()
366 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
370 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
393 mutex_lock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
410 mutex_unlock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
427 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local
430 mutex_lock(&subsys->lock); in nvmet_ns_device_uuid_store()
440 mutex_unlock(&subsys->lock); in nvmet_ns_device_uuid_store()
455 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local
[all …]
Dcore.c123 static u32 nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
129 xa_for_each(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
241 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
245 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
247 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
257 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
262 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
263 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
271 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
280 nvmet_send_ana_event(p->subsys, port); in nvmet_port_send_ana_event()
[all …]
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()
573 int nvmet_passthru_ctrl_enable(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl_enable() argument
580 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_enable()
581 if (!subsys->passthru_ctrl_path) in nvmet_passthru_ctrl_enable()
583 if (subsys->passthru_ctrl) in nvmet_passthru_ctrl_enable()
586 if (subsys->nr_namespaces) { in nvmet_passthru_ctrl_enable()
[all …]
Dnvmet.h73 struct nvmet_subsys *subsys; member
182 struct nvmet_subsys *subsys; member
323 struct nvmet_subsys *subsys; member
491 void nvmet_subsys_put(struct nvmet_subsys *subsys);
492 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
498 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
501 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
509 struct nvmet_subsys *subsys);
528 struct nvmet_subsys *subsys);
529 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
[all …]
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()
269 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_disc_identify()
[all …]
Dadmin-cmd.c113 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
262 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_format_ana_group()
353 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
358 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
359 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
360 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
361 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
374 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
375 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
376 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
[all …]
/kernel/linux/linux-6.6/include/linux/
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 …]
/kernel/linux/linux-5.10/drivers/nvme/target/
Dcore.c116 static unsigned int nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
122 xa_for_each(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
235 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
239 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
241 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
251 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
256 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
257 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
265 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
274 nvmet_send_ana_event(p->subsys, port); in nvmet_port_send_ana_event()
[all …]
Dconfigfs.c341 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local
345 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store()
361 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
365 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
388 mutex_lock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
405 mutex_unlock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
422 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local
425 mutex_lock(&subsys->lock); in nvmet_ns_device_uuid_store()
435 mutex_unlock(&subsys->lock); in nvmet_ns_device_uuid_store()
450 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local
[all …]
Dpassthru.c26 struct nvme_ctrl *pctrl = ctrl->subsys->passthru_ctrl; in nvmet_passthru_override_id_ctrl()
41 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_passthru_override_id_ctrl()
497 int nvmet_passthru_ctrl_enable(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl_enable() argument
504 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_enable()
505 if (!subsys->passthru_ctrl_path) in nvmet_passthru_ctrl_enable()
507 if (subsys->passthru_ctrl) in nvmet_passthru_ctrl_enable()
510 if (subsys->nr_namespaces) { in nvmet_passthru_ctrl_enable()
515 file = filp_open(subsys->passthru_ctrl_path, O_RDWR, 0); in nvmet_passthru_ctrl_enable()
524 subsys->passthru_ctrl_path); in nvmet_passthru_ctrl_enable()
530 subsys, GFP_KERNEL); in nvmet_passthru_ctrl_enable()
[all …]
Dnvmet.h70 struct nvmet_subsys *subsys; member
166 struct nvmet_subsys *subsys; member
287 struct nvmet_subsys *subsys; member
441 void nvmet_subsys_put(struct nvmet_subsys *subsys);
442 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
448 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
451 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
459 struct nvmet_subsys *subsys);
478 struct nvmet_subsys *subsys);
479 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
[all …]
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
76 if (s->subsys != subsys) in nvmet_subsys_disc_changed()
78 __nvmet_subsys_disc_changed(port, subsys, host); in nvmet_subsys_disc_changed()
151 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in discovery_log_entries()
210 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in nvmet_execute_disc_get_log_page()
215 p->subsys->subsysnqn, traddr, in nvmet_execute_disc_get_log_page()
265 bin2hex(id->sn, &ctrl->subsys->serial, in nvmet_execute_disc_identify()
[all …]
/kernel/linux/linux-5.10/include/linux/
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 …]
/kernel/linux/linux-5.10/drivers/base/
Dbus.c45 kset_get(&bus->p->subsys); in bus_get()
54 kset_put(&bus->p->subsys); in bus_put()
135 error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); in bus_create_file()
146 sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); in bus_remove_file()
348 * @subsys: subsystem
356 struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id, in subsys_find_device_by_id() argument
362 if (!subsys) in subsys_find_device_by_id()
366 klist_iter_init_node(&subsys->p->klist_devices, &i, &hint->p->knode_bus); in subsys_find_device_by_id()
375 klist_iter_init_node(&subsys->p->klist_devices, &i, NULL); in subsys_find_device_by_id()
460 &dev->bus->p->subsys.kobj, "subsystem"); in bus_add_device()
[all …]
/kernel/linux/linux-6.6/drivers/soc/samsung/
Dexynos-asv.c28 struct exynos_asv_subsys *subsys = NULL; in exynos_asv_update_cpu_opps() local
33 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) { in exynos_asv_update_cpu_opps()
35 asv->subsys[i].cpu_dt_compat)) { in exynos_asv_update_cpu_opps()
36 subsys = &asv->subsys[i]; in exynos_asv_update_cpu_opps()
40 if (!subsys) in exynos_asv_update_cpu_opps()
43 for (i = 0; i < subsys->table.num_rows; i++) { in exynos_asv_update_cpu_opps()
47 opp_freq = exynos_asv_opp_get_frequency(subsys, i); in exynos_asv_update_cpu_opps()
58 new_volt = asv->opp_get_voltage(subsys, i, volt); in exynos_asv_update_cpu_opps()
152 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) in exynos_asv_init()
153 asv->subsys[i].asv = asv; in exynos_asv_init()
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 …]
/kernel/linux/linux-6.6/tools/lib/api/fs/
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()
/kernel/linux/linux-5.10/drivers/most/
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 …]
/kernel/linux/linux-6.6/drivers/most/
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 …]
/kernel/linux/linux-5.10/drivers/soc/samsung/
Dexynos-asv.c31 struct exynos_asv_subsys *subsys = NULL; in exynos_asv_update_cpu_opps() local
36 for (i = 0; i < ARRAY_SIZE(asv->subsys); i++) { in exynos_asv_update_cpu_opps()
38 asv->subsys[i].cpu_dt_compat)) { in exynos_asv_update_cpu_opps()
39 subsys = &asv->subsys[i]; in exynos_asv_update_cpu_opps()
43 if (!subsys) in exynos_asv_update_cpu_opps()
46 for (i = 0; i < subsys->table.num_rows; i++) { in exynos_asv_update_cpu_opps()
50 opp_freq = exynos_asv_opp_get_frequency(subsys, i); in exynos_asv_update_cpu_opps()
61 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_probe()
162 asv->subsys[i].asv = asv; in exynos_asv_probe()
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 …]
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()
/kernel/linux/linux-6.6/include/linux/soc/mediatek/
Dmtk-cmdq.h20 u8 subsys; member
80 * @subsys: the CMDQ sub system code
86 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
91 * @subsys: the CMDQ sub system code
98 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
122 * Support write value to physical address without subsys. Use CMDQ_ADDR_HIGH()
140 * Support write value to physical address without subsys. Use CMDQ_ADDR_HIGH()
211 * @subsys: the CMDQ sub system code
217 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys,
227 * @subsys: the CMDQ sub system code
[all …]
/kernel/linux/linux-6.6/drivers/nvme/host/
Dsysfs.c53 struct nvme_subsystem *subsys = head->subsys; in wwid_show() local
54 int serial_len = sizeof(subsys->serial); in wwid_show()
55 int model_len = sizeof(subsys->model); in wwid_show()
66 while (serial_len > 0 && (subsys->serial[serial_len - 1] == ' ' || in wwid_show()
67 subsys->serial[serial_len - 1] == '\0')) in wwid_show()
69 while (model_len > 0 && (subsys->model[model_len - 1] == ' ' || in wwid_show()
70 subsys->model[model_len - 1] == '\0')) in wwid_show()
73 return sysfs_emit(buf, "nvme.%04x-%*phN-%*phN-%08x\n", subsys->vendor_id, in wwid_show()
74 serial_len, subsys->serial, model_len, subsys->model, in wwid_show()
176 (int)sizeof(ctrl->subsys->field), ctrl->subsys->field); \
[all …]
/kernel/linux/linux-5.10/drivers/nvme/host/
Dcore.c91 static void nvme_put_subsystem(struct nvme_subsystem *subsys);
482 ida_simple_remove(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head()
484 nvme_put_subsystem(head->subsys); in nvme_free_ns_head()
1056 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start()
1057 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start()
1058 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start()
1069 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end()
1070 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end()
2075 atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; in nvme_update_disk_info()
2756 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn() argument
[all …]

12345678910>>...15