Lines Matching refs:pos
637 int pos, i; in snd_hdmi_get_eld_ati() local
660 pos = ELD_FIXED_BYTES; in snd_hdmi_get_eld_ati()
694 buf[pos++] = snd_hda_codec_read(codec, nid, 0, ATI_VERB_GET_SINK_INFO_DATA, 0); in snd_hdmi_get_eld_ati()
710 buf[pos++] = (ati_sad & 0x0000ff) >> 0; in snd_hdmi_get_eld_ati()
711 buf[pos++] = (ati_sad & 0x00ff00) >> 8; in snd_hdmi_get_eld_ati()
712 buf[pos++] = (ati_sad & 0xff0000) >> 16; in snd_hdmi_get_eld_ati()
719 buf[pos++] = ((ati_sad & 0x000000ff) & ~ATI_AUDIODESC_CHANNELS) | 0x1; in snd_hdmi_get_eld_ati()
721 buf[pos++] = (ati_sad & 0xff000000) >> 24; in snd_hdmi_get_eld_ati()
722 buf[pos++] = (ati_sad & 0x00ff0000) >> 16; in snd_hdmi_get_eld_ati()
726 if (pos == ELD_FIXED_BYTES + sink_desc_len) { in snd_hdmi_get_eld_ati()
756 buf[5] |= ((pos - ELD_FIXED_BYTES - sink_desc_len) / 3) << 4; in snd_hdmi_get_eld_ati()
759 pos = round_up(pos, 4); in snd_hdmi_get_eld_ati()
762 buf[2] = (pos - 4) / 4; in snd_hdmi_get_eld_ati()
764 *eld_size = pos; in snd_hdmi_get_eld_ati()