Lines Matching refs:comset
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()
443 if (cmd.comset.address >= 0x7F || in pd_decode_command()
444 (cmd.comset.baud_rate != 9600 && in pd_decode_command()
445 cmd.comset.baud_rate != 19200 && in pd_decode_command()
446 cmd.comset.baud_rate != 38400 && in pd_decode_command()
447 cmd.comset.baud_rate != 115200 && in pd_decode_command()
448 cmd.comset.baud_rate != 230400)) { in pd_decode_command()
450 cmd.comset.address = pd->address; in pd_decode_command()
451 cmd.comset.baud_rate = pd->baud_rate; in pd_decode_command()
713 buf[len++] = cmd->comset.address; in pd_build_reply()
714 buf[len++] = BYTE_0(cmd->comset.baud_rate); in pd_build_reply()
715 buf[len++] = BYTE_1(cmd->comset.baud_rate); in pd_build_reply()
716 buf[len++] = BYTE_2(cmd->comset.baud_rate); in pd_build_reply()
717 buf[len++] = BYTE_3(cmd->comset.baud_rate); in pd_build_reply()
719 pd->address = (int)cmd->comset.address; in pd_build_reply()
720 pd->baud_rate = (int)cmd->comset.baud_rate; in pd_build_reply()