Lines Matching refs:opcode
60 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument
65 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd()
75 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd()
85 uint16_t opcode; in handle_cmd_complete() local
98 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
106 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
112 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete()
114 TEST_ASSERT(status == 0x00, "cmd 0x%x status: 0x%x", opcode, status); in handle_cmd_complete()
116 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
277 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
281 LOG_DBG("opcode %x", opcode); in send_cmd()
284 cmd = create_cmd(opcode, 0); in send_cmd()
290 __ASSERT_NO_MSG(opcode); in send_cmd()
291 active_opcode = opcode; in send_cmd()
349 static void set_event_mask(uint16_t opcode) in set_event_mask() argument
356 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask()
364 send_cmd(opcode, buf, NULL); in set_event_mask()