Home
last modified time | relevance | path

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

123456

/linux-6.1.9/drivers/soc/samsung/
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.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()
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-6.1.9/drivers/nvme/target/
Dconfigfs.c344 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_path_store() local
348 mutex_lock(&subsys->lock); in nvmet_ns_device_path_store()
364 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
368 mutex_unlock(&subsys->lock); in nvmet_ns_device_path_store()
391 mutex_lock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
408 mutex_unlock(&ns->subsys->lock); in nvmet_ns_p2pmem_store()
425 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local
428 mutex_lock(&subsys->lock); in nvmet_ns_device_uuid_store()
438 mutex_unlock(&subsys->lock); in nvmet_ns_device_uuid_store()
453 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local
[all …]
Dcore.c121 static u32 nvmet_max_nsid(struct nvmet_subsys *subsys) in nvmet_max_nsid() argument
127 xa_for_each(&subsys->namespaces, idx, cur) in nvmet_max_nsid()
239 void nvmet_ns_changed(struct nvmet_subsys *subsys, u32 nsid) in nvmet_ns_changed() argument
243 lockdep_assert_held(&subsys->lock); in nvmet_ns_changed()
245 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_ns_changed()
255 void nvmet_send_ana_event(struct nvmet_subsys *subsys, in nvmet_send_ana_event() argument
260 mutex_lock(&subsys->lock); in nvmet_send_ana_event()
261 list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) { in nvmet_send_ana_event()
269 mutex_unlock(&subsys->lock); in nvmet_send_ana_event()
278 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()
572 int nvmet_passthru_ctrl_enable(struct nvmet_subsys *subsys) in nvmet_passthru_ctrl_enable() argument
579 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_enable()
580 if (!subsys->passthru_ctrl_path) in nvmet_passthru_ctrl_enable()
582 if (subsys->passthru_ctrl) in nvmet_passthru_ctrl_enable()
585 if (subsys->nr_namespaces) { in nvmet_passthru_ctrl_enable()
[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 …]
Dnvmet.h72 struct nvmet_subsys *subsys; member
181 struct nvmet_subsys *subsys; member
320 struct nvmet_subsys *subsys; member
488 void nvmet_subsys_put(struct nvmet_subsys *subsys);
489 void nvmet_subsys_del_ctrls(struct nvmet_subsys *subsys);
495 struct nvmet_ns *nvmet_ns_alloc(struct nvmet_subsys *subsys, u32 nsid);
498 void nvmet_send_ana_event(struct nvmet_subsys *subsys,
506 struct nvmet_subsys *subsys);
525 struct nvmet_subsys *subsys);
526 void nvmet_subsys_disc_changed(struct nvmet_subsys *subsys,
[all …]
Dadmin-cmd.c113 xa_for_each(&ctrl->subsys->namespaces, idx, ns) { in nvmet_get_smart_log_all()
260 xa_for_each(&ctrl->subsys->namespaces, idx, ns) in nvmet_format_ana_group()
351 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_execute_identify_ctrl() local
356 if (!subsys->subsys_discovered) { in nvmet_execute_identify_ctrl()
357 mutex_lock(&subsys->lock); in nvmet_execute_identify_ctrl()
358 subsys->subsys_discovered = true; in nvmet_execute_identify_ctrl()
359 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl()
372 memcpy(id->sn, ctrl->subsys->serial, NVMET_SN_MAX_SIZE); in nvmet_execute_identify_ctrl()
373 memcpy_and_pad(id->mn, sizeof(id->mn), subsys->model_number, in nvmet_execute_identify_ctrl()
374 strlen(subsys->model_number), ' '); in nvmet_execute_identify_ctrl()
[all …]
/linux-6.1.9/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 (!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()
94 strncpy(cached.subsys, subsys, sizeof(cached.subsys) - 1); in cgroupfs_find_mountpoint()
/linux-6.1.9/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()
352 struct device *subsys_find_device_by_id(struct bus_type *subsys, unsigned int id, in subsys_find_device_by_id() argument
358 if (!subsys) in subsys_find_device_by_id()
362 klist_iter_init_node(&subsys->p->klist_devices, &i, &hint->p->knode_bus); in subsys_find_device_by_id()
371 klist_iter_init_node(&subsys->p->klist_devices, &i, NULL); in subsys_find_device_by_id()
456 &dev->bus->p->subsys.kobj, "subsystem"); in bus_add_device()
733 return sysfs_create_groups(&bus->p->subsys.kobj, groups); in bus_add_groups()
[all …]
Dclass.c94 error = sysfs_create_file_ns(&cls->p->subsys.kobj, in class_create_file_ns()
105 sysfs_remove_file_ns(&cls->p->subsys.kobj, &attr->attr, ns); in class_remove_file_ns()
111 kset_get(&cls->p->subsys); in class_get()
118 kset_put(&cls->p->subsys); in class_put()
144 return sysfs_create_groups(&cls->p->subsys.kobj, groups); in class_add_groups()
150 return sysfs_remove_groups(&cls->p->subsys.kobj, groups); in class_remove_groups()
167 error = kobject_set_name(&cp->subsys.kobj, "%s", cls->name); in __class_register()
180 cp->subsys.kobj.kset = class_kset; in __class_register()
182 cp->subsys.kobj.kset = class_kset; in __class_register()
184 cp->subsys.kobj.ktype = &class_ktype; in __class_register()
[all …]
/linux-6.1.9/scripts/
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-6.1.9/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 …]
/linux-6.1.9/samples/configfs/
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-6.1.9/drivers/nvme/host/
Dcore.c122 static void nvme_put_subsystem(struct nvme_subsystem *subsys);
618 ida_free(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head()
620 nvme_put_subsystem(head->subsys); in nvme_free_ns_head()
1125 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start()
1126 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start()
1127 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start()
1139 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end()
1140 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end()
1889 atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; in nvme_update_disk_info()
2706 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn() argument
[all …]
Dmultipath.c48 void nvme_mpath_default_iopolicy(struct nvme_subsystem *subsys) in nvme_mpath_default_iopolicy() argument
50 subsys->iopolicy = iopolicy; in nvme_mpath_default_iopolicy()
53 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument
57 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze()
58 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze()
63 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument
67 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze()
68 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze()
73 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument
77 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze()
[all …]
Dnvme.h269 struct nvme_subsystem *subsys; member
425 struct nvme_subsystem *subsys; member
581 struct nvme_subsystem *subsys = ctrl->subsys; in nvme_print_device_info() local
589 "VID:%04x model:%.*s firmware:%.*s\n", subsys->vendor_id, in nvme_print_device_info()
590 nvme_strlen(subsys->model, sizeof(subsys->model)), in nvme_print_device_info()
591 subsys->model, nvme_strlen(subsys->firmware_rev, in nvme_print_device_info()
592 sizeof(subsys->firmware_rev)), in nvme_print_device_info()
593 subsys->firmware_rev); in nvme_print_device_info()
810 (ctrl->subsys->cmic & NVME_CTRL_CMIC_ANA) || in nvme_is_unique_nsid()
871 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys);
[all …]
/linux-6.1.9/fs/configfs/
Ddir.c780 struct configfs_subsystem *subsys = NULL; /* gcc is a turd */ in link_group() local
785 subsys = parent_group->cg_subsys; in link_group()
787 subsys = to_configfs_subsystem(group); in link_group()
790 group->cg_subsys = subsys; in link_group()
1108 int configfs_depend_item(struct configfs_subsystem *subsys, in configfs_depend_item() argument
1113 struct config_item *s_item = &subsys->su_group.cg_item; in configfs_depend_item()
1262 struct configfs_subsystem *subsys; in configfs_mkdir() local
1294 subsys = to_config_group(parent_item)->cg_subsys; in configfs_mkdir()
1295 BUG_ON(!subsys); in configfs_mkdir()
1309 if (!subsys->su_group.cg_item.ci_type) { in configfs_mkdir()
[all …]
/linux-6.1.9/include/linux/soc/mediatek/
Dmtk-cmdq.h20 u8 subsys; member
84 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value);
96 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys,
215 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys,
232 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys,
/linux-6.1.9/drivers/soc/mediatek/
Dmtk-cmdq-helper.c33 u8 subsys; member
64 client_reg->subsys = (u8)spec.args[0]; in cmdq_dev_get_client_reg()
178 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write() argument
185 inst.subsys = subsys; in cmdq_pkt_write()
191 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() argument
207 err = cmdq_pkt_write(pkt, subsys, offset_mask, value); in cmdq_pkt_write_mask()
347 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll() argument
356 inst.subsys = subsys; in cmdq_pkt_poll()
363 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll_mask() argument
376 err = cmdq_pkt_poll(pkt, subsys, offset, value); in cmdq_pkt_poll_mask()
/linux-6.1.9/drivers/video/fbdev/vermilion/
Dvermilion.c43 static struct vml_sys *subsys = NULL; variable
603 if (subsys && subsys->nearest_clock) { in vmlfb_check_var_locked()
604 nearest_clock = subsys->nearest_clock(subsys, clock); in vmlfb_check_var_locked()
783 if (!subsys) in vmlfb_set_par_locked()
805 if (subsys->nearest_clock) { in vmlfb_set_par_locked()
806 clock = subsys->nearest_clock(subsys, clock); in vmlfb_set_par_locked()
831 if (subsys->set_clock) in vmlfb_set_par_locked()
832 subsys->set_clock(subsys, clock); in vmlfb_set_par_locked()
884 list_move(&vinfo->head, (subsys) ? &global_has_mode : &global_no_mode); in vmlfb_set_par()
1082 if (subsys != NULL) { in vmlfb_register_subsys()
[all …]
/linux-6.1.9/include/uapi/linux/
Dkcov.h56 static inline __u64 kcov_remote_handle(__u64 subsys, __u64 inst) in kcov_remote_handle() argument
58 if (subsys & ~KCOV_SUBSYSTEM_MASK || inst & ~KCOV_INSTANCE_MASK) in kcov_remote_handle()
60 return subsys | inst; in kcov_remote_handle()
/linux-6.1.9/arch/arm/mach-s3c/
Dpm-s3c2410.c115 .subsys = &s3c2410_subsys,
130 .subsys = &s3c2410a_subsys,
145 .subsys = &s3c2440_subsys,
160 .subsys = &s3c2442_subsys,
/linux-6.1.9/include/linux/netfilter/
Dnfnetlink.h63 static inline u16 nfnl_msg_type(u8 subsys, u8 msg_type) in nfnl_msg_type() argument
65 return subsys << 8 | msg_type; in nfnl_msg_type()
106 #define MODULE_ALIAS_NFNL_SUBSYS(subsys) \ argument
107 MODULE_ALIAS("nfnetlink-subsys-" __stringify(subsys))

123456