Lines Matching refs:sr_iov_by_section
35 static int sr_iov_new_static(OrderedHashmap **sr_iov_by_section, const char *filename, unsigned sec… in sr_iov_new_static() argument
41 assert(sr_iov_by_section); in sr_iov_new_static()
50 existing = ordered_hashmap_get(*sr_iov_by_section, n); in sr_iov_new_static()
60 r = ordered_hashmap_ensure_put(sr_iov_by_section, &config_section_hash_ops, n, sr_iov); in sr_iov_new_static()
65 sr_iov->sr_iov_by_section = *sr_iov_by_section; in sr_iov_new_static()
75 if (sr_iov->sr_iov_by_section && sr_iov->section) in sr_iov_free()
76 ordered_hashmap_remove(sr_iov->sr_iov_by_section, sr_iov->section); in sr_iov_free()
224 int sr_iov_set_num_vfs(sd_device *device, uint32_t num_vfs, OrderedHashmap *sr_iov_by_section) { in sr_iov_set_num_vfs() argument
238 ORDERED_HASHMAP_FOREACH(sr_iov, sr_iov_by_section) in sr_iov_set_num_vfs()
318 int sr_iov_drop_invalid_sections(uint32_t num_vfs, OrderedHashmap *sr_iov_by_section) { in sr_iov_drop_invalid_sections() argument
323 ORDERED_HASHMAP_FOREACH(sr_iov, sr_iov_by_section) { in sr_iov_drop_invalid_sections()
362 OrderedHashmap **sr_iov_by_section = data; in config_parse_sr_iov_uint32() local
371 r = sr_iov_new_static(sr_iov_by_section, filename, section_line, &sr_iov); in config_parse_sr_iov_uint32()
430 OrderedHashmap **sr_iov_by_section = data; in config_parse_sr_iov_vlan_proto() local
438 r = sr_iov_new_static(sr_iov_by_section, filename, section_line, &sr_iov); in config_parse_sr_iov_vlan_proto()
469 OrderedHashmap **sr_iov_by_section = data; in config_parse_sr_iov_link_state() local
477 r = sr_iov_new_static(sr_iov_by_section, filename, section_line, &sr_iov); in config_parse_sr_iov_link_state()
521 OrderedHashmap **sr_iov_by_section = data; in config_parse_sr_iov_boolean() local
529 r = sr_iov_new_static(sr_iov_by_section, filename, section_line, &sr_iov); in config_parse_sr_iov_boolean()
579 OrderedHashmap **sr_iov_by_section = data; in config_parse_sr_iov_mac() local
587 r = sr_iov_new_static(sr_iov_by_section, filename, section_line, &sr_iov); in config_parse_sr_iov_mac()