Lines Matching full:p
56 struct stp_writer_data *p, mipi_syst_u8 n) in stp_write_putNibble() argument
58 p->current |= (n << 4); in stp_write_putNibble()
59 p->byteDone = !p->byteDone; in stp_write_putNibble()
61 if (p->byteDone) { in stp_write_putNibble()
62 out_func(p->current, systh->systh_platform.log_output); in stp_write_putNibble()
63 p->current = 0; in stp_write_putNibble()
65 p->current >>= 4; in stp_write_putNibble()
70 struct stp_writer_data *p) in stp_write_flush() argument
72 if (!p->byteDone) { in stp_write_flush()
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()
111 static mipi_syst_u64 deltaTime(struct stp_writer_data *p) in deltaTime() argument
115 delta = mipi_syst_get_epoch() - p->timestamp; in deltaTime()
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()
126 stp_write_payload64(systh, p, deltaTime(p)); 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()
136 stp_write_payload64(systh, p, deltaTime(p)); 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()
148 stp_write_payload64(systh, p, deltaTime(p)); 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()
182 struct stp_writer_data *p) in stp_write_flag() argument
184 stp_write_d4(systh, p, 0xF); in stp_write_flag()
185 stp_write_d4(systh, p, 0xE); in stp_write_flag()
189 struct stp_writer_data *p) in stp_write_async() argument
192 stp_write_d4(systh, p, 0xF); in stp_write_async()
195 stp_write_d4(systh, p, 0x0); in stp_write_async()
199 struct stp_writer_data *p) in stp_write_version() argument
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()
212 struct stp_writer_data *p) in stp_write_freq() argument
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()
217 stp_write_payload32(systh, p, 60 * 1000 * 1000); in stp_write_freq()
221 struct stp_writer_data *p, in stp_write_setMC() argument
225 if (!(p->recordCount++ % 20)) { in stp_write_setMC()
226 stp_write_async(systh, p); in stp_write_setMC()
227 stp_write_version(systh, p); in stp_write_setMC()
228 stp_write_freq(systh, p); in stp_write_setMC()
231 if (p->master != master) { in stp_write_setMC()
232 stp_write_d4(systh, p, 0xF); in stp_write_setMC()
233 stp_write_d4(systh, p, 0x1); in stp_write_setMC()
234 stp_write_payload16(systh, p, master); in stp_write_setMC()
236 p->master = master; in stp_write_setMC()
237 p->channel = 0; in stp_write_setMC()
240 if (p->channel != channel) { 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()
243 stp_write_payload16(systh, p, channel); in stp_write_setMC()
245 p->channel = channel; in stp_write_setMC()
249 static void write_raw(struct mipi_syst_handle *systh, const void *p, int n) argument
259 c = ((const uint8_t *)p)[i];
664 void *p; member
725 val.p = (void *)va_arg(ap, void *);