/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() 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() 428 subsys->asv->group); in exynos5422_asv_opp_get_voltage() 430 if (volt > subsys->base_volt) in exynos5422_asv_opp_get_voltage() 431 asv_volt += subsys->offset_volt_h; in exynos5422_asv_opp_get_voltage() 455 struct exynos_asv_subsys *subsys; in exynos5422_asv_init() local 484 subsys = &asv->subsys[EXYNOS_ASV_SUBSYS_ID_ARM]; in exynos5422_asv_init() [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 25 if (!subsys->ctrls[i]) { in nvme_subsys_reserve_cntlids() 38 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_unreserve_cntlids() local 57 NvmeSubsystem *subsys = n->subsys; in nvme_subsys_register_ctrl() local 86 if (!subsys->serial) { in nvme_subsys_register_ctrl() 93 subsys->ctrls[cntlid] = n; in nvme_subsys_register_ctrl() 149 if (!subsys->params.fdp.runs) { in nvme_subsys_setup_fdp() 156 if (!subsys->params.fdp.nrg) { in nvme_subsys_setup_fdp() 198 subsys->params.nqn : subsys->parent_obj.id; in nvme_subsys_setup() 200 snprintf((char *)subsys->subnqn, sizeof(subsys->subnqn), in nvme_subsys_setup() [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 427 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_uuid_store() local 455 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_device_nguid_store() local 842 &subsys->group); in nvmet_add_passthru_group() 869 link->subsys = subsys; in nvmet_port_subsys_allow_link() 874 if (p->subsys == subsys) in nvmet_port_subsys_allow_link() 905 if (p->subsys == subsys) in nvmet_port_subsys_drop_link() 1499 if (IS_ERR(subsys)) in nvmet_subsys_make() 1506 configfs_add_default_group(&subsys->namespaces_group, &subsys->group); in nvmet_subsys_make() 1511 &subsys->group); in nvmet_subsys_make() [all …]
|
H A D | core.c | 557 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_enable() local 611 subsys->max_nsid = nvmet_max_nsid(subsys); in nvmet_ns_enable() 623 struct nvmet_subsys *subsys = ns->subsys; in nvmet_ns_disable() local 633 subsys->max_nsid = nvmet_max_nsid(subsys); in nvmet_ns_disable() 685 ns->subsys = subsys; in nvmet_ns_alloc() 1426 ctrl->subsys = subsys; in nvmet_alloc_ctrl() 1441 if (subsys->cntlid_min > subsys->cntlid_max) in nvmet_alloc_ctrl() 1445 subsys->cntlid_min, subsys->cntlid_max, in nvmet_alloc_ctrl() 1491 struct nvmet_subsys *subsys = ctrl->subsys; in nvmet_ctrl_free() local 1566 subsys = kzalloc(sizeof(*subsys), GFP_KERNEL); in nvmet_subsys_alloc() [all …]
|
H A D | passthru.c | 42 if (!ctrl->subsys->clear_ids) in nvmet_passthru_override_id_descs() 580 mutex_lock(&subsys->lock); 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() 606 subsys, GFP_KERNEL); in nvmet_passthru_ctrl_enable() 616 subsys->ver = ctrl->vs; in nvmet_passthru_ctrl_enable() 620 NVME_MAJOR(subsys->ver), NVME_MINOR(subsys->ver), in nvmet_passthru_ctrl_enable() 631 mutex_unlock(&subsys->lock); in nvmet_passthru_ctrl_enable() 637 if (subsys->passthru_ctrl) { in __nvmet_passthru_ctrl_disable() 648 mutex_lock(&subsys->lock); in nvmet_passthru_ctrl_disable() [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() 272 strlen(ctrl->subsys->model_number), ' '); 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); 501 void nvmet_send_ana_event(struct nvmet_subsys *subsys, 509 struct nvmet_subsys *subsys); 528 struct nvmet_subsys *subsys); 613 return req->sq->ctrl->subsys; in nvmet_req_subsys() 618 return subsys->type != NVME_NQN_NVME; in nvmet_is_disc_subsys() [all …]
|
H A D | admin-cmd.c | 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() 361 mutex_unlock(&subsys->lock); in nvmet_execute_identify_ctrl() 378 subsys->firmware_rev, strlen(subsys->firmware_rev), ' '); in nvmet_execute_identify_ctrl() 769 mutex_lock(&subsys->lock); in nvmet_set_feat_write_protect() 787 mutex_unlock(&subsys->lock); in nvmet_set_feat_write_protect() 840 (subsys->max_qid - 1) | ((subsys->max_qid - 1) << 16)); in nvmet_execute_set_features() 872 mutex_lock(&subsys->lock); in nvmet_get_feat_write_protect() 878 mutex_unlock(&subsys->lock); in nvmet_get_feat_write_protect() [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/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); 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}) || 404 ($data{$a}->{subsys} cmp $data{$b}->{subsys}) or 408 if ($cur_subsys ne $data{$name}->{subsys}) { [all …]
|
/openbmc/openbmc/meta-security/recipes-ids/tripwire/files/ |
H A D | twpol-yocto.txt | 844 /var/lock/subsys -> $(SEC_CONFIG) ; 846 /var/lock/subsys/anacron -> $(SEC_CONFIG) ; 847 /var/lock/subsys/apmd -> $(SEC_CONFIG) ; 849 /var/lock/subsys/atd -> $(SEC_CONFIG) ; 850 /var/lock/subsys/autofs -> $(SEC_CONFIG) ; 855 /var/lock/subsys/crond -> $(SEC_CONFIG) ; 861 /var/lock/subsys/gpm -> $(SEC_CONFIG) ; 865 /var/lock/subsys/ipchains -> $(SEC_CONFIG) ; 873 /var/lock/subsys/keytable -> $(SEC_CONFIG) ; 877 /var/lock/subsys/kudzu -> $(SEC_CONFIG) ; [all …]
|
/openbmc/linux/drivers/most/ |
H A D | configfs.c | 415 struct configfs_subsystem subsys; member 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 = { 709 mutex_init(&most_cdev.subsys.su_mutex); in configfs_init() [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/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/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() 70 subsys->model[model_len - 1] == '\0')) in wwid_show() 74 serial_len, subsys->serial, model_len, subsys->model, in wwid_show() 176 (int)sizeof(ctrl->subsys->field), ctrl->subsys->field); \ 609 struct nvme_subsystem *subsys = in nvme_subsys_show_nqn() local 620 struct nvme_subsystem *subsys = in nvme_subsys_show_type() local 623 switch (subsys->subtype) { in nvme_subsys_show_type() 638 struct nvme_subsystem *subsys = \ [all …]
|
H A D | multipath.c | 53 subsys->iopolicy = iopolicy; in nvme_mpath_default_iopolicy() 60 lockdep_assert_held(&subsys->lock); in nvme_mpath_unfreeze() 61 list_for_each_entry(h, &subsys->nsheads, entry) in nvme_mpath_unfreeze() 70 lockdep_assert_held(&subsys->lock); in nvme_mpath_wait_freeze() 80 lockdep_assert_held(&subsys->lock); in nvme_mpath_start_freeze() 894 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_show() local 910 WRITE_ONCE(subsys->iopolicy, iopolicy); in nvme_subsys_iopolicy_update() 919 subsys->subnqn, in nvme_subsys_iopolicy_update() 927 struct nvme_subsystem *subsys = in nvme_subsys_iopolicy_store() local 933 nvme_subsys_iopolicy_update(subsys, i); in nvme_subsys_iopolicy_store() [all …]
|
H A D | core.c | 2664 kfree(subsys); in nvme_release_subsystem() 2755 subsys = kzalloc(sizeof(*subsys), GFP_KERNEL); in nvme_init_subsystem() 2756 if (!subsys) in nvme_init_subsystem() 2765 memcpy(subsys->serial, id->sn, sizeof(subsys->serial)); in nvme_init_subsystem() 2766 memcpy(subsys->model, id->mn, sizeof(subsys->model)); in nvme_init_subsystem() 2825 ctrl->subsys = subsys; in nvme_init_subsystem() 3386 head->subsys = ctrl->subsys; in nvme_alloc_ns_head() 4421 struct nvme_subsystem *subsys = ctrl->subsys; in nvme_free_ctrl() local 4423 if (!subsys || ctrl->instance != subsys->instance) in nvme_free_ctrl() 4434 if (subsys) { in nvme_free_ctrl() [all …]
|
/openbmc/linux/fs/configfs/ |
H A D | dir.c | 790 group->cg_subsys = subsys; in link_group() 1295 BUG_ON(!subsys); in configfs_mkdir() 1327 mutex_lock(&subsys->su_mutex); in configfs_mkdir() 1346 mutex_unlock(&subsys->su_mutex); in configfs_mkdir() 1406 mutex_lock(&subsys->su_mutex); in configfs_mkdir() 1455 BUG_ON(!subsys); in configfs_rmdir() 1525 mutex_lock(&subsys->su_mutex); in configfs_rmdir() 1531 mutex_lock(&subsys->su_mutex); in configfs_rmdir() 1735 mutex_lock(&subsys->su_mutex); in configfs_register_group() 1754 mutex_lock(&subsys->su_mutex); in configfs_register_group() [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/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() 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() 311 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() 387 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() 433 EXPECT_EQ(sd.getSubsys(), subsys); in TEST() [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | kcov.h | 56 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()
|
/openbmc/linux/drivers/video/fbdev/vermilion/ |
H A D | vermilion.c | 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() 806 clock = subsys->nearest_clock(subsys, clock); in vmlfb_set_par_locked() 832 subsys->set_clock(subsys, clock); in vmlfb_set_par_locked() 1088 subsys->restore(subsys); in vmlfb_register_subsys() 1090 subsys = sys; in vmlfb_register_subsys() 1091 subsys->save(subsys); in vmlfb_register_subsys() 1141 subsys->name ? subsys->name : "unknown"); in vmlfb_register_subsys() 1156 subsys->restore(subsys); in vmlfb_unregister_subsys() [all …]
|