Lines Matching refs:msg_hdr_len
361 u32 msg_hdr_len; in encode_passthrough() local
365 msg_hdr_len = le32_to_cpu(msg->hdr.len); in encode_passthrough()
370 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_EXT_MSG_LENGTH) in encode_passthrough()
381 msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len); in encode_passthrough()
481 struct ioctl_resources *resources, u32 msg_hdr_len, u32 *size, in encode_addr_size_pairs() argument
498 *size = QAIC_MANAGE_EXT_MSG_LENGTH - msg_hdr_len - sizeof(**out_trans); in encode_addr_size_pairs()
569 u32 msg_hdr_len; in encode_dma() local
575 msg_hdr_len = le32_to_cpu(msg->hdr.len); in encode_dma()
578 if (size_add(msg_hdr_len, sizeof(*out_trans) + sizeof(struct wire_addr_size_pair)) > in encode_dma()
592 ret = encode_addr_size_pairs(xfer, wrappers, resources, msg_hdr_len, &size, &out_trans); in encode_dma()
598 msg->hdr.len = cpu_to_le32(msg_hdr_len + size); in encode_dma()
638 u32 msg_hdr_len; in encode_activate() local
646 msg_hdr_len = le32_to_cpu(msg->hdr.len); in encode_activate()
648 if (size_add(msg_hdr_len, sizeof(*out_trans)) > QAIC_MANAGE_MAX_MSG_LENGTH) in encode_activate()
690 msg->hdr.len = cpu_to_le32(msg_hdr_len + sizeof(*out_trans)); in encode_activate()
726 u32 msg_hdr_len; in encode_status() local
730 msg_hdr_len = le32_to_cpu(msg->hdr.len); in encode_status()
732 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_MAX_MSG_LENGTH) in encode_status()
744 msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len); in encode_status()
963 u32 msg_hdr_len = le32_to_cpu(msg->hdr.len); in decode_message() local
969 if (msg_hdr_len < sizeof(*trans_hdr) || in decode_message()
970 msg_hdr_len > QAIC_MANAGE_MAX_MSG_LENGTH) in decode_message()
979 if (msg_len > msg_hdr_len - sizeof(*trans_hdr)) in decode_message()
985 size_add(msg_len, hdr_len) > msg_hdr_len) in decode_message()
1009 if (msg_len != (msg_hdr_len - sizeof(msg->hdr))) in decode_message()