/linux-5.19.10/drivers/net/can/usb/etas_es58x/ |
D | es581_4.c | 36 return get_unaligned_le16(&urb_cmd->es581_4_urb_cmd.msg_len); in es581_4_get_msg_len() 46 u16 msg_len; in es581_4_echo_msg() local 52 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len) - in es581_4_echo_msg() 55 bulk_echo_msg->echo_msg, msg_len); in es581_4_echo_msg() 97 u16 msg_len) in es581_4_rx_can_msg() argument 104 msg_len); in es581_4_rx_can_msg() 180 u16 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len); in es581_4_rx_cmd_ret_u32() local 184 es581_4_urb_cmd->rx_cmd_ret, msg_len); in es581_4_rx_cmd_ret_u32() 204 u16 msg_len = get_unaligned_le16(&es581_4_urb_cmd->msg_len); in es581_4_tx_ack_msg() local 208 ret = es58x_check_msg_len(es58x_dev->dev, *tx_ack_msg, msg_len); in es581_4_tx_ack_msg() [all …]
|
D | es58x_fd.c | 58 return get_unaligned_le16(&urb_cmd->es58x_fd_urb_cmd.msg_len); in es58x_fd_get_msg_len() 68 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_echo_msg() local 77 msg_len); in es58x_fd_echo_msg() 103 u16 rx_can_msg_buf_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_can_msg() 172 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_event_msg() local 177 ret = es58x_check_msg_len(es58x_dev->dev, *rx_event_msg, msg_len); in es58x_fd_rx_event_msg() 191 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_rx_cmd_ret_u32() local 195 es58x_fd_urb_cmd->rx_cmd_ret_le32, msg_len); in es58x_fd_rx_cmd_ret_u32() 208 u16 msg_len = get_unaligned_le16(&es58x_fd_urb_cmd->msg_len); in es58x_fd_tx_ack_msg() local 212 ret = es58x_check_msg_len(es58x_dev->dev, *tx_ack_msg, msg_len); in es58x_fd_tx_ack_msg() [all …]
|
D | es58x_core.h | 507 size_t actual_len, size_t msg_len, in __es58x_msg_num_element() argument 511 size_t expected_num_elem = msg_len / elem_len; in __es58x_msg_num_element() 600 u16 msg_len) in es58x_get_urb_cmd_len() argument 602 return es58x_dev->param->urb_cmd_header_len + msg_len + sizeof(u16); in es58x_get_urb_cmd_len()
|
/linux-5.19.10/include/linux/usb/ |
D | rndis_host.h | 39 __le32 msg_len; member 57 __le32 msg_len; /* rndis_data_hdr + data_len + pad */ member 74 __le32 msg_len; /* 24 */ member 84 __le32 msg_len; member 101 __le32 msg_len; member 108 __le32 msg_len; member 119 __le32 msg_len; member 129 __le32 msg_len; member 140 __le32 msg_len; member 148 __le32 msg_len; member [all …]
|
/linux-5.19.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_mgmt.c | 127 u16 msg_len, enum hinic_mod_type mod, in prepare_header() argument 134 return HINIC_MSG_HEADER_SET(msg_len, MSG_LEN) | in prepare_header() 155 static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) in prepare_mgmt_cmd() argument 163 memcpy(mgmt_cmd, msg, msg_len); in prepare_mgmt_cmd() 175 u16 msg_len = MGMT_MSG_RSVD_FOR_DEV + sizeof(u64) + msg_data_len; in mgmt_msg_len() local 177 if (msg_len > MGMT_MSG_LEN_MIN) in mgmt_msg_len() 178 msg_len = MGMT_MSG_LEN_MIN + in mgmt_msg_len() 179 ALIGN((msg_len - MGMT_MSG_LEN_MIN), in mgmt_msg_len() 182 msg_len = MGMT_MSG_LEN_MIN; in mgmt_msg_len() 184 return msg_len; in mgmt_msg_len() [all …]
|
/linux-5.19.10/drivers/net/usb/ |
D | rndis_host.c | 99 u32 xid = 0, msg_len, request_id, msg_type, rsp, in rndis_command() local 121 buf, le32_to_cpu(buf->msg_len), in rndis_command() 152 msg_len = le32_to_cpu(buf->msg_len); in rndis_command() 179 msg->msg_len = cpu_to_le32(sizeof *msg); in rndis_command() 197 le32_to_cpu(buf->msg_type), msg_len); in rndis_command() 244 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query() 318 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind() 426 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind() 446 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind() 481 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind() [all …]
|
/linux-5.19.10/drivers/net/hyperv/ |
D | rndis_filter.c | 82 u32 msg_len) in get_rndis_request() argument 97 rndis_msg->msg_len = msg_len; in get_rndis_request() 135 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= sizeof(struct rndis_packet)) { in dump_rndis_message() 141 rndis_msg->msg_len, in dump_rndis_message() 153 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message() 161 rndis_msg->msg_len, in dump_rndis_message() 174 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message() 181 rndis_msg->msg_len, in dump_rndis_message() 190 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE + sizeof(struct rndis_set_complete)) { in dump_rndis_message() 195 rndis_msg->msg_len, in dump_rndis_message() [all …]
|
D | netvsc_trace.h | 51 __field( u32, msg_len ) 58 __entry->msg_len = msg->msg_len; 62 show_rndis_type(__entry->msg_type), __entry->msg_len)
|
/linux-5.19.10/drivers/dma/ |
D | bcm-sba-raid.c | 652 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_memcpy_msg() argument 663 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 674 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 680 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg() 699 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg() 771 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_xor_msg() argument 783 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 794 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() 801 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg() 812 cmdsp->data_len = msg_len; in sba_fillup_xor_msg() [all …]
|
/linux-5.19.10/drivers/crypto/qat/qat_common/ |
D | adf_pfvf_vf_proto.c | 227 unsigned int msg_len; in adf_send_vf2pf_blkmsg_req() local 275 msg_len = ADF_PFVF_BLKMSG_HEADER_SIZE + buffer[ADF_PFVF_BLKMSG_LEN_BYTE]; in adf_send_vf2pf_blkmsg_req() 276 msg_len = min(*buffer_len, msg_len); in adf_send_vf2pf_blkmsg_req() 279 for (index = ADF_PFVF_BLKMSG_HEADER_SIZE; index < msg_len; index++) { in adf_send_vf2pf_blkmsg_req() 286 ret = adf_vf2pf_blkmsg_get_crc(accel_dev, type, msg_len, &remote_crc); in adf_send_vf2pf_blkmsg_req() 290 local_crc = adf_pfvf_calc_blkmsg_crc(buffer, msg_len); in adf_send_vf2pf_blkmsg_req() 298 *buffer_len = msg_len; in adf_send_vf2pf_blkmsg_req()
|
/linux-5.19.10/drivers/i2c/busses/ |
D | i2c-altera.c | 77 size_t msg_len; member 182 if (idev->msg_len == 1) in altr_i2c_transfer() 184 if (idev->msg_len > 0) in altr_i2c_transfer() 195 int bytes_to_transfer = min(rx_fifo_avail, idev->msg_len); in altr_i2c_empty_rx_fifo() 199 idev->msg_len--; in altr_i2c_empty_rx_fifo() 211 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo() 212 int ret = idev->msg_len - bytes_to_transfer; in altr_i2c_fill_tx_fifo() 216 idev->msg_len--; in altr_i2c_fill_tx_fifo() 272 if (!idev->msg_len) in altr_i2c_isr() 277 if (idev->msg_len > 0) in altr_i2c_isr() [all …]
|
D | i2c-hix5hd2.c | 84 unsigned int msg_len; member 199 if (priv->msg_len == 1) { in hix5hd2_read_handle() 202 } else if (priv->msg_len > 1) { in hix5hd2_read_handle() 214 if (priv->msg_len > 0) { in hix5hd2_write_handle() 234 priv->msg_len--; in hix5hd2_rw_preprocess() 237 __func__, priv->state, priv->msg_len); in hix5hd2_rw_preprocess() 269 if (priv->msg_len > 0) { in hix5hd2_i2c_irq() 322 priv->msg_len = priv->msg->len; in hix5hd2_i2c_xfer_msg()
|
D | i2c-xlp9xx.c | 94 u32 msg_len; member 172 len = max_t(u32, priv->msg_len, len + 4); in xlp9xx_i2c_update_rlen() 209 priv->msg_len = 0; in xlp9xx_i2c_drain_rx_fifo() 219 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo() 251 if ((status & XLP9XX_I2C_INTEN_SADDR) && (priv->msg_len == 0)) in xlp9xx_i2c_isr() 330 priv->msg_buf_remaining = priv->msg_len = msg->len; in xlp9xx_i2c_xfer_msg() 418 if (!priv->msg_len) in xlp9xx_i2c_xfer_msg() 420 msg->len = priv->msg_len; in xlp9xx_i2c_xfer_msg()
|
/linux-5.19.10/net/sctp/ |
D | chunk.c | 151 size_t msg_len = iov_iter_count(from); in sctp_datamsg_from_user() local 217 msg_len > max_data) in sctp_datamsg_from_user() 225 if (msg_len >= first_len) { in sctp_datamsg_from_user() 227 if (msg_len > first_len) in sctp_datamsg_from_user() 232 first_len = msg_len; in sctp_datamsg_from_user() 236 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user() 239 if (remaining == msg_len) { in sctp_datamsg_from_user()
|
D | outqueue.c | 344 struct list_head *queue, int msg_len) in sctp_prsctp_prune_sent() argument 374 msg_len -= chk->skb->truesize + sizeof(struct sctp_chunk); in sctp_prsctp_prune_sent() 375 if (msg_len <= 0) in sctp_prsctp_prune_sent() 379 return msg_len; in sctp_prsctp_prune_sent() 383 struct sctp_sndrcvinfo *sinfo, int msg_len) in sctp_prsctp_prune_unsent() argument 408 msg_len -= chk->skb->truesize + sizeof(struct sctp_chunk); in sctp_prsctp_prune_unsent() 410 if (msg_len <= 0) in sctp_prsctp_prune_unsent() 416 return msg_len; in sctp_prsctp_prune_unsent() 421 struct sctp_sndrcvinfo *sinfo, int msg_len) in sctp_prsctp_prune() argument 428 msg_len = sctp_prsctp_prune_sent(asoc, sinfo, in sctp_prsctp_prune() [all …]
|
/linux-5.19.10/drivers/char/ipmi/ |
D | ipmi_bt_sm.c | 251 int i, msg_len; in bt_get_result() local 253 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result() 254 if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH) { in bt_get_result() 256 msg_len = 3; in bt_get_result() 260 if (length < msg_len || bt->truncated) { in bt_get_result() 262 msg_len = 3; in bt_get_result() 264 memcpy(data + 2, bt->read_data + 4, msg_len - 2); in bt_get_result() 267 dev_dbg(bt->io->dev, "result %d bytes:", msg_len); in bt_get_result() 268 for (i = 0; i < msg_len; i++) in bt_get_result() 272 return msg_len; in bt_get_result()
|
/linux-5.19.10/drivers/net/wireless/silabs/wfx/ |
D | traces.h | 166 __field(int, msg_len) 176 __entry->msg_len = le16_to_cpu(hif->len); 192 __entry->buf_len = min_t(int, __entry->msg_len, sizeof(__entry->buf)) 204 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "", 205 __entry->msg_len 242 __field(int, msg_len) 250 __entry->msg_len = len; 251 __entry->buf_len = min_t(int, sizeof(__entry->buf), __entry->msg_len); 262 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "", 263 __entry->msg_len
|
/linux-5.19.10/arch/sparc/kernel/ |
D | ds.c | 431 int msg_len; in __dr_cpu_send_error() local 440 msg_len = (sizeof(struct ds_data) + in __dr_cpu_send_error() 443 pkt.data.tag.len = msg_len - sizeof(struct ds_msg_tag); in __dr_cpu_send_error() 445 __ds_send(dp->lp, &pkt, msg_len); in __dr_cpu_send_error() 783 int msg_len, loops; in ldom_set_var() local 805 msg_len = (sizeof(struct ds_data) + in ldom_set_var() 808 msg_len = (msg_len + 3) & ~3; in ldom_set_var() 809 pkt.header.data.tag.len = msg_len - sizeof(struct ds_msg_tag); in ldom_set_var() 817 __ds_send(dp->lp, &pkt, msg_len); in ldom_set_var() 895 int err, msg_len; in register_services() local [all …]
|
/linux-5.19.10/include/uapi/linux/ |
D | tipc_config.h | 399 int msg_len; in TCM_SET() local 401 msg_len = TCM_LENGTH(data_len); in TCM_SET() 403 tcm_hdr->tcm_len = __cpu_to_be32(msg_len); in TCM_SET() 408 memset((char *)TCM_DATA(msg) + data_len, 0, TCM_SPACE(data_len) - msg_len); in TCM_SET()
|
/linux-5.19.10/drivers/w1/ |
D | w1_netlink.c | 540 u16 msg_len; in w1_cn_callback() local 560 msg_len = cn->len; in w1_cn_callback() 561 while (msg_len && !err) { in w1_cn_callback() 562 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback() 575 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback() 631 msg_len = cn->len; in w1_cn_callback() 632 while (msg_len && !err) { in w1_cn_callback() 637 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback() 699 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
|
/linux-5.19.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_hwrm.c | 469 u32 msg_len = ctx->req_len; in __hwrm_send() local 485 if (msg_len > BNXT_HWRM_MAX_REQ_LEN && in __hwrm_send() 486 msg_len > bp->hwrm_max_ext_req_len) { in __hwrm_send() 511 msg_len > BNXT_HWRM_MAX_REQ_LEN) { in __hwrm_send() 515 short_input.size = cpu_to_le16(msg_len); in __hwrm_send() 519 msg_len = sizeof(short_input); in __hwrm_send() 528 __iowrite32_copy(bp->bar0 + bar_offset, data, msg_len / 4); in __hwrm_send() 530 for (i = msg_len; i < max_req_len; i += 4) in __hwrm_send()
|
/linux-5.19.10/drivers/s390/crypto/ |
D | zcrypt_msgtype50.c | 55 unsigned short msg_len; member 213 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg() 224 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg() 235 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg() 288 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg() 302 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg() 317 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
|
/linux-5.19.10/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_msg.c | 160 unsigned long msg_len = strlen(msg); in vmw_port_hb_out() local 172 msg_len, si, di, in vmw_port_hb_out() 183 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out() 184 unsigned int bytes = min_t(size_t, msg_len, 4); in vmw_port_hb_out() 188 msg_len -= bytes; in vmw_port_hb_out() 273 size_t msg_len = strlen(msg); in vmw_send_msg() local 284 msg_len, si, di, in vmw_send_msg() 323 size_t *msg_len) in vmw_recv_msg() argument 331 *msg_len = 0; in vmw_recv_msg() 408 *msg_len = reply_len; in vmw_recv_msg()
|
/linux-5.19.10/ipc/ |
D | mqueue.c | 1062 size_t msg_len, unsigned int msg_prio, in do_mq_timedsend() argument 1084 audit_mq_sendrecv(mqdes, msg_len, msg_prio, ts); in do_mq_timedsend() 1105 if (unlikely(msg_len > info->attr.mq_msgsize)) { in do_mq_timedsend() 1112 msg_ptr = load_msg(u_msg_ptr, msg_len); in do_mq_timedsend() 1117 msg_ptr->m_ts = msg_len; in do_mq_timedsend() 1182 size_t msg_len, unsigned int __user *u_msg_prio, in do_mq_timedreceive() argument 1199 audit_mq_sendrecv(mqdes, msg_len, 0, ts); in do_mq_timedreceive() 1221 if (unlikely(msg_len < info->attr.mq_msgsize)) { in do_mq_timedreceive() 1286 size_t, msg_len, unsigned int, msg_prio, in SYSCALL_DEFINE5() argument 1296 return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p); in SYSCALL_DEFINE5() [all …]
|
/linux-5.19.10/drivers/media/usb/ttusb-dec/ |
D | ttusbdecfe.c | 145 if (cmd->msg_len > sizeof(b) - 4) in ttusbdecfe_dvbs_diseqc_send_master_cmd() 148 memcpy(&b[4], cmd->msg, cmd->msg_len); in ttusbdecfe_dvbs_diseqc_send_master_cmd() 151 sizeof(b) - (6 - cmd->msg_len), b, in ttusbdecfe_dvbs_diseqc_send_master_cmd()
|