Searched refs:dev_str (Results 1 – 6 of 6) sorted by relevance
/AliOS-Things-master/hardware/chip/rtl872xd/aos/ |
A D | ota_port.c | 44 char dev_str[16] = {0}; in ota_set_user_bootinfo() local 58 memset(dev_str, 0, sizeof(dev_str)); in ota_set_user_bootinfo() 59 snprintf(dev_str, 15, "/dev/mtdblock%d", partition_id); in ota_set_user_bootinfo() 60 fd = open(dev_str, 0); in ota_set_user_bootinfo() 62 printf("open %s failed\r\n", dev_str); in ota_set_user_bootinfo() 84 memset(dev_str, 0 , sizeof(dev_str)); in ota_set_user_bootinfo() 85 snprintf(dev_str, 15, "/dev/mtdblock%d", partition_id); in ota_set_user_bootinfo() 86 fd = open(dev_str, 0); in ota_set_user_bootinfo() 88 printf("open %s failed\r\n", dev_str); in ota_set_user_bootinfo() 114 snprintf(dev_str, 15, "/dev/mtdblock%d", partition_id); in ota_set_user_bootinfo() [all …]
|
/AliOS-Things-master/components/ota/hal/ |
A D | ota_hal_vfs_param.c | 38 char dev_str[16] = {0}; in ota_read_parameter() local 43 snprintf(dev_str, 15, "/dev/mtdblock%d", MTD_PART_ID_ENV); in ota_read_parameter() 44 temp_fd = open(dev_str, 0); in ota_read_parameter() 73 char dev_str[16] = {0}; in ota_update_parameter() local 84 snprintf(dev_str, 15, "/dev/mtdblock%d", MTD_PART_ID_ENV); in ota_update_parameter() 85 temp_fd = open(dev_str, 0); in ota_update_parameter() 175 char dev_str[16] = {0}; in ota_clear_paramters() local 178 snprintf(dev_str, 15, "/dev/mtdblock%d", MTD_PART_ID_ENV); in ota_clear_paramters() 179 temp_fd = open(dev_str, 0); in ota_clear_paramters()
|
A D | ota_hal_vfs_plat.c | 38 char dev_str[16] = {0}; in ota_hal_init() local 50 snprintf(dev_str, 15, "/dev/mtdblock%d", partition_id); in ota_hal_init() 51 ota_fd = open(dev_str, 0); in ota_hal_init() 195 char dev_str[16]; in ota_hal_rollback() local 198 snprintf(dev_str, 15, "/dev/mtdblock%d", MTD_PART_ID_ENV); in ota_hal_rollback() 199 temp_fd = open(dev_str, 0); in ota_hal_rollback() 315 char dev_str[16] = {0}; in ota_hal_read() local 323 snprintf(dev_str, 15, "/dev/mtdblock%d", partition_id); in ota_hal_read() 324 temp_fd = open(dev_str, 0); in ota_hal_read()
|
/AliOS-Things-master/components/drivers/peripheral/flash/example/ |
A D | flash_example.c | 31 char dev_str[16]; in vfs_flash_test() local 36 snprintf(dev_str,16-1,"/dev/flash%d", flash_id); in vfs_flash_test() 38 fd = open(dev_str, 0); in vfs_flash_test() 39 …ddkc_info("open flash %s %s, fd:%d, epfd:%d\r\n", dev_str, fd >= 0 ? "success" : "fail", fd, epfd); in vfs_flash_test()
|
/AliOS-Things-master/components/kv/src/ |
A D | kv_adapt.c | 23 char dev_str[16] = {0}; in kv_flash_fd_open() local 29 snprintf(dev_str,16-1,"/dev/mtdblock%d",KV_PARTITION); in kv_flash_fd_open() 31 snprintf(dev_str,16-1,"/dev/flash%d",KV_PARTITION); in kv_flash_fd_open() 34 fd = open(dev_str, 0); in kv_flash_fd_open()
|
/AliOS-Things-master/components/littlefs/src/ |
A D | littlefs_vfs.c | 675 char dev_str[16]; in _lfs_init() local 709 memset(dev_str, 0, sizeof(dev_str)); in _lfs_init() 710 snprintf(dev_str, sizeof(dev_str) - 1, in _lfs_init() 712 fd = open(dev_str, 0); in _lfs_init() 715 LFS_ERROR("Faild to open device %s", dev_str); in _lfs_init()
|
Completed in 18 milliseconds