Lines Matching defs:ofs
61 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs)
63 *ofs += PT3_ACCESS_UNIT;
64 if (*ofs >= DATA_BUF_SZ) {
65 *ofs -= DATA_BUF_SZ;
70 return &adap->buffer[*idx].data[*ofs];
75 int idx, ofs;
78 ofs = adap->buf_ofs;
80 if (adap->buffer[idx].data[ofs] == PT3_BUF_CANARY)
83 while (*next_unit(adap, &idx, &ofs) != PT3_BUF_CANARY) {
93 adap->buffer[idx].data, ofs / TS_PACKET_SZ);
100 adap->buf_ofs = ofs;
107 int idx, ofs;
111 ofs = 0;
115 p[ofs] = PT3_BUF_CANARY;
116 ofs += PT3_ACCESS_UNIT;
117 if (ofs >= DATA_BUF_SZ) {
118 ofs -= DATA_BUF_SZ;
150 int idx, ofs;
170 ofs = 0;
188 data_addr = adap->buffer[idx].b_addr + ofs;
198 ofs += DATA_XFER_SZ;
199 if (ofs >= DATA_BUF_SZ) {
200 ofs -= DATA_BUF_SZ;