Lines Matching refs:rptr

798 	union cmdret rptr = CMDRET_ZERO;  in writearm()  local
802 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
803 rptr.retlongs[0] &= (~mask); in writearm()
807 SEND_WMEM(cif, 0x02, (rptr.retlongs[0] | data)); in writearm()
808 SEND_RMEM(cif, 0x02, addr, &rptr); in writearm()
809 if ((rptr.retlongs[0] & data) == data) { in writearm()
813 rptr.retlongs[0] &= ~mask; in writearm()
924 union cmdret rptr = CMDRET_ZERO; in setmixer() local
930 SEND_RDGV(cif, num, num, &rptr); in setmixer()
931 if (rptr.retwords[0] == lval && rptr.retwords[1] == rval) in setmixer()
958 union cmdret rptr = CMDRET_ZERO; in getsourcesink() local
960 if (SEND_RSSV(cif, source, sink, &rptr) && in getsourcesink()
961 SEND_RSSV(cif, source, sink, &rptr)) in getsourcesink()
963 *a = rptr.retbytes[0]; in getsourcesink()
964 *b = rptr.retbytes[1]; in getsourcesink()
975 union cmdret rptr = CMDRET_ZERO; in getsamplerate() local
980 if (SEND_RSRC(cif, *s, &rptr) && in getsamplerate()
981 SEND_RSRC(cif, *s, &rptr)) in getsamplerate()
983 p[i] += rptr.retwords[1]; in getsamplerate()
984 p[i] *= rptr.retwords[2]; in getsamplerate()
985 p[i] += rptr.retwords[3]; in getsamplerate()
1027 union cmdret rptr = CMDRET_ZERO; in setsamplerate() local
1040 SEND_RSRC(cif, *intdec, &rptr); in setsamplerate()
1041 } while (rptr.retwords[1] != D && in setsamplerate()
1042 rptr.retwords[2] != M && in setsamplerate()
1043 rptr.retwords[3] != N && in setsamplerate()
1060 union cmdret rptr = CMDRET_ZERO; in getmixer() local
1062 if (SEND_RDGV(cif, num, num, &rptr) && SEND_RDGV(cif, num, num, &rptr)) in getmixer()
1064 *rval = rptr.retwords[0]; in getmixer()
1065 *lval = rptr.retwords[1]; in getmixer()
1239 union cmdret rptr = CMDRET_ZERO; in riptide_reset() local
1260 SEND_RACR(cif, AC97_RESET, &rptr); in riptide_reset()
1261 dev_dbg(cif->dev, "AC97: 0x%x 0x%x\n", rptr.retlongs[0], rptr.retlongs[1]); in riptide_reset()
1349 union cmdret rptr = CMDRET_ZERO; in snd_riptide_pointer() local
1352 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_pointer()
1356 data->id, rptr.retlongs[1], rptr.retlongs[1] % data->size, in snd_riptide_pointer()
1357 bytes_to_frames(runtime, rptr.retlongs[1]), in snd_riptide_pointer()
1359 rptr.retlongs[1]) % runtime->period_size); in snd_riptide_pointer()
1360 if (rptr.retlongs[1] > data->pointer) in snd_riptide_pointer()
1363 rptr.retlongs[1] % data->size); in snd_riptide_pointer()
1383 union cmdret rptr = CMDRET_ZERO; in snd_riptide_trigger() local
1410 i = rptr.retlongs[1]; in snd_riptide_trigger()
1411 SEND_GPOS(cif, 0, data->id, &rptr); in snd_riptide_trigger()
1413 } while (i != rptr.retlongs[1] && j++ < MAX_WRITE_RETRY); in snd_riptide_trigger()
1728 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_write() local
1737 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_write()
1738 } while (rptr.retwords[1] != val && i++ < MAX_WRITE_RETRY); in snd_riptide_codec_write()
1748 union cmdret rptr = CMDRET_ZERO; in snd_riptide_codec_read() local
1753 if (SEND_RACR(cif, reg, &rptr) != 0) in snd_riptide_codec_read()
1754 SEND_RACR(cif, reg, &rptr); in snd_riptide_codec_read()
1755 dev_dbg(cif->dev, "Read AC97 reg 0x%x got 0x%x\n", reg, rptr.retwords[1]); in snd_riptide_codec_read()
1756 return rptr.retwords[1]; in snd_riptide_codec_read()