Lines Matching refs:rptr

799 	union cmdret rptr = CMDRET_ZERO;  in writearm()  local
803 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
804 rptr.retlongs[0] &= (~mask); in writearm()
808 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
809 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
810 if ((rptr.retlongs[0] & data) == data) { in writearm()
814 rptr.retlongs[0] &= ~mask; in writearm()
925 union cmdret rptr = CMDRET_ZERO; in setmixer() local
931 SEND_RDGV(cif, num, num, &rptr); in setmixer()
932 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
959 union cmdret rptr = CMDRET_ZERO; in getsourcesink() local
961 if (SEND_RSSV(cif, source, sink, &rptr) && in getsourcesink()
962 SEND_RSSV(cif, source, sink, &rptr)) in getsourcesink()
964 *a = rptr.retbytes[0]; in getsourcesink()
965 *b = rptr.retbytes[1]; in getsourcesink()
976 union cmdret rptr = CMDRET_ZERO; in getsamplerate() local
981 if (SEND_RSRC(cif, *s, &rptr) && in getsamplerate()
982 SEND_RSRC(cif, *s, &rptr)) in getsamplerate()
984 p[i] += rptr.retwords[1]; in getsamplerate()
985 p[i] *= rptr.retwords[2]; in getsamplerate()
986 p[i] += rptr.retwords[3]; in getsamplerate()
1028 union cmdret rptr = CMDRET_ZERO; in setsamplerate() local
1041 SEND_RSRC(cif, *intdec, &rptr); in setsamplerate()
1042 } while (rptr.retwords[1] != D && in setsamplerate()
1043 rptr.retwords[2] != M && in setsamplerate()
1044 rptr.retwords[3] != N && in setsamplerate()
1061 union cmdret rptr = CMDRET_ZERO; in getmixer() local
1063 if (SEND_RDGV(cif, num, num, &rptr) && SEND_RDGV(cif, num, num, &rptr)) in getmixer()
1065 *rval = rptr.retwords[0]; in getmixer()
1066 *lval = rptr.retwords[1]; in getmixer()
1245 union cmdret rptr = CMDRET_ZERO; in riptide_reset() local
1266 SEND_RACR(cif, AC97_RESET, &rptr); in riptide_reset()
1267 snd_printdd("AC97: 0x%x 0x%x\n", rptr.retlongs[0], rptr.retlongs[1]); in riptide_reset()
1355 union cmdret rptr = CMDRET_ZERO; in snd_riptide_pointer() local
1358 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_pointer()
1362 data->id, rptr.retlongs[1], rptr.retlongs[1] % data->size, in snd_riptide_pointer()
1363 bytes_to_frames(runtime, rptr.retlongs[1]), in snd_riptide_pointer()
1365 rptr.retlongs[1]) % runtime->period_size); in snd_riptide_pointer()
1366 if (rptr.retlongs[1] > data->pointer) in snd_riptide_pointer()
1369 rptr.retlongs[1] % data->size); in snd_riptide_pointer()
1388 union cmdret rptr = CMDRET_ZERO; in snd_riptide_trigger() local
1415 i = rptr.retlongs[1]; in snd_riptide_trigger()
1416 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_trigger()
1418 } while (i != rptr.retlongs[1] && j++ < MAX_WRITE_RETRY); in snd_riptide_trigger()
1733 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_write() local
1742 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_write()
1743 } while (rptr.retwords[1] != val && i++ < MAX_WRITE_RETRY); in snd_riptide_codec_write()
1753 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_read() local
1758 if (SEND_RACR(cif, reg, &rptr) != 0) in snd_riptide_codec_read()
1759 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_read()
1760 snd_printdd("Read AC97 reg 0x%x got 0x%x\n", reg, rptr.retwords[1]); in snd_riptide_codec_read()
1761 return rptr.retwords[1]; in snd_riptide_codec_read()