Home
last modified time | relevance | path

Searched refs:sad (Results 1 – 25 of 26) sorted by relevance

12

/linux-6.6.21/sound/core/
Dpcm_drm_eld.c34 static unsigned int map_rate_families(const u8 *sad, in map_rate_families() argument
41 if (sad[1] & SAD1_RATE_32000_MASK) in map_rate_families()
43 if (sad[1] & (SAD1_RATE_44100_MASK | SAD1_RATE_88200_MASK | SAD1_RATE_176400_MASK)) in map_rate_families()
45 if (sad[1] & (SAD1_RATE_48000_MASK | SAD1_RATE_96000_MASK | SAD1_RATE_192000_MASK)) in map_rate_families()
50 static unsigned int sad_rate_mask(const u8 *sad) in sad_rate_mask() argument
52 switch (FIELD_GET(SAD0_FORMAT_MASK, sad[0])) { in sad_rate_mask()
54 return sad[1] & SAD1_RATE_MASK; in sad_rate_mask()
57 return map_rate_families(sad, in sad_rate_mask()
64 return map_rate_families(sad, in sad_rate_mask()
70 return sad[1] & SAD1_RATE_MASK; in sad_rate_mask()
[all …]
/linux-6.6.21/include/trace/events/
Davc.h16 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-6.6.21/drivers/gpu/drm/radeon/
Ddce3_1_afmt.c93 struct cea_sad *sad = &sads[j]; in dce3_2_afmt_write_sad_regs() local
95 if (sad->format == eld_reg_to_type[i][1]) { in dce3_2_afmt_write_sad_regs()
96 if (sad->channels > max_channels) { in dce3_2_afmt_write_sad_regs()
97 value = MAX_CHANNELS(sad->channels) | in dce3_2_afmt_write_sad_regs()
98 DESCRIPTOR_BYTE_2(sad->byte2) | in dce3_2_afmt_write_sad_regs()
99 SUPPORTED_FREQUENCIES(sad->freq); in dce3_2_afmt_write_sad_regs()
100 max_channels = sad->channels; in dce3_2_afmt_write_sad_regs()
103 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce3_2_afmt_write_sad_regs()
104 stereo_freqs |= sad->freq; in dce3_2_afmt_write_sad_regs()
Ddce6_afmt.c235 struct cea_sad *sad = &sads[j]; in dce6_afmt_write_sad_regs() local
237 if (sad->format == eld_reg_to_type[i][1]) { in dce6_afmt_write_sad_regs()
238 if (sad->channels > max_channels) { in dce6_afmt_write_sad_regs()
239 value = MAX_CHANNELS(sad->channels) | in dce6_afmt_write_sad_regs()
240 DESCRIPTOR_BYTE_2(sad->byte2) | in dce6_afmt_write_sad_regs()
241 SUPPORTED_FREQUENCIES(sad->freq); in dce6_afmt_write_sad_regs()
242 max_channels = sad->channels; in dce6_afmt_write_sad_regs()
245 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce6_afmt_write_sad_regs()
246 stereo_freqs |= sad->freq; in dce6_afmt_write_sad_regs()
Devergreen_hdmi.c183 struct cea_sad *sad = &sads[j]; in evergreen_hdmi_write_sad_regs() local
185 if (sad->format == eld_reg_to_type[i][1]) { in evergreen_hdmi_write_sad_regs()
186 if (sad->channels > max_channels) { in evergreen_hdmi_write_sad_regs()
187 value = MAX_CHANNELS(sad->channels) | in evergreen_hdmi_write_sad_regs()
188 DESCRIPTOR_BYTE_2(sad->byte2) | in evergreen_hdmi_write_sad_regs()
189 SUPPORTED_FREQUENCIES(sad->freq); in evergreen_hdmi_write_sad_regs()
190 max_channels = sad->channels; in evergreen_hdmi_write_sad_regs()
193 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in evergreen_hdmi_write_sad_regs()
194 stereo_freqs |= sad->freq; in evergreen_hdmi_write_sad_regs()
/linux-6.6.21/security/smack/
Dsmack_access.c314 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 …]
Dsmack.h270 struct smack_audit_data sad; member
437 memset(&a->sad, 0, sizeof(a->sad)); in smk_ad_init()
439 a->a.smack_audit_data = &a->sad; in smk_ad_init()
/linux-6.6.21/drivers/edac/
Dskx_base.c221 #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-6.6.21/security/selinux/
Davc.c656 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_pre_callback() local
657 u32 av = sad->audited, perm; in avc_audit_pre_callback()
661 audit_log_format(ab, "avc: %s ", sad->denied ? "denied" : "granted"); in avc_audit_pre_callback()
668 perms = secclass_map[sad->tclass-1].perms; in avc_audit_pre_callback()
697 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_post_callback() local
705 rc = security_sid_to_context(sad->ssid, &scontext, in avc_audit_post_callback()
708 audit_log_format(ab, " ssid=%d", sad->ssid); in avc_audit_post_callback()
712 rc = security_sid_to_context(sad->tsid, &tcontext, in avc_audit_post_callback()
715 audit_log_format(ab, " tsid=%d", sad->tsid); in avc_audit_post_callback()
719 tclass = secclass_map[sad->tclass-1].name; in avc_audit_post_callback()
[all …]
/linux-6.6.21/sound/pci/hda/
Dhda_eld.c270 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()
Dhda_local.h689 struct cea_sad sad[ELD_MAX_SAD]; member
/linux-6.6.21/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c132 struct cea_sad *sad = &sads[i]; in dm_helpers_parse_edid_caps() local
134 edid_caps->audio_modes[i].format_code = sad->format; in dm_helpers_parse_edid_caps()
135 edid_caps->audio_modes[i].channel_count = sad->channels + 1; in dm_helpers_parse_edid_caps()
136 edid_caps->audio_modes[i].sample_rate = sad->freq; in dm_helpers_parse_edid_caps()
137 edid_caps->audio_modes[i].sample_size = sad->byte2; in dm_helpers_parse_edid_caps()
/linux-6.6.21/sound/soc/codecs/
Dhdac_hdmi.c295 static unsigned int sad_format(const u8 *sad) in sad_format() argument
297 return ((sad[0] >> 0x3) & 0x1f); in sad_format()
300 static unsigned int sad_sample_bits_lpcm(const u8 *sad) in sad_sample_bits_lpcm() argument
302 return (sad[2] & 7); in sad_sample_bits_lpcm()
310 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats() local
312 sad = drm_eld_sad(eld_buf); in hdac_hdmi_eld_limit_formats()
313 if (!sad) in hdac_hdmi_eld_limit_formats()
316 for (i = drm_eld_sad_count(eld_buf); i > 0; i--, sad += 3) { in hdac_hdmi_eld_limit_formats()
317 if (sad_format(sad) == 1) { /* AUDIO_CODING_TYPE_LPCM */ in hdac_hdmi_eld_limit_formats()
323 if (sad_sample_bits_lpcm(sad) & 0x6) in hdac_hdmi_eld_limit_formats()
/linux-6.6.21/include/drm/
Ddrm_edid.h328 #define DRM_ELD_CEA_SAD(mnl, sad) (20 + (mnl) + 3 * (sad)) argument
/linux-6.6.21/fs/udf/
Dinode.c2112 struct short_ad *sad; in udf_write_aext() local
2125 sad = (struct short_ad *)ptr; in udf_write_aext()
2126 sad->extLength = cpu_to_le32(elen); in udf_write_aext()
2127 sad->extPosition = cpu_to_le32(eloc->logicalBlockNum); in udf_write_aext()
2202 struct short_ad *sad; in udf_current_aext() local
2225 sad = udf_get_fileshortad(ptr, alen, &epos->offset, inc); in udf_current_aext()
2226 if (!sad) in udf_current_aext()
2228 etype = le32_to_cpu(sad->extLength) >> 30; in udf_current_aext()
2229 eloc->logicalBlockNum = le32_to_cpu(sad->extPosition); in udf_current_aext()
2232 *elen = le32_to_cpu(sad->extLength) & UDF_EXTENT_LENGTH_MASK; in udf_current_aext()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/api/
Ddatapath.h458 struct iwl_sad_properties sad; member
/linux-6.6.21/Documentation/usb/
Diuu_phoenix.rst71 so sad to have a nice device like the iuu without seeing all color range available.
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Ddce_v6_0.c1291 struct cea_sad *sad = &sads[j]; in dce_v6_0_audio_write_sad_regs() local
1293 if (sad->format == eld_reg_to_type[i][1]) { in dce_v6_0_audio_write_sad_regs()
1294 if (sad->channels > max_channels) { in dce_v6_0_audio_write_sad_regs()
1296 MAX_CHANNELS, sad->channels); in dce_v6_0_audio_write_sad_regs()
1298 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v6_0_audio_write_sad_regs()
1300 SUPPORTED_FREQUENCIES, sad->freq); in dce_v6_0_audio_write_sad_regs()
1301 max_channels = sad->channels; in dce_v6_0_audio_write_sad_regs()
1304 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v6_0_audio_write_sad_regs()
1305 stereo_freqs |= sad->freq; in dce_v6_0_audio_write_sad_regs()
Ddce_v8_0.c1340 struct cea_sad *sad = &sads[j]; in dce_v8_0_audio_write_sad_regs() local
1342 if (sad->format == eld_reg_to_type[i][1]) { in dce_v8_0_audio_write_sad_regs()
1343 if (sad->channels > max_channels) { in dce_v8_0_audio_write_sad_regs()
1344 value = (sad->channels << in dce_v8_0_audio_write_sad_regs()
1346 (sad->byte2 << in dce_v8_0_audio_write_sad_regs()
1348 (sad->freq << in dce_v8_0_audio_write_sad_regs()
1350 max_channels = sad->channels; in dce_v8_0_audio_write_sad_regs()
1353 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v8_0_audio_write_sad_regs()
1354 stereo_freqs |= sad->freq; in dce_v8_0_audio_write_sad_regs()
Ddce_v10_0.c1383 struct cea_sad *sad = &sads[j]; in dce_v10_0_audio_write_sad_regs() local
1385 if (sad->format == eld_reg_to_type[i][1]) { in dce_v10_0_audio_write_sad_regs()
1386 if (sad->channels > max_channels) { in dce_v10_0_audio_write_sad_regs()
1388 MAX_CHANNELS, sad->channels); in dce_v10_0_audio_write_sad_regs()
1390 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v10_0_audio_write_sad_regs()
1392 SUPPORTED_FREQUENCIES, sad->freq); in dce_v10_0_audio_write_sad_regs()
1393 max_channels = sad->channels; in dce_v10_0_audio_write_sad_regs()
1396 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v10_0_audio_write_sad_regs()
1397 stereo_freqs |= sad->freq; in dce_v10_0_audio_write_sad_regs()
Ddce_v11_0.c1415 struct cea_sad *sad = &sads[j]; in dce_v11_0_audio_write_sad_regs() local
1417 if (sad->format == eld_reg_to_type[i][1]) { in dce_v11_0_audio_write_sad_regs()
1418 if (sad->channels > max_channels) { in dce_v11_0_audio_write_sad_regs()
1420 MAX_CHANNELS, sad->channels); in dce_v11_0_audio_write_sad_regs()
1422 DESCRIPTOR_BYTE_2, sad->byte2); in dce_v11_0_audio_write_sad_regs()
1424 SUPPORTED_FREQUENCIES, sad->freq); in dce_v11_0_audio_write_sad_regs()
1425 max_channels = sad->channels; in dce_v11_0_audio_write_sad_regs()
1428 if (sad->format == HDMI_AUDIO_CODING_TYPE_PCM) in dce_v11_0_audio_write_sad_regs()
1429 stereo_freqs |= sad->freq; in dce_v11_0_audio_write_sad_regs()
/linux-6.6.21/Documentation/RCU/
DNMI-RCU.rst117 This same sad story can happen on other CPUs when using
/linux-6.6.21/drivers/gpu/drm/
Ddrm_edid.c5612 const u8 *sad = &db->data[j * 3]; in _drm_edid_to_sad() local
5614 (*sads)[j].format = (sad[0] & 0x78) >> 3; in _drm_edid_to_sad()
5615 (*sads)[j].channels = sad[0] & 0x7; in _drm_edid_to_sad()
5616 (*sads)[j].freq = sad[1] & 0x7F; in _drm_edid_to_sad()
5617 (*sads)[j].byte2 = sad[2]; in _drm_edid_to_sad()
/linux-6.6.21/Documentation/process/
D3.Early-stage.rst177 reaction, but, instead, little or no reaction at all. The sad truth of the
/linux-6.6.21/drivers/iommu/
DKconfig344 If you say Y here then you'll make me very sad. Instead, say N

12