Lines Matching refs:num_subnodes
2318 size_t num_subnodes) in dxil_get_metadata_node() argument
2323 n->node.num_subnodes == num_subnodes && in dxil_get_metadata_node()
2325 num_subnodes)) in dxil_get_metadata_node()
2331 void *tmp = ralloc_array(n, struct dxil_mdnode *, num_subnodes); in dxil_get_metadata_node()
2335 memcpy(tmp, subnodes, sizeof(struct dxil_mdnode *) * num_subnodes); in dxil_get_metadata_node()
2337 n->node.num_subnodes = num_subnodes; in dxil_get_metadata_node()
2401 size_t num_subnodes) in dxil_add_metadata_named_node() argument
2412 void *tmp = ralloc_array(n, struct dxil_mdnode *, num_subnodes); in dxil_add_metadata_named_node()
2416 memcpy(tmp, subnodes, sizeof(struct dxil_mdnode *) * num_subnodes); in dxil_add_metadata_named_node()
2418 n->num_subnodes = num_subnodes; in dxil_add_metadata_named_node()
2459 size_t num_subnodes) in emit_metadata_node() argument
2462 assert(num_subnodes < ARRAY_SIZE(data)); in emit_metadata_node()
2463 for (size_t i = 0; i < num_subnodes; ++i) in emit_metadata_node()
2466 return emit_record(m, METADATA_NODE, data, num_subnodes); in emit_metadata_node()
2480 return emit_metadata_node(m, n->node.subnodes, n->node.num_subnodes); in emit_mdnode()
2513 size_t num_subnodes) in emit_metadata_named_node() argument
2516 assert(num_subnodes < ARRAY_SIZE(data)); in emit_metadata_named_node()
2517 for (size_t i = 0; i < num_subnodes; ++i) { in emit_metadata_named_node()
2523 emit_record(m, METADATA_NAMED_NODE, data, num_subnodes); in emit_metadata_named_node()
2532 n->num_subnodes)) in emit_metadata_named_nodes()