Lines Matching refs:idx
30 unsigned int idx,addr; in pvr2_encoder_write_words() local
51 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_write_words()
52 addr = idx + offs; in pvr2_encoder_write_words()
56 PVR2_DECOMPOSE_LE(hdw->cmd_buffer, bAddr,data[idx]); in pvr2_encoder_write_words()
76 unsigned int idx; in pvr2_encoder_read_words() local
110 for (idx = 0; idx < chunkCnt; idx++) { in pvr2_encoder_read_words()
111 data[idx] = PVR2_COMPOSE_LE(hdw->cmd_buffer,idx*4); in pvr2_encoder_read_words()
137 unsigned int idx; in pvr2_encoder_cmd() local
205 for (idx = 0; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd()
206 wrData[idx+4] = argp[idx]; in pvr2_encoder_cmd()
208 for (; idx < ARRAY_SIZE(wrData) - 4; idx++) { in pvr2_encoder_cmd()
209 wrData[idx+4] = 0; in pvr2_encoder_cmd()
212 ret = pvr2_encoder_write_words(hdw,MBOX_BASE,wrData,idx); in pvr2_encoder_cmd()
243 for (idx = 4; idx < arg_cnt_send; idx++) { in pvr2_encoder_cmd()
247 idx-3,wrData[idx]); in pvr2_encoder_cmd()
280 for (idx = 0; idx < arg_cnt_recv; idx++) { in pvr2_encoder_cmd()
281 argp[idx] = rdData[idx+4]; in pvr2_encoder_cmd()
298 unsigned int idx; in pvr2_encoder_vcmd() local
310 for (idx = 0; idx < args; idx++) { in pvr2_encoder_vcmd()
311 data[idx] = va_arg(vl, u32); in pvr2_encoder_vcmd()