Lines Matching defs:buf
90 static void hisi_ptt_print_pkt(const unsigned char *buf, int pos, const char *desc)
98 color_fprintf(stdout, color, "%02x ", buf[pos + i]);
104 static int hisi_ptt_8dw_kpt_desc(const unsigned char *buf, int pos)
115 hisi_ptt_print_pkt(buf, pos, hisi_ptt_8dw_pkt_field_name[i]);
122 static void hisi_ptt_4dw_print_dw0(const unsigned char *buf, int pos)
128 dw0.value = *(uint32_t *)(buf + pos);
132 color_fprintf(stdout, color, "%02x ", buf[pos + i]);
143 static int hisi_ptt_4dw_kpt_desc(const unsigned char *buf, int pos)
147 hisi_ptt_4dw_print_dw0(buf, pos);
151 hisi_ptt_print_pkt(buf, pos, hisi_ptt_4dw_pkt_field_name[i]);
158 int hisi_ptt_pkt_desc(const unsigned char *buf, int pos, enum hisi_ptt_pkt_type type)
161 return hisi_ptt_8dw_kpt_desc(buf, pos);
163 return hisi_ptt_4dw_kpt_desc(buf, pos);