Home
last modified time | relevance | path

Searched refs:subsys (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v5.4/drivers/nvme/target/
Dcore.c116 static unsigned int nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
120 if (list_empty(&subsys->namespaces)) in nvmet_max_nsid()
123 ns = list_last_entry(&subsys->namespaces, struct nvmet_ns, dev_link); in nvmet_max_nsid()
220 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
224 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
226 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
236 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
241 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
242 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
250 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
[all …]
Dconfigfs.c314 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local
318 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store()
334 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
338 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
361 mutex_lock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
378 mutex_unlock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
395 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local
399 mutex_lock(&subsys->lock); in nvmet_ns_device_uuid_store()
410 mutex_unlock(&subsys->lock); in nvmet_ns_device_uuid_store()
425 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local
[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()
198 if (!nvmet_host_allowed(p->subsys, ctrl->hostnqn)) in nvmet_execute_get_disc_log_page()
203 p->subsys->subsysnqn, traddr, in nvmet_execute_get_disc_log_page()
248 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_disc_ctrl()
[all …]
Dadmin-cmd.c109 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in nvmet_get_smart_log_all()
226 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) in nvmet_format_ana_group()
303 bin2hex(id->sn, &ctrl->subsys->serial, in nvmet_execute_identify_ctrl()
304 min(sizeof(ctrl->subsys->serial), sizeof(id->sn) / 2)); in nvmet_execute_identify_ctrl()
322 id->ver = cpu_to_le32(ctrl->subsys->ver); in nvmet_execute_identify_ctrl()
355 id->nn = cpu_to_le32(ctrl->subsys->max_nsid); in nvmet_execute_identify_ctrl()
376 strlcpy(id->subnqn, ctrl->subsys->subsysnqn, sizeof(id->subnqn)); in nvmet_execute_identify_ctrl()
493 list_for_each_entry_rcu(ns, &ctrl->subsys->namespaces, dev_link) { in nvmet_execute_identify_nslist()
598 struct nvmet_subsys *subsys = req->sq->ctrl->subsys; in nvmet_set_feat_write_protect() local
607 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect()
[all …]
Dnvmet.h67 struct nvmet_subsys *subsys; member
160 struct nvmet_subsys *subsys; member
265 struct nvmet_subsys *subsys; member
404 void nvmet_subsys_put(struct nvmet_subsys *subsys);
405 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
411 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
414 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
422 struct nvmet_subsys *subsys);
441 struct nvmet_subsys *subsys);
442 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
[all …]
/Linux-v5.4/drivers/base/
Dbus.c44 kset_get(&bus->p->subsys); in bus_get()
53 kset_put(&bus->p->subsys); in bus_put()
134 error = sysfs_create_file(&bus->p->subsys.kobj, &attr->attr); in bus_create_file()
145 sysfs_remove_file(&bus->p->subsys.kobj, &attr->attr); in bus_remove_file()
355 struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id, in subsys_find_device_by_id() argument
361 if (!subsys) in subsys_find_device_by_id()
365 klist_iter_init_node(&subsys->p->klist_devices, &i, &hint->p->knode_bus); in subsys_find_device_by_id()
374 klist_iter_init_node(&subsys->p->klist_devices, &i, NULL); in subsys_find_device_by_id()
459 &dev->bus->p->subsys.kobj, "subsystem"); in bus_add_device()
751 return sysfs_create_groups(&bus->p->subsys.kobj, groups); in bus_add_groups()
[all …]
Dclass.c93 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
104 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
110 kset_get(&cls->p->subsys); in class_get()
117 kset_put(&cls->p->subsys); in class_put()
143 return sysfs_create_groups(&cls->p->subsys.kobj, groups); in class_add_groups()
149 return sysfs_remove_groups(&cls->p->subsys.kobj, groups); in class_remove_groups()
166 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in __class_register()
179 cp->subsys.kobj.kset = class_kset; in __class_register()
181 cp->subsys.kobj.kset = class_kset; in __class_register()
183 cp->subsys.kobj.ktype = &class_ktype; in __class_register()
[all …]
/Linux-v5.4/samples/configfs/
Dconfigfs_sample.c36 struct configfs_subsystem subsys; member
44 struct childless, subsys) : NULL; in to_childless()
110 .subsys = {
345 &childless_subsys.subsys,
355 struct configfs_subsystem *subsys; in configfs_example_init() local
358 subsys = example_subsys[i]; in configfs_example_init()
360 config_group_init(&subsys->su_group); in configfs_example_init()
361 mutex_init(&subsys->su_mutex); in configfs_example_init()
362 ret = configfs_register_subsystem(subsys); in configfs_example_init()
366 subsys->su_group.cg_item.ci_namebuf); in configfs_example_init()
/Linux-v5.4/drivers/nvme/host/
Dcore.c93 static void nvme_put_subsystem(struct nvme_subsystem *subsys);
439 ida_simple_remove(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head()
442 nvme_put_subsystem(head->subsys); in nvme_free_ns_head()
1330 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start()
1331 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start()
1332 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start()
1361 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end()
1362 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end()
1771 atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; in nvme_update_disk_info()
2449 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn() argument
[all …]
Dmultipath.c15 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument
19 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze()
20 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze()
25 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
29 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze()
30 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze()
35 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
39 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze()
40 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_start_freeze()
58 sprintf(disk_name, "nvme%dc%dn%d", ctrl->subsys->instance, in nvme_set_disk_name()
[all …]
Dnvme.h204 struct nvme_subsystem *subsys; member
336 struct nvme_subsystem *subsys; member
519 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys);
520 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys);
521 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys);
608 if (ctrl->subsys->cmic & (1 << 3)) in nvme_mpath_init()
619 static inline void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument
622 static inline void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
625 static inline void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
/Linux-v5.4/fs/configfs/
Ddir.c796 struct configfs_subsystem *subsys = NULL; /* gcc is a turd */ in link_group() local
801 subsys = parent_group->cg_subsys; in link_group()
803 subsys = to_configfs_subsystem(group); in link_group()
806 group->cg_subsys = subsys; in link_group()
1124 int configfs_depend_item(struct configfs_subsystem *subsys, in configfs_depend_item() argument
1129 struct config_item *s_item = &subsys->su_group.cg_item; in configfs_depend_item()
1277 struct configfs_subsystem *subsys; in configfs_mkdir() local
1309 subsys = to_config_group(parent_item)->cg_subsys; in configfs_mkdir()
1310 BUG_ON(!subsys); in configfs_mkdir()
1324 if (!subsys->su_group.cg_item.ci_type) { in configfs_mkdir()
[all …]
/Linux-v5.4/drivers/video/fbdev/vermilion/
Dvermilion.c42 static struct vml_sys *subsys = NULL; variable
596 if (subsys && subsys->nearest_clock) { in vmlfb_check_var_locked()
597 nearest_clock = subsys->nearest_clock(subsys, clock); in vmlfb_check_var_locked()
776 if (!subsys) in vmlfb_set_par_locked()
798 if (subsys->nearest_clock) { in vmlfb_set_par_locked()
799 clock = subsys->nearest_clock(subsys, clock); in vmlfb_set_par_locked()
824 if (subsys->set_clock) in vmlfb_set_par_locked()
825 subsys->set_clock(subsys, clock); in vmlfb_set_par_locked()
877 list_move(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode); in vmlfb_set_par()
1075 if (subsys != NULL) { in vmlfb_register_subsys()
[all …]
/Linux-v5.4/include/linux/netfilter/
Dnfnetlink.h49 static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type) in nfnl_msg_type() argument
51 return subsys << 8 | msg_type; in nfnl_msg_type()
65 #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ argument
66 MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys))
/Linux-v5.4/arch/arm/mach-s3c24xx/
Dpm-s3c2410.c116 .subsys = &s3c2410_subsys,
131 .subsys = &s3c2410a_subsys,
146 .subsys = &s3c2440_subsys,
161 .subsys = &s3c2442_subsys,
Dpll-s3c2410.c62 .subsys = &s3c2410_subsys,
75 .subsys = &s3c2410a_subsys,
Dpll-s3c2440-12000000.c73 .subsys = &s3c2440_subsys,
86 .subsys = &s3c2442_subsys,
/Linux-v5.4/scripts/gdb/linux/
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-v5.4/include/linux/soc/mediatek/
Dmtk-cmdq.h69 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
81 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
/Linux-v5.4/drivers/dax/
Dbus.h22 struct dev_pagemap *pgmap, enum dev_dax_subsys subsys);
31 struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys);
/Linux-v5.4/drivers/dax/pmem/
Dcore.c10 struct dev_dax *__dax_pmem_probe(struct device *dev, enum dev_dax_subsys subsys) in __dax_pmem_probe() argument
61 dev_dax = __devm_create_dev_dax(dax_region, id, &pgmap, subsys); in __dax_pmem_probe()
/Linux-v5.4/drivers/soc/mediatek/
Dmtk-cmdq-helper.c139 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write() argument
142 (subsys << CMDQ_SUBSYS_SHIFT); in cmdq_pkt_write()
148 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() argument
158 err |= cmdq_pkt_write(pkt, value, subsys, offset_mask); in cmdq_pkt_write_mask()
/Linux-v5.4/drivers/staging/most/
Dconfigfs.c546 struct configfs_subsystem subsys; member
555 struct most_sound, subsys); in most_sound_make_group()
582 .subsys = {
603 ret = configfs_register_subsystem(&most_sound_subsys.subsys); in most_register_configfs_subsys()
640 configfs_unregister_subsystem(&most_sound_subsys.subsys); in most_deregister_configfs_subsys()
655 config_group_init(&most_sound_subsys.subsys.su_group); in configfs_init()
656 mutex_init(&most_sound_subsys.subsys.su_mutex); in configfs_init()
/Linux-v5.4/drivers/cpufreq/
Ds3c2410-cpufreq.c120 .subsys = &s3c2410_subsys,
147 .subsys = &s3c2410a_subsys,
/Linux-v5.4/Documentation/trace/
Dtracepoints.rst45 In include/trace/events/subsys.h::
48 #define TRACE_SYSTEM subsys
64 In subsys/file.c (where the tracing statement must be added)::
66 #include <trace/events/subsys.h>
81 - subsys is the name of your subsystem.

1234