Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/
H A Ddrm_eld.c23 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 Ddrm_edid.c5678 void drm_edid_cta_sad_get(const struct cea_sad *cta_sad, u8 *sad) in drm_edid_cta_sad_get() argument
5680 sad[0] = cta_sad->format << 3 | cta_sad->channels; in drm_edid_cta_sad_get()
5681 sad[1] = cta_sad->freq; in drm_edid_cta_sad_get()
5682 sad[2] = cta_sad->byte2; in drm_edid_cta_sad_get()
5688 void drm_edid_cta_sad_set(struct cea_sad *cta_sad, const u8 *sad) in drm_edid_cta_sad_set() argument
5690 cta_sad->format = (sad[0] & 0x78) >> 3; in drm_edid_cta_sad_set()
5691 cta_sad->channels = sad[0] & 0x07; in drm_edid_cta_sad_set()
5692 cta_sad->freq = sad[1] & 0x7f; in drm_edid_cta_sad_set()
5693 cta_sad->byte2 = sad[2]; in drm_edid_cta_sad_set()
/linux/include/trace/events/
H A 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/drivers/gpu/drm/radeon/
H A Ddce3_1_afmt.c94 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 Ddce6_afmt.c236 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 Devergreen_hdmi.c184 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 Dsmack_access.c322 struct smack_audit_data *sad = ad->smack_audit_data; in smack_log_callback() local
325 sad->result ? "denied" : "granted"); in smack_log_callback()
327 audit_log_untrustedstring(ab, sad->subject); in smack_log_callback()
329 audit_log_untrustedstring(ab, sad->object); in smack_log_callback()
330 if (sad->request[0] == '\0') in smack_log_callback()
333 audit_log_format(ab, " requested=%s", sad->request); in smack_log_callback()
335 if (sad->subj_tsk) {
339 task_tgid_nr(sad->subj_tsk));
341 get_task_comm(comm, sad->subj_tsk));
364 struct smack_audit_data *sad; in smack_log()
355 struct smack_audit_data *sad; smack_log() local
[all...]
H A Dsmack.h275 struct smack_audit_data sad;
475 memset(&a->sad, 0, sizeof(a->sad)); in smk_ad_init()
477 a->a.smack_audit_data = &a->sad; in smk_ad_init()
274 struct smack_audit_data sad; global() member
/linux/sound/hda/codecs/hdmi/
H A Deld.c170 e->sad[n].format = val; in snd_hdmi_write_eld_info()
172 e->sad[n].channels = val; in snd_hdmi_write_eld_info()
174 e->sad[n].rates = val; in snd_hdmi_write_eld_info()
176 e->sad[n].sample_bits = val; in snd_hdmi_write_eld_info()
178 e->sad[n].max_bitrate = val; in snd_hdmi_write_eld_info()
180 e->sad[n].profile = val; in snd_hdmi_write_eld_info()
207 struct snd_cea_sad *a = &e->sad[i]; in snd_hdmi_eld_update_pcm_info()
/linux/include/uapi/linux/
H A Dgpib_ioctl.h31 __s32 sad; member
41 __s32 sad; member
58 __s32 sad; member
71 __s32 sad; member
76 __s32 sad; member
105 __s32 sad; member
/linux/security/selinux/
H A Davc.c653 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_pre_callback()
654 u32 av = sad->audited, perm; in avc_audit_pre_callback() local
658 audit_log_format(ab, "avc: %s ", sad->denied ? "denied" : "granted"); in avc_audit_pre_callback()
665 perms = secclass_map[sad->tclass-1].perms; in avc_audit_pre_callback()
694 struct selinux_audit_data *sad = ad->selinux_audit_data; in avc_audit_post_callback()
702 rc = security_sid_to_context(sad->ssid, &scontext, in avc_audit_post_callback()
705 audit_log_format(ab, " ssid=%d", sad->ssid); in avc_audit_post_callback()
709 rc = security_sid_to_context(sad->tsid, &tcontext, in avc_audit_post_callback()
712 audit_log_format(ab, " tsid=%d", sad->tsid); in avc_audit_post_callback()
716 tclass = secclass_map[sad in avc_audit_post_callback()
695 struct selinux_audit_data *sad = ad->selinux_audit_data; avc_audit_post_callback() local
759 struct selinux_audit_data sad; slow_avc_audit() local
[all...]
/linux/drivers/gpib/common/
H A Dibsys.h31 unsigned int pad, int sad);
32 int get_serial_poll_byte(struct gpib_board *board, unsigned int pad, int sad,
/linux/drivers/gpib/include/
H A Dgpib_types.h298 int sad; member
345 int sad; /* secondary gpib address (negative means disabled) */ member
365 int sad; /* secondary gpib address (negative means disabled) */ member
H A Dgpib_proto.h23 int dvrsp(struct gpib_board *board, unsigned int pad, int sad,
/linux/include/drm/
H A Ddrm_eld.h69 #define DRM_ELD_CEA_SAD(mnl, sad) (20 + (mnl) + 3 * (sad)) argument
/linux/drivers/gpib/tms9914/
H A Dtms9914.c636 if (board->sad < 0) in check_my_address_state()
638 } else if (board->sad >= 0 && priv->primary_listen_addressed && in check_my_address_state()
639 cmd_byte == MSA(board->sad)) { in check_my_address_state()
649 if (board->sad < 0) in check_my_address_state()
652 } else if (board->sad >= 0 && priv->primary_talk_addressed && in check_my_address_state()
653 cmd_byte == MSA(board->sad)) { in check_my_address_state()
805 if (board->sad < 0) in tms9914_interrupt_have_status()
807 if ((read_byte(priv, CPTR) & gpib_command_mask) == MSA(board->sad)) in tms9914_interrupt_have_status()
853 tms9914_secondary_address(board, priv, board->sad, board->sad >= 0); in tms9914_online()
/linux/sound/soc/codecs/
H A Dhdac_hdmi.c295 static unsigned int sad_format(const u8 *sad) in sad_format()
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()
302 return (sad[2] & 7); in sad_sample_bits_lpcm()
310 const u8 *sad, *eld_buf = eld; in hdac_hdmi_eld_limit_formats()
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) in hdac_hdmi_eld_limit_formats()
294 sad_format(const u8 * sad) sad_format() argument
299 sad_sample_bits_lpcm(const u8 * sad) sad_sample_bits_lpcm() argument
309 const u8 *sad, *eld_buf = eld; hdac_hdmi_eld_limit_formats() local
[all...]
/linux/fs/udf/
H A Dinode.c2165 struct short_ad *sad; in udf_write_aext() local
2178 sad = (struct short_ad *)ptr; in udf_write_aext()
2179 sad->extLength = cpu_to_le32(elen); in udf_write_aext()
2180 sad->extPosition = cpu_to_le32(eloc->logicalBlockNum); in udf_write_aext()
2265 struct short_ad *sad; in udf_current_aext() local
2294 sad = udf_get_fileshortad(ptr, alen, &epos->offset, inc); in udf_current_aext()
2295 if (!sad) in udf_current_aext()
2297 *etype = le32_to_cpu(sad->extLength) >> 30; in udf_current_aext()
2298 eloc->logicalBlockNum = le32_to_cpu(sad->extPosition); in udf_current_aext()
2301 *elen = le32_to_cpu(sad->extLength) & UDF_EXTENT_LENGTH_MASK; in udf_current_aext()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_helpers.c226 struct cea_sad *sad = &sads[i]; in dm_helpers_parse_edid_caps() local
228 edid_caps->audio_modes[i].format_code = sad->format; in dm_helpers_parse_edid_caps()
229 edid_caps->audio_modes[i].channel_count = sad->channels + 1; in dm_helpers_parse_edid_caps()
230 edid_caps->audio_modes[i].sample_rate = sad->freq; in dm_helpers_parse_edid_caps()
231 edid_caps->audio_modes[i].sample_size = sad->byte2; in dm_helpers_parse_edid_caps()
/linux/Documentation/usb/
H A Diuu_phoenix.rst71 so sad to have a nice device like the iuu without seeing all color range available.
/linux/Documentation/RCU/
H A DNMI-RCU.rst117 This same sad story can happen on other CPUs when using
/linux/drivers/gpib/nec7210/
H A Dnec7210.c1006 nec7210_secondary_address(board, priv, board->sad, board->sad >= 0); in nec7210_board_online()
/linux/Documentation/process/
H A D3.Early-stage.rst177 reaction, but, instead, little or no reaction at all. The sad truth of the
/linux/Documentation/driver-api/usb/
H A Dpower-management.rst246 management. Nevertheless, the sad fact is that many devices do not