Lines Matching full:iv
71 /* IV Index & IV Update storage */
152 struct iv_val iv; in iv_set() local
163 len = sizeof(iv); in iv_set()
164 err = settings_bytes_from_str(val, &iv, &len); in iv_set()
170 if (len != sizeof(iv)) { in iv_set()
171 BT_ERR("Unexpected value length (%d != %zu)", len, sizeof(iv)); in iv_set()
175 bt_mesh.iv_index = iv.iv_index; in iv_set()
176 bt_mesh.iv_update = iv.iv_update; in iv_set()
177 bt_mesh.ivu_duration = iv.iv_duration; in iv_set()
179 BT_DBG("IV Index 0x%04x (IV Update Flag %u) duration %u hours", in iv_set()
687 { "IV", iv_set },
854 BT_DBG("Clearing IV"); in clear_iv()
855 settings_save_one("bt_mesh/IV", NULL); in clear_iv()
894 struct iv_val iv; in store_pending_iv() local
897 iv.iv_index = bt_mesh.iv_index; in store_pending_iv()
898 iv.iv_update = bt_mesh.iv_update; in store_pending_iv()
899 iv.iv_duration = bt_mesh.ivu_duration; in store_pending_iv()
901 str = settings_str_from_bytes(&iv, sizeof(iv), buf, sizeof(buf)); in store_pending_iv()
903 BT_ERR("Unable to encode IV as value"); in store_pending_iv()
907 BT_DBG("Saving IV as value %s", str); in store_pending_iv()
908 settings_save_one("bt_mesh/IV", str); in store_pending_iv()
916 /* Always update Seq whenever IV changes */ in bt_mesh_store_iv()