| 86 | int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd); |
| 87 | |
| 88 | static inline uint64_t mc_encode_cmd_header(uint16_t cmd_id, |
| 89 | uint32_t cmd_flags, |
| 90 | uint16_t token) |
| 91 | { |
| 92 | uint64_t header = 0; |
| 93 | struct mc_cmd_header *hdr = (struct mc_cmd_header *)&header; |
| 94 | |
| 95 | hdr->cmd_id = cpu_to_le16(cmd_id); |
| 96 | hdr->token = cpu_to_le16(token); |
| 97 | hdr->status = MC_CMD_STATUS_READY; |
| 98 | hdr->word[0] |= cpu_to_le32(cmd_flags & MC_CMD_HDR_FLAGS_MASK); |
| 99 | |
| 100 | return header; |
| 101 | } |
| 102 | |
| 103 | static inline uint16_t mc_cmd_hdr_read_token(struct mc_command *cmd) |
| 104 | { |
no outgoing calls
no test coverage detected