Lines Matching refs:opcode
61 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index,
63 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index,
77 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument
85 if (service_handler[service].handlers[i].opcode == opcode) { in find_btp_handler()
106 hdr->service, hdr->opcode, hdr->index); in cmd_handler()
108 btp = find_btp_handler(hdr->service, hdr->opcode); in cmd_handler()
139 tester_send_with_index(hdr->service, hdr->opcode, in cmd_handler()
142 tester_rsp_with_index(hdr->service, hdr->opcode, in cmd_handler()
288 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_send_with_index() argument
294 msg.opcode = opcode; in tester_send_with_index()
306 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_rsp_with_index() argument
311 LOG_DBG("service 0x%02x opcode 0x%02x index 0x%02x status 0x%02x", service, opcode, index, in tester_rsp_with_index()
315 tester_send_with_index(service, opcode, index, NULL, 0); in tester_rsp_with_index()
323 void tester_event(uint8_t service, uint8_t opcode, const void *data, size_t len) in tester_event() argument
325 __ASSERT_NO_MSG(opcode >= 0x80); in tester_event()
327 LOG_DBG("service 0x%02x opcode 0x%02x", service, opcode); in tester_event()
329 tester_send_with_index(service, opcode, BTP_INDEX, data, len); in tester_event()
332 void tester_rsp_full(uint8_t service, uint8_t opcode, const void *rsp, size_t len) in tester_rsp_full() argument
336 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp_full()
339 LOG_DBG("service 0x%02x opcode 0x%02x", service, opcode); in tester_rsp_full()
341 tester_send_with_index(service, opcode, BTP_INDEX, rsp, len); in tester_rsp_full()
350 void tester_rsp(uint8_t service, uint8_t opcode, uint8_t status) in tester_rsp() argument
354 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp()
357 LOG_DBG("service 0x%02x opcode 0x%02x status 0x%02x", service, opcode, status); in tester_rsp()
359 tester_rsp_with_index(service, opcode, BTP_INDEX, status); in tester_rsp()
377 tester_set_bit(cmds, handler->opcode); in tester_supported_commands()
379 if (handler->opcode > opcode_max) { in tester_supported_commands()
380 opcode_max = handler->opcode; in tester_supported_commands()