Lines Matching full:service

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,
61 void tester_register_command_handlers(uint8_t service, in tester_register_command_handlers() argument
65 __ASSERT_NO_MSG(service <= BTP_SERVICE_ID_MAX); in tester_register_command_handlers()
66 __ASSERT_NO_MSG(service_handler[service].handlers == NULL); in tester_register_command_handlers()
68 service_handler[service].handlers = handlers; in tester_register_command_handlers()
69 service_handler[service].num = num; in tester_register_command_handlers()
72 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument
74 if ((service > BTP_SERVICE_ID_MAX) || in find_btp_handler()
75 (service_handler[service].handlers == NULL)) { in find_btp_handler()
79 for (uint8_t i = 0; i < service_handler[service].num; i++) { in find_btp_handler()
80 if (service_handler[service].handlers[i].opcode == opcode) { in find_btp_handler()
81 return &service_handler[service].handlers[i]; in find_btp_handler()
101 btp = find_btp_handler(cmd->hdr.service, cmd->hdr.opcode); in cmd_handler()
127 tester_send_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler()
130 tester_rsp_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler()
240 /* core service is always available */ in tester_init()
275 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_send_with_index() argument
280 msg.service = service; in tester_send_with_index()
291 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_rsp_with_index() argument
297 tester_send_with_index(service, opcode, index, NULL, 0); in tester_rsp_with_index()
302 tester_send_with_index(service, BTP_STATUS, index, (uint8_t *) &s, sizeof(s)); in tester_rsp_with_index()
305 void tester_event(uint8_t service, uint8_t opcode, const void *data, size_t len) in tester_event() argument
308 tester_send_with_index(service, opcode, BTP_INDEX, data, len); in tester_event()
311 void tester_rsp_full(uint8_t service, uint8_t opcode, const void *rsp, size_t len) in tester_rsp_full() argument
318 tester_send_with_index(service, opcode, BTP_INDEX, rsp, len); in tester_rsp_full()
327 void tester_rsp(uint8_t service, uint8_t opcode, uint8_t status) in tester_rsp() argument
334 tester_rsp_with_index(service, opcode, BTP_INDEX, status); in tester_rsp()