Lines Matching defs:buf_len
179 void di_dump_bind_inst(const zx_bind_inst_t* b, char* buf, size_t buf_len) {
180 if (!b || !buf || !buf_len) {
199 snprintf(buf + off, buf_len - off, "L.%u:", pa);
202 snprintf(buf + off, buf_len - off,
207 off += snprintf(buf + off, buf_len - off, "if (");
209 off += snprintf(buf + off, buf_len - off, "true");
213 off += snprintf(buf + off, buf_len - off, "%s", pb_name);
215 off += snprintf(buf + off, buf_len - off, "P.%04x", pb);
220 off += snprintf(buf + off, buf_len - off, " == 0x%08x", b->arg);
223 off += snprintf(buf + off, buf_len - off, " != 0x%08x", b->arg);
226 off += snprintf(buf + off, buf_len - off, " > 0x%08x", b->arg);
229 off += snprintf(buf + off, buf_len - off, " < 0x%08x", b->arg);
232 off += snprintf(buf + off, buf_len - off, " >= 0x%08x", b->arg);
235 off += snprintf(buf + off, buf_len - off, " <= 0x%08x", b->arg);
238 off += snprintf(buf + off, buf_len - off, " & 0x%08x != 0", b->arg);
241 off += snprintf(buf + off, buf_len - off, " & 0x%08x == 0x%08x", b->arg, b->arg);
244 off += snprintf(buf + off, buf_len - off,
249 off += snprintf(buf + off, buf_len - off, ") ");
253 off += snprintf(buf + off, buf_len - off, "return no-match;");
256 off += snprintf(buf + off, buf_len - off, "return match;");
259 off += snprintf(buf + off, buf_len - off, "goto L.%u;", b->arg);
262 off += snprintf(buf + off, buf_len - off, "flags |= 0x%02x;", pa);
265 off += snprintf(buf + off, buf_len - off, "flags &= 0x%02x;", ~pa & 0xFF);