• Home
  • Raw
  • Download

Lines Matching refs:map

235 	struct regmap *map;  in basic_read_write()  local
242 map = gen_regmap(test, &config, &data); in basic_read_write()
243 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in basic_read_write()
244 if (IS_ERR(map)) in basic_read_write()
250 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 0, val)); in basic_read_write()
251 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 0, &rval)); in basic_read_write()
260 struct regmap *map; in bulk_write() local
268 map = gen_regmap(test, &config, &data); in bulk_write()
269 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in bulk_write()
270 if (IS_ERR(map)) in bulk_write()
279 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, 0, val, in bulk_write()
282 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval[i])); in bulk_write()
293 struct regmap *map; in bulk_read() local
301 map = gen_regmap(test, &config, &data); in bulk_read()
302 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in bulk_read()
303 if (IS_ERR(map)) in bulk_read()
310 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, val[i])); in bulk_read()
311 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, 0, rval, in bulk_read()
322 struct regmap *map; in multi_write() local
331 map = gen_regmap(test, &config, &data); in multi_write()
332 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in multi_write()
333 if (IS_ERR(map)) in multi_write()
348 regmap_multi_reg_write(map, sequence, BLOCK_TEST_SIZE)); in multi_write()
350 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval[i])); in multi_write()
361 struct regmap *map; in multi_read() local
370 map = gen_regmap(test, &config, &data); in multi_read()
371 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in multi_read()
372 if (IS_ERR(map)) in multi_read()
380 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, val[i])); in multi_read()
383 regmap_multi_reg_read(map, regs, rval, BLOCK_TEST_SIZE)); in multi_read()
394 struct regmap *map; in read_bypassed() local
402 map = gen_regmap(test, &config, &data); in read_bypassed()
403 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in read_bypassed()
404 if (IS_ERR(map)) in read_bypassed()
407 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed()
412 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, param->from_reg, val, ARRAY_SIZE(val))); in read_bypassed()
414 regcache_cache_only(map, true); in read_bypassed()
423 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &rval)); in read_bypassed()
427 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed()
429 KUNIT_EXPECT_TRUE(test, map->cache_only); in read_bypassed()
430 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed()
444 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &rval)); in read_bypassed()
448 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed()
450 KUNIT_EXPECT_TRUE(test, map->cache_only); in read_bypassed()
451 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed()
458 struct regmap *map; in read_bypassed_volatile() local
468 map = gen_regmap(test, &config, &data); in read_bypassed_volatile()
469 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in read_bypassed_volatile()
470 if (IS_ERR(map)) in read_bypassed_volatile()
473 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed_volatile()
478 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, param->from_reg, val, ARRAY_SIZE(val))); in read_bypassed_volatile()
480 regcache_cache_only(map, true); in read_bypassed_volatile()
489 regmap_read(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
493 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
495 KUNIT_EXPECT_TRUE(test, map->cache_only); in read_bypassed_volatile()
496 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed_volatile()
513 KUNIT_EXPECT_EQ(test, 0, regmap_read_bypassed(map, param->from_reg + i, &rval)); in read_bypassed_volatile()
515 KUNIT_EXPECT_TRUE(test, map->cache_only); in read_bypassed_volatile()
516 KUNIT_EXPECT_FALSE(test, map->cache_bypass); in read_bypassed_volatile()
522 struct regmap *map; in write_readonly() local
532 map = gen_regmap(test, &config, &data); in write_readonly()
533 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in write_readonly()
534 if (IS_ERR(map)) in write_readonly()
544 KUNIT_EXPECT_EQ(test, i != 5, regmap_write(map, i, val) == 0); in write_readonly()
553 struct regmap *map; in read_writeonly() local
562 map = gen_regmap(test, &config, &data); in read_writeonly()
563 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in read_writeonly()
564 if (IS_ERR(map)) 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()
589 struct regmap *map; in reg_defaults() local
598 map = gen_regmap(test, &config, &data); in reg_defaults()
599 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in reg_defaults()
600 if (IS_ERR(map)) in reg_defaults()
604 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, 0, rval, in reg_defaults()
615 struct regmap *map; in reg_defaults_read_dev() local
624 map = gen_regmap(test, &config, &data); in reg_defaults_read_dev()
625 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in reg_defaults_read_dev()
626 if (IS_ERR(map)) in reg_defaults_read_dev()
636 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, 0, rval, in reg_defaults_read_dev()
647 struct regmap *map; in register_patch() local
658 map = gen_regmap(test, &config, &data); in register_patch()
659 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in register_patch()
660 if (IS_ERR(map)) in register_patch()
664 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, 0, rval, in register_patch()
674 KUNIT_EXPECT_EQ(test, 0, regmap_register_patch(map, patch, in register_patch()
695 struct regmap *map; in stride() local
712 map = gen_regmap(test, &config, &data); in stride()
713 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in stride()
714 if (IS_ERR(map)) 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()
728 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in stride()
733 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, rval)); in stride()
772 struct regmap *map; in basic_ranges() local
784 map = gen_regmap(test, &config, &data); in basic_ranges()
785 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in basic_ranges()
786 if (IS_ERR(map)) in basic_ranges()
795 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, test_range.selector_reg, in basic_ranges()
801 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, test_range.range_min, 0)); in basic_ranges()
807 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, in basic_ranges()
817 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, test_range.range_min, &val)); in basic_ranges()
823 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, in basic_ranges()
840 struct regmap *map; in stress_insert() local
850 map = gen_regmap(test, &config, &data); in stress_insert()
851 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in stress_insert()
852 if (IS_ERR(map)) in stress_insert()
863 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
865 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
867 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
869 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
871 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
873 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
875 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
877 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, i, vals[i])); in stress_insert()
881 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in stress_insert()
890 struct regmap *map; in cache_bypass() local
897 map = gen_regmap(test, &config, &data); in cache_bypass()
898 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_bypass()
899 if (IS_ERR(map)) in cache_bypass()
905 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg, val)); in cache_bypass()
908 regcache_cache_bypass(map, true); in cache_bypass()
909 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg, val + 1)); in cache_bypass()
912 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg, &rval)); in cache_bypass()
917 regcache_cache_bypass(map, false); in cache_bypass()
918 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg, &rval)); in cache_bypass()
925 struct regmap *map; in cache_sync_marked_dirty() local
933 map = gen_regmap(test, &config, &data); in cache_sync_marked_dirty()
934 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_marked_dirty()
935 if (IS_ERR(map)) in cache_sync_marked_dirty()
941 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, param->from_reg, val, in cache_sync_marked_dirty()
947 regcache_mark_dirty(map); in cache_sync_marked_dirty()
949 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_marked_dirty()
960 struct regmap *map; in cache_sync_after_cache_only() local
969 map = gen_regmap(test, &config, &data); in cache_sync_after_cache_only()
970 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_after_cache_only()
971 if (IS_ERR(map)) in cache_sync_after_cache_only()
978 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, param->from_reg, val, in cache_sync_after_cache_only()
984 regcache_cache_only(map, true); in cache_sync_after_cache_only()
988 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, param->from_reg, val, in cache_sync_after_cache_only()
996 regcache_cache_only(map, false); in cache_sync_after_cache_only()
998 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_after_cache_only()
1009 struct regmap *map; in cache_sync_defaults_marked_dirty() local
1018 map = gen_regmap(test, &config, &data); in cache_sync_defaults_marked_dirty()
1019 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_defaults_marked_dirty()
1020 if (IS_ERR(map)) in cache_sync_defaults_marked_dirty()
1026 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + 2, val)); in cache_sync_defaults_marked_dirty()
1029 regcache_mark_dirty(map); in cache_sync_defaults_marked_dirty()
1032 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); 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()
1049 regcache_mark_dirty(map); in cache_sync_defaults_marked_dirty()
1050 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_defaults_marked_dirty()
1058 struct regmap *map; in cache_sync_default_after_cache_only() local
1067 map = gen_regmap(test, &config, &data); in cache_sync_default_after_cache_only()
1068 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_default_after_cache_only()
1069 if (IS_ERR(map)) in cache_sync_default_after_cache_only()
1072 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + 2, &orig_val)); in cache_sync_default_after_cache_only()
1075 regcache_cache_only(map, true); in cache_sync_default_after_cache_only()
1076 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + 2, orig_val + 1)); in cache_sync_default_after_cache_only()
1079 regcache_cache_only(map, false); in cache_sync_default_after_cache_only()
1082 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_default_after_cache_only()
1089 regcache_cache_only(map, true); in cache_sync_default_after_cache_only()
1090 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, param->from_reg + 2, orig_val)); in cache_sync_default_after_cache_only()
1093 regcache_cache_only(map, false); in cache_sync_default_after_cache_only()
1097 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_default_after_cache_only()
1105 struct regmap *map; in cache_sync_readonly() local
1114 map = gen_regmap(test, &config, &data); in cache_sync_readonly()
1115 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_readonly()
1116 if (IS_ERR(map)) in cache_sync_readonly()
1121 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_sync_readonly()
1125 regcache_cache_only(map, true); in cache_sync_readonly()
1127 KUNIT_EXPECT_EQ(test, i != 5, regmap_write(map, param->from_reg + i, val) == 0); in cache_sync_readonly()
1128 regcache_cache_only(map, false); in cache_sync_readonly()
1133 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_readonly()
1143 struct regmap *map; in cache_sync_patch() local
1154 map = gen_regmap(test, &config, &data); in cache_sync_patch()
1155 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_sync_patch()
1156 if (IS_ERR(map)) in cache_sync_patch()
1160 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, in cache_sync_patch()
1170 KUNIT_EXPECT_EQ(test, 0, regmap_register_patch(map, patch, in cache_sync_patch()
1174 regcache_mark_dirty(map); in cache_sync_patch()
1177 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_sync_patch()
1181 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_sync_patch()
1201 struct regmap *map; in cache_drop() local
1210 map = gen_regmap(test, &config, &data); in cache_drop()
1211 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_drop()
1212 if (IS_ERR(map)) in cache_drop()
1218 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, in cache_drop()
1227 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, param->from_reg + 3, in cache_drop()
1231 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, in cache_drop()
1241 struct regmap *map; in cache_drop_with_non_contiguous_ranges() local
1254 map = gen_regmap(test, &config, &data); in cache_drop_with_non_contiguous_ranges()
1255 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_drop_with_non_contiguous_ranges()
1256 if (IS_ERR(map)) in cache_drop_with_non_contiguous_ranges()
1266 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_write(map, reg, in cache_drop_with_non_contiguous_ranges()
1282 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, reg, reg + BLOCK_TEST_SIZE - 1)); in cache_drop_with_non_contiguous_ranges()
1286 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, reg + 3, reg + 5)); in cache_drop_with_non_contiguous_ranges()
1289 regcache_mark_dirty(map); in cache_drop_with_non_contiguous_ranges()
1301 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_drop_with_non_contiguous_ranges()
1343 struct regmap *map; in cache_drop_all_and_sync_marked_dirty() local
1352 map = gen_regmap(test, &config, &data); in cache_drop_all_and_sync_marked_dirty()
1353 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_drop_all_and_sync_marked_dirty()
1354 if (IS_ERR(map)) in cache_drop_all_and_sync_marked_dirty()
1360 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, 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()
1369 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, 0, config.max_register)); in cache_drop_all_and_sync_marked_dirty()
1372 regcache_mark_dirty(map); in cache_drop_all_and_sync_marked_dirty()
1376 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_drop_all_and_sync_marked_dirty()
1384 struct regmap *map; in cache_drop_all_and_sync_no_defaults() local
1392 map = gen_regmap(test, &config, &data); in cache_drop_all_and_sync_no_defaults()
1393 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_drop_all_and_sync_no_defaults()
1394 if (IS_ERR(map)) in cache_drop_all_and_sync_no_defaults()
1400 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, 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()
1409 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, 0, config.max_register)); in cache_drop_all_and_sync_no_defaults()
1418 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_drop_all_and_sync_no_defaults()
1426 struct regmap *map; in cache_drop_all_and_sync_has_defaults() local
1435 map = gen_regmap(test, &config, &data); in cache_drop_all_and_sync_has_defaults()
1436 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_drop_all_and_sync_has_defaults()
1437 if (IS_ERR(map)) in cache_drop_all_and_sync_has_defaults()
1443 KUNIT_EXPECT_EQ(test, 0, regmap_bulk_read(map, param->from_reg, rval, 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()
1452 KUNIT_EXPECT_EQ(test, 0, regcache_drop_region(map, 0, config.max_register)); in cache_drop_all_and_sync_has_defaults()
1461 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in cache_drop_all_and_sync_has_defaults()
1469 struct regmap *map; in cache_present() local
1477 map = gen_regmap(test, &config, &data); in cache_present()
1478 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_present()
1479 if (IS_ERR(map)) in cache_present()
1487 KUNIT_ASSERT_FALSE(test, regcache_reg_cached(map, param->from_reg + i)); in cache_present()
1495 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, param->from_reg + i, &val)); in cache_present()
1499 KUNIT_ASSERT_TRUE(test, regcache_reg_cached(map, param->from_reg + i)); in cache_present()
1505 struct regmap *map; in cache_range_window_reg() local
1517 map = gen_regmap(test, &config, &data); in cache_range_window_reg()
1518 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in cache_range_window_reg()
1519 if (IS_ERR(map)) in cache_range_window_reg()
1524 KUNIT_ASSERT_EQ(test, 0, regmap_write(map, i, 0)); in cache_range_window_reg()
1530 KUNIT_ASSERT_EQ(test, 0, regmap_write(map, test_range.range_min, 0)); in cache_range_window_reg()
1535 regcache_mark_dirty(map); in cache_range_window_reg()
1536 KUNIT_ASSERT_EQ(test, 0, regcache_sync(map)); in cache_range_window_reg()
1539 KUNIT_ASSERT_EQ(test, 0, regmap_write(map, test_range.range_min, 0)); in cache_range_window_reg()
1544 regcache_mark_dirty(map); in cache_range_window_reg()
1545 KUNIT_ASSERT_EQ(test, 0, regcache_sync(map)); in cache_range_window_reg()
1548 KUNIT_ASSERT_EQ(test, 0, regmap_write(map, test_range.range_max, 0)); in cache_range_window_reg()
1665 struct regmap *map; in raw_read_defaults_single() local
1673 map = gen_raw_regmap(test, &config, &data); in raw_read_defaults_single()
1674 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_read_defaults_single()
1675 if (IS_ERR(map)) in raw_read_defaults_single()
1680 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_read_defaults_single()
1687 struct regmap *map; in raw_read_defaults() local
1697 map = gen_raw_regmap(test, &config, &data); in raw_read_defaults()
1698 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_read_defaults()
1699 if (IS_ERR(map)) in raw_read_defaults()
1709 KUNIT_EXPECT_EQ(test, 0, regmap_raw_read(map, 0, rval, val_len)); in raw_read_defaults()
1722 struct regmap *map; in raw_write_read_single() local
1730 map = gen_raw_regmap(test, &config, &data); in raw_write_read_single()
1731 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_write_read_single()
1732 if (IS_ERR(map)) in raw_write_read_single()
1738 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 0, val)); in raw_write_read_single()
1739 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 0, &rval)); in raw_write_read_single()
1745 struct regmap *map; in raw_write() local
1755 map = gen_raw_regmap(test, &config, &data); in raw_write()
1756 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_write()
1757 if (IS_ERR(map)) in raw_write()
1765 KUNIT_EXPECT_EQ(test, 0, regmap_raw_write(map, 2, val, sizeof(val))); in raw_write()
1769 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_write()
1804 struct regmap *map; in raw_noinc_write() local
1816 map = gen_raw_regmap(test, &config, &data); in raw_noinc_write()
1817 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_noinc_write()
1818 if (IS_ERR(map)) in raw_noinc_write()
1834 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 1, val_test)); in raw_noinc_write()
1837 KUNIT_EXPECT_EQ(test, 0, regmap_noinc_write(map, 0, val_array, in raw_noinc_write()
1841 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 0, &val)); in raw_noinc_write()
1845 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, 1, &val)); in raw_noinc_write()
1851 struct regmap *map; in raw_sync() local
1861 map = gen_raw_regmap(test, &config, &data); in raw_sync()
1862 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_sync()
1863 if (IS_ERR(map)) in raw_sync()
1871 regcache_cache_only(map, true); in raw_sync()
1872 KUNIT_EXPECT_EQ(test, 0, regmap_raw_write(map, 2, val, in raw_sync()
1874 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, 4, val[2])); in raw_sync()
1878 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, i, &rval)); in raw_sync()
1916 regcache_cache_only(map, false); in raw_sync()
1917 regcache_mark_dirty(map); in raw_sync()
1918 KUNIT_EXPECT_EQ(test, 0, regcache_sync(map)); in raw_sync()
1926 struct regmap *map; in raw_ranges() local
1938 map = gen_raw_regmap(test, &config, &data); in raw_ranges()
1939 KUNIT_ASSERT_FALSE(test, IS_ERR(map)); in raw_ranges()
1940 if (IS_ERR(map)) in raw_ranges()
1944 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, test_range.selector_reg, in raw_ranges()
1950 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, test_range.range_min, 0)); in raw_ranges()
1956 KUNIT_EXPECT_EQ(test, 0, regmap_write(map, in raw_ranges()
1966 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, test_range.range_min, &val)); in raw_ranges()
1972 KUNIT_EXPECT_EQ(test, 0, regmap_read(map, in raw_ranges()