Lines Matching defs:buf
91 int do_write(int fd, unsigned char *buf,int len)
97 ret = write(fd,buf+write_offset,write_len);
290 int read_vs_hci_event(int fd, unsigned char* buf, int size)
306 r = read(fd, buf, 1);
309 if (buf[0] == 0x04)
316 r = read(fd, buf + count, 3 - count);
317 if ((r <= 0) || (buf[1] != 0xFF )) {
318 ALOGE("It is not VS event !! ret: %d, EVT: %d", r, buf[1]);
325 if (buf[2] < (size - 3))
326 remain = buf[2];
331 r = read(fd, buf + count, remain - (count - 3));
338 if(get_vs_hci_event(buf) != HCI_CMD_SUCCESS)
485 void rome_extract_patch_header_info(unsigned char *buf)
492 (LSH(buf[index + P_ID_OFFSET], (index * 8)));
497 (LSH(buf[index + P_ROME_VER_OFFSET], (index * 8)));
501 (LSH(buf[index + P_BUILD_VER_OFFSET], (index * 8)));
506 (LSH(buf[index + P_BASE_ADDR_OFFSET], (index * 8)));
514 (LSH(buf[index + P_LEN_OFFSET], (index * 8)));
519 (LSH(buf[index + P_CRC_OFFSET], (index * 8)));
524 (LSH(buf[index + P_CONTROL_OFFSET], (index * 8)));