Lines Matching refs:opcode
64 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument
69 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd()
79 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd()
89 uint16_t opcode; in handle_cmd_complete() local
102 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
110 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
116 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete()
120 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
324 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
328 LOG_DBG("opcode %x", opcode); in send_cmd()
331 cmd = create_cmd(opcode, 0); in send_cmd()
337 active_opcode = opcode; in send_cmd()
420 static void set_event_mask(uint16_t opcode) in set_event_mask() argument
427 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask()
435 send_cmd(opcode, buf, NULL); in set_event_mask()