Lines Matching refs:opcode
69 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument
74 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd()
84 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd()
94 uint16_t opcode; in handle_cmd_complete() local
107 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
115 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
121 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete()
125 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
347 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
351 LOG_DBG("opcode %x", opcode); in send_cmd()
354 cmd = create_cmd(opcode, 0); in send_cmd()
360 active_opcode = opcode; in send_cmd()
443 static void set_event_mask(uint16_t opcode) in set_event_mask() argument
450 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask()
458 send_cmd(opcode, buf, NULL); in set_event_mask()