Lines Matching defs:hdr
369 hci_cmd_hdr_t hdr;
373 hdr.type = HCI_CMD_PKT;
374 hdr.opcode = htole16(opcode);
375 hdr.length = len;
377 iov[0].iov_base = &hdr;
378 iov[0].iov_len = sizeof(hdr);
497 hci_event_hdr_t hdr;
500 iov[0].iov_base = &hdr;
501 iov[0].iov_len = sizeof(hdr);
507 if (n < sizeof(hdr)
508 || hdr.type != HCI_EVENT_PKT
509 || hdr.event != event)
512 n -= sizeof(hdr);
526 hci_event_hdr_t hdr;
530 iov[0].iov_base = &hdr;
531 iov[0].iov_len = sizeof(hdr);
539 if (n < sizeof(hdr)
540 || hdr.type != HCI_EVENT_PKT
541 || hdr.event != HCI_EVENT_COMMAND_COMPL)
544 n -= sizeof(hdr);