Lines Matching refs:section_num
1083 int di, section_num; in ree_fs_new_read() local
1108 section_num = p.size / RKSS_DATA_SECTION_LEN + 1; in ree_fs_new_read()
1109 temp_file_data = malloc(section_num * RKSS_DATA_SECTION_LEN); in ree_fs_new_read()
1110 ret = rkss_read_multi_sections(temp_file_data, p.index, section_num); in ree_fs_new_read()
1133 int section_num; in ree_fs_new_write() local
1167 section_num = p.size / RKSS_DATA_SECTION_LEN + 1; in ree_fs_new_write()
1168 temp_file_data = malloc(section_num * RKSS_DATA_SECTION_LEN); in ree_fs_new_write()
1169 ret = rkss_read_multi_sections(temp_file_data, p.index, section_num); in ree_fs_new_write()
1171 printf("TEEC: unavailable file index %d section_num %d\n", p.index, section_num); in ree_fs_new_write()
1178 ret = rkss_decref_multi_usedflags_sections(p.index, section_num); in ree_fs_new_write()
1189 section_num = new_size / RKSS_DATA_SECTION_LEN + 1; in ree_fs_new_write()
1190 p.index = rkss_get_empty_section_from_usedflags(section_num); in ree_fs_new_write()
1193 ret = rkss_incref_multi_usedflags_sections(p.index, section_num); in ree_fs_new_write()
1208 temp_file_data = malloc(section_num * RKSS_DATA_SECTION_LEN); in ree_fs_new_write()
1209 memset(temp_file_data, 0, section_num * RKSS_DATA_SECTION_LEN); in ree_fs_new_write()
1211 rkss_write_multi_sections(temp_file_data, p.index, section_num); in ree_fs_new_write()