Lines Matching refs:str

13 	char *str;  member
21 static int komeda_sprintf(struct komeda_str *str, const char *fmt, ...) in komeda_sprintf() argument
27 free_sz = str->sz - str->len - 1; in komeda_sprintf()
33 num = vsnprintf(str->str + str->len, free_sz, fmt, args); in komeda_sprintf()
38 str->len += num; in komeda_sprintf()
41 str->len = str->sz - 1; in komeda_sprintf()
48 static void evt_sprintf(struct komeda_str *str, u64 evt, const char *msg) in evt_sprintf() argument
51 komeda_sprintf(str, msg); in evt_sprintf()
54 static void evt_str(struct komeda_str *str, u64 events) in evt_str() argument
57 komeda_sprintf(str, "None"); in evt_str()
61 evt_sprintf(str, events & KOMEDA_EVENT_VSYNC, "VSYNC|"); in evt_str()
62 evt_sprintf(str, events & KOMEDA_EVENT_FLIP, "FLIP|"); in evt_str()
63 evt_sprintf(str, events & KOMEDA_EVENT_EOW, "EOW|"); in evt_str()
64 evt_sprintf(str, events & KOMEDA_EVENT_MODE, "OP-MODE|"); in evt_str()
66 evt_sprintf(str, events & KOMEDA_EVENT_URUN, "UNDERRUN|"); in evt_str()
67 evt_sprintf(str, events & KOMEDA_EVENT_OVR, "OVERRUN|"); in evt_str()
70 evt_sprintf(str, events & KOMEDA_ERR_MERR, "MERR|"); in evt_str()
71 evt_sprintf(str, events & KOMEDA_ERR_FRAMETO, "FRAMETO|"); in evt_str()
74 evt_sprintf(str, events & KOMEDA_ERR_DRIFTTO, "DRIFTTO|"); in evt_str()
75 evt_sprintf(str, events & KOMEDA_ERR_FRAMETO, "FRAMETO|"); in evt_str()
76 evt_sprintf(str, events & KOMEDA_ERR_TETO, "TETO|"); in evt_str()
77 evt_sprintf(str, events & KOMEDA_ERR_CSCE, "CSCE|"); in evt_str()
80 evt_sprintf(str, events & KOMEDA_EVENT_IBSY, "IBSY|"); in evt_str()
81 evt_sprintf(str, events & KOMEDA_EVENT_EMPTY, "EMPTY|"); in evt_str()
82 evt_sprintf(str, events & KOMEDA_EVENT_FULL, "FULL|"); in evt_str()
83 evt_sprintf(str, events & KOMEDA_ERR_AXIE, "AXIE|"); in evt_str()
84 evt_sprintf(str, events & KOMEDA_ERR_ACE0, "ACE0|"); in evt_str()
85 evt_sprintf(str, events & KOMEDA_ERR_ACE1, "ACE1|"); in evt_str()
86 evt_sprintf(str, events & KOMEDA_ERR_ACE2, "ACE2|"); in evt_str()
87 evt_sprintf(str, events & KOMEDA_ERR_ACE3, "ACE3|"); in evt_str()
90 evt_sprintf(str, events & KOMEDA_ERR_TCF, "TCF|"); in evt_str()
91 evt_sprintf(str, events & KOMEDA_ERR_TTNG, "TTNG|"); in evt_str()
92 evt_sprintf(str, events & KOMEDA_ERR_TITR, "TITR|"); in evt_str()
93 evt_sprintf(str, events & KOMEDA_ERR_TEMR, "TEMR|"); in evt_str()
94 evt_sprintf(str, events & KOMEDA_ERR_TTF, "TTF|"); in evt_str()
97 evt_sprintf(str, events & KOMEDA_ERR_CPE, "COPROC|"); in evt_str()
98 evt_sprintf(str, events & KOMEDA_ERR_ZME, "ZME|"); in evt_str()
99 evt_sprintf(str, events & KOMEDA_ERR_CFGE, "CFGE|"); in evt_str()
100 evt_sprintf(str, events & KOMEDA_ERR_TEMR, "TEMR|"); in evt_str()
102 if (str->len > 0 && (str->str[str->len - 1] == '|')) { in evt_str()
103 str->str[str->len - 1] = 0; in evt_str()
104 str->len--; in evt_str()
137 struct komeda_str str; in komeda_print_events() local
140 str.str = msg; in komeda_print_events()
141 str.sz = sizeof(msg); in komeda_print_events()
142 str.len = 0; in komeda_print_events()
144 komeda_sprintf(&str, "gcu: "); in komeda_print_events()
145 evt_str(&str, evts->global); in komeda_print_events()
146 komeda_sprintf(&str, ", pipes[0]: "); in komeda_print_events()
147 evt_str(&str, evts->pipes[0]); in komeda_print_events()
148 komeda_sprintf(&str, ", pipes[1]: "); in komeda_print_events()
149 evt_str(&str, evts->pipes[1]); in komeda_print_events()