Lines Matching refs:ix
284 int ix, len; in yealink_set_ringtone() local
300 ix = 0; in yealink_set_ringtone()
301 while (size != ix) { in yealink_set_ringtone()
302 len = size - ix; in yealink_set_ringtone()
306 p->offset = cpu_to_be16(ix); in yealink_set_ringtone()
307 memcpy(p->data, &buf[ix], len); in yealink_set_ringtone()
309 ix += len; in yealink_set_ringtone()
319 int i, ix, len; in yealink_do_idle_tasks() local
321 ix = yld->stat_ix; in yealink_do_idle_tasks()
329 if (ix >= sizeof(yld->master)) { in yealink_do_idle_tasks()
336 val = yld->master.b[ix]; in yealink_do_idle_tasks()
337 if (val != yld->copy.b[ix]) in yealink_do_idle_tasks()
339 } while (++ix < sizeof(yld->master)); in yealink_do_idle_tasks()
351 yld->copy.b[ix] = val; in yealink_do_idle_tasks()
354 switch(ix) { in yealink_do_idle_tasks()
376 len = sizeof(yld->master.s.lcd) - ix; in yealink_do_idle_tasks()
383 yld->ctl_data->offset = cpu_to_be16(ix); in yealink_do_idle_tasks()
385 yld->ctl_data->sum = -CMD_LCD - ix - val - len; in yealink_do_idle_tasks()
387 ix++; in yealink_do_idle_tasks()
388 val = yld->master.b[ix]; in yealink_do_idle_tasks()
389 yld->copy.b[ix] = val; in yealink_do_idle_tasks()
394 yld->stat_ix = ix + 1; in yealink_do_idle_tasks()