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