Lines Matching refs:bt_mesh

38 	if (atomic_test_bit(bt_mesh.flags, BT_MESH_BEACON) == beacon) {  in bt_mesh_beacon_set()
42 atomic_set_bit_to(bt_mesh.flags, BT_MESH_BEACON, beacon); in bt_mesh_beacon_set()
51 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_beacon_set()
58 return atomic_test_bit(bt_mesh.flags, BT_MESH_BEACON); in bt_mesh_beacon_enabled()
68 if (atomic_test_bit(bt_mesh.flags, feature_flag) == in feature_set()
73 atomic_set_bit_to(bt_mesh.flags, feature_flag, in feature_set()
81 return atomic_test_bit(bt_mesh.flags, feature_flag) ? in feature_get()
106 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_priv_beacon_set()
125 bt_mesh.priv_beacon_int = interval; in bt_mesh_priv_beacon_update_interval_set()
132 return bt_mesh.priv_beacon_int; in bt_mesh_priv_beacon_update_interval_get()
141 return bt_mesh.on_demand_state; in bt_mesh_od_priv_proxy_get()
154 bt_mesh.on_demand_state = on_demand_proxy; in bt_mesh_od_priv_proxy_set()
158 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_od_priv_proxy_set()
199 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_gatt_proxy_set()
241 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_priv_gatt_proxy_set()
263 if (default_ttl == bt_mesh.default_ttl) { in bt_mesh_default_ttl_set()
267 bt_mesh.default_ttl = default_ttl; in bt_mesh_default_ttl_set()
270 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_default_ttl_set()
279 return bt_mesh.default_ttl; in bt_mesh_default_ttl_get()
298 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_friend_set()
320 if (bt_mesh.net_xmit == xmit) { in bt_mesh_net_transmit_set()
324 bt_mesh.net_xmit = xmit; in bt_mesh_net_transmit_set()
327 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_net_transmit_set()
334 return bt_mesh.net_xmit; in bt_mesh_net_transmit_get()
350 if (err == -EALREADY && bt_mesh.relay_xmit == xmit) { in bt_mesh_relay_set()
354 bt_mesh.relay_xmit = xmit; in bt_mesh_relay_set()
358 atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_relay_set()
376 return bt_mesh.relay_xmit; in bt_mesh_relay_retransmit_get()
398 bt_mesh.default_ttl = CONFIG_BT_MESH_DEFAULT_TTL; in bt_mesh_cfg_default_set()
399 bt_mesh.net_xmit = in bt_mesh_cfg_default_set()
404 bt_mesh.relay_xmit = in bt_mesh_cfg_default_set()
410 atomic_set_bit(bt_mesh.flags, BT_MESH_RELAY); in bt_mesh_cfg_default_set()
414 atomic_set_bit(bt_mesh.flags, BT_MESH_BEACON); in bt_mesh_cfg_default_set()
418 atomic_set_bit(bt_mesh.flags, BT_MESH_GATT_PROXY); in bt_mesh_cfg_default_set()
422 atomic_set_bit(bt_mesh.flags, BT_MESH_FRIEND); in bt_mesh_cfg_default_set()
493 if (atomic_test_bit(bt_mesh.flags, BT_MESH_VALID)) { in bt_mesh_cfg_pending_store()