Lines Matching refs:rptr
815 union cmdret rptr = CMDRET_ZERO; in writearm() local
819 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
820 rptr.retlongs[0] &= (~mask); in writearm()
824 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
825 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
826 if ((rptr.retlongs[0] & data) == data) { in writearm()
830 rptr.retlongs[0] &= ~mask; in writearm()
941 union cmdret rptr = CMDRET_ZERO; in setmixer() local
947 SEND_RDGV(cif, num, num, &rptr); in setmixer()
948 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
975 union cmdret rptr = CMDRET_ZERO; in getsourcesink() local
977 if (SEND_RSSV(cif, source, sink, &rptr) && in getsourcesink()
978 SEND_RSSV(cif, source, sink, &rptr)) in getsourcesink()
980 *a = rptr.retbytes[0]; in getsourcesink()
981 *b = rptr.retbytes[1]; in getsourcesink()
992 union cmdret rptr = CMDRET_ZERO; in getsamplerate() local
997 if (SEND_RSRC(cif, *s, &rptr) && in getsamplerate()
998 SEND_RSRC(cif, *s, &rptr)) in getsamplerate()
1000 p[i] += rptr.retwords[1]; in getsamplerate()
1001 p[i] *= rptr.retwords[2]; in getsamplerate()
1002 p[i] += rptr.retwords[3]; in getsamplerate()
1044 union cmdret rptr = CMDRET_ZERO; in setsamplerate() local
1057 SEND_RSRC(cif, *intdec, &rptr); in setsamplerate()
1058 } while (rptr.retwords[1] != D && in setsamplerate()
1059 rptr.retwords[2] != M && in setsamplerate()
1060 rptr.retwords[3] != N && in setsamplerate()
1077 union cmdret rptr = CMDRET_ZERO; in getmixer() local
1079 if (SEND_RDGV(cif, num, num, &rptr) && SEND_RDGV(cif, num, num, &rptr)) in getmixer()
1081 *rval = rptr.retwords[0]; in getmixer()
1082 *lval = rptr.retwords[1]; in getmixer()
1254 union cmdret rptr = CMDRET_ZERO; in riptide_reset() local
1275 SEND_RACR(cif, AC97_RESET, &rptr); in riptide_reset()
1276 snd_printdd("AC97: 0x%x 0x%x\n", rptr.retlongs[0], rptr.retlongs[1]); in riptide_reset()
1364 union cmdret rptr = CMDRET_ZERO; in snd_riptide_pointer() local
1367 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_pointer()
1371 data->id, rptr.retlongs[1], rptr.retlongs[1] % data->size, in snd_riptide_pointer()
1372 bytes_to_frames(runtime, rptr.retlongs[1]), in snd_riptide_pointer()
1374 rptr.retlongs[1]) % runtime->period_size); in snd_riptide_pointer()
1375 if (rptr.retlongs[1] > data->pointer) in snd_riptide_pointer()
1378 rptr.retlongs[1] % data->size); in snd_riptide_pointer()
1397 union cmdret rptr = CMDRET_ZERO; in snd_riptide_trigger() local
1424 i = rptr.retlongs[1]; in snd_riptide_trigger()
1425 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_trigger()
1427 } while (i != rptr.retlongs[1] && j++ < MAX_WRITE_RETRY); in snd_riptide_trigger()
1747 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_write() local
1756 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_write()
1757 } while (rptr.retwords[1] != val && i++ < MAX_WRITE_RETRY); in snd_riptide_codec_write()
1767 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_read() local
1772 if (SEND_RACR(cif, reg, &rptr) != 0) in snd_riptide_codec_read()
1773 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_read()
1774 snd_printdd("Read AC97 reg 0x%x got 0x%x\n", reg, rptr.retwords[1]); in snd_riptide_codec_read()
1775 return rptr.retwords[1]; in snd_riptide_codec_read()