/linux/block/ |
H A D | blk-crypto-profile.c | 42 struct blk_crypto_profile *profile; member 45 static inline void blk_crypto_hw_enter(struct blk_crypto_profile *profile) in blk_crypto_hw_enter() argument 52 if (profile->dev) in blk_crypto_hw_enter() 53 pm_runtime_get_sync(profile->dev); in blk_crypto_hw_enter() 54 down_write(&profile->lock); in blk_crypto_hw_enter() 57 static inline void blk_crypto_hw_exit(struct blk_crypto_profile *profile) in blk_crypto_hw_exit() argument 59 up_write(&profile->lock); in blk_crypto_hw_exit() 60 if (profile->dev) in blk_crypto_hw_exit() 61 pm_runtime_put_sync(profile->dev); in blk_crypto_hw_exit() 74 int blk_crypto_profile_init(struct blk_crypto_profile *profile, in blk_crypto_profile_init() argument [all …]
|
H A D | blk-crypto-sysfs.c | 15 struct blk_crypto_profile *profile; member 20 ssize_t (*show)(struct blk_crypto_profile *profile, 26 return container_of(kobj, struct blk_crypto_kobj, kobj)->profile; in kobj_to_crypto_profile() 34 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument 37 return sysfs_emit(page, "%u\n", 8 * profile->max_dun_bytes_supported); in max_dun_bits_show() 40 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument 43 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show() 72 struct blk_crypto_profile *profile = kobj_to_crypto_profile(kobj); in blk_crypto_mode_is_visible() local 76 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible() 81 static ssize_t blk_crypto_mode_show(struct blk_crypto_profile *profile, in blk_crypto_mode_show() argument [all …]
|
/linux/drivers/infiniband/hw/mthca/ |
H A D | mthca_profile.c | 77 struct mthca_resource *profile; in mthca_make_profile() local 80 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 81 if (!profile) in mthca_make_profile() 84 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile() 85 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile() 86 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile() 87 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile() 88 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile() 89 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile() 90 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | profile.c | 84 struct mlx4_resource *profile; in mlx4_make_profile() local 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile() 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile() 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile() 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile() 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile() 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile() 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile() [all …]
|
/linux/security/apparmor/ |
H A D | mount.c | 135 struct aa_profile *profile, const char *op, in audit_mount() argument 147 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in audit_mount() 165 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_mount() 166 AUDIT_MODE(profile) != AUDIT_ALL) in audit_mount() 184 return aa_audit(audit_type, profile, &ad, audit_cb); in audit_mount() 281 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument 283 AA_BUG(!profile); in path_flags() 286 return profile->path_flags | in path_flags() 306 struct aa_profile *profile, in match_mnt_path_str() argument 314 struct aa_ruleset *rules = list_first_entry(&profile->rules, in match_mnt_path_str() [all …]
|
H A D | file.c | 95 struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument 116 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file() 135 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file() 136 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file() 144 return aa_audit(type, profile, &ad, file_audit_cb); in aa_audit_file() 152 struct aa_profile *profile; in path_name() local 159 fn_for_each_confined(label, profile, in path_name() 161 profile, &nullperms, op, request, *name, in path_name() 216 struct aa_profile *profile, const char *name, in __aa_path_perm() argument 220 struct aa_ruleset *rules = list_first_entry(&profile->rules, in __aa_path_perm() [all …]
|
H A D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument 113 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm() 122 if (profile_unconfined(profile)) in aa_profile_af_perm() 133 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm() 135 return aa_check_perms(profile, &perms, request, ad, audit_net_cb); in aa_profile_af_perm() 141 struct aa_profile *profile; in aa_af_perm() local 144 return fn_for_each_confined(label, profile, in aa_af_perm() 145 aa_profile_af_perm(profile, &ad, request, family, in aa_af_perm() 161 struct aa_profile *profile; in aa_label_sk_perm() local 165 error = fn_for_each_confined(label, profile, in aa_label_sk_perm() [all …]
|
H A D | ipc.c | 79 struct aa_profile *profile, in profile_signal_perm() argument 83 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_signal_perm() 88 if (profile_unconfined(profile) || in profile_signal_perm() 89 !ANY_RULE_MEDIATES(&profile->rules, AA_CLASS_SIGNAL)) in profile_signal_perm() 98 aa_label_match(profile, rules, peer, state, false, request, &perms); in profile_signal_perm() 99 aa_apply_modes_to_perms(profile, &perms); in profile_signal_perm() 100 return aa_check_perms(profile, &perms, request, ad, audit_signal_cb); in profile_signal_perm() 107 struct aa_profile *profile; in aa_may_signal() local 112 return xcheck_labels(sender, target, profile, in aa_may_signal() 113 profile_signal_perm(subj_cred, profile, target, in aa_may_signal() [all …]
|
H A D | apparmorfs.c | 612 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument 615 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_query_cb() 620 if (profile_unconfined(profile)) in profile_query_cb() 640 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb() 670 struct aa_profile *profile; in query_data() local 705 label_for_each_confined(i, label, profile) { in query_data() 706 if (!profile->data) in query_data() 709 data = rhashtable_lookup_fast(profile->data, &key, in query_data() 710 profile->data->p); in query_data() 759 struct aa_profile *profile; in query_label() local [all …]
|
H A D | task.c | 227 struct aa_profile *profile, in profile_ptrace_perm() argument 231 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_ptrace_perm() 237 aa_profile_match_label(profile, rules, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm() 239 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm() 240 return aa_check_perms(profile, &perms, request, ad, audit_ptrace_cb); in profile_ptrace_perm() 293 struct aa_profile *profile; in aa_may_ptrace() local 297 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace() 298 profile_tracer_perm(tracer_cred, profile, tracee, in aa_may_ptrace() 300 profile_tracee_perm(tracee_cred, profile, tracer, in aa_may_ptrace() 316 int aa_profile_ns_perm(struct aa_profile *profile, in aa_profile_ns_perm() argument [all …]
|
H A D | resource.c | 57 struct aa_profile *profile, unsigned int resource, in audit_resource() argument 71 return aa_audit(AUDIT_APPARMOR_AUTO, profile, &ad, audit_cb); in audit_resource() 89 struct aa_profile *profile, unsigned int resource, in profile_setrlimit() argument 92 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_setrlimit() 99 return audit_resource(subj_cred, profile, resource, new_rlim->rlim_max, in profile_setrlimit() 119 struct aa_profile *profile; in aa_task_setrlimit() local 136 error = fn_for_each(label, profile, in aa_task_setrlimit() 137 audit_resource(subj_cred, profile, resource, in aa_task_setrlimit() 141 error = fn_for_each_confined(label, profile, in aa_task_setrlimit() 142 profile_setrlimit(subj_cred, profile, resource, in aa_task_setrlimit()
|
/linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
H A D | ppatomfwctrl.c | 282 struct atom_asic_profiling_info_v4_1 *profile; in pp_atomfwctrl_get_avfs_information() local 286 profile = (struct atom_asic_profiling_info_v4_1 *) in pp_atomfwctrl_get_avfs_information() 290 if (!profile) in pp_atomfwctrl_get_avfs_information() 293 format_revision = ((struct atom_common_table_header *)profile)->format_revision; in pp_atomfwctrl_get_avfs_information() 294 content_revision = ((struct atom_common_table_header *)profile)->content_revision; in pp_atomfwctrl_get_avfs_information() 297 param->ulMaxVddc = le32_to_cpu(profile->maxvddc); in pp_atomfwctrl_get_avfs_information() 298 param->ulMinVddc = le32_to_cpu(profile->minvddc); in pp_atomfwctrl_get_avfs_information() 300 le32_to_cpu(profile->avfs_meannsigma_acontant0); in pp_atomfwctrl_get_avfs_information() 302 le32_to_cpu(profile->avfs_meannsigma_acontant1); in pp_atomfwctrl_get_avfs_information() 304 le32_to_cpu(profile->avfs_meannsigma_acontant2); in pp_atomfwctrl_get_avfs_information() [all …]
|
H A D | ppatomctrl.c | 1029 ATOM_ASIC_PROFILING_INFO_V3_6 *profile = NULL; in atomctrl_get_avfs_information() local 1034 profile = (ATOM_ASIC_PROFILING_INFO_V3_6 *) in atomctrl_get_avfs_information() 1038 if (!profile) in atomctrl_get_avfs_information() 1041 param->ulAVFS_meanNsigma_Acontant0 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant0); in atomctrl_get_avfs_information() 1042 param->ulAVFS_meanNsigma_Acontant1 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant1); in atomctrl_get_avfs_information() 1043 param->ulAVFS_meanNsigma_Acontant2 = le32_to_cpu(profile->ulAVFS_meanNsigma_Acontant2); in atomctrl_get_avfs_information() 1044 param->usAVFS_meanNsigma_DC_tol_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_DC_tol_sigma); in atomctrl_get_avfs_information() 1045 param->usAVFS_meanNsigma_Platform_mean = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_mean); in atomctrl_get_avfs_information() 1046 param->usAVFS_meanNsigma_Platform_sigma = le16_to_cpu(profile->usAVFS_meanNsigma_Platform_sigma); in atomctrl_get_avfs_information() 1047 param->ulGB_VDROOP_TABLE_CKSOFF_a0 = le32_to_cpu(profile->ulGB_VDROOP_TABLE_CKSOFF_a0); in atomctrl_get_avfs_information() [all …]
|
/linux/sound/soc/sof/ |
H A D | fw-file-profile.c | 15 struct sof_loadable_file_profile *profile, in sof_test_firmware_file() argument 24 fw_filename = kasprintf(GFP_KERNEL, "%s/%s", profile->fw_path, in sof_test_firmware_file() 25 profile->fw_name); in sof_test_firmware_file() 53 } else if (fw_ipc_type != profile->ipc_type) { in sof_test_firmware_file() 56 fw_filename, fw_ipc_type, profile->ipc_type); in sof_test_firmware_file() 67 struct sof_loadable_file_profile *profile) in sof_test_topology_file() argument 73 if (!profile->tplg_path || !profile->tplg_name) in sof_test_topology_file() 76 tplg_filename = kasprintf(GFP_KERNEL, "%s/%s", profile->tplg_path, in sof_test_topology_file() 77 profile->tplg_name); in sof_test_topology_file() 267 struct sof_loadable_file_profile *profile) in sof_print_profile_info() argument [all …]
|
/linux/Documentation/ABI/obsolete/ |
H A D | sysfs-driver-hid-roccat-savu | 5 press of a button. A profile is split into general settings and 8 respective profile buttons to the mouse. The data has to be 11 Which profile to write is determined by the profile number 14 which profile to read. 21 profile will be read next. The data has to be 3 bytes long. 29 press of a button. A profile is split into general settings and 30 button settings. A profile holds information like resolution, 32 When written, this file lets one write the respective profile 35 Which profile to write is determined by the profile number 52 keystrokes for a specific button for a specific profile. [all …]
|
H A D | sysfs-driver-hid-roccat-koneplus | 6 profile. This value is persistent, so its equivalent to the 7 profile that's active when the mouse is powered on next time. 8 When written, this file sets the number of the startup profile 9 and the mouse activates this profile immediately. 17 profile. This value is persistent, so its equivalent to the 18 profile that's active when the mouse is powered on next time. 19 When written, this file sets the number of the startup profile 20 and the mouse activates this profile immediately. 50 button for a specific profile. Button and profile numbers are 59 press of a button. A profile is split in settings and buttons. [all …]
|
H A D | sysfs-driver-hid-roccat-kovaplus | 16 profile. 17 When written, the mouse activates this profile immediately. 18 The profile that's active when powered down is the same that's 66 press of a button. A profile is split in settings and buttons. 68 When written, this file lets one write the respective profile 71 Which profile to write is determined by the profile number 74 which profile to read. 77 …e num>/<hid-bus>:<vendor-id>:<product-id>.<num>/kovaplus/roccatkovaplus<minor>/profile[1-5]_buttons 81 press of a button. A profile is split in settings and buttons. 83 When read, these files return the respective profile buttons. [all …]
|
H A D | sysfs-driver-hid-roccat-pyra | 25 Description: When read, this file returns the number of the actual profile in 55 press of a button. A profile is split in settings and buttons. 57 When written, this file lets one write the respective profile 60 Which profile to write is determined by the profile number 63 which profile to read. 66 …interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/pyra/roccatpyra<minor>/profile[1-5]_buttons 70 press of a button. A profile is split in settings and buttons. 72 When read, these files return the respective profile buttons. 75 Write control to select profile and read profile_buttons instead. 82 press of a button. A profile is split in settings and buttons. [all …]
|
H A D | sysfs-driver-hid-roccat-ryos | 5 profile will be read next. The data has to be 3 bytes long. 9 …config num>.<interface num>/<hid-bus>:<vendor-id>:<product-id>.<num>/ryos/roccatryos<minor>/profile 13 press of a button. profile holds index of actual profile. 14 This value is persistent, so its value determines the profile 16 When written, the device activates the set profile immediately. 25 a specific profile. Profile index is included in written data. 28 which profile to read. 35 function keys for a specific profile. Profile index is included 38 which profile to read. 45 keys for a specific profile. Profile index is included in [all …]
|
H A D | sysfs-driver-hid-roccat-isku | 6 profile. This value is persistent, so its equivalent to the 7 profile that's active when the device is powered on next time. 8 When written, this file sets the number of the startup profile 9 and the device activates this profile immediately. 28 which profile to read. 35 capslock key for a specific profile. Profile number is included 38 which profile to read. 45 easyzone keys for a specific profile. Profile number is included 48 which profile to read. 55 function keys for a specific profile. Profile number is included [all …]
|
/linux/drivers/acpi/ |
H A D | platform_profile.c | 114 enum platform_profile_option *profile) in get_class_profile() argument 130 *profile = val; in get_class_profile() 181 enum platform_profile_option profile = PLATFORM_PROFILE_LAST; in profile_show() local 185 err = get_class_profile(dev, &profile); in profile_show() 190 return sysfs_emit(buf, "%s\n", profile_names[profile]); in profile_show() 222 static DEVICE_ATTR_RW(profile); 230 ATTRIBUTE_GROUPS(profile); 338 enum platform_profile_option *profile = data; in _aggregate_profiles() local 346 if (*profile != PLATFORM_PROFILE_LAST && *profile != val) in _aggregate_profiles() 347 *profile = PLATFORM_PROFILE_CUSTOM; in _aggregate_profiles() [all …]
|
/linux/Documentation/dev-tools/ |
H A D | autofdo.rst | 9 is a type of profile-guided optimization (PGO) used to enhance the 19 profile. Acquiring an AutoFDO profile can be done in several ways. 27 The AutoFDO profile often encapsulates the program's behavior. If the 28 performance-critical codes are architecture-independent, the profile 30 instance, using the profile generated on Intel architecture to build 33 There are two methods for acquiring a representative profile: 35 (2) Generate the profile using a representative load test. 37 AutoFDO profile, the compiler only modifies the dwarf information in 40 collect the perf profile. While it's possible to use a kernel built 46 production environment for profile collection. [all …]
|
/linux/include/linux/ |
H A D | blk-crypto-profile.h | 37 int (*keyslot_program)(struct blk_crypto_profile *profile, 57 int (*keyslot_evict)(struct blk_crypto_profile *profile, 133 int blk_crypto_profile_init(struct blk_crypto_profile *profile, 137 struct blk_crypto_profile *profile, 142 void blk_crypto_reprogram_all_keys(struct blk_crypto_profile *profile); 144 void blk_crypto_profile_destroy(struct blk_crypto_profile *profile);
|
/linux/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | resource_scale.sh | 43 for profile in $KVD_PROFILES; do 45 devlink_sp_resource_kvd_profile_set $profile 47 log_test "'$current_test' [$profile] setting" 64 log_test "'$current_test' [$profile] $target" 71 log_test "'$current_test' [$profile] $target traffic test" 75 log_test "'$current_test' [$profile] overflow $target"
|
/linux/drivers/devfreq/ |
H A D | devfreq.c | 354 if (devfreq->profile->get_cur_freq) in devfreq_set_target() 355 devfreq->profile->get_cur_freq(devfreq->dev.parent, &cur_freq); in devfreq_set_target() 363 err = devfreq->profile->target(devfreq->dev.parent, &new_freq, flags); in devfreq_set_target() 468 msecs_to_jiffies(devfreq->profile->polling_ms)); in devfreq_monitor() 494 switch (devfreq->profile->timer) { in devfreq_monitor_start() 505 if (devfreq->profile->polling_ms) in devfreq_monitor_start() 507 msecs_to_jiffies(devfreq->profile->polling_ms)); in devfreq_monitor_start() 592 devfreq->profile->polling_ms) in devfreq_monitor_resume() 594 msecs_to_jiffies(devfreq->profile->polling_ms)); in devfreq_monitor_resume() 600 if (devfreq->profile->get_cur_freq && in devfreq_monitor_resume() [all …]
|