Lines Matching refs:err_code
38 int err_code; in storage_read()
42 err_code = aos_kv_get(s, data, length, 1); in storage_read()
47 … err_code = hal_flash_read(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storage_t)); in storage_read()
48 if(!err_code){ in storage_read()
53 if(err_code == 0){ in storage_read()
61 } else if(err_code == -ENOENT){ in storage_read()
67 printf("KV read failed(%d)\n", err_code); in storage_read()
78 uint32_t err_code; in storage_write()
84 err_code = aos_kv_set(s, data, length, 1); in storage_write()
88 … err_code = hal_flash_read(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storage_t)); in storage_write()
94 if(!err_code){ in storage_write()
96 err_code = hal_flash_erase(HAL_PARTITION_PARAMETER_3, &off, 4096); in storage_write()
97 if(!err_code){ in storage_write()
102 …err_code = hal_flash_erase_write(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storag… in storage_write()
105 if (err_code != 0) { in storage_write()