/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mbox.c | 27 mdev->msg_size = 0; in __otx2_mbox_reset() 30 tx_hdr->msg_size = 0; in __otx2_mbox_reset() 32 rx_hdr->msg_size = 0; in __otx2_mbox_reset() 232 mdev->msg_size); in otx2_mbox_msg_send() 236 tx_hdr->msg_size = mdev->msg_size; in otx2_mbox_msg_send() 239 mdev->msg_size = 0; in otx2_mbox_msg_send() 253 trace_otx2_msg_send(mbox->pdev, tx_hdr->num_msgs, tx_hdr->msg_size); in otx2_mbox_msg_send() 275 if ((mdev->msg_size + size) > mbox->tx_size - msgs_offset) in otx2_mbox_alloc_msg_rsp() 280 if (mdev->msg_size == 0) in otx2_mbox_alloc_msg_rsp() 284 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp() [all …]
|
D | rvu_trace.h | 36 TP_PROTO(const struct pci_dev *pdev, u16 num_msgs, u64 msg_size), 37 TP_ARGS(pdev, num_msgs, msg_size), 40 __field(u64, msg_size) 44 __entry->msg_size = msg_size; 47 __entry->num_msgs, __entry->msg_size)
|
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/ |
D | qat_crypto.c | 138 int msg_size; in qat_crypto_create_instances() local 203 msg_size = ICP_QAT_FW_REQ_DEFAULT_SZ; in qat_crypto_create_instances() 206 msg_size, key, NULL, 0, &inst->sym_tx); in qat_crypto_create_instances() 210 msg_size = msg_size >> 1; in qat_crypto_create_instances() 213 msg_size, key, NULL, 0, &inst->pke_tx); in qat_crypto_create_instances() 217 msg_size = ICP_QAT_FW_RESP_DEFAULT_SZ; in qat_crypto_create_instances() 220 msg_size, key, qat_alg_callback, 0, in qat_crypto_create_instances() 227 msg_size, key, qat_alg_asym_callback, 0, in qat_crypto_create_instances()
|
D | adf_transport.c | 29 static int adf_verify_ring_size(u32 msg_size, u32 msg_num) in adf_verify_ring_size() argument 34 if ((msg_size * msg_num) == ADF_SIZE_TO_RING_SIZE_IN_BYTES(i)) in adf_verify_ring_size() 93 ADF_MAX_INFLIGHTS(ring->ring_size, ring->msg_size)) { in adf_send_message() 99 ADF_MSG_SIZE_TO_BYTES(ring->msg_size)); in adf_send_message() 102 ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in adf_send_message() 123 ADF_MSG_SIZE_TO_BYTES(ring->msg_size), in adf_handle_response() 219 u32 msg_size, const char *ring_name, in adf_create_ring() argument 236 if (msg_size > ADF_MSG_SIZE_TO_BYTES(ADF_MAX_MSG_SIZE)) { in adf_create_ring() 240 if (ADF_MAX_INFLIGHTS(adf_verify_ring_size(msg_size, num_msgs), in adf_create_ring() 241 ADF_BYTES_TO_MSG_SIZE(msg_size)) < 2) { in adf_create_ring() [all …]
|
D | adf_transport_debug.c | 22 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() 67 ADF_MSG_SIZE_TO_BYTES(ring->msg_size)); in adf_ring_show() 72 v, ADF_MSG_SIZE_TO_BYTES(ring->msg_size), false); in adf_ring_show()
|
D | adf_pfvf_pf_proto.c | 87 u8 msg_size; in adf_pf2vf_blkmsg_get_data() local 103 msg_size = ADF_PFVF_BLKMSG_HEADER_SIZE + blkmsg[ADF_PFVF_BLKMSG_LEN_BYTE]; in adf_pf2vf_blkmsg_get_data() 105 if (unlikely(msg_size >= max_size)) { in adf_pf2vf_blkmsg_get_data() 107 msg_size, type); in adf_pf2vf_blkmsg_get_data() 112 if (unlikely(byte >= msg_size)) { in adf_pf2vf_blkmsg_get_data() 114 byte, msg_size); in adf_pf2vf_blkmsg_get_data()
|
D | qat_compression.c | 121 int msg_size; in qat_compression_create_instances() local 167 msg_size = ICP_QAT_FW_REQ_DEFAULT_SZ; in qat_compression_create_instances() 170 msg_size, key, NULL, 0, &inst->dc_tx); in qat_compression_create_instances() 174 msg_size = ICP_QAT_FW_RESP_DEFAULT_SZ; in qat_compression_create_instances() 177 msg_size, key, qat_comp_alg_callback, 0, in qat_compression_create_instances()
|
/linux-6.6.21/drivers/crypto/marvell/octeontx2/ |
D | otx2_cptvf_mbox.c | 34 u64 msg_size; in otx2_cpt_sync_mbox_bbuf() local 40 msg_size = hdr->msg_size; in otx2_cpt_sync_mbox_bbuf() 42 if (msg_size > mbox->rx_size - msgs_offset) in otx2_cpt_sync_mbox_bbuf() 43 msg_size = mbox->rx_size - msgs_offset; in otx2_cpt_sync_mbox_bbuf() 47 hw_mbase + mbox->rx_start, msg_size + msgs_offset); in otx2_cpt_sync_mbox_bbuf()
|
/linux-6.6.21/sound/pci/asihpi/ |
D | hpimsginit.c | 18 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()
|
D | hpioctl.c | 100 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()
|
/linux-6.6.21/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 450 int msg_size = le16_to_cpu(msg->size); in peak_canfd_handle_msg() local 453 if (!msg_size || !msg_type) { in peak_canfd_handle_msg() 479 return msg_size; in peak_canfd_handle_msg() 487 int i, msg_size = 0; in peak_canfd_handle_msgs_list() local 490 msg_size = peak_canfd_handle_msg(priv, msg_ptr); in peak_canfd_handle_msgs_list() 493 if (msg_size <= 0) in peak_canfd_handle_msgs_list() 496 msg_ptr += ALIGN(msg_size, 4); in peak_canfd_handle_msgs_list() 499 if (msg_size < 0) in peak_canfd_handle_msgs_list() 500 return msg_size; in peak_canfd_handle_msgs_list() 648 u16 msg_size, msg_flags; in peak_canfd_start_xmit() local [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/modules/hdcp/ |
D | hdcp_log.h | 94 #define HDCP_DDC_READ_TRACE(hdcp, msg_name, msg, msg_size) do { \ argument 95 mod_hdcp_dump_binary_message(msg, msg_size, hdcp->buf, \ 100 #define HDCP_DDC_WRITE_TRACE(hdcp, msg_name, msg, msg_size) do { \ argument 101 mod_hdcp_dump_binary_message(msg, msg_size, hdcp->buf, \
|
D | hdcp_log.c | 29 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()
|
D | hdcp_psp.c | 41 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() 625 msg_in->process.msg1_desc.msg_size = TA_HDCP_HDCP2_MSG_ID_MAX_SIZE__AKE_SEND_CERT; in mod_hdcp_hdcp2_validate_ake_cert() 685 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() 692 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() 764 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() 812 msg_out->prepare.msg1_desc.msg_size = in mod_hdcp_hdcp2_prepare_eks() 876 msg_in->process.msg1_desc.msg_size = sizeof(hdcp->auth.msg.hdcp2.rx_id_list); in mod_hdcp_hdcp2_validate_rx_id_list() 980 hdcp->auth.msg.hdcp2.stream_manage_size = msg_out->prepare.msg1_desc.msg_size; in mod_hdcp_hdcp2_prepare_stream_management() [all …]
|
/linux-6.6.21/fs/ecryptfs/ |
D | miscdev.c | 162 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()
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_sriov.c | 940 __le16 encap_resp_cpr, u32 msg_size) in bnxt_hwrm_fwd_resp() argument 945 if (BNXT_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_fwd_resp() 953 req->encap_resp_len = cpu_to_le16(msg_size); in bnxt_hwrm_fwd_resp() 956 memcpy(req->encap_resp, encap_resp, msg_size); in bnxt_hwrm_fwd_resp() 966 u32 msg_size) in bnxt_hwrm_fwd_err_resp() argument 971 if (BNXT_REJ_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_fwd_err_resp() 979 memcpy(req->encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_fwd_err_resp() 989 u32 msg_size) in bnxt_hwrm_exec_fwd_resp() argument 994 if (BNXT_EXEC_FWD_RESP_SIZE_ERR(msg_size)) in bnxt_hwrm_exec_fwd_resp() 1002 memcpy(req->encap_request, vf->hwrm_cmd_req_addr, msg_size); in bnxt_hwrm_exec_fwd_resp() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
D | venc_vpu_if.c | 189 size_t msg_size = is_ext ? in vpu_enc_set_param() local 239 if (vpu_enc_send_msg(vpu, &out, msg_size)) { in vpu_enc_set_param() 256 size_t msg_size = is_ext ? in vpu_enc_encode_32bits() local 289 if (vpu_enc_send_msg(vpu, &out, msg_size)) { in vpu_enc_encode_32bits() 304 size_t msg_size = sizeof(struct venc_ap_ipi_msg_enc_ext_34); in vpu_enc_encode_34bits() local 335 if (vpu_enc_send_msg(vpu, &out, msg_size)) { in vpu_enc_encode_34bits()
|
/linux-6.6.21/drivers/tty/ |
D | rpmsg_tty.c | 81 int msg_max_size, msg_size; in rpmsg_tty_write() local 90 msg_size = min_t(unsigned int, len, msg_max_size); in rpmsg_tty_write() 96 ret = rpmsg_trysend(rpdev->ept, (void *)buf, msg_size); in rpmsg_tty_write() 102 return msg_size; in rpmsg_tty_write()
|
/linux-6.6.21/drivers/firmware/arm_scmi/ |
D | optee.c | 279 static int invoke_process_msg_channel(struct scmi_optee_channel *channel, size_t msg_size) in invoke_process_msg_channel() argument 294 param[1].u.memref.size = msg_size; in invoke_process_msg_channel() 349 const size_t msg_size = SCMI_OPTEE_MAX_MSG_SIZE; in setup_dynamic_shmem() local 352 channel->tee_shm = tee_shm_alloc_kernel_buf(scmi_optee_private->tee_ctx, msg_size); in setup_dynamic_shmem() 359 memset(shbuf, 0, msg_size); in setup_dynamic_shmem() 361 channel->rx_len = msg_size; in setup_dynamic_shmem()
|
/linux-6.6.21/net/tipc/ |
D | msg.c | 229 mlen = msg_size(hdr); in tipc_msg_append() 283 msz = msg_size(hdr); in tipc_msg_validate() 319 dsz = msg_size(buf_msg(skb)); in tipc_msg_fragment() 486 msz = msg_size(msg); in tipc_msg_bundle() 487 bsz = msg_size(bmsg); in tipc_msg_bundle() 530 if (mss <= INT_H_SIZE + msg_size(msg)) in tipc_msg_try_bundle() 544 tsz = msg_size(buf_msg(tskb)); in tipc_msg_try_bundle() 545 if (unlikely(mss < BUF_ALIGN(INT_H_SIZE + tsz) + msg_size(msg))) in tipc_msg_try_bundle() 591 imsz = msg_size(ihdr); in tipc_msg_extract()
|
/linux-6.6.21/fs/quota/ |
D | netlink.c | 44 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()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
D | opal-prd.c | 346 int msg_size, item_size; in opal_prd_msg_notifier() local 355 msg_size = be16_to_cpu(hdr->size); in opal_prd_msg_notifier() 356 item_size = msg_size + sizeof(*item) - sizeof(item->msg); in opal_prd_msg_notifier() 362 memcpy(&item->msg.data, msg->params, msg_size); in opal_prd_msg_notifier()
|
/linux-6.6.21/drivers/net/ethernet/brocade/bna/ |
D | bfa_msgq.h | 38 (_cmd)->msg_size = (_msg_size); \ 50 size_t msg_size; member
|
/linux-6.6.21/drivers/misc/sgi-xp/ |
D | xpc_uv.c | 337 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 …]
|
/linux-6.6.21/drivers/s390/char/ |
D | sclp_rw.c | 90 int msg_size; in sclp_initialize_mto() local 93 msg_size = sizeof(struct msg_buf) + max_len; in sclp_initialize_mto() 97 if ((MAX_SCCB_ROOM - sccb->length) < msg_size) in sclp_initialize_mto()
|