Lines Matching refs:ix
282 int ix, len; in yealink_set_ringtone() local
298 ix = 0; in yealink_set_ringtone()
299 while (size != ix) { in yealink_set_ringtone()
300 len = size - ix; in yealink_set_ringtone()
304 p->offset = cpu_to_be16(ix); in yealink_set_ringtone()
305 memcpy(p->data, &buf[ix], len); in yealink_set_ringtone()
307 ix += len; in yealink_set_ringtone()
317 int i, ix, len; in yealink_do_idle_tasks() local
319 ix = yld->stat_ix; in yealink_do_idle_tasks()
327 if (ix >= sizeof(yld->master)) { in yealink_do_idle_tasks()
334 val = yld->master.b[ix]; in yealink_do_idle_tasks()
335 if (val != yld->copy.b[ix]) in yealink_do_idle_tasks()
337 } while (++ix < sizeof(yld->master)); in yealink_do_idle_tasks()
349 yld->copy.b[ix] = val; in yealink_do_idle_tasks()
352 switch(ix) { in yealink_do_idle_tasks()
374 len = sizeof(yld->master.s.lcd) - ix; in yealink_do_idle_tasks()
381 yld->ctl_data->offset = cpu_to_be16(ix); in yealink_do_idle_tasks()
383 yld->ctl_data->sum = -CMD_LCD - ix - val - len; in yealink_do_idle_tasks()
385 ix++; in yealink_do_idle_tasks()
386 val = yld->master.b[ix]; in yealink_do_idle_tasks()
387 yld->copy.b[ix] = val; in yealink_do_idle_tasks()
392 yld->stat_ix = ix + 1; in yealink_do_idle_tasks()