Home
last modified time | relevance | path

Searched refs:hci_cmd_hdr_t (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/usr.bin/btkey/
H A Ddevice.c64 uint8_t buf[sizeof(hci_cmd_hdr_t) + HCI_CMD_PKT_SIZE]; in hci_req()
67 hci_cmd_hdr_t *hdr; in hci_req()
80 hdr = (hci_cmd_hdr_t *)buf; in hci_req()
85 memcpy(buf + sizeof(hci_cmd_hdr_t), cptr, clen); in hci_req()
93 || send(fd, buf, sizeof(hci_cmd_hdr_t) + clen, 0) < 0) in hci_req()
/netbsd-src/usr.sbin/bthcid/
H A Dhci.c329 hci_cmd_hdr_t *h = (hci_cmd_hdr_t *)msg; in send_hci_cmd()
336 memcpy(msg + sizeof(hci_cmd_hdr_t), buf, len); in send_hci_cmd()
338 return sendto(sock, msg, sizeof(hci_cmd_hdr_t) + len, MSG_NOSIGNAL, in send_hci_cmd()
/netbsd-src/sys/netbt/
H A Dhci_unit.c307 hci_cmd_hdr_t *p; in hci_send_cmd()
315 p = mtod(m, hci_cmd_hdr_t *); in hci_send_cmd()
319 m->m_pkthdr.len = m->m_len = sizeof(hci_cmd_hdr_t); in hci_send_cmd()
324 m_copyback(m, sizeof(hci_cmd_hdr_t), len, buf); in hci_send_cmd()
325 if (m->m_pkthdr.len != (sizeof(hci_cmd_hdr_t) + len)) { in hci_send_cmd()
H A Dhci_socket.c216 hci_cmd_hdr_t *hdr = (hci_cmd_hdr_t *)arg1; in hci_device_cb()
599 hci_cmd_hdr_t hdr; in hci_send()
844 KASSERT(m->m_len >= sizeof(hci_cmd_hdr_t)); in hci_mtap()
845 arg1 = le16toh(mtod(m, hci_cmd_hdr_t *)->opcode); in hci_mtap()
H A Dhci.h437 } __packed hci_cmd_hdr_t; typedef
440 #define HCI_CMD_PKT_SIZE (sizeof(hci_cmd_hdr_t) + 0xff)
2066 typedef hci_cmd_hdr_t hci_loopback_command_ep;
/netbsd-src/sys/dev/pcmcia/
H A Dbtbc.c342 hci_cmd_hdr_t *p; in btbc_set_baudrate()
368 p = mtod(m, hci_cmd_hdr_t *); in btbc_set_baudrate()
372 m->m_pkthdr.len = m->m_len = sizeof(hci_cmd_hdr_t); in btbc_set_baudrate()
373 m_copyback(m, sizeof(hci_cmd_hdr_t), p->length, &param); in btbc_set_baudrate()
549 hci_cmd_hdr_t *p; in btbc_transmit()
563 p = mtod(m, hci_cmd_hdr_t *); in btbc_transmit()
/netbsd-src/lib/libbluetooth/
H A Dbt_dev.c199 hci_cmd_hdr_t hdr; in bt_devsend()
283 if (sizeof(hci_cmd_hdr_t) > (size_t)n in bt_devrecv()
284 || sizeof(hci_cmd_hdr_t) + p[3] != (size_t)n) in bt_devrecv()
/netbsd-src/share/examples/rump/btplay/
H A Dbtplay.c71 hci_cmd_hdr_t *cmd; in main()
/netbsd-src/usr.sbin/btattach/
H A Dbtattach.c369 hci_cmd_hdr_t hdr; in uart_send_cmd()