Lines Matching full:opcode
56 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index,
58 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index,
72 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument
80 if (service_handler[service].handlers[i].opcode == opcode) { in find_btp_handler()
99 LOG_DBG("cmd service 0x%02x opcode 0x%02x index 0x%02x", cmd->hdr.service, in cmd_handler()
100 cmd->hdr.opcode, cmd->hdr.index); in cmd_handler()
104 btp = find_btp_handler(cmd->hdr.service, cmd->hdr.opcode); in cmd_handler()
130 tester_send_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler()
133 tester_rsp_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler()
278 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_send_with_index() argument
284 msg.opcode = opcode; in tester_send_with_index()
294 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_rsp_with_index() argument
299 LOG_DBG("service 0x%02x opcode 0x%02x index 0x%02x status 0x%02x", service, opcode, index, in tester_rsp_with_index()
303 tester_send_with_index(service, opcode, index, NULL, 0); in tester_rsp_with_index()
311 void tester_event(uint8_t service, uint8_t opcode, const void *data, size_t len) in tester_event() argument
313 __ASSERT_NO_MSG(opcode >= 0x80); in tester_event()
315 LOG_DBG("service 0x%02x opcode 0x%02x", service, opcode); in tester_event()
317 tester_send_with_index(service, opcode, BTP_INDEX, data, len); in tester_event()
320 void tester_rsp_full(uint8_t service, uint8_t opcode, const void *rsp, size_t len) in tester_rsp_full() argument
324 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp_full()
327 LOG_DBG("service 0x%02x opcode 0x%02x", service, opcode); in tester_rsp_full()
329 tester_send_with_index(service, opcode, BTP_INDEX, rsp, len); in tester_rsp_full()
338 void tester_rsp(uint8_t service, uint8_t opcode, uint8_t status) in tester_rsp() argument
342 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp()
345 LOG_DBG("service 0x%02x opcode 0x%02x status 0x%02x", service, opcode, status); in tester_rsp()
347 tester_rsp_with_index(service, opcode, BTP_INDEX, status); in tester_rsp()