Lines Matching full:vendor

9 #include <asm/arch/vendor.h>
15 /* tag for vendor check */
17 /* The Vendor partition contains the number of Vendor blocks */
29 /* Starting address of the Vendor in memory. */
33 * Vendor structure(128 * 512B = 64KB)
36 /* The maximum number of items in each Vendor block */
40 /* The Vendor partition contains the number of Vendor blocks */
44 * Vendor structure(8 * 512B = 4KB)
47 /* The maximum number of items in each Vendor block */
51 /* The Vendor partition contains the number of Vendor blocks */
55 * Vendor structure(8 * 512B = 4KB)
58 /* The maximum number of items in each Vendor block */
61 /* Vendor uinit test define */
74 * Different types of Flash vendor info are different.
80 * ensure the current Vendor block content integrity.
104 * Emmc vendor info size: 64KB
113 * Flash vendor info size: 4KB
122 * Flash vendor info size: 4KB
129 /* vendor info */
139 /* vendor private read write ops*/
272 debug("[Vendor INFO]:%s page_offset=0x%x count = %x\n", __func__, s_flash_info.part_offset + in mtd_vendor_write()
281 * erase one block for vendor storage request. in mtd_vendor_write()
311 /* vendor API implementation */
346 debug("[Vendor INFO]:VendorStorage offset address=0x%x\n", lba); in vendor_ops()
353 * partition offset is 0KB in FTL vendor block, in vendor_ops()
360 debug("[Vendor INFO]:VendorStorage offset address=0x%x\n", lba); in vendor_ops()
373 debug("[Vendor INFO]:VendorStorage offset address=0x%x\n", lba); in vendor_ops()
389 printf("[Vendor ERROR]:Boot device type is invalid!\n"); in vendor_ops()
404 debug("[Vendor INFO]:op=%s, ret=%d\n", write ? "write" : "read", ret); in vendor_ops()
411 * (vendor 0-3) and its structure is shown in the following figure.
412 * The init function is used to select the latest and valid vendor.
419 * 1. "version" and "version2" are used to verify that the vendor
438 printf("[Vendor ERROR]:Invalid boot device type(%d)\n", in vendor_storage_init()
489 debug("[Vendor ERROR]:Boot device type is invalid!\n"); in vendor_storage_init()
503 printf("[Vendor ERROR]:Malloc failed!\n"); in vendor_storage_init()
541 debug("[Vendor INFO]:max_ver=%d, vendor_id=%d.\n", max_ver, max_index); in vendor_storage_init()
544 * version of vendor in vendor_storage_init()
555 debug("[Vendor INFO]:Reset vendor info...\n"); in vendor_storage_init()
565 debug("[Vendor INFO]:ret=%d.\n", ret); in vendor_storage_init()
580 /* init vendor storage */ in vendor_storage_fixup()
586 offset = fdt_node_offset_by_compatible(blob, 0, "rockchip,vendor-storage-rm"); in vendor_storage_fixup()
591 fdt_update_reserved_memory(blob, "rockchip,vendor-storage-rm", in vendor_storage_fixup()
615 /* init vendor storage */ in vendor_storage_read()
625 debug("[Vendor INFO]:Find the matching item, id=%d\n", id); in vendor_storage_read()
634 debug("[Vendor ERROR]:No matching item, id=%d\n", id); in vendor_storage_read()
657 /* init vendor storage */ in vendor_storage_write()
706 debug("[Vendor INFO]:Find the matching item, id=%d\n", id); in vendor_storage_write()
725 debug("[Vendor INFO]:Create new Item, id=%d\n", id); in vendor_storage_write()
744 debug("[Vendor ERROR]:Vendor has no space left!\n"); in vendor_storage_write()
750 /* vendor API uinit test */
752 /* Reset the vendor storage space to the initial state */
813 printf("%s: vendor storage init failed, ret=%d\n", in vendor_storage_test()
859 printf("[Vendor Test]:Malloc failed(size=%d)!\n", size); in vendor_storage_test()
862 printf("[Vendor Test]:Test Start...\n"); in vendor_storage_test()
863 printf("[Vendor Test]:Before Test, Vendor Resetting.\n"); in vendor_storage_test()
868 printf("[Vendor Test]:<All Items Used> Test Start...\n"); in vendor_storage_test()
869 printf("[Vendor Test]:item_num=%d, size=%d.\n", item_num, size); in vendor_storage_test()
878 printf("[Vendor Test]:vendor write failed(id=%d)!\n", id); in vendor_storage_test()
888 printf("[Vendor Test]:vendor read failed(id=%d)!\n", id); in vendor_storage_test()
895 printf("[Vendor Test]:Unexpected error occurs(id=%d)\n", id); in vendor_storage_test()
905 printf("[Vendor Test]:<All Items Used> Test End,States:OK\n"); in vendor_storage_test()
907 printf("[Vendor Test]:<All Items Used> re init,States:OK\n"); in vendor_storage_test()
914 printf("[Vendor Test]:vendor read failed(id=%d)!\n", id); in vendor_storage_test()
921 printf("[Vendor Test]:Unexpected error occurs(id=%d)\n", id); in vendor_storage_test()
931 printf("[Vendor Test]:<All Items Used> Test End,States:OK\n"); in vendor_storage_test()
940 printf("[Vendor Test]:<Overflow Items Cnt> Test Start...\n"); in vendor_storage_test()
943 printf("[Vendor Test]:id=%d, size=%d.\n", id, size); in vendor_storage_test()
946 printf("[Vendor Test]:<Overflow Items Cnt> Test End,States:OK\n"); in vendor_storage_test()
948 printf("[Vendor Test]:<Overflow Items Cnt> Test End,States:Failed\n"); in vendor_storage_test()
977 printf("[Vendor Test]:Malloc failed(size=%d)!\n", size); in vendor_storage_test()
982 printf("[Vendor Test]:<Single Item Memory Overflow> Test Start...\n"); in vendor_storage_test()
987 printf("[Vendor Test]:id=%d, size=%d.\n", id, size); in vendor_storage_test()
990 printf("[Vendor Test]:<Single Item Memory Overflow> Test End, States:OK\n"); in vendor_storage_test()
992 printf("[Vendor Test]:<Single Item Memory Overflow> Test End, States:Failed\n"); in vendor_storage_test()
995 printf("[Vendor Test]:<Total memory overflow> Test Start...\n"); in vendor_storage_test()
996 printf("[Vendor Test]:item_num=%d, size=%d.\n", item_num, size); in vendor_storage_test()
1004 printf("[Vendor Test]:<Total memory overflow> Test End, States:OK\n"); in vendor_storage_test()
1007 printf("[Vendor Test]:<Total memory overflow> Test End, States:Failed\n"); in vendor_storage_test()
1015 printf("[Vendor Test]:After Test, Vendor Resetting...\n"); in vendor_storage_test()
1017 printf("[Vendor Test]:Test End.\n"); in vendor_storage_test()