Lines Matching refs:opcode
52 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument
57 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd()
67 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd()
77 uint16_t opcode; in handle_cmd_complete() local
91 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
99 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete()
105 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete()
109 __ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete()
304 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument
308 LOG_DBG("opcode %x", opcode); in send_cmd()
311 cmd = create_cmd(opcode, 0); in send_cmd()
317 active_opcode = opcode; in send_cmd()
400 static void set_event_mask(uint16_t opcode) in set_event_mask() argument
407 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask()
415 send_cmd(opcode, buf, NULL); in set_event_mask()