Lines Matching refs:cmd
31 static int start_xfer_wait(int fd, uint8_t *cmd, uint16_t len, uint32_t msec, in start_xfer_wait() argument
42 if (fd == -1 || !cmd || len < 4) { in start_xfer_wait()
47 opcode = ((uint16_t)cmd[2] << 8) + cmd[1]; in start_xfer_wait()
50 result = write(fd, cmd, len); in start_xfer_wait()
202 uint8_t cmd[8] = { 0 }; in h4_vendor_change_speed() local
204 cmd[0] = 1; in h4_vendor_change_speed()
205 cmd[1] = 0x17; in h4_vendor_change_speed()
206 cmd[2] = 0xfc; in h4_vendor_change_speed()
207 cmd[3] = 4; in h4_vendor_change_speed()
211 memcpy((uint16_t *) & cmd[4], &baudrate, 4); in h4_vendor_change_speed()
213 memcpy((uint16_t *) & cmd[4], &baudrate, 2); in h4_vendor_change_speed()
214 cmd[6] = 0; in h4_vendor_change_speed()
215 cmd[7] = 0; in h4_vendor_change_speed()
222 cmd[4], cmd[5], cmd[6], cmd[7]); in h4_vendor_change_speed()
224 res = start_xfer_wait(fd, cmd, 8, 1000, 0, NULL, 0); in h4_vendor_change_speed()
234 uint8_t cmd[4] = { 0x01, 0x03, 0x0c, 0x00}; in h4_hci_reset() local
238 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, NULL, 0); in h4_hci_reset()
249 uint8_t cmd[4] = { 0x01, 0x01, 0x10, 0x00 }; in h4_read_local_ver() local
254 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, in h4_read_local_ver()
275 uint8_t cmd[4] = { 0x01, 0x6d, 0xfc, 0x00 }; in h4_vendor_read_rom_ver() local
280 result = start_xfer_wait(fd, cmd, sizeof(cmd), 1000, 0, in h4_vendor_read_rom_ver()