Lines Matching refs:pos
261 int pos = 0; in pd_decode_command() local
266 pd->cmd_id = cmd.id = buf[pos++]; in pd_decode_command()
324 pos++; /* Skip reply type info. */ in pd_decode_command()
332 pos++; /* Skip reply type info. */ in pd_decode_command()
341 cmd.output.output_no = buf[pos++]; in pd_decode_command()
342 cmd.output.control_code = buf[pos++]; in pd_decode_command()
343 cmd.output.timer_count = buf[pos++]; in pd_decode_command()
344 cmd.output.timer_count |= buf[pos++] << 8; in pd_decode_command()
360 cmd.led.reader = buf[pos++]; in pd_decode_command()
361 cmd.led.led_number = buf[pos++]; in pd_decode_command()
363 cmd.led.temporary.control_code = buf[pos++]; in pd_decode_command()
364 cmd.led.temporary.on_count = buf[pos++]; in pd_decode_command()
365 cmd.led.temporary.off_count = buf[pos++]; in pd_decode_command()
366 cmd.led.temporary.on_color = buf[pos++]; in pd_decode_command()
367 cmd.led.temporary.off_color = buf[pos++]; in pd_decode_command()
368 cmd.led.temporary.timer_count = buf[pos++]; in pd_decode_command()
369 cmd.led.temporary.timer_count |= buf[pos++] << 8; in pd_decode_command()
371 cmd.led.permanent.control_code = buf[pos++]; in pd_decode_command()
372 cmd.led.permanent.on_count = buf[pos++]; in pd_decode_command()
373 cmd.led.permanent.off_count = buf[pos++]; in pd_decode_command()
374 cmd.led.permanent.on_color = buf[pos++]; in pd_decode_command()
375 cmd.led.permanent.off_color = buf[pos++]; in pd_decode_command()
391 cmd.buzzer.reader = buf[pos++]; in pd_decode_command()
392 cmd.buzzer.control_code = buf[pos++]; in pd_decode_command()
393 cmd.buzzer.on_count = buf[pos++]; in pd_decode_command()
394 cmd.buzzer.off_count = buf[pos++]; in pd_decode_command()
395 cmd.buzzer.rep_count = buf[pos++]; in pd_decode_command()
411 cmd.text.reader = buf[pos++]; in pd_decode_command()
412 cmd.text.control_code = buf[pos++]; in pd_decode_command()
413 cmd.text.temp_time = buf[pos++]; in pd_decode_command()
414 cmd.text.offset_row = buf[pos++]; in pd_decode_command()
415 cmd.text.offset_col = buf[pos++]; in pd_decode_command()
416 cmd.text.length = buf[pos++]; in pd_decode_command()
422 memcpy(cmd.text.data, buf + pos, cmd.text.length); in pd_decode_command()
438 cmd.comset.address = buf[pos++]; in pd_decode_command()
439 cmd.comset.baud_rate = buf[pos++]; in pd_decode_command()
440 cmd.comset.baud_rate |= buf[pos++] << 8; in pd_decode_command()
441 cmd.comset.baud_rate |= buf[pos++] << 16; in pd_decode_command()
442 cmd.comset.baud_rate |= buf[pos++] << 24; in pd_decode_command()
468 if (buf[pos] != 1 || buf[pos + 1] != 16) { in pd_decode_command()
470 buf[pos], buf[pos + 1]); in pd_decode_command()
488 cmd.keyset.type = buf[pos++]; in pd_decode_command()
489 cmd.keyset.length = buf[pos++]; in pd_decode_command()
490 memcpy(cmd.keyset.data, buf + pos, 16); in pd_decode_command()
514 memcpy(pd->sc.cp_random, buf + pos, 8); in pd_decode_command()
532 memcpy(pd->sc.cp_cryptogram, buf + pos, CMD_SCRYPT_DATA_LEN); in pd_decode_command()