Lines Matching refs:pkt

1261 pkt2val (const unsigned char *pkt, unsigned int *pos)  in pkt2val()  argument
1268 int r = hex2nibble (pkt[*pos]); in pkt2val()
1316 handle_q_packet (const unsigned char *pkt, unsigned int pktlen) in handle_q_packet() argument
1333 if (pktlen == 2 && pkt[1] == 'C') in handle_q_packet()
1345 && ots$strcmp_eql (pkt, XFER_UIB_LEN, xfer_uib, XFER_UIB_LEN)) in handle_q_packet()
1368 pc = pkt2val (pkt, &pos); in handle_q_packet()
1369 if (pkt[pos] != ':') in handle_q_packet()
1372 off = pkt2val (pkt, &pos); in handle_q_packet()
1373 if (pkt[pos] != ',' || off != 0) in handle_q_packet()
1376 len = pkt2val (pkt, &pos); in handle_q_packet()
1377 if (pkt[pos] != '#' || len != 0x20) in handle_q_packet()
1396 && ots$strcmp_eql (pkt, QFTHREADINFO_LEN, in handle_q_packet()
1414 && ots$strcmp_eql (pkt, QSTHREADINFO_LEN, in handle_q_packet()
1439 && ots$strcmp_eql (pkt, QTHREADEXTRAINFO_LEN, in handle_q_packet()
1452 thr = (pthread_t) pkt2val (pkt, &pos); in handle_q_packet()
1453 if (pkt[pos] != '#') in handle_q_packet()
1466 && ots$strcmp_eql (pkt, QSUPPORTED_LEN, in handle_q_packet()
1487 term_write ((char *)pkt, pktlen); in handle_q_packet()
1497 handle_v_packet (const unsigned char *pkt, unsigned int pktlen) in handle_v_packet() argument
1503 && ots$strcmp_eql (pkt, VCONTQ_LEN, vcontq, VCONTQ_LEN)) in handle_v_packet()
1516 term_write ((char *)pkt, pktlen); in handle_v_packet()
1583 handle_packet (unsigned char *pkt, unsigned int len) in handle_packet() argument
1592 switch (pkt[0]) in handle_packet()
1625 if (pkt[1] == 'g') in handle_packet()
1632 val = pkt2val (pkt, &pos); in handle_packet()
1664 else if (pkt[1] == 'c' in handle_packet()
1665 && ((pkt[2] == '-' && pkt[3] == '1' && len == 4) in handle_packet()
1666 || (pkt[2] == '0' && len == 3))) in handle_packet()
1687 addr = pkt2val (pkt, &pos); in handle_packet()
1688 if (pkt[pos] != ',') in handle_packet()
1694 l = pkt2val (pkt, &pos); in handle_packet()
1695 if (pkt[pos] != '#') in handle_packet()
1731 addr = pkt2val (pkt, &pos); in handle_packet()
1732 if (pkt[pos] != ',') in handle_packet()
1738 l = pkt2val (pkt, &pos); in handle_packet()
1739 if (pkt[pos] != ':') in handle_packet()
1766 int v = hex2byte (pkt + pos); in handle_packet()
1786 num = pkt2val (pkt, &pos); in handle_packet()
1824 handle_q_packet (pkt, len); in handle_packet()
1849 val = pkt2val (pkt, &pos); in handle_packet()
1873 return handle_v_packet (pkt, len); in handle_packet()
1876 if (len > 3 && pkt[1] == 'M' && pkt[2] == 'S' && pkt[3] == ' ') in handle_packet()
1881 pkt[len] = 0; in handle_packet()
1882 stub_pthread_debug_cmd ((char *)pkt + 4); in handle_packet()
1893 term_write ((char *)pkt, len); in handle_packet()