MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mc_encode_cmd_header

Function mc_encode_cmd_header

dpdk/drivers/bus/fslmc/mc/fsl_mc_cmd.h:88–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86int mc_send_command(struct fsl_mc_io *mc_io, struct mc_command *cmd);
87
88static 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
103static inline uint16_t mc_cmd_hdr_read_token(struct mc_command *cmd)
104{

Callers 15

dpseci_openFunction · 0.85
dpseci_closeFunction · 0.85
dpseci_createFunction · 0.85
dpseci_destroyFunction · 0.85
dpseci_enableFunction · 0.85
dpseci_disableFunction · 0.85
dpseci_is_enabledFunction · 0.85
dpseci_resetFunction · 0.85
dpseci_get_attributesFunction · 0.85
dpseci_set_rx_queueFunction · 0.85
dpseci_get_rx_queueFunction · 0.85
dpseci_get_tx_queueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected