Lines Matching refs:rxbuf
74 u8 rxbuf[CAN327_SIZE_RXBUF]; member
342 if (can327_rxbuf_cmp(elm->rxbuf, len, "UNABLE TO CONNECT")) { in can327_parse_error()
345 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUFFER FULL")) { in can327_parse_error()
352 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUS ERROR")) { in can327_parse_error()
354 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "CAN ERROR")) { in can327_parse_error()
356 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "<RX ERROR")) { in can327_parse_error()
358 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "BUS BUSY")) { in can327_parse_error()
361 } else if (can327_rxbuf_cmp(elm->rxbuf, len, "FB ERROR")) { in can327_parse_error()
364 } else if (len == 5 && !memcmp(elm->rxbuf, "ERR", 3)) { in can327_parse_error()
367 elm->rxbuf[3], elm->rxbuf[4]); in can327_parse_error()
411 if (hex_to_bin(elm->rxbuf[hexlen]) < 0 && in can327_parse_frame()
412 elm->rxbuf[hexlen] != ' ') { in can327_parse_frame()
420 if (hexlen < len && !isdigit(elm->rxbuf[hexlen]) && in can327_parse_frame()
421 !isupper(elm->rxbuf[hexlen]) && '<' != elm->rxbuf[hexlen] && in can327_parse_frame()
422 ' ' != elm->rxbuf[hexlen]) { in can327_parse_frame()
434 if (elm->rxbuf[2] == ' ' && elm->rxbuf[5] == ' ' && in can327_parse_frame()
435 elm->rxbuf[8] == ' ' && elm->rxbuf[11] == ' ' && in can327_parse_frame()
436 elm->rxbuf[13] == ' ') { in can327_parse_frame()
439 } else if (elm->rxbuf[3] == ' ' && elm->rxbuf[5] == ' ') { in can327_parse_frame()
462 frame->len = (hex_to_bin(elm->rxbuf[datastart - 2]) << 0); in can327_parse_frame()
466 frame->can_id |= (hex_to_bin(elm->rxbuf[0]) << 28) | in can327_parse_frame()
467 (hex_to_bin(elm->rxbuf[1]) << 24) | in can327_parse_frame()
468 (hex_to_bin(elm->rxbuf[3]) << 20) | in can327_parse_frame()
469 (hex_to_bin(elm->rxbuf[4]) << 16) | in can327_parse_frame()
470 (hex_to_bin(elm->rxbuf[6]) << 12) | in can327_parse_frame()
471 (hex_to_bin(elm->rxbuf[7]) << 8) | in can327_parse_frame()
472 (hex_to_bin(elm->rxbuf[9]) << 4) | in can327_parse_frame()
473 (hex_to_bin(elm->rxbuf[10]) << 0); in can327_parse_frame()
475 frame->can_id |= (hex_to_bin(elm->rxbuf[0]) << 8) | in can327_parse_frame()
476 (hex_to_bin(elm->rxbuf[1]) << 4) | in can327_parse_frame()
477 (hex_to_bin(elm->rxbuf[2]) << 0); in can327_parse_frame()
482 !memcmp(&elm->rxbuf[hexlen], "RTR", 3)) { in can327_parse_frame()
511 (hex_to_bin(elm->rxbuf[datastart + 3 * i]) << 4) | in can327_parse_frame()
512 (hex_to_bin(elm->rxbuf[datastart + 3 * i + 1])); in can327_parse_frame()
533 } else if (!memcmp(elm->rxbuf, "AT", 2)) { in can327_parse_line()
662 memmove(&elm->rxbuf[0], &elm->rxbuf[i], CAN327_SIZE_RXBUF - i); in can327_drop_bytes()
680 if (elm->rxbuf[pos] == CAN327_DUMMY_CHAR) { in can327_parse_rxbuf()
685 } else if (can327_is_ready_char(elm->rxbuf[pos])) { in can327_parse_rxbuf()
697 if (can327_is_ready_char(elm->rxbuf[elm->rxfill - 1])) in can327_parse_rxbuf()
706 while (len < elm->rxfill && elm->rxbuf[len] != '\r') in can327_parse_rxbuf()
717 if (can327_is_ready_char(elm->rxbuf[elm->rxfill - 1])) { in can327_parse_rxbuf()
933 elm->rxbuf[elm->rxfill++] = *cp; in can327_ldisc_rx()