Lines Matching +full:0 +full:v
51 return 0; in out_func()
63 p->current = 0; in stp_write_putNibble()
73 stp_write_putNibble(systh, p, 0); in stp_write_flush()
78 struct stp_writer_data *p, mipi_syst_u8 v) in stp_write_d4() argument
80 stp_write_putNibble(systh, p, v); in stp_write_d4()
84 struct stp_writer_data *p, mipi_syst_u8 v) in stp_write_payload8() argument
86 stp_write_d4(systh, p, v); in stp_write_payload8()
87 stp_write_d4(systh, p, v>>4); in stp_write_payload8()
91 struct stp_writer_data *p, mipi_syst_u16 v) in stp_write_payload16() argument
93 stp_write_payload8(systh, p, (mipi_syst_u8)v); in stp_write_payload16()
94 stp_write_payload8(systh, p, (mipi_syst_u8)(v>>8)); in stp_write_payload16()
98 struct stp_writer_data *p, mipi_syst_u32 v) in stp_write_payload32() argument
100 stp_write_payload16(systh, p, (mipi_syst_u16)v); in stp_write_payload32()
101 stp_write_payload16(systh, p, (mipi_syst_u16)(v>>16)); in stp_write_payload32()
105 struct stp_writer_data *p, mipi_syst_u64 v) in stp_write_payload64() argument
107 stp_write_payload32(systh, p, (mipi_syst_u32)v); in stp_write_payload64()
108 stp_write_payload32(systh, p, (mipi_syst_u32)(v>>32)); in stp_write_payload64()
120 struct stp_writer_data *p, mipi_syst_u32 v) in stp_write_d32mts() argument
122 stp_write_d4(systh, p, 0xA); in stp_write_d32mts()
123 stp_write_payload32(systh, p, v); in stp_write_d32mts()
125 stp_write_d4(systh, p, 0xE); in stp_write_d32mts()
130 struct stp_writer_data *p, mipi_syst_u64 v) in stp_write_d64mts() argument
132 stp_write_d4(systh, p, 0xB); in stp_write_d64mts()
133 stp_write_payload64(systh, p, v); in stp_write_d64mts()
135 stp_write_d4(systh, p, 0xE); in stp_write_d64mts()
140 struct stp_writer_data *p, mipi_syst_u32 v) in stp_write_d32ts() argument
142 stp_write_d4(systh, p, 0xF); in stp_write_d32ts()
143 stp_write_d4(systh, p, 0x6); in stp_write_d32ts()
145 stp_write_payload32(systh, p, v); in stp_write_d32ts()
147 stp_write_d4(systh, p, 0xE); in stp_write_d32ts()
152 struct stp_writer_data *p, mipi_syst_u8 v) in stp_write_d8() argument
154 stp_write_d4(systh, p, 0x4); in stp_write_d8()
155 stp_write_payload8(systh, p, v); in stp_write_d8()
159 struct stp_writer_data *p, mipi_syst_u16 v) in stp_write_d16() argument
161 stp_write_d4(systh, p, 0x5); in stp_write_d16()
162 stp_write_payload16(systh, p, v); in stp_write_d16()
166 struct stp_writer_data *p, mipi_syst_u32 v) in stp_write_d32() argument
168 stp_write_d4(systh, p, 0x6); in stp_write_d32()
169 stp_write_payload32(systh, p, v); in stp_write_d32()
174 struct stp_writer_data *p, mipi_syst_u64 v) in stp_write_d64() argument
176 stp_write_d4(systh, p, 0x7); in stp_write_d64()
177 stp_write_payload64(systh, p, v); in stp_write_d64()
184 stp_write_d4(systh, p, 0xF); in stp_write_flag()
185 stp_write_d4(systh, p, 0xE); in stp_write_flag()
191 for (int i = 0; i < 21; ++i) { in stp_write_async()
192 stp_write_d4(systh, p, 0xF); in stp_write_async()
195 stp_write_d4(systh, p, 0x0); in stp_write_async()
201 stp_write_d4(systh, p, 0xF); in stp_write_version()
202 stp_write_d4(systh, p, 0x0); in stp_write_version()
203 stp_write_d4(systh, p, 0x0); in stp_write_version()
205 stp_write_d4(systh, p, 0x3); in stp_write_version()
207 p->master = 0; in stp_write_version()
208 p->channel = 0; in stp_write_version()
214 stp_write_d4(systh, p, 0xF); in stp_write_freq()
215 stp_write_d4(systh, p, 0x0); in stp_write_freq()
216 stp_write_d4(systh, p, 0x8); in stp_write_freq()
232 stp_write_d4(systh, p, 0xF); in stp_write_setMC()
233 stp_write_d4(systh, p, 0x1); in stp_write_setMC()
237 p->channel = 0; in stp_write_setMC()
241 stp_write_d4(systh, p, 0xF); in stp_write_setMC()
242 stp_write_d4(systh, p, 0x3); in stp_write_setMC()
255 for (i = n - 1; i >= 0; --i) {
257 for (i = 0; i < n; ++i) {
263 out_func(valToHex[c >> 0x4], systh->systh_platform.log_output);
264 out_func(valToHex[c & 0xF], systh->systh_platform.log_output);
270 static void write_d8(struct mipi_syst_handle *systh, uint8_t v) argument
276 stp_write_d8(systh, writer, v);
278 write_raw(systh, &v, sizeof(v));
282 static void write_d16(struct mipi_syst_handle *systh, uint16_t v) argument
288 stp_write_d16(systh, writer, v);
290 write_raw(systh, &v, sizeof(v));
294 static void write_d32(struct mipi_syst_handle *systh, uint32_t v) argument
300 stp_write_d32(systh, writer, v);
302 write_raw(systh, &v, sizeof(v));
307 static void write_d64(struct mipi_syst_handle *systh, uint64_t v) argument
313 stp_write_d64(systh, writer, v);
315 write_raw(systh, &v, sizeof(v));
320 static void write_d32ts(struct mipi_syst_handle *systh, uint32_t v) argument
329 stp_write_d32ts(systh, writer, v);
333 write_raw(systh, &v, sizeof(v));
335 for (int i = 0; i < strlen(pattern); i++) {
339 write_raw(systh, &v, sizeof(v));
343 static void write_d32mts(struct mipi_syst_handle *systh, mipi_syst_u32 v) argument
352 stp_write_d32mts(systh, writer, v);
355 ARG_UNUSED(v);
359 static void write_d64mts(struct mipi_syst_handle *systh, mipi_syst_u64 v) argument
368 stp_write_d64mts(systh, writer, v);
371 ARG_UNUSED(v);
388 if ((flag & LOG_OUTPUT_FLAG_CRLF_NONE) != 0U) {
392 if ((flag & LOG_OUTPUT_FLAG_CRLF_LFONLY) != 0U) {
429 * @param module_id Module ID to be set (range 0x00 - 0x7F)
486 writer_state.byteDone = 0;
487 writer_state.current = 0;
488 writer_state.master = 0;
489 writer_state.channel = 0;
490 writer_state.recordCount = 0;
515 * 0 MIPI_SYST_SEVERITY_MAX no assigned severity
530 ret = 0U;
557 hexdump_buf[sizeof(hexdump_buf) - 1] = '\0';
558 char *buf = &hexdump_buf[0];
560 for (int i = 0; i < HEXDUMP_BYTES_IN_LINE; i++) {
561 if (i > 0 && !(i % 8)) {
578 for (int i = 0; i < HEXDUMP_BYTES_IN_LINE; i++) {
579 if (i > 0 && !(i % 8)) {
601 while (length != 0U) {
619 return 0;
733 if (*s == 0) {
773 return 0;
879 mipi_syst_platform_init, (void *)0);
884 log_syst_handle.systh_tag.et_guid = 0;
895 return 0;
898 SYS_INIT(syst_init, POST_KERNEL, 0);