/hardware/broadcom/libbt/src/ |
hardware.c | 121 int fw_fd; /* FW patch file fd */ member in struct:__anon20421 656 if ((hw_cfg_cb.fw_fd = open(p_name, O_RDONLY)) == -1) 693 p_buf->len = read(hw_cfg_cb.fw_fd, p, HCI_CMD_PREAMBLE_SIZE); 703 p_buf->len += read(hw_cfg_cb.fw_fd, \ 713 close(hw_cfg_cb.fw_fd); 714 hw_cfg_cb.fw_fd = -1; 790 if (hw_cfg_cb.fw_fd != -1) 792 close(hw_cfg_cb.fw_fd); 793 hw_cfg_cb.fw_fd = -1; 824 if (hw_cfg_cb.fw_fd != -1 [all...] |
/system/core/init/ |
devices.c | 652 static int load_firmware(int fw_fd, int loading_fd, int data_fd) 658 if(fstat(fw_fd, &st) < 0) 668 nr = read(fw_fd, buf, sizeof(buf)); 706 int l, loading_fd, data_fd, fw_fd; local 745 fw_fd = open(file1, O_RDONLY); 746 if(fw_fd < 0) { 747 fw_fd = open(file2, O_RDONLY); 748 if (fw_fd < 0) { 749 fw_fd = open(file3, O_RDONLY); 750 if (fw_fd < 0) [all...] |
/hardware/msm7k/libaudio-qsd8k/ |
AudioHardware.cpp | 906 int rc = 0, fw_fd = -1; local 923 fw_fd = open(fn, O_RDONLY); 924 if (fw_fd < 0) { 931 rc = fstat(fw_fd, &fw_stat); 948 nr = read(fw_fd, ptr, remaining); 963 close (fw_fd); 964 fw_fd = -1; 978 if (fw_fd >= 0) 979 close(fw_fd); [all...] |