/device/soc/rockchip/rk3568/hardware/omx_il/osal/ |
H A D | Rockchip_OSAL_Log.c | 40 static FILE *fp = NULL; in _Rockchip_OSAL_Log() local 41 if (fp == NULL) { in _Rockchip_OSAL_Log() 42 fp = fopen("/data/omx.log", "a"); in _Rockchip_OSAL_Log() 43 if (fp == NULL) { in _Rockchip_OSAL_Log() 62 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 63 fflush(fp); in _Rockchip_OSAL_Log() 72 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 73 fflush(fp); in _Rockchip_OSAL_Log() 82 fwrite(str, strlen(str), 1, fp); in _Rockchip_OSAL_Log() 83 fflush(fp); in _Rockchip_OSAL_Log() [all...] |
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/oal/ |
H A D | oal_file.h | 58 #define OAL_FILE_POS(pst_file) (pst_file->fp->f_pos) 81 struct file *fp; member 111 pst_file->fp = filp_open(pc_path, flags, rights); in oal_file_open() 112 if (IS_ERR_OR_NULL(pst_file->fp)) { in oal_file_open() 142 ul_ret = vfs_write(pst_file->fp, pc_string, ul_length, &(pst_file->fp->f_pos)); in oal_file_write() 160 filp_close(pst_file->fp, NULL); in oal_file_close() 180 return kernel_read(pst_file->fp, pc_buf, ul_count, &(pst_file->fp->f_pos)); in oal_file_read() 189 return vfs_llseek(pst_file->fp, offse in oal_file_lseek() [all...] |
H A D | plat_firmware.c | 479 oal_file_stru *fp = HI_NULL; in open_file_to_readm() local 487 fp = oal_file_open((const hi_char *)file_name, (OAL_O_CREAT | OAL_O_RDWR | OAL_O_TRUNC), 0); in open_file_to_readm() 489 return fp; in open_file_to_readm() 494 输入参数 : fp : 保存内存的文件指针 499 static hi_s32 recv_device_mem(oal_file_stru *fp, hi_u8 *puc_data_buf, hi_s32 len) in recv_device_mem() argument 505 if (IS_ERR_OR_NULL(fp)) { in recv_device_mem() 506 oam_error_log1(0, 0, "fp is error,fp = 0x%p\n", (uintptr_t)fp); in recv_device_mem() 533 oal_file_write(fp, (hi_cha in recv_device_mem() 742 read_device_mem(const wifi_dump_mem_info_stru *mem_dump_info, oal_file_stru *fp, const firmware_mem_stru *firmware_mem) read_device_mem() argument 784 oal_file_stru *fp = HI_NULL; read_mem() local 949 oal_file_stru *fp = HI_NULL; exec_file_type_cmd() local 1196 oal_file_stru *fp; firmware_write_cfg() local 1265 oal_file_stru *fp = HI_NULL; firmware_read_cfg() local [all...] |
/device/soc/rockchip/rk3588/hardware/mpp/include/ |
H A D | utils_mpp.h | 58 void dump_mpp_frame_to_file(MppFrame frame, FILE *fp); 61 void write_data_crc(FILE *fp, DataCrc *crc); 62 void read_data_crc(FILE *fp, DataCrc *crc); 65 void write_frm_crc(FILE *fp, FrmCrc *crc); 66 void read_frm_crc(FILE *fp, FrmCrc *crc); 68 MPP_RET read_image(RK_U8 *buf, FILE *fp, RK_U32 width, RK_U32 height,
|
H A D | mpp_mem.h | 47 #define MPP_FCLOSE(fp) do { if(fp) fclose(fp); fp = NULL; } while (0)
|
/device/soc/rockchip/rk3399/hardware/mpp/include/ |
H A D | mpp_mem.h | 46 #define MPP_FCLOSE(fp) do { if (fp) fclose(fp); fp = NULL; } while (0)
|
/device/soc/rockchip/rk3568/hardware/mpp/include/ |
H A D | mpp_mem.h | 46 #define MPP_FCLOSE(fp) do { if (fp) fclose(fp); fp = NULL; } while (0)
|
/device/soc/rockchip/common/hardware/mpp/include/ |
H A D | mpp_mem.h | 44 #define MPP_FCLOSE(fp) \ 46 if (fp) \ 47 fclose(fp); \ 48 fp = NULL; \
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | make_upg_file.py | 565 with open(kernel_file, 'rb') as fp:
566 kernel_bin = fp.read()
567 with open(normal_nv_file, 'rb') as fp:
568 nv_bin = fp.read()
586 with open(upg_unenrypt_file, 'wb+') as fp:
587 fp.write(hupg_bin)
597 with open(image_file, 'wb+') as fp:
598 fp.write(hupg_bin)
610 with open(upg_lzma_file, 'rb') as fp:
611 upg_lzma_file_bin = fp [all...] |
H A D | pkt_builder.py | 311 with open(version_file, 'wb+') as fp:
312 fp.write(version_bin)
364 with open(tee_cert1_file, 'rb') as fp:
365 tee_cert1_bin = fp.read()
366 with open(tee_cert2_file, 'rb') as fp:
367 tee_cert2_bin = fp.read()
368 with open(tee_key_file, 'rb') as fp:
369 tee_key_bin = fp.read()
387 with open(cert_bin_file, 'wb+') as fp:
388 fp [all...] |
/device/soc/rockchip/rk2206/hardware/ |
H A D | build.py | 22 self.fp = open("BUILD.gn", 'w+', encoding='utf-8') 42 self.fp.write(head) 59 self.fp.write(inc) 63 self.fp.write(tail) 85 self.fp.write(source)
|
/device/board/hihope/rk3568/wifi/bcmdhd_wifi6/hdfadapt/ |
H A D | hdfinit_bdh.c | 89 struct file *fp = NULL; in CheckWiFiImageFile() local 93 fp = filp_open(filename, O_RDONLY, 0); in CheckWiFiImageFile() 94 if (IS_ERR(fp)) { in CheckWiFiImageFile() 95 HDF_LOGE("%s:open %s failed, cnt=%d, error=%d", __func__, filename, icnt, PTR_ERR(fp)); in CheckWiFiImageFile() 96 fp = NULL; in CheckWiFiImageFile() 99 filp_close(fp, NULL); in CheckWiFiImageFile() 100 fp = NULL; in CheckWiFiImageFile()
|
/device/board/hisilicon/hispark_aries/uboot/secureboot_release/ |
H A D | aeskey2reg.c | 30 int getlinetxt(FILE *fp,int line,char *stri){
in getlinetxt() argument 32 fseek(fp,0,0);
in getlinetxt() 34 if(fgets(stri,MaxCols,fp)==NULL)
in getlinetxt()
|
/device/soc/rockchip/common/vendor/drivers/staging/android/fiq_debugger/ |
H A D | fiq_debugger_arm.c | 175 sts->output->printf(sts->output, " pc: %px (%pF), lr %px (%pF), sp %px, fp %px\n", frame->pc, frame->pc,
in report_trace() 176 frame->lr, frame->lr, frame->sp, frame->fp);
in report_trace() 187 struct frame_tail *fp;
member 210 if (tail >= buftail[0].fp) {
in user_backtrace() 214 return buftail[0].fp - 1;
in user_backtrace() 237 frame.fp = regs->ARM_fp;
in fiq_debugger_dump_stacktrace() 241 output->printf(output, " pc: %px (%pF), lr %px (%pF), sp %px, fp %px\n", regs->ARM_pc, regs->ARM_pc,
in fiq_debugger_dump_stacktrace()
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/platform/svp/common/ |
H A D | sample_comm_ive.h | 89 #define IVE_CLOSE_FILE(fp) \
91 if ((fp) != NULL) { \
92 (void)fclose((fp)); \
93 (fp) = NULL; \
|
H A D | sample_comm_svp.h | 147 #define SAMPLE_SVP_CLOSE_FILE(fp) \
149 if ((fp) != NULL) { \
150 (void)fclose((fp)); \
151 (fp) = NULL; \
|
H A D | sample_comm_nnie.c | 387 FILE *fp = fopen(path, "rb");
in SAMPLE_COMM_SVP_NNIE_LoadModel() local 388 SAMPLE_SVP_CHECK_EXPR_RET(fp == NULL, s32Ret, SAMPLE_SVP_ERR_LEVEL_ERROR, "Error, open model file failed!\n");
in SAMPLE_COMM_SVP_NNIE_LoadModel() 389 s32Ret = fseek(fp, 0L, SEEK_END);
in SAMPLE_COMM_SVP_NNIE_LoadModel() 391 slFileSize = ftell(fp);
in SAMPLE_COMM_SVP_NNIE_LoadModel() 393 s32Ret = fseek(fp, 0L, SEEK_SET);
in SAMPLE_COMM_SVP_NNIE_LoadModel() 406 ulSize = fread(pu8VirAddr, slFileSize, 1, fp);
in SAMPLE_COMM_SVP_NNIE_LoadModel() 414 (HI_VOID)fclose(fp);
in SAMPLE_COMM_SVP_NNIE_LoadModel() 421 if (fp != NULL) {
in SAMPLE_COMM_SVP_NNIE_LoadModel() 422 (HI_VOID)fclose(fp);
in SAMPLE_COMM_SVP_NNIE_LoadModel()
|
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
H A D | rockchip_dmc_dbg.c | 186 struct file *fp = NULL; in dmcinfo_proc_show() local 231 fp = filp_open("/sys/class/devfreq/dmc/cur_freq", O_RDONLY, 0); in dmcinfo_proc_show() 232 if (IS_ERR(fp)) { in dmcinfo_proc_show() 240 kernel_read(fp, cur_freq, sizeof(cur_freq), &pos); in dmcinfo_proc_show() 241 filp_close(fp, NULL); in dmcinfo_proc_show() 243 fp = filp_open("/sys/class/devfreq/dmc/governor", O_RDONLY, 0); in dmcinfo_proc_show() 244 if (IS_ERR(fp)) { in dmcinfo_proc_show() 245 fp = NULL; in dmcinfo_proc_show() 248 kernel_read(fp, governor, sizeof(governor), &pos); in dmcinfo_proc_show() 249 filp_close(fp, NUL in dmcinfo_proc_show() [all...] |
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/ |
H A D | dhd_linux_exportfs.c | 570 struct file *fp = NULL; in get_mem_val_from_file() local 577 fp = filp_open(filepath, O_RDONLY, 0); in get_mem_val_from_file() 578 if (IS_ERR(fp)) { in get_mem_val_from_file() 588 fp = filp_open(filepath, O_RDONLY, 0); in get_mem_val_from_file() 589 if (IS_ERR(fp)) { in get_mem_val_from_file() 599 ret = compat_kernel_read(fp, 0, (char *)&mem_val, sizeof(uint32)); in get_mem_val_from_file() 602 filp_close(fp, NULL); in get_mem_val_from_file() 610 filp_close(fp, NULL); in get_mem_val_from_file() 685 struct file *fp = NULL; in get_assert_val_from_file() local 697 fp in get_assert_val_from_file() [all...] |
H A D | linux_osl.c | 1246 struct file *fp; in osl_os_open_image() local 1248 fp = filp_open(filename, O_RDONLY, 0); in osl_os_open_image() 1252 * fp = open_namei(AT_FDCWD, filename, O_RD, 0); in osl_os_open_image() 1255 if (IS_ERR(fp)) in osl_os_open_image() 1256 fp = NULL; in osl_os_open_image() 1258 return fp; in osl_os_open_image() 1264 struct file *fp = (struct file *)image; in osl_os_get_image_block() local 1271 rdlen = kernel_read(fp, buf, len, &fp->f_pos); in osl_os_get_image_block() 1273 rdlen = kernel_read(fp, f in osl_os_get_image_block() [all...] |
H A D | dhd_linux.c | 8257 dhd_os_write_file_posn(void *fp, unsigned long *posn, void *buf, in dhd_os_write_file_posn() argument 8262 if (!fp || !buf || buflen == 0) in dhd_os_write_file_posn() 8265 if (compat_vfs_write((struct file *)fp, buf, buflen, &wr_posn) < 0) in dhd_os_write_file_posn() 13291 struct file *fp; in dhd_os_open_image1() local 13294 fp = filp_open(filename, O_RDONLY, 0); in dhd_os_open_image1() 13298 * fp = open_namei(AT_FDCWD, filename, O_RD, 0); in dhd_os_open_image1() 13301 if (IS_ERR(fp)) { in dhd_os_open_image1() 13302 fp = NULL; in dhd_os_open_image1() 13306 if (!S_ISREG(file_inode(fp)->i_mode)) { in dhd_os_open_image1() 13308 fp in dhd_os_open_image1() 13328 struct file *fp = (struct file *)image; dhd_os_get_image_block() local 13354 struct file *fp = (struct file *)image; dhd_os_gets_image() local 13381 struct file *fp = (struct file *)image; dhd_os_get_image_size() local 15826 struct file *fp = NULL; write_file() local 18124 dhd_get_dld_log_dump(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, int type, void *pos) dhd_get_dld_log_dump() argument 18306 dhd_print_time_str(const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_time_str() argument 18327 dhd_print_health_chk_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_health_chk_data() argument 18372 dhd_print_ext_trap_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_ext_trap_data() argument 18418 dhd_print_dump_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_dump_data() argument 18460 dhd_print_cookie_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_cookie_data() argument 18482 dhd_print_flowring_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_flowring_data() argument 18533 dhd_print_ecntrs_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_ecntrs_data() argument 18563 dhd_print_rtt_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_rtt_data() argument 18591 dhd_print_status_log_data(void *dev, dhd_pub_t *dhdp, const void *user_buf, void *fp, uint32 len, void *pos) dhd_print_status_log_data() argument 18641 struct file *fp = NULL; do_dhd_log_dump() local 18892 dhd_export_debug_data(void *mem_buf, void *fp, const void *user_buf, int buf_len, void *pos) dhd_export_debug_data() argument [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/make_scripts/ |
H A D | prepare.py | 91 with open(config_file, 'w+') as fp:
157 fp.write(line)
178 with open(src_makefile, 'w+') as fp:
221 fp.write(line)
|
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/ispp/ |
H A D | stream.c | 1481 struct file *fp = NULL; in dump_file() local 1486 fp = filp_open(file, O_RDWR | O_CREAT, 0644); in dump_file() 1487 if (IS_ERR(fp)) { in dump_file() 1494 kernel_write(fp, reg, strlen(reg), &fp->f_pos); in dump_file() 1496 filp_close(fp, NULL); in dump_file() 1501 fp = filp_open(file, O_RDWR | O_CREAT, 0644); in dump_file() 1502 if (IS_ERR(fp)) { in dump_file() 1507 kernel_write(fp, buf->vaddr[0], vdev->tnr.cur_rd->dbuf[0]->size, &fp in dump_file() [all...] |
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/ispp/ |
H A D | stream.c | 1540 struct file *fp = NULL; in dump_file() local 1546 fp = filp_open(file, O_RDWR | O_CREAT, 0644); in dump_file() 1547 if (IS_ERR(fp)) { in dump_file() 1555 kernel_write(fp, reg, strlen(reg), &fp->f_pos); in dump_file() 1557 filp_close(fp, NULL); in dump_file() 1563 fp = filp_open(file, O_RDWR | O_CREAT, 0644); in dump_file() 1564 if (IS_ERR(fp)) { in dump_file() 1570 kernel_write(fp, buf->vaddr[0], vdev->tnr.cur_rd->dbuf[0]->size, &fp in dump_file() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/opp/ |
H A D | debugfs.c | 35 static ssize_t bw_name_read(struct file *fp, char __user *userbuf, size_t count, loff_t *ppos) in bw_name_read() argument 37 struct icc_path *path = fp->private_data; in bw_name_read()
|