/linux/sound/core/ |
H A D | pcm_drm_eld.c | 35 static unsigned int map_rate_families(const u8 *sad, in map_rate_families() argument 42 if (sad[1] & SAD1_RATE_32000_MASK) in map_rate_families() 44 if (sad[1] & (SAD1_RATE_44100_MASK | SAD1_RATE_88200_MASK | SAD1_RATE_176400_MASK)) in map_rate_families() 46 if (sad[1] & (SAD1_RATE_48000_MASK | SAD1_RATE_96000_MASK | SAD1_RATE_192000_MASK)) in map_rate_families() 51 static unsigned int sad_rate_mask(const u8 *sad) in sad_rate_mask() argument 53 switch (FIELD_GET(SAD0_FORMAT_MASK, sad[0])) { in sad_rate_mask() 55 return sad[1] & SAD1_RATE_MASK; in sad_rate_mask() 58 return map_rate_families(sad, in sad_rate_mask() 65 return map_rate_families(sad, in sad_rate_mask() 71 return sad[1] & SAD1_RATE_MASK; in sad_rate_mask() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_eld.c | 23 const u8 *sad; in drm_eld_sad_get() local 28 sad = eld + DRM_ELD_CEA_SAD(drm_eld_mnl(eld), sad_index); in drm_eld_sad_get() 30 drm_edid_cta_sad_set(cta_sad, sad); in drm_eld_sad_get() 46 u8 *sad; in drm_eld_sad_set() local 51 sad = eld + DRM_ELD_CEA_SAD(drm_eld_mnl(eld), sad_index); in drm_eld_sad_set() 53 drm_edid_cta_sad_get(cta_sad, sad); in drm_eld_sad_set()
|
H A D | drm_crtc_internal.h | 302 void drm_edid_cta_sad_get(const struct cea_sad *cta_sad, u8 *sad); 303 void drm_edid_cta_sad_set(struct cea_sad *cta_sad, const u8 *sad);
|
H A D | drm_edid.c | 5621 void drm_edid_cta_sad_get(const struct cea_sad *cta_sad, u8 *sad) in drm_edid_cta_sad_get() argument 5623 sad[0] = cta_sad->format << 3 | cta_sad->channels; in drm_edid_cta_sad_get() 5624 sad[1] = cta_sad->freq; in drm_edid_cta_sad_get() 5625 sad[2] = cta_sad->byte2; in drm_edid_cta_sad_get() 5631 void drm_edid_cta_sad_set(struct cea_sad *cta_sad, const u8 *sad) in drm_edid_cta_sad_set() argument 5633 cta_sad->format = (sad[0] & 0x78) >> 3; in drm_edid_cta_sad_set() 5634 cta_sad->channels = sad[0] & 0x07; in drm_edid_cta_sad_set() 5635 cta_sad->freq = sad[1] & 0x7f; in drm_edid_cta_sad_set() 5636 cta_sad->byte2 = sad[2]; in drm_edid_cta_sad_set()
|
/linux/include/trace/events/ |
H A D | avc.h | 16 TP_PROTO(struct selinux_audit_data *sad, 22 TP_ARGS(sad, scontext, tcontext, tclass), 35 __entry->requested = sad->requested; 36 __entry->denied = sad->denied; 37 __entry->audited = sad->audited; 38 __entry->result = sad->result;
|
/linux/drivers/gpu/drm/radeon/ |
H A D | dce3_1_afmt.c | 94 struct cea_sad *sad = &sads[j]; in dce3_2_afmt_write_sad_regs() local 96 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs() 97 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs() 98 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs() 99 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs() 100 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs() 101 max_channels = sad->channels; in dce3_2_afmt_write_sad_regs() 104 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce3_2_afmt_write_sad_regs() 105 stereo_freqs |= sad->freq; in dce3_2_afmt_write_sad_regs()
|
H A D | dce6_afmt.c | 236 struct cea_sad *sad = &sads[j]; in dce6_afmt_write_sad_regs() local 238 if (sad->format == eld_reg_to_type[i][1]) { in dce6_afmt_write_sad_regs() 239 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs() 240 value = MAX_CHANNELS(sad->channels) | in dce6_afmt_write_sad_regs() 241 DESCRIPTOR_BYTE_2(sad->byte2) | in dce6_afmt_write_sad_regs() 242 SUPPORTED_FREQUENCIES(sad->freq); in dce6_afmt_write_sad_regs() 243 max_channels = sad->channels; in dce6_afmt_write_sad_regs() 246 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce6_afmt_write_sad_regs() 247 stereo_freqs |= sad->freq; in dce6_afmt_write_sad_regs()
|
H A D | evergreen_hdmi.c | 184 struct cea_sad *sad = &sads[j]; in evergreen_hdmi_write_sad_regs() local 186 if (sad->format == eld_reg_to_type[i][1]) { in evergreen_hdmi_write_sad_regs() 187 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs() 188 value = MAX_CHANNELS(sad->channels) | in evergreen_hdmi_write_sad_regs() 189 DESCRIPTOR_BYTE_2(sad->byte2) | in evergreen_hdmi_write_sad_regs() 190 SUPPORTED_FREQUENCIES(sad->freq); in evergreen_hdmi_write_sad_regs() 191 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs() 194 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in evergreen_hdmi_write_sad_regs() 195 stereo_freqs |= sad->freq; in evergreen_hdmi_write_sad_regs()
|
/linux/security/smack/ |
H A D | smack_access.c | 314 struct smack_audit_data *sad = ad->smack_audit_data; in smack_log_callback() local 317 sad->result ? "denied" : "granted"); in smack_log_callback() 319 audit_log_untrustedstring(ab, sad->subject); in smack_log_callback() 321 audit_log_untrustedstring(ab, sad->object); in smack_log_callback() 322 if (sad->request[0] == '\0') in smack_log_callback() 325 audit_log_format(ab, " requested=%s", sad->request); in smack_log_callback() 347 struct smack_audit_data *sad; in smack_log() local 356 sad = a->smack_audit_data; in smack_log() 358 if (sad->function == NULL) in smack_log() 359 sad->function = "unknown"; in smack_log() [all …]
|
H A D | smack.h | 270 struct smack_audit_data sad; member 449 memset(&a->sad, 0, sizeof(a->sad)); in smk_ad_init() 451 a->a.smack_audit_data = &a->sad; in smk_ad_init()
|
/linux/drivers/edac/ |
H A D | skx_base.c | 221 #define SKX_SAD_MOD3MODE(sad) GET_BITFIELD((sad), 30, 31) argument 222 #define SKX_SAD_MOD3(sad) GET_BITFIELD((sad), 27, 27) argument 223 #define SKX_SAD_LIMIT(sad) (((u64)GET_BITFIELD((sad), 7, 26) << 26) | MASK26) argument 224 #define SKX_SAD_MOD3ASMOD2(sad) GET_BITFIELD((sad), 5, 6) argument 225 #define SKX_SAD_ATTR(sad) GET_BITFIELD((sad), 3, 4) argument 226 #define SKX_SAD_INTERLEAVE(sad) GET_BITFIELD((sad), 1, 2) argument 227 #define SKX_SAD_ENABLE(sad) GET_BITFIELD((sad), 0, 0) argument 271 u32 sad, ilv; in skx_sad_decode() local 284 SKX_GET_SAD(d, i, sad); in skx_sad_decode() 285 limit = SKX_SAD_LIMIT(sad); in skx_sad_decode() [all …]
|
/linux/security/selinux/ |
H A D | avc.c | 648 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_pre_callback() local 649 u32 av = sad->audited, perm; in avc_audit_pre_callback() 653 audit_log_format(ab, "avc: %s ", sad->denied ? "denied" : "granted"); in avc_audit_pre_callback() 660 perms = secclass_map[sad->tclass-1].perms; in avc_audit_pre_callback() 689 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_post_callback() local 697 rc = security_sid_to_context(sad->ssid, &scontext, in avc_audit_post_callback() 700 audit_log_format(ab, " ssid=%d", sad->ssid); in avc_audit_post_callback() 704 rc = security_sid_to_context(sad->tsid, &tcontext, in avc_audit_post_callback() 707 audit_log_format(ab, " tsid=%d", sad->tsid); in avc_audit_post_callback() 711 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback() [all …]
|
/linux/sound/pci/hda/ |
H A D | hda_eld.c | 270 hdmi_update_short_audio_desc(codec, e->sad + i, in snd_hdmi_parse_eld() 411 hdmi_show_short_audio_desc(codec, e->sad + i); in snd_hdmi_show_eld() 491 hdmi_print_sad_info(i, e->sad + i, buffer); in snd_hdmi_print_eld_info() 540 e->sad[n].format = val; in snd_hdmi_write_eld_info() 542 e->sad[n].channels = val; in snd_hdmi_write_eld_info() 544 e->sad[n].rates = val; in snd_hdmi_write_eld_info() 546 e->sad[n].sample_bits = val; in snd_hdmi_write_eld_info() 548 e->sad[n].max_bitrate = val; in snd_hdmi_write_eld_info() 550 e->sad[n].profile = val; in snd_hdmi_write_eld_info() 577 struct cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info()
|
H A D | hda_local.h | 689 struct cea_sad sad[ELD_MAX_SAD]; member
|
/linux/include/drm/ |
H A D | drm_eld.h | 69 #define DRM_ELD_CEA_SAD(mnl, sad) (20 + (mnl) + 3 * (sad)) argument
|
/linux/sound/soc/codecs/ |
H A D | hdac_hdmi.c | 296 static unsigned int sad_format(const u8 *sad) in sad_format() argument 298 return ((sad[0] >> 0x3) & 0x1f); in sad_format() 301 static unsigned int sad_sample_bits_lpcm(const u8 *sad) in sad_sample_bits_lpcm() argument 303 return (sad[2] & 7); in sad_sample_bits_lpcm() 311 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats() local 313 sad = drm_eld_sad(eld_buf); in hdac_hdmi_eld_limit_formats() 314 if (!sad) in hdac_hdmi_eld_limit_formats() 317 for (i = drm_eld_sad_count(eld_buf); i > 0; i--, sad += 3) { in hdac_hdmi_eld_limit_formats() 318 if (sad_format(sad) == 1) { /* AUDIO_CODING_TYPE_LPCM */ in hdac_hdmi_eld_limit_formats() 324 if (sad_sample_bits_lpcm(sad) & 0x6) in hdac_hdmi_eld_limit_formats()
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_helpers.c | 139 struct cea_sad *sad = &sads[i]; in dm_helpers_parse_edid_caps() local 141 edid_caps->audio_modes[i].format_code = sad->format; in dm_helpers_parse_edid_caps() 142 edid_caps->audio_modes[i].channel_count = sad->channels + 1; in dm_helpers_parse_edid_caps() 143 edid_caps->audio_modes[i].sample_rate = sad->freq; in dm_helpers_parse_edid_caps() 144 edid_caps->audio_modes[i].sample_size = sad->byte2; in dm_helpers_parse_edid_caps()
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | datapath.h | 470 struct iwl_sad_properties sad; member
|
/linux/Documentation/usb/ |
H A D | iuu_phoenix.rst | 71 so sad to have a nice device like the iuu without seeing all color range available.
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | dce_v6_0.c | 1308 struct cea_sad *sad = &sads[j]; in dce_v6_0_audio_write_sad_regs() local 1310 if (sad->format == eld_reg_to_type[i][1]) { in dce_v6_0_audio_write_sad_regs() 1311 if (sad->channels > max_channels) { in dce_v6_0_audio_write_sad_regs() 1313 MAX_CHANNELS, sad->channels); in dce_v6_0_audio_write_sad_regs() 1315 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v6_0_audio_write_sad_regs() 1317 SUPPORTED_FREQUENCIES, sad->freq); in dce_v6_0_audio_write_sad_regs() 1318 max_channels = sad->channels; in dce_v6_0_audio_write_sad_regs() 1321 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v6_0_audio_write_sad_regs() 1322 stereo_freqs |= sad->freq; in dce_v6_0_audio_write_sad_regs()
|
H A D | dce_v8_0.c | 1357 struct cea_sad *sad = &sads[j]; in dce_v8_0_audio_write_sad_regs() local 1359 if (sad->format == eld_reg_to_type[i][1]) { in dce_v8_0_audio_write_sad_regs() 1360 if (sad->channels > max_channels) { in dce_v8_0_audio_write_sad_regs() 1361 value = (sad->channels << in dce_v8_0_audio_write_sad_regs() 1363 (sad->byte2 << in dce_v8_0_audio_write_sad_regs() 1365 (sad->freq << in dce_v8_0_audio_write_sad_regs() 1367 max_channels = sad->channels; in dce_v8_0_audio_write_sad_regs() 1370 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v8_0_audio_write_sad_regs() 1371 stereo_freqs |= sad->freq; in dce_v8_0_audio_write_sad_regs()
|
H A D | dce_v10_0.c | 1386 struct cea_sad *sad = &sads[j]; in dce_v10_0_audio_write_sad_regs() local 1388 if (sad->format == eld_reg_to_type[i][1]) { in dce_v10_0_audio_write_sad_regs() 1389 if (sad->channels > max_channels) { in dce_v10_0_audio_write_sad_regs() 1391 MAX_CHANNELS, sad->channels); in dce_v10_0_audio_write_sad_regs() 1393 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v10_0_audio_write_sad_regs() 1395 SUPPORTED_FREQUENCIES, sad->freq); in dce_v10_0_audio_write_sad_regs() 1396 max_channels = sad->channels; in dce_v10_0_audio_write_sad_regs() 1399 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v10_0_audio_write_sad_regs() 1400 stereo_freqs |= sad->freq; in dce_v10_0_audio_write_sad_regs()
|
H A D | dce_v11_0.c | 1418 struct cea_sad *sad = &sads[j]; in dce_v11_0_audio_write_sad_regs() local 1420 if (sad->format == eld_reg_to_type[i][1]) { in dce_v11_0_audio_write_sad_regs() 1421 if (sad->channels > max_channels) { in dce_v11_0_audio_write_sad_regs() 1423 MAX_CHANNELS, sad->channels); in dce_v11_0_audio_write_sad_regs() 1425 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v11_0_audio_write_sad_regs() 1427 SUPPORTED_FREQUENCIES, sad->freq); in dce_v11_0_audio_write_sad_regs() 1428 max_channels = sad->channels; in dce_v11_0_audio_write_sad_regs() 1431 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v11_0_audio_write_sad_regs() 1432 stereo_freqs |= sad->freq; in dce_v11_0_audio_write_sad_regs()
|
/linux/Documentation/RCU/ |
H A D | NMI-RCU.rst | 117 This same sad story can happen on other CPUs when using
|
/linux/Documentation/process/ |
H A D | 3.Early-stage.rst | 177 reaction, but, instead, little or no reaction at all. The sad truth of the
|