Lines Matching refs:i

32 	int i;  in get_changed_bytes()  local
40 for (i = 0; i < size; i++) in get_changed_bytes()
41 while (n[i] == o[i]) in get_changed_bytes()
42 get_random_bytes(&n[i], 1); in get_changed_bytes()
164 int i, error; in gen_regmap() local
201 for (i = 0; i < config->num_reg_defaults; i++) { in gen_regmap()
202 defaults[i].reg = param->from_reg + (i * config->reg_stride); in gen_regmap()
203 defaults[i].def = buf[param->from_reg + (i * config->reg_stride)]; in gen_regmap()
264 int i; in bulk_write() local
281 for (i = 0; i < BLOCK_TEST_SIZE; i++) in bulk_write()
282 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval[i])); in bulk_write()
287 for (i = 0; i < BLOCK_TEST_SIZE; i++) in bulk_write()
288 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in bulk_write()
297 int i; in bulk_read() local
309 for (i = 0; i < BLOCK_TEST_SIZE; i++) in bulk_read()
310 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, val[i])); in bulk_read()
316 for (i = 0; i < BLOCK_TEST_SIZE; i++) in bulk_read()
317 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in bulk_read()
327 int i; in multi_write() local
342 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in multi_write()
343 sequence[i].reg = i; in multi_write()
344 sequence[i].def = val[i]; in multi_write()
345 sequence[i].delay_us = 0; in multi_write()
349 for (i = 0; i < BLOCK_TEST_SIZE; i++) in multi_write()
350 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval[i])); in multi_write()
355 for (i = 0; i < BLOCK_TEST_SIZE; i++) in multi_write()
356 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in multi_write()
366 int i; in multi_read() local
378 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in multi_read()
379 regs[i] = i; in multi_read()
380 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, val[i])); in multi_read()
387 for (i = 0; i < BLOCK_TEST_SIZE; i++) in multi_read()
388 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in multi_read()
398 int i; in read_bypassed() local
420 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed()
422 rval = ~val[i]; in read_bypassed()
423 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &rval)); in read_bypassed()
424 KUNIT_EXPECT_EQ(test, val[i], rval); in read_bypassed()
426 rval = ~val[i]; in read_bypassed()
427 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed()
428 KUNIT_EXPECT_EQ(test, val[i], rval); in read_bypassed()
437 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed()
438 val[i] = ~val[i]; in read_bypassed()
439 data->vals[param->from_reg + i] = val[i]; in read_bypassed()
442 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed()
443 rval = ~val[i]; in read_bypassed()
444 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &rval)); in read_bypassed()
445 KUNIT_EXPECT_NE(test, val[i], rval); in read_bypassed()
447 rval = ~val[i]; in read_bypassed()
448 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed()
449 KUNIT_EXPECT_EQ(test, val[i], rval); in read_bypassed()
462 int i; in read_bypassed_volatile() local
486 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed_volatile()
488 KUNIT_EXPECT_EQ(test, (i == 5) ? 0 : -EBUSY, in read_bypassed_volatile()
489 regmap_read(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
492 rval = ~val[i]; in read_bypassed_volatile()
493 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
494 KUNIT_EXPECT_EQ(test, val[i], rval); in read_bypassed_volatile()
503 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed_volatile()
504 val[i] = ~val[i]; in read_bypassed_volatile()
505 data->vals[param->from_reg + i] = val[i]; in read_bypassed_volatile()
508 for (i = 0; i < ARRAY_SIZE(val); i++) { in read_bypassed_volatile()
509 if (i == 5) in read_bypassed_volatile()
512 rval = ~val[i]; in read_bypassed_volatile()
513 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
514 KUNIT_EXPECT_EQ(test, val[i], rval); in read_bypassed_volatile()
526 int i; in write_readonly() local
539 for (i = 0; i < BLOCK_TEST_SIZE; i++) in write_readonly()
540 data->written[i] = false; in write_readonly()
543 for (i = 0; i < BLOCK_TEST_SIZE; i++) in write_readonly()
544 KUNIT_EXPECT_EQ(test, i != 5, regmap_write(map, i, val) == 0); in write_readonly()
547 for (i = 0; i < BLOCK_TEST_SIZE; i++) in write_readonly()
548 KUNIT_EXPECT_EQ(test, i != 5, data->written[i]); in write_readonly()
557 int i; in read_writeonly() local
567 for (i = 0; i < BLOCK_TEST_SIZE; i++) in read_writeonly()
568 data->read[i] = false; in read_writeonly()
574 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in read_writeonly()
576 KUNIT_EXPECT_EQ(test, i != 5, in read_writeonly()
577 regmap_read(map, i, &val) == 0); in read_writeonly()
579 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &val)); in read_writeonly()
593 int i; in reg_defaults() local
609 for (i = 0; i < BLOCK_TEST_SIZE; i++) in reg_defaults()
610 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in reg_defaults()
619 int i; in reg_defaults_read_dev() local
630 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in reg_defaults_read_dev()
631 KUNIT_EXPECT_EQ(test, config.cache_type != REGCACHE_NONE, data->read[i]); in reg_defaults_read_dev()
632 data->read[i] = false; in reg_defaults_read_dev()
641 for (i = 0; i < BLOCK_TEST_SIZE; i++) in reg_defaults_read_dev()
642 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in reg_defaults_read_dev()
652 int i; in register_patch() local
678 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in register_patch()
679 switch (i) { in register_patch()
682 KUNIT_EXPECT_TRUE(test, data->written[i]); in register_patch()
683 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i] + 1); in register_patch()
686 KUNIT_EXPECT_FALSE(test, data->written[i]); in register_patch()
687 KUNIT_EXPECT_EQ(test, data->vals[i], rval[i]); in register_patch()
699 int i; in stride() local
718 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in stride()
719 data->read[i] = false; in stride()
720 data->written[i] = false; in stride()
722 if (i % 2) { in stride()
723 KUNIT_EXPECT_NE(test, 0, regmap_read(map, i, &rval)); in stride()
724 KUNIT_EXPECT_NE(test, 0, regmap_write(map, i, rval)); in stride()
725 KUNIT_EXPECT_FALSE(test, data->read[i]); in stride()
726 KUNIT_EXPECT_FALSE(test, data->written[i]); in stride()
728 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in stride()
729 KUNIT_EXPECT_EQ(test, data->vals[i], rval); in stride()
731 data->read[i]); in stride()
733 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, rval)); in stride()
734 KUNIT_EXPECT_TRUE(test, data->written[i]); in stride()
776 int i; in basic_ranges() local
789 for (i = test_range.range_min; i < test_range.range_max; i++) { in basic_ranges()
790 data->read[i] = false; in basic_ranges()
791 data->written[i] = false; in basic_ranges()
831 for (i = test_range.range_min; i < test_range.range_max; i++) { in basic_ranges()
832 KUNIT_EXPECT_FALSE(test, data->read[i]); in basic_ranges()
833 KUNIT_EXPECT_FALSE(test, data->written[i]); in basic_ranges()
845 int i; in stress_insert() local
862 for (i = 0; i < config.max_register; i += 100) in stress_insert()
863 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
864 for (i = 0; i < config.max_register; i += 50) in stress_insert()
865 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
866 for (i = 0; i < config.max_register; i += 25) in stress_insert()
867 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
868 for (i = 0; i < config.max_register; i += 10) in stress_insert()
869 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
870 for (i = 0; i < config.max_register; i += 5) in stress_insert()
871 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
872 for (i = 0; i < config.max_register; i += 3) in stress_insert()
873 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
874 for (i = 0; i < config.max_register; i += 2) in stress_insert()
875 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
876 for (i = 0; i < config.max_register; i++) in stress_insert()
877 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
880 for (i = 0; i < config.max_register; i ++) { in stress_insert()
881 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in stress_insert()
882 KUNIT_EXPECT_EQ(test, rval, vals[i]); in stress_insert()
883 KUNIT_EXPECT_EQ(test, config.cache_type == REGCACHE_NONE, data->read[i]); in stress_insert()
929 int i; in cache_sync_marked_dirty() local
943 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_marked_dirty()
944 data->written[param->from_reg + i] = false; in cache_sync_marked_dirty()
953 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_marked_dirty()
954 KUNIT_EXPECT_EQ(test, true, data->written[param->from_reg + i]); in cache_sync_marked_dirty()
965 int i; in cache_sync_after_cache_only() local
980 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_after_cache_only()
981 data->written[param->from_reg + i] = false; in cache_sync_after_cache_only()
985 for (i = 0; i < ARRAY_SIZE(val); ++i) in cache_sync_after_cache_only()
986 val[i] = ~val[i] & val_mask; in cache_sync_after_cache_only()
990 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_after_cache_only()
991 KUNIT_EXPECT_FALSE(test, data->written[param->from_reg + i]); in cache_sync_after_cache_only()
1002 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_after_cache_only()
1003 KUNIT_EXPECT_TRUE(test, data->written[param->from_reg + i]); in cache_sync_after_cache_only()
1013 int i; in cache_sync_defaults_marked_dirty() local
1030 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_defaults_marked_dirty()
1031 data->written[param->from_reg + i] = false; in cache_sync_defaults_marked_dirty()
1035 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_defaults_marked_dirty()
1036 KUNIT_EXPECT_EQ(test, i == 2, data->written[param->from_reg + i]); in cache_sync_defaults_marked_dirty()
1039 for (i = 0; i < config.num_reg_defaults; ++i) in cache_sync_defaults_marked_dirty()
1040 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, config.reg_defaults[i].reg, in cache_sync_defaults_marked_dirty()
1041 config.reg_defaults[i].def)); in cache_sync_defaults_marked_dirty()
1047 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_defaults_marked_dirty()
1048 data->written[param->from_reg + i] = false; in cache_sync_defaults_marked_dirty()
1051 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_defaults_marked_dirty()
1052 KUNIT_EXPECT_FALSE(test, data->written[param->from_reg + i]); in cache_sync_defaults_marked_dirty()
1062 int i; in cache_sync_default_after_cache_only() local
1080 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_default_after_cache_only()
1081 data->written[param->from_reg + i] = false; in cache_sync_default_after_cache_only()
1094 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_default_after_cache_only()
1095 data->written[param->from_reg + i] = false; in cache_sync_default_after_cache_only()
1109 int i; in cache_sync_readonly() local
1120 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_readonly()
1121 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_sync_readonly()
1126 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_readonly()
1127 KUNIT_EXPECT_EQ(test, i != 5, regmap_write(map, param->from_reg + i, val) == 0); in cache_sync_readonly()
1131 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_readonly()
1132 data->written[param->from_reg + i] = false; in cache_sync_readonly()
1136 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_readonly()
1137 KUNIT_EXPECT_EQ(test, i != 5, data->written[param->from_reg + i]); in cache_sync_readonly()
1148 int i; in cache_sync_patch() local
1175 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_sync_patch()
1176 data->written[param->from_reg + i] = false; in cache_sync_patch()
1180 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in cache_sync_patch()
1181 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_sync_patch()
1182 KUNIT_EXPECT_EQ(test, val, rval[i]); in cache_sync_patch()
1184 switch (i) { in cache_sync_patch()
1187 KUNIT_EXPECT_EQ(test, true, data->written[param->from_reg + i]); in cache_sync_patch()
1188 KUNIT_EXPECT_EQ(test, data->vals[param->from_reg + i], rval[i] + 1); in cache_sync_patch()
1191 KUNIT_EXPECT_EQ(test, false, data->written[param->from_reg + i]); in cache_sync_patch()
1192 KUNIT_EXPECT_EQ(test, data->vals[param->from_reg + i], rval[i]); in cache_sync_patch()
1205 int i; in cache_drop() local
1216 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop()
1217 data->read[param->from_reg + i] = false; in cache_drop()
1220 for (i = 0; i < BLOCK_TEST_SIZE; i++) { in cache_drop()
1221 KUNIT_EXPECT_FALSE(test, data->read[param->from_reg + i]); in cache_drop()
1222 data->read[param->from_reg + i] = false; in cache_drop()
1233 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop()
1234 KUNIT_EXPECT_EQ(test, data->read[param->from_reg + i], i >= 3 && i <= 5); in cache_drop()
1247 int rangeidx, i; in cache_drop_with_non_contiguous_ranges() local
1259 for (i = 0; i < config.max_register + 1; i++) in cache_drop_with_non_contiguous_ranges()
1260 data->written[i] = false; in cache_drop_with_non_contiguous_ranges()
1276 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_with_non_contiguous_ranges()
1277 KUNIT_EXPECT_FALSE(test, data->written[reg + i]); in cache_drop_with_non_contiguous_ranges()
1290 for (i = 0; i < config.max_register + 1; i++) { in cache_drop_with_non_contiguous_ranges()
1291 data->vals[i] = 0; in cache_drop_with_non_contiguous_ranges()
1292 data->written[i] = false; in cache_drop_with_non_contiguous_ranges()
1306 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_with_non_contiguous_ranges()
1307 KUNIT_EXPECT_FALSE(test, data->written[reg + i]); in cache_drop_with_non_contiguous_ranges()
1316 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_with_non_contiguous_ranges()
1317 KUNIT_EXPECT_TRUE(test, data->written[reg + i]); in cache_drop_with_non_contiguous_ranges()
1325 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_with_non_contiguous_ranges()
1326 KUNIT_EXPECT_FALSE(test, data->written[reg + i]); in cache_drop_with_non_contiguous_ranges()
1330 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_with_non_contiguous_ranges()
1331 KUNIT_EXPECT_EQ(test, data->written[reg + i], i < 3 || i > 5); in cache_drop_with_non_contiguous_ranges()
1336 for (i = 0; i < param->from_reg; i++) in cache_drop_with_non_contiguous_ranges()
1337 KUNIT_EXPECT_FALSE(test, data->written[i]); in cache_drop_with_non_contiguous_ranges()
1347 int i; in cache_drop_all_and_sync_marked_dirty() local
1358 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_marked_dirty()
1359 data->read[param->from_reg + i] = false; in cache_drop_all_and_sync_marked_dirty()
1365 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_marked_dirty()
1366 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + i, rval[i] + 1)); in cache_drop_all_and_sync_marked_dirty()
1373 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_marked_dirty()
1374 data->written[param->from_reg + i] = false; in cache_drop_all_and_sync_marked_dirty()
1377 for (i = 0; i <= config.max_register; i++) in cache_drop_all_and_sync_marked_dirty()
1378 KUNIT_EXPECT_FALSE(test, data->written[i]); in cache_drop_all_and_sync_marked_dirty()
1388 int i; in cache_drop_all_and_sync_no_defaults() local
1398 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_no_defaults()
1399 data->read[param->from_reg + i] = false; in cache_drop_all_and_sync_no_defaults()
1405 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_no_defaults()
1406 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + i, rval[i] + 1)); in cache_drop_all_and_sync_no_defaults()
1415 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_no_defaults()
1416 data->written[param->from_reg + i] = false; in cache_drop_all_and_sync_no_defaults()
1419 for (i = 0; i <= config.max_register; i++) in cache_drop_all_and_sync_no_defaults()
1420 KUNIT_EXPECT_FALSE(test, data->written[i]); in cache_drop_all_and_sync_no_defaults()
1430 int i; in cache_drop_all_and_sync_has_defaults() local
1441 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_has_defaults()
1442 data->read[param->from_reg + i] = false; in cache_drop_all_and_sync_has_defaults()
1448 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_has_defaults()
1449 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + i, rval[i] + 1)); in cache_drop_all_and_sync_has_defaults()
1458 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_drop_all_and_sync_has_defaults()
1459 data->written[param->from_reg + i] = false; in cache_drop_all_and_sync_has_defaults()
1462 for (i = 0; i <= config.max_register; i++) in cache_drop_all_and_sync_has_defaults()
1463 KUNIT_EXPECT_FALSE(test, data->written[i]); in cache_drop_all_and_sync_has_defaults()
1473 int i; in cache_present() local
1482 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_present()
1483 data->read[param->from_reg + i] = false; in cache_present()
1486 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_present()
1487 KUNIT_ASSERT_FALSE(test, regcache_reg_cached(map, param->from_reg + i)); in cache_present()
1490 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_present()
1491 KUNIT_ASSERT_FALSE(test, data->read[param->from_reg + i]); in cache_present()
1494 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_present()
1495 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_present()
1498 for (i = 0; i < BLOCK_TEST_SIZE; i++) in cache_present()
1499 KUNIT_ASSERT_TRUE(test, regcache_reg_cached(map, param->from_reg + i)); in cache_present()
1509 int i; in cache_range_window_reg() local
1523 for (i = test_range.range_min; i <= test_range.range_max; i++) in cache_range_window_reg()
1524 KUNIT_ASSERT_EQ(test, 0, regmap_write(map, i, 0)); in cache_range_window_reg()
1593 int i, error; in gen_raw_regmap() local
1623 for (i = 0; i < config->num_reg_defaults; i++) { in gen_raw_regmap()
1624 defaults[i].reg = i; in gen_raw_regmap()
1627 defaults[i].def = le16_to_cpu(buf[i]); in gen_raw_regmap()
1630 defaults[i].def = be16_to_cpu(buf[i]); in gen_raw_regmap()
1669 int i; in raw_read_defaults_single() local
1679 for (i = 0; i < config.max_register + 1; i++) { in raw_read_defaults_single()
1680 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_read_defaults_single()
1681 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_read_defaults_single()
1693 int i; in raw_read_defaults() local
1710 for (i = 0; i < config.max_register + 1; i++) { in raw_read_defaults()
1711 def = config.reg_defaults[i].def; in raw_read_defaults()
1713 KUNIT_EXPECT_EQ(test, def, be16_to_cpu((__force __be16)rval[i])); in raw_read_defaults()
1715 KUNIT_EXPECT_EQ(test, def, le16_to_cpu((__force __le16)rval[i])); in raw_read_defaults()
1751 int i; in raw_write() local
1768 for (i = 0; i < config.max_register + 1; i++) { in raw_write()
1769 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_write()
1771 switch (i) { in raw_write()
1776 be16_to_cpu((__force __be16)val[i % 2])); in raw_write()
1779 le16_to_cpu((__force __le16)val[i % 2])); in raw_write()
1783 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_write()
1857 int i; in raw_sync() local
1877 for (i = 0; i < config.max_register + 1; i++) { in raw_sync()
1878 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_sync()
1880 switch (i) { in raw_sync()
1885 be16_to_cpu((__force __be16)val[i - 2])); in raw_sync()
1888 le16_to_cpu((__force __le16)val[i - 2])); in raw_sync()
1892 KUNIT_EXPECT_EQ(test, rval, val[i - 2]); in raw_sync()
1895 KUNIT_EXPECT_EQ(test, config.reg_defaults[i].def, rval); in raw_sync()
1912 for (i = 0; i < config.max_register + 1; i++) in raw_sync()
1913 data->written[i] = false; in raw_sync()
1930 int i; in raw_ranges() local
1980 for (i = test_range.range_min; i < test_range.range_max; i++) { in raw_ranges()
1981 KUNIT_EXPECT_FALSE(test, data->read[i]); in raw_ranges()
1982 KUNIT_EXPECT_FALSE(test, data->written[i]); in raw_ranges()