Home | History | Annotate | Download | only in adaptation

Lines Matching full:pbuf

562 int my_read(int fd, uchar *pbuf, int len)
573 ALOGD_IF((appl_trace_level>=BT_TRACE_LEVEL_DEBUG), "%s: enter, pbuf=%lx, len = %d\n", __func__, (unsigned long)pbuf, len);
574 memset(pbuf, 0, len);
613 ret = read(fd, pbuf+offset, (size_t)count);
625 if (pbuf[offset] == HCIT_TYPE_NFC)
627 else if (pbuf[offset] == HCIT_TYPE_EVENT)
631 ALOGD( "%s: unknown HCIT type header pbuf[%d] = %x\n", __func__, offset, pbuf[offset]);
639 count = pbuf[offset-1];
661 if (pbuf[count] == HCIT_TYPE_NFC)
664 scru_dump_hex(pbuf+count, NULL, pbuf[count+3]+4, 0, 0);
665 count += pbuf[count+3]+4;
667 else if (pbuf[count] == HCIT_TYPE_EVENT)
670 scru_dump_hex(pbuf+count, NULL, pbuf[count+2]+3, 0, 0);
671 count += pbuf[count+2]+3;
675 ALOGD( "%s: unknown HCIT type header pbuf[%d] = %x, remain %d bytes\n", __func__, count, pbuf[count], ret-count);
676 scru_dump_hex(pbuf+count, NULL, ret - count, 0, 0);