Lines Matching refs:nm

18 	STRUCT_SECTION_FOREACH(wifi_nm_instance, nm) {  in wifi_nm_get_instance()
19 if (!strcmp(nm->name, name)) { in wifi_nm_get_instance()
20 return nm; in wifi_nm_get_instance()
34 STRUCT_SECTION_FOREACH(wifi_nm_instance, nm) { in wifi_nm_get_instance_iface()
36 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_get_instance_iface()
38 return nm; in wifi_nm_get_instance_iface()
54 STRUCT_SECTION_FOREACH(wifi_nm_instance, nm) { in wifi_nm_get_type_iface()
56 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_get_type_iface()
58 return nm->mgd_ifaces[i].type; in wifi_nm_get_type_iface()
77 int wifi_nm_register_mgd_iface(struct wifi_nm_instance *nm, struct net_if *iface) in wifi_nm_register_mgd_iface() argument
79 if (!nm || !iface) { in wifi_nm_register_mgd_iface()
89 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_register_mgd_iface()
94 if (!nm->mgd_ifaces[i].iface) { in wifi_nm_register_mgd_iface()
95 nm->mgd_ifaces[i].iface = iface; in wifi_nm_register_mgd_iface()
105 int wifi_nm_register_mgd_type_iface(struct wifi_nm_instance *nm, in wifi_nm_register_mgd_type_iface() argument
108 if (!nm || !iface) { in wifi_nm_register_mgd_type_iface()
118 if ((nm->mgd_ifaces[i].iface == iface) in wifi_nm_register_mgd_type_iface()
119 && (nm->mgd_ifaces[i].type == BIT(type))) { in wifi_nm_register_mgd_type_iface()
124 if (!nm->mgd_ifaces[i].iface) { in wifi_nm_register_mgd_type_iface()
125 nm->mgd_ifaces[i].iface = iface; in wifi_nm_register_mgd_type_iface()
126 nm->mgd_ifaces[i].type = BIT(type); in wifi_nm_register_mgd_type_iface()
136 int wifi_nm_unregister_mgd_iface(struct wifi_nm_instance *nm, struct net_if *iface) in wifi_nm_unregister_mgd_iface() argument
138 if (!nm || !iface) { in wifi_nm_unregister_mgd_iface()
144 if (nm->mgd_ifaces[i].iface == iface) { in wifi_nm_unregister_mgd_iface()
145 nm->mgd_ifaces[i].iface = NULL; in wifi_nm_unregister_mgd_iface()