| /linux-6.15/block/ |
| H A D | blk-crypto-profile.c | 81 memset(profile, 0, sizeof(*profile)); in blk_crypto_profile_init() 107 profile->slots[slot].profile = profile; in blk_crypto_profile_init() 166 profile); in devm_blk_crypto_profile_init() 181 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_remove_slot_from_lru_list() local 327 struct blk_crypto_profile *profile = slot->profile; in blk_crypto_put_keyslot() local 349 if (!profile) in __blk_crypto_cfg_supported() 374 err = profile->ll_ops.keyslot_evict(profile, key, -1); in __blk_crypto_evict_key() 397 err = profile->ll_ops.keyslot_evict(profile, key, in __blk_crypto_evict_key() 450 sizeof(profile->slots[0]) * profile->num_slots); in blk_crypto_profile_destroy() 451 memzero_explicit(profile, sizeof(*profile)); in blk_crypto_profile_destroy() [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() 41 static ssize_t max_dun_bits_show(struct blk_crypto_profile *profile, in max_dun_bits_show() argument 47 static ssize_t num_keyslots_show(struct blk_crypto_profile *profile, in num_keyslots_show() argument 50 return sysfs_emit(page, "%u\n", profile->num_slots); in num_keyslots_show() 53 static ssize_t raw_keys_show(struct blk_crypto_profile *profile, in raw_keys_show() argument 78 !(profile->key_types_supported & BLK_CRYPTO_KEY_TYPE_RAW)) in blk_crypto_is_visible() 111 if (profile->modes_supported[mode_num]) in blk_crypto_mode_is_visible() 142 return a->show(profile, a, page); in blk_crypto_attr_show() [all …]
|
| /linux-6.15/drivers/infiniband/hw/mthca/ |
| H A D | mthca_profile.c | 80 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 81 if (!profile) in mthca_make_profile() 114 profile[i].log_num = max(ffs(profile[i].num) - 1, 0); in mthca_make_profile() 115 profile[i].size *= profile[i].num; in mthca_make_profile() 117 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mthca_make_profile() 136 if (profile[j].size > profile[j - 1].size) in mthca_make_profile() 137 swap(profile[j], profile[j - 1]); in mthca_make_profile() 150 kfree(profile); in mthca_make_profile() 154 if (profile[i].size) in mthca_make_profile() 157 i, profile[i].type, profile[i].log_num, in mthca_make_profile() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | profile.c | 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 138 profile[i].num = roundup_pow_of_two(profile[i].num); in mlx4_make_profile() 139 profile[i].log_num = ilog2(profile[i].num); in mlx4_make_profile() 140 profile[i].size *= profile[i].num; in mlx4_make_profile() 141 profile[i].size = max(profile[i].size, (u64) PAGE_SIZE); in mlx4_make_profile() 152 if (profile[j].size > profile[j - 1].size) in mlx4_make_profile() 153 swap(profile[j], profile[j - 1]); in mlx4_make_profile() 166 kfree(profile); in mlx4_make_profile() 170 if (profile[i].size) in mlx4_make_profile() [all …]
|
| /linux-6.15/security/apparmor/ |
| H A D | policy.c | 158 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 285 if (!profile) in aa_free_profile() 338 if (!profile) in aa_alloc_profile() 363 profile->label.hname = profile->base.hname; in aa_alloc_profile() 365 profile->label.vec[0] = profile; in aa_alloc_profile() 422 } while (profile && !aa_get_profile_not0(profile)); in aa_find_child() 460 if (!profile) in __lookup_parent() 509 if (!profile) in __create_missing_ancestors() 571 } while (profile && !aa_get_profile_not0(profile)); in aa_lookupn_profile() 618 if (!profile) in aa_alloc_null() [all …]
|
| H A D | domain.c | 96 if (profile->ns == tp->ns) in match_component() 401 &profile->label == ns_unconfined(profile->ns)) in find_attach() 441 aa_put_profile(profile); in find_attach() 470 candidate = profile; in find_attach() 480 candidate = profile; in find_attach() 646 AA_BUG(!profile); in profile_transition() 749 AA_BUG(!profile); in profile_onexec() 819 struct aa_profile *profile; in handle_onexec() local 867 struct aa_profile *profile; in apparmor_bprm_creds_for_exec() local 1171 struct aa_profile *profile; in aa_change_hat() local [all …]
|
| H A D | mount.c | 283 AA_BUG(!profile); in path_flags() 286 return profile->path_flags | in path_flags() 318 AA_BUG(!profile); in match_mnt_path_str() 378 AA_BUG(!profile); in match_mnt() 400 struct aa_profile *profile; in aa_remount() local 426 struct aa_profile *profile; in aa_bind_mount() local 464 struct aa_profile *profile; in aa_mount_change_type() local 491 struct aa_profile *profile; in aa_move_mount() local 541 struct aa_profile *profile; in aa_new_mount() local 614 AA_BUG(!profile); in profile_umount() [all …]
|
| H A D | capability.c | 80 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps() 84 } else if (KILL_MODE(profile) || in audit_caps() 88 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps() 89 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps() 99 if (COMPLAIN_MODE(profile)) in audit_caps() 109 return aa_audit(type, profile, ad, audit_cb); in audit_caps() 135 if (!COMPLAIN_MODE(profile)) in profile_capable() 143 return audit_caps(ad, profile, cap, error); in profile_capable() 160 struct aa_profile *profile; in aa_capable() local 166 error = fn_for_each_confined(label, profile, in aa_capable() [all …]
|
| H A D | file.c | 152 struct aa_profile *profile; in path_name() local 224 if (profile_unconfined(profile)) in __aa_path_perm() 237 struct aa_profile *profile, in profile_path_perm() argument 245 if (profile_unconfined(profile)) in profile_path_perm() 275 struct aa_profile *profile; in aa_path_perm() local 329 profile->path_flags, in profile_path_link() 336 profile->path_flags, in profile_path_link() 431 struct aa_profile *profile; in aa_path_link() local 476 struct aa_profile *profile; in __file_path_perm() local 514 profile, &file->f_path, in __file_path_perm() [all …]
|
| H A D | net.c | 109 int aa_profile_af_perm(struct aa_profile *profile, in aa_profile_af_perm() argument 122 if (profile_unconfined(profile)) in aa_profile_af_perm() 133 aa_apply_modes_to_perms(profile, &perms); 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() 161 struct aa_profile *profile; in aa_label_sk_perm() local 165 error = fn_for_each_confined(label, profile, in aa_label_sk_perm() 251 aa_apply_modes_to_perms(profile, &perms); in aa_secmark_perm() 259 struct aa_profile *profile; in apparmor_secmark_check() local 262 return fn_for_each_confined(label, profile, in apparmor_secmark_check() [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 | 706 if (!profile->data) in query_data() 1115 if (profile->hash) { in seq_profile_hash_show() 1523 if (!profile) in __aafs_profile_rmdir() 1586 for (depth = 0; profile; profile = rcu_access_pointer(profile->parent)) in profile_depth() 1688 AA_BUG(!profile); in __aafs_profile_mkdir() 1717 mangle_name(profile->base.name, profile->dirname); in __aafs_profile_mkdir() 1718 sprintf(profile->dirname + len, ".%ld", profile->ns->uniq_id++); in __aafs_profile_mkdir() 1744 if (profile->hash) { in __aafs_profile_mkdir() 2220 profile = next_profile(root, profile); in p_start() 2222 return profile; in p_start() [all …]
|
| H A D | policy_unpack.c | 860 if (!profile) { in unpack_profile() 941 profile->path_flags |= profile->label.flags & in unpack_profile() 1048 profile->data = kzalloc(sizeof(*profile->data), GFP_KERNEL); in unpack_profile() 1049 if (!profile->data) { in unpack_profile() 1104 return profile; in unpack_profile() 1114 if (profile) in unpack_profile() 1119 aa_free_profile(profile); in unpack_profile() 1435 if (IS_ERR(profile)) { in aa_unpack() 1436 error = PTR_ERR(profile); in aa_unpack() 1456 ent->new = profile; in aa_unpack() [all …]
|
| H A D | audit.c | 120 struct aa_profile *profile = labels_profile(label); in audit_pre() local 122 if (profile->ns != root_ns) { in audit_pre() 125 profile->ns->base.hname); in audit_pre() 128 audit_log_untrustedstring(ab, profile->base.hname); in audit_pre() 166 int aa_audit(int type, struct aa_profile *profile, in aa_audit() argument 170 AA_BUG(!profile); in aa_audit() 174 if (AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit() 177 } else if (COMPLAIN_MODE(profile)) in aa_audit() 182 if (AUDIT_MODE(profile) == AUDIT_QUIET || in aa_audit() 184 AUDIT_MODE(profile) == AUDIT_QUIET_DENIED)) in aa_audit() [all …]
|
| H A D | task.c | 227 struct aa_profile *profile, in profile_ptrace_perm() argument 239 aa_apply_modes_to_perms(profile, &perms); 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 323 ad->subj_label = &profile->label; in aa_profile_ns_perm() 326 if (!profile_unconfined(profile)) { in aa_profile_ns_perm() 337 aa_apply_modes_to_perms(profile, &perms); in aa_profile_ns_perm() [all …]
|
| /linux-6.15/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, 71 int (*derive_sw_secret)(struct blk_crypto_profile *profile, 85 int (*import_key)(struct blk_crypto_profile *profile, 99 int (*generate_key)(struct blk_crypto_profile *profile, 113 int (*prepare_key)(struct blk_crypto_profile *profile, 195 int blk_crypto_profile_init(struct blk_crypto_profile *profile, 199 struct blk_crypto_profile *profile, 208 int blk_crypto_import_key(struct blk_crypto_profile *profile, 212 int blk_crypto_generate_key(struct blk_crypto_profile *profile, [all …]
|
| /linux-6.15/Documentation/userspace-api/ |
| H A D | sysfs-platform_profile.rst | 16 API for selecting the platform profile of these automatic mechanisms. 18 Note that this API is only for selecting the platform profile, it is 34 a fixed set of profile names. Drivers *must* map their internal profile 37 If there is no good match when mapping then a new profile name may be 38 added. Drivers which wish to introduce new profile names must: 40 1. Explain why the existing profile names cannot be used. 41 2. Add the new profile name, along with a clear description of the 44 "Custom" profile support 58 all handlers don't support a profile. 74 platform profile handler core will display the profile 'custom' to indicate [all …]
|
| /linux-6.15/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | ppatomfwctrl.c | 212 if (!profile) in pp_atomfwctrl_get_avfs_information() 259 profile->enable_gb_vdroop_table_ckson; in pp_atomfwctrl_get_avfs_information() 261 profile->enable_gb_fuse_table_ckson; in pp_atomfwctrl_get_avfs_information() 266 le32_to_cpu(profile->dispclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 278 le32_to_cpu(profile->pixclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 280 le32_to_cpu(profile->pixclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 282 le32_to_cpu(profile->pixclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() 284 le32_to_cpu(profile->phyclk2gfxclk_a); in pp_atomfwctrl_get_avfs_information() 286 le32_to_cpu(profile->phyclk2gfxclk_b); in pp_atomfwctrl_get_avfs_information() 288 le32_to_cpu(profile->phyclk2gfxclk_c); in pp_atomfwctrl_get_avfs_information() [all …]
|
| H A D | ppatomctrl.c | 1038 if (!profile) in atomctrl_get_avfs_information() 1130 if (!profile) in atomctrl_get_leakage_vddc_base_on_leakage() 1136 leakage_bin = (u16 *)((char *)profile + profile->usLeakageBinArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1137 vddc_id_buf = (u16 *)((char *)profile + profile->usElbVDDC_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1138 vddc_buf = (u16 *)((char *)profile + profile->usElbVDDC_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1139 if (profile->ucElbVDDC_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage() 1153 vddci_id_buf = (u16 *)((char *)profile + profile->usElbVDDCI_IdArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1154 vddci_buf = (u16 *)((char *)profile + profile->usElbVDDCI_LevelArrayOffset); in atomctrl_get_leakage_vddc_base_on_leakage() 1155 if (profile->ucElbVDDCI_Num > 0) { in atomctrl_get_leakage_vddc_base_on_leakage() 1176 void *profile; in atomctrl_get_voltage_range() local [all …]
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-class-platform-profile | 1 What: /sys/class/platform-profile/platform-profile-X/name 8 What: /sys/class/platform-profile/platform-profile-X/choices 14 Drivers must use the following standard profile-names: 26 custom Driver defined custom profile 31 What: /sys/class/platform-profile/platform-profile-X/profile 34 Description: Reading this file gives the current selected profile for this 36 platform_profile_choices changes the profile to the new value. 41 source such as e.g. a hotkey triggered profile change handled 46 that the driver is using a driver defined custom profile.
|
| /linux-6.15/drivers/mmc/host/ |
| H A D | cqhci-crypto.c | 26 cqhci_host_from_crypto_profile(struct blk_crypto_profile *profile) in cqhci_host_from_crypto_profile() argument 28 return mmc_from_crypto_profile(profile)->cqe_private; in cqhci_host_from_crypto_profile() 165 struct blk_crypto_profile *profile = &mmc->crypto_profile; in cqhci_crypto_init() local 197 dev, profile, cq_host->crypto_capabilities.config_count + 1); in cqhci_crypto_init() 201 profile->ll_ops = cqhci_crypto_ops; in cqhci_crypto_init() 202 profile->dev = dev; in cqhci_crypto_init() 205 profile->max_dun_bytes_supported = 4; in cqhci_crypto_init() 207 profile->key_types_supported = BLK_CRYPTO_KEY_TYPE_RAW; in cqhci_crypto_init() 223 profile->modes_supported[blk_mode_num] |= in cqhci_crypto_init() 230 for (slot = 0; slot < profile->num_slots; slot++) in cqhci_crypto_init() [all …]
|
| /linux-6.15/sound/soc/sof/ |
| H A D | fw-file-profile.c | 15 struct sof_loadable_file_profile *profile, in sof_test_firmware_file() argument 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() 73 if (!profile->tplg_path || !profile->tplg_name) in sof_test_topology_file() 77 profile->tplg_name); in sof_test_topology_file() 271 if (ipc_type != profile->ipc_type) in sof_print_profile_info() 274 profile->ipc_type, ipc_type); in sof_print_profile_info() 281 profile->fw_path, profile->fw_name); in sof_print_profile_info() 283 if (profile->fw_lib_path) in sof_print_profile_info() [all …]
|
| /linux-6.15/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. 30 button settings. A profile holds information like resolution, 35 Which profile to write is determined by the profile number 52 keystrokes for a specific button for a specific profile. 53 Button and profile numbers are included in written data. 56 which profile and key to read. [all …]
|
| H A D | sysfs-driver-hid-roccat-koneplus | 8 When written, this file sets the number of the startup profile 9 and the mouse activates this profile immediately. 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 61 When written, this file lets one write the respective profile 64 Which profile to write is determined by the profile number 67 which profile to read. 76 When read, these files return the respective profile buttons. 92 Which profile to write is determined by the profile number [all …]
|
| /linux-6.15/drivers/acpi/ |
| H A D | platform_profile.c | 130 *profile = val; in get_class_profile() 185 err = get_class_profile(dev, &profile); in profile_show() 222 static DEVICE_ATTR_RW(profile); 230 ATTRIBUTE_GROUPS(profile); 344 if (*profile != PLATFORM_PROFILE_LAST && *profile != val) in _aggregate_profiles() 345 *profile = PLATFORM_PROFILE_CUSTOM; in _aggregate_profiles() 347 *profile = val; in _aggregate_profiles() 387 &profile, _aggregate_profiles); in platform_profile_show() 393 if (profile == PLATFORM_PROFILE_LAST) in platform_profile_show() 510 profile == PLATFORM_PROFILE_LAST) in platform_profile_cycle() [all …]
|