Home | History | Annotate | Download | only in qemu

Lines Matching defs:len

43     int len;
47 int type, const uint8_t *data, int len)
56 iv[1].iov_len = len;
67 static void bt_host_cmd(struct HCIInfo *hci, const uint8_t *data, int len)
69 bt_host_send(hci, HCI_COMMAND_PKT, data, len);
72 static void bt_host_acl(struct HCIInfo *hci, const uint8_t *data, int len)
74 bt_host_send(hci, HCI_ACLDATA_PKT, data, len);
77 static void bt_host_sco(struct HCIInfo *hci, const uint8_t *data, int len)
79 bt_host_send(hci, HCI_SCODATA_PKT, data, len);
91 s->len = read(s->fd, s->hdr, sizeof(s->hdr));
93 if (s->len < 0) {
99 while (s->len --)
102 if (s->len < 2)
105 pktlen = MIN(pkt[1] + 2, s->len);
107 s->len -= pktlen;
117 if (s->len < 4)
120 pktlen = MIN(((pkt[3] << 8) | pkt[2]) + 4, s->len);
122 s->len -= pktlen;
127 if (s->len < 3)
130 pktlen = MIN(pkt[2] + 3, s->len);
131 s->len -= pktlen;