Lines Matching defs:pos
90 static void hisi_ptt_print_pkt(const unsigned char *buf, int pos, const char *desc)
96 color_fprintf(stdout, color, " %08x: ", pos);
98 color_fprintf(stdout, color, "%02x ", buf[pos + i]);
104 static int hisi_ptt_8dw_kpt_desc(const unsigned char *buf, int pos)
111 pos += HISI_PTT_FIELD_LENTH;
115 hisi_ptt_print_pkt(buf, pos, hisi_ptt_8dw_pkt_field_name[i]);
116 pos += HISI_PTT_FIELD_LENTH;
122 static void hisi_ptt_4dw_print_dw0(const unsigned char *buf, int pos)
128 dw0.value = *(uint32_t *)(buf + pos);
130 color_fprintf(stdout, color, " %08x: ", 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);
148 pos += HISI_PTT_FIELD_LENTH;
151 hisi_ptt_print_pkt(buf, pos, hisi_ptt_4dw_pkt_field_name[i]);
152 pos += HISI_PTT_FIELD_LENTH;
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);