Home
last modified time | relevance | path

Searched refs:msg_size (Results 1 – 25 of 67) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c30 mdev->msg_size = 0; in __otx2_mbox_reset()
33 tx_hdr->msg_size = 0; in __otx2_mbox_reset()
35 rx_hdr->msg_size = 0; in __otx2_mbox_reset()
191 mdev->msg_size); in otx2_mbox_msg_send()
195 tx_hdr->msg_size = mdev->msg_size; in otx2_mbox_msg_send()
198 mdev->msg_size = 0; in otx2_mbox_msg_send()
212 trace_otx2_msg_send(mbox->pdev, tx_hdr->num_msgs, tx_hdr->msg_size); in otx2_mbox_msg_send()
234 if ((mdev->msg_size + size) > mbox->tx_size - msgs_offset) in otx2_mbox_alloc_msg_rsp()
239 if (mdev->msg_size == 0) in otx2_mbox_alloc_msg_rsp()
243 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp()
[all …]
Drvu_trace.h33 TP_PROTO(const struct pci_dev *pdev, u16 num_msgs, u64 msg_size),
34 TP_ARGS(pdev, num_msgs, msg_size),
37 __field(u64, msg_size)
41 __entry->msg_size = msg_size;
44 __entry->num_msgs, __entry->msg_size)
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_crypto.c211 int msg_size; in qat_crypto_create_instances() local
256 msg_size = ICP_QAT_FW_REQ_DEFAULT_SZ; in qat_crypto_create_instances()
259 msg_size, key, NULL, 0, &inst->sym_tx)) in qat_crypto_create_instances()
262 msg_size = msg_size >> 1; in qat_crypto_create_instances()
265 msg_size, key, NULL, 0, &inst->pke_tx)) in qat_crypto_create_instances()
268 msg_size = ICP_QAT_FW_RESP_DEFAULT_SZ; in qat_crypto_create_instances()
271 msg_size, key, qat_alg_callback, 0, in qat_crypto_create_instances()
277 msg_size, key, qat_alg_asym_callback, 0, in qat_crypto_create_instances()
Dadf_transport.c25 static int adf_verify_ring_size(u32 msg_size, u32 msg_num) in adf_verify_ring_size() argument
30 if ((msg_size * msg_num) == ADF_SIZE_TO_RING_SIZE_IN_BYTES(i)) in adf_verify_ring_size()
76 ADF_MAX_INFLIGHTS(ring->ring_size, ring->msg_size)) { in adf_send_message()
82 ADF_MSG_SIZE_TO_BYTES(ring->msg_size)); in adf_send_message()
85 ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in adf_send_message()
103 ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in adf_handle_response()
189 u32 msg_size, const char *ring_name, in adf_create_ring() argument
204 if (msg_size > ADF_MSG_SIZE_TO_BYTES(ADF_MAX_MSG_SIZE)) { in adf_create_ring()
208 if (ADF_MAX_INFLIGHTS(adf_verify_ring_size(msg_size, num_msgs), in adf_create_ring()
209 ADF_BYTES_TO_MSG_SIZE(msg_size)) < 2) { in adf_create_ring()
[all …]
Dadf_transport_debug.c22 ADF_MSG_SIZE_TO_BYTES(ring->msg_size))) in adf_ring_start()
26 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++); in adf_ring_start()
34 ADF_MSG_SIZE_TO_BYTES(ring->msg_size))) in adf_ring_next()
38 (ADF_MSG_SIZE_TO_BYTES(ring->msg_size) * (*pos)++); in adf_ring_next()
66 ADF_MSG_SIZE_TO_BYTES(ring->msg_size)); in adf_ring_show()
71 v, ADF_MSG_SIZE_TO_BYTES(ring->msg_size), false); in adf_ring_show()
Dadf_transport.h13 u32 bank_num, u32 num_mgs, u32 msg_size,
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_log.c29 void mod_hdcp_dump_binary_message(uint8_t *msg, uint32_t msg_size, in mod_hdcp_dump_binary_message() argument
36 uint32_t line_count = msg_size / bytes_per_line, in mod_hdcp_dump_binary_message()
37 trailing_bytes = msg_size % bytes_per_line; in mod_hdcp_dump_binary_message()
44 for (i = 0; i < msg_size; i++) { in mod_hdcp_dump_binary_message()
Dhdcp_log.h96 #define HDCP_DDC_READ_TRACE(hdcp, msg_name, msg, msg_size) do { \ argument
97 mod_hdcp_dump_binary_message(msg, msg_size, hdcp->buf, \
102 #define HDCP_DDC_WRITE_TRACE(hdcp, msg_name, msg, msg_size) do { \ argument
103 mod_hdcp_dump_binary_message(msg, msg_size, hdcp->buf, \
Dhdcp_psp.c41 in->process.msg1_desc.msg_size = 0; in hdcp2_message_init()
43 in->process.msg2_desc.msg_size = 0; in hdcp2_message_init()
45 in->process.msg3_desc.msg_size = 0; in hdcp2_message_init()
517 msg_in->process.msg1_desc.msg_size = TA_HDCP_HDCP2_MSG_ID_MAX_SIZE__AKE_SEND_CERT; in mod_hdcp_hdcp2_validate_ake_cert()
575 msg_in->process.msg1_desc.msg_size = TA_HDCP_HDCP2_MSG_ID_MAX_SIZE__AKE_SEND_H_PRIME; in mod_hdcp_hdcp2_validate_h_prime()
582 msg_in->process.msg2_desc.msg_size = TA_HDCP_HDCP2_MSG_ID_MAX_SIZE__AKE_SEND_PAIRING_INFO; in mod_hdcp_hdcp2_validate_h_prime()
654 msg_in->process.msg1_desc.msg_size = TA_HDCP_HDCP2_MSG_ID_MAX_SIZE__LC_SEND_L_PRIME; in mod_hdcp_hdcp2_validate_l_prime()
702 msg_out->prepare.msg1_desc.msg_size = in mod_hdcp_hdcp2_prepare_eks()
766 msg_in->process.msg1_desc.msg_size = sizeof(hdcp->auth.msg.hdcp2.rx_id_list); in mod_hdcp_hdcp2_validate_rx_id_list()
870 hdcp->auth.msg.hdcp2.stream_manage_size = msg_out->prepare.msg1_desc.msg_size; in mod_hdcp_hdcp2_prepare_stream_management()
[all …]
/kernel/linux/linux-5.10/sound/pci/asihpi/
Dhpimsginit.c18 static u16 msg_size[HPI_OBJ_MAXINDEX + 1] = HPI_MESSAGE_SIZE_BY_OBJECT; variable
34 size = msg_size[object]; in hpi_init_message()
114 void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size, in hpi_init_message_responseV1() argument
118 hpi_init_messageV1(phm, msg_size, object, function); in hpi_init_message_responseV1()
Dhpioctl.c100 u16 msg_size; in asihpi_hpi_ioctl() local
125 if (get_user(msg_size, (u16 __user *)puhm)) { in asihpi_hpi_ioctl()
129 if (msg_size > sizeof(*hm)) in asihpi_hpi_ioctl()
130 msg_size = sizeof(*hm); in asihpi_hpi_ioctl()
134 uncopied_bytes = copy_from_user(hm, puhm, msg_size); in asihpi_hpi_ioctl()
142 hm->h.size = msg_size; in asihpi_hpi_ioctl()
Dhpimsginit.h31 void hpi_init_message_responseV1(struct hpi_message_header *phm, u16 msg_size,
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/
Dpeak_canfd.c453 int msg_size = le16_to_cpu(msg->size); in peak_canfd_handle_msg() local
456 if (!msg_size || !msg_type) { in peak_canfd_handle_msg()
482 return msg_size; in peak_canfd_handle_msg()
490 int i, msg_size = 0; in peak_canfd_handle_msgs_list() local
493 msg_size = peak_canfd_handle_msg(priv, msg_ptr); in peak_canfd_handle_msgs_list()
496 if (msg_size <= 0) in peak_canfd_handle_msgs_list()
499 msg_ptr += ALIGN(msg_size, 4); in peak_canfd_handle_msgs_list()
502 if (msg_size < 0) in peak_canfd_handle_msgs_list()
503 return msg_size; in peak_canfd_handle_msgs_list()
651 u16 msg_size, msg_flags; in peak_canfd_start_xmit() local
[all …]
/kernel/linux/linux-5.10/fs/ecryptfs/
Dmiscdev.c162 msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); in ecryptfs_send_miscdev()
261 msg_ctx->msg_size, in ecryptfs_miscdev_read()
271 msg_ctx->msg_size = 0; in ecryptfs_miscdev_read()
274 + msg_ctx->msg_size); in ecryptfs_miscdev_read()
293 if (copy_to_user(&buf[i], msg_ctx->msg, msg_ctx->msg_size)) in ecryptfs_miscdev_read()
295 i += msg_ctx->msg_size; in ecryptfs_miscdev_read()
Dmessaging.c209 size_t msg_size; in ecryptfs_process_response() local
234 msg_size = (sizeof(*msg) + msg->data_len); in ecryptfs_process_response()
235 msg_ctx->msg = kmemdup(msg, msg_size, GFP_KERNEL); in ecryptfs_process_response()
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_sriov.c897 __le16 encap_resp_cpr, u32 msg_size) in bnxt_hwrm_fwd_resp() argument
902 if (BNXT_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_fwd_resp()
910 req.encap_resp_len = cpu_to_le16(msg_size); in bnxt_hwrm_fwd_resp()
913 memcpy(req.encap_resp, encap_resp, msg_size); in bnxt_hwrm_fwd_resp()
922 u32 msg_size) in bnxt_hwrm_fwd_err_resp() argument
927 if (BNXT_REJ_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_fwd_err_resp()
934 memcpy(req.encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_fwd_err_resp()
943 u32 msg_size) in bnxt_hwrm_exec_fwd_resp() argument
948 if (BNXT_EXEC_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_exec_fwd_resp()
955 memcpy(req.encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_exec_fwd_resp()
[all …]
/kernel/linux/linux-5.10/fs/quota/
Dnetlink.c44 int msg_size = 4 * nla_total_size(sizeof(u32)) + in quota_send_warning() local
50 skb = genlmsg_new(msg_size, GFP_NOFS); in quota_send_warning()
/kernel/linux/linux-5.10/net/tipc/
Dmsg.c234 mlen = msg_size(hdr); in tipc_msg_append()
288 msz = msg_size(hdr); in tipc_msg_validate()
324 dsz = msg_size(buf_msg(skb)); in tipc_msg_fragment()
490 msz = msg_size(msg); in tipc_msg_bundle()
491 bsz = msg_size(bmsg); in tipc_msg_bundle()
534 if (mss <= INT_H_SIZE + msg_size(msg)) in tipc_msg_try_bundle()
548 tsz = msg_size(buf_msg(tskb)); in tipc_msg_try_bundle()
549 if (unlikely(mss < align(INT_H_SIZE + tsz) + msg_size(msg))) in tipc_msg_try_bundle()
595 imsz = msg_size(ihdr); in tipc_msg_extract()
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dvenc_vpu_if.c164 size_t msg_size = is_ext ? in vpu_enc_set_param() local
214 if (vpu_enc_send_msg(vpu, &out, msg_size)) { in vpu_enc_set_param()
232 size_t msg_size = is_ext ? in vpu_enc_encode() local
265 if (vpu_enc_send_msg(vpu, &out, msg_size)) { in vpu_enc_encode()
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbfa_msgq.h38 (_cmd)->msg_size = (_msg_size); \
50 size_t msg_size; member
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
Dopal-prd.c342 int msg_size, item_size; in opal_prd_msg_notifier() local
351 msg_size = be16_to_cpu(hdr->size); in opal_prd_msg_notifier()
352 item_size = msg_size + sizeof(*item) - sizeof(item->msg); in opal_prd_msg_notifier()
358 memcpy(&item->msg, msg->params, msg_size); in opal_prd_msg_notifier()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_common.h386 u64 msg_size; in otx2_sync_mbox_bbuf() local
392 msg_size = hdr->msg_size; in otx2_sync_mbox_bbuf()
394 if (msg_size > mbox->rx_size - msgs_offset) in otx2_sync_mbox_bbuf()
395 msg_size = mbox->rx_size - msgs_offset; in otx2_sync_mbox_bbuf()
399 hw_mbase + mbox->rx_start, msg_size + msgs_offset); in otx2_sync_mbox_bbuf()
/kernel/linux/linux-5.10/net/wimax/
Dop-msg.c112 size_t msg_size; in wimax_msg_alloc() local
116 msg_size = nla_total_size(size) in wimax_msg_alloc()
120 skb = genlmsg_new(msg_size, gfp_flags); in wimax_msg_alloc()
/kernel/linux/linux-5.10/drivers/misc/sgi-xp/
Dxpc_uv.c337 size_t msg_size) in xpc_send_gru_msg() argument
343 ret = gru_send_message_gpa(gru_mq_desc, msg, msg_size); in xpc_send_gru_msg()
676 xpc_send_activate_IRQ_uv(struct xpc_partition *part, void *msg, size_t msg_size, in xpc_send_activate_IRQ_uv() argument
685 DBUG_ON(msg_size > XPC_ACTIVATE_MSG_SIZE_UV); in xpc_send_activate_IRQ_uv()
720 msg_size); in xpc_send_activate_IRQ_uv()
733 size_t msg_size, int msg_type) in xpc_send_activate_IRQ_part_uv() argument
737 ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type); in xpc_send_activate_IRQ_part_uv()
744 void *msg, size_t msg_size, int msg_type) in xpc_send_activate_IRQ_ch_uv() argument
749 ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type); in xpc_send_activate_IRQ_ch_uv()
1542 size_t msg_size; in xpc_send_payload_uv() local
[all …]
/kernel/linux/linux-5.10/drivers/s390/char/
Dsclp_rw.c97 int msg_size; in sclp_initialize_mto() local
100 msg_size = sizeof(struct msg_buf) + max_len; in sclp_initialize_mto()
104 if ((MAX_SCCB_ROOM - sccb->length) < msg_size) in sclp_initialize_mto()

123