Lines Matching refs:in_trans
356 struct qaic_manage_trans_passthrough *in_trans = trans; in encode_passthrough() local
367 if (in_trans->hdr.len % 8 != 0) in encode_passthrough()
370 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_EXT_MSG_LENGTH) in encode_passthrough()
374 offsetof(struct wrapper_msg, trans) + in_trans->hdr.len); in encode_passthrough()
377 trans_wrapper->len = in_trans->hdr.len; in encode_passthrough()
380 memcpy(out_trans->data, in_trans->data, in_trans->hdr.len - sizeof(in_trans->hdr)); in encode_passthrough()
381 msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len); in encode_passthrough()
383 *user_len += in_trans->hdr.len; in encode_passthrough()
385 out_trans->hdr.len = cpu_to_le32(in_trans->hdr.len); in encode_passthrough()
392 struct qaic_manage_trans_dma_xfer *in_trans, in find_and_map_user_pages() argument
403 if (check_add_overflow(in_trans->addr, resources->xferred_dma_size, &xfer_start_addr)) in find_and_map_user_pages()
406 if (in_trans->size < resources->xferred_dma_size) in find_and_map_user_pages()
408 remaining = in_trans->size - resources->xferred_dma_size; in find_and_map_user_pages()
563 struct qaic_manage_trans_dma_xfer *in_trans = trans; in encode_dma() local
586 ret = find_and_map_user_pages(qdev, in_trans, resources, xfer); in encode_dma()
603 out_trans->tag = cpu_to_le32(in_trans->tag); in encode_dma()
607 *user_len += in_trans->hdr.len; in encode_dma()
632 struct qaic_manage_trans_activate_to_dev *in_trans = trans; in encode_activate() local
651 if (!in_trans->queue_size) in encode_activate()
654 if (in_trans->pad) in encode_activate()
657 nelem = in_trans->queue_size; in encode_activate()
687 out_trans->options = cpu_to_le32(in_trans->options); in encode_activate()
689 *user_len += in_trans->hdr.len; in encode_activate()
708 struct qaic_manage_trans_deactivate *in_trans = trans; in encode_deactivate() local
710 if (in_trans->dbc_id >= qdev->num_dbc || in_trans->pad) in encode_deactivate()
713 *user_len += in_trans->hdr.len; in encode_deactivate()
715 return disable_dbc(qdev, in_trans->dbc_id, usr); in encode_deactivate()
721 struct qaic_manage_trans_status_to_dev *in_trans = trans; in encode_status() local
732 if (size_add(msg_hdr_len, in_trans->hdr.len) > QAIC_MANAGE_MAX_MSG_LENGTH) in encode_status()
743 out_trans->hdr.len = cpu_to_le32(in_trans->hdr.len); in encode_status()
744 msg->hdr.len = cpu_to_le32(msg_hdr_len + in_trans->hdr.len); in encode_status()
746 *user_len += in_trans->hdr.len; in encode_status()
832 struct wire_trans_passthrough *in_trans = trans; in decode_passthrough() local
837 len = le32_to_cpu(in_trans->hdr.len); in decode_passthrough()
844 memcpy(out_trans->data, in_trans->data, len - sizeof(in_trans->hdr)); in decode_passthrough()
847 out_trans->hdr.type = le32_to_cpu(in_trans->hdr.type); in decode_passthrough()
857 struct wire_trans_activate_from_dev *in_trans = trans; in decode_activate() local
862 len = le32_to_cpu(in_trans->hdr.len); in decode_activate()
868 out_trans->hdr.type = le32_to_cpu(in_trans->hdr.type); in decode_activate()
870 out_trans->status = le32_to_cpu(in_trans->status); in decode_activate()
871 out_trans->dbc_id = le32_to_cpu(in_trans->dbc_id); in decode_activate()
872 out_trans->options = le64_to_cpu(in_trans->options); in decode_activate()
902 struct wire_trans_deactivate_from_dev *in_trans = trans; in decode_deactivate() local
903 u32 dbc_id = le32_to_cpu(in_trans->dbc_id); in decode_deactivate()
904 u32 status = le32_to_cpu(in_trans->status); in decode_deactivate()
924 *msg_len += sizeof(*in_trans); in decode_deactivate()
933 struct wire_trans_status_from_dev *in_trans = trans; in decode_status() local
938 len = le32_to_cpu(in_trans->hdr.len); in decode_status()
944 out_trans->major = le16_to_cpu(in_trans->major); in decode_status()
945 out_trans->minor = le16_to_cpu(in_trans->minor); in decode_status()
946 out_trans->status_flags = le64_to_cpu(in_trans->status_flags); in decode_status()
947 out_trans->status = le32_to_cpu(in_trans->status); in decode_status()
948 *user_len += le32_to_cpu(in_trans->hdr.len); in decode_status()