| 1914 | }; |
| 1915 | |
| 1916 | static int get_region_offset(long long int offset, uint32_t *region_offset) |
| 1917 | { |
| 1918 | /* If offset is not negative, no transformation required. */ |
| 1919 | if (offset >= 0) { |
| 1920 | *region_offset = offset; |
| 1921 | return 0; |
| 1922 | } |
| 1923 | |
| 1924 | /* Calculate offset from start of region. */ |
| 1925 | return convert_region_offset(-offset, region_offset); |
| 1926 | } |
| 1927 | |
| 1928 | static int calculate_region_offsets(void) |
| 1929 | { |
no test coverage detected