/openbmc/linux/drivers/soc/samsung/ |
H A D | exynos5422-asv.c | 391 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 D | exynos-asv.c | 28 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()
|
H A D | exynos-asv.h | 40 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()
|
/openbmc/qemu/hw/nvme/ |
H A D | subsys.c | 19 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_reserve_cntlids() local 24 for (i = start; i < ARRAY_SIZE(subsys->ctrls) && cnt < num; i++) { in nvme_subsys_reserve_cntlids() 25 if (!subsys->ctrls[i]) { in nvme_subsys_reserve_cntlids() 28 subsys->ctrls[i] = SUBSYS_SLOT_RSVD; in nvme_subsys_reserve_cntlids() 38 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_unreserve_cntlids() local 48 assert(subsys->ctrls[cntlid] == SUBSYS_SLOT_RSVD); in nvme_subsys_unreserve_cntlids() 49 subsys->ctrls[cntlid] = NULL; in nvme_subsys_unreserve_cntlids() 57 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_register_ctrl() local 66 for (cntlid = 0; cntlid < ARRAY_SIZE(subsys->ctrls); cntlid++) { in nvme_subsys_register_ctrl() 67 if (!subsys->ctrls[cntlid]) { in nvme_subsys_register_ctrl() [all …]
|
/openbmc/linux/drivers/nvme/target/ |
H A D | configfs.c | 346 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 …]
|
H A D | core.c | 123 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 …]
|
H A D | passthru.c | 29 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 …]
|
H A D | discovery.c | 29 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 …]
|
H A D | nvmet.h | 73 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 …]
|
H A D | admin-cmd.c | 113 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 …]
|
/openbmc/linux/tools/lib/api/fs/ |
H A D | cgroup.c | 12 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()
|
/openbmc/openbmc/meta-security/recipes-ids/tripwire/files/ |
H A D | twpol-yocto.txt | 844 /var/lock/subsys -> $(SEC_CONFIG) ; 845 #/var/lock/subsys/amd -> $(SEC_CONFIG) ; 846 /var/lock/subsys/anacron -> $(SEC_CONFIG) ; 847 /var/lock/subsys/apmd -> $(SEC_CONFIG) ; 848 #/var/lock/subsys/arpwatch -> $(SEC_CONFIG) ; 849 /var/lock/subsys/atd -> $(SEC_CONFIG) ; 850 /var/lock/subsys/autofs -> $(SEC_CONFIG) ; 851 #/var/lock/subsys/bcm5820 -> $(SEC_CONFIG) ; 852 #/var/lock/subsys/bgpd -> $(SEC_CONFIG) ; 853 #/var/lock/subsys/bootparamd -> $(SEC_CONFIG) ; [all …]
|
/openbmc/linux/scripts/ |
H A D | get_feat.pl | 104 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 …]
|
/openbmc/linux/drivers/most/ |
H A D | configfs.c | 415 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 …]
|
/openbmc/linux/samples/configfs/ |
H A D | configfs_sample.c | 32 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()
|
/openbmc/linux/include/linux/soc/mediatek/ |
H A D | mtk-cmdq.h | 20 u8 subsys; member 86 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value); 98 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, 217 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, 234 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, 304 static inline int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write() argument 309 static inline int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() argument 360 static inline int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll() argument 366 static inline int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll_mask() argument
|
/openbmc/linux/drivers/nvme/host/ |
H A D | sysfs.c | 53 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 …]
|
H A D | multipath.c | 51 void nvme_mpath_default_iopolicy(struct nvme_subsystem *subsys) in nvme_mpath_default_iopolicy() argument 53 subsys->iopolicy = iopolicy; in nvme_mpath_default_iopolicy() 56 void nvme_mpath_unfreeze(struct nvme_subsystem *subsys) in nvme_mpath_unfreeze() argument 60 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze() 61 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze() 66 void nvme_mpath_wait_freeze(struct nvme_subsystem *subsys) in nvme_mpath_wait_freeze() argument 70 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze() 71 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_wait_freeze() 76 void nvme_mpath_start_freeze(struct nvme_subsystem *subsys) in nvme_mpath_start_freeze() argument 80 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze() [all …]
|
H A D | core.c | 123 static void nvme_put_subsystem(struct nvme_subsystem *subsys); 609 ida_free(&head->subsys->ns_ida, head->instance); in nvme_free_ns_head() 611 nvme_put_subsystem(head->subsys); in nvme_free_ns_head() 1099 mutex_lock(&ctrl->subsys->lock); in nvme_passthru_start() 1100 nvme_mpath_start_freeze(ctrl->subsys); in nvme_passthru_start() 1101 nvme_mpath_wait_freeze(ctrl->subsys); in nvme_passthru_start() 1114 nvme_mpath_unfreeze(ctrl->subsys); in nvme_passthru_end() 1115 mutex_unlock(&ctrl->subsys->lock); in nvme_passthru_end() 1895 atomic_bs = (1 + ns->ctrl->subsys->awupf) * bs; in nvme_update_disk_info() 2622 static void nvme_init_subnqn(struct nvme_subsystem *subsys, struct nvme_ctrl *ctrl, in nvme_init_subnqn() argument [all …]
|
/openbmc/ipmitool/contrib/ |
H A D | ipmievd.init.redhat | 48 if [ -f /var/lock/subsys/ipmievd ]; then 53 [ $ret -eq 0 ] && touch /var/lock/subsys/ipmievd 61 [ $ret -eq 0 ] && rm -f /var/lock/subsys/ipmievd 80 [ -f /var/lock/subsys/ipmievd ] && restart || :
|
/openbmc/linux/fs/configfs/ |
H A D | dir.c | 780 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 …]
|
/openbmc/openpower-hw-diags/test/ |
H A D | test-resolution.cpp | 69 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() local 71 EXPECT_EQ(sd1.getSubsys(), subsys); in TEST() 73 subsys = {callout::SrcSubsystem::PROCESSOR_FRU, callout::Priority::HIGH}; in TEST() 74 EXPECT_EQ(sd2.getSubsys(), subsys); in TEST() 158 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() local 160 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() 218 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() local 220 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() 309 std::pair<callout::SrcSubsystem, callout::Priority> subsys = { in TEST() local 311 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() [all …]
|
/openbmc/linux/drivers/soc/mediatek/ |
H A D | mtk-cmdq-helper.c | 35 u8 subsys; member 66 client_reg->subsys = (u8)spec.args[0]; in cmdq_dev_get_client_reg() 180 int cmdq_pkt_write(struct cmdq_pkt *pkt, u8 subsys, u16 offset, u32 value) in cmdq_pkt_write() argument 187 inst.subsys = subsys; in cmdq_pkt_write() 193 int cmdq_pkt_write_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_write_mask() argument 209 err = cmdq_pkt_write(pkt, subsys, offset_mask, value); in cmdq_pkt_write_mask() 349 int cmdq_pkt_poll(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll() argument 358 inst.subsys = subsys; in cmdq_pkt_poll() 365 int cmdq_pkt_poll_mask(struct cmdq_pkt *pkt, u8 subsys, in cmdq_pkt_poll_mask() argument 378 err = cmdq_pkt_poll(pkt, subsys, offset, value); in cmdq_pkt_poll_mask()
|
/openbmc/linux/drivers/video/fbdev/vermilion/ |
H A D | vermilion.c | 43 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() 1087 if (subsys != NULL) { in vmlfb_register_subsys() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | bus.c | 76 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() 503 error = sysfs_create_link(&dev->kobj, &sp->subsys.kobj, "subsystem"); in bus_add_device() 829 ret = kobject_synth_uevent(&sp->subsys.kobj, buf, count); in bus_uevent_store() 868 bus_kobj = &priv->subsys.kobj; in bus_register() 877 retval = kset_register(&priv->subsys); in bus_register() 924 kset_unregister(&priv->subsys); in bus_register() 952 bus_kobj = &sp->subsys.kobj; in bus_unregister() 959 kset_unregister(&sp->subsys); in bus_unregister() [all …]
|