Lines Matching refs:msg_len
119 u16 msg_len, enum hinic_mod_type mod, in prepare_header() argument
126 return HINIC_MSG_HEADER_SET(msg_len, MSG_LEN) | in prepare_header()
147 static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) in prepare_mgmt_cmd() argument
155 memcpy(mgmt_cmd, msg, msg_len); in prepare_mgmt_cmd()
167 u16 msg_len = MGMT_MSG_RSVD_FOR_DEV + sizeof(u64) + msg_data_len; in mgmt_msg_len() local
169 if (msg_len > MGMT_MSG_LEN_MIN) in mgmt_msg_len()
170 msg_len = MGMT_MSG_LEN_MIN + in mgmt_msg_len()
171 ALIGN((msg_len - MGMT_MSG_LEN_MIN), in mgmt_msg_len()
174 msg_len = MGMT_MSG_LEN_MIN; in mgmt_msg_len()
176 return msg_len; in mgmt_msg_len()
284 if ((buf_out) && (recv_msg->msg_len <= MAX_PF_MGMT_BUF_SIZE)) { in msg_to_mgmt_sync()
285 memcpy(buf_out, recv_msg->msg, recv_msg->msg_len); in msg_to_mgmt_sync()
286 *out_size = recv_msg->msg_len; in msg_to_mgmt_sync()
389 recv_msg->msg, recv_msg->msg_len, in mgmt_recv_msg_handler()
449 recv_msg->msg_len = HINIC_MSG_HEADER_GET(*header, MSG_LEN); in recv_mgmt_msg_handler()