Home
last modified time | relevance | path

Searched refs:msg_len (Results 1 – 25 of 149) sorted by relevance

123456

/linux-6.6.21/drivers/net/can/usb/etas_es58x/
Des581_4.c36 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 …]
Des58x_fd.c58 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 …]
Des58x_core.h548 size_t actual_len, size_t msg_len, in __es58x_msg_num_element() argument
552 size_t expected_num_elem = msg_len / elem_len; in __es58x_msg_num_element()
641 u16 msg_len) in es58x_get_urb_cmd_len() argument
643 return es58x_dev->param->urb_cmd_header_len + msg_len + sizeof(u16); in es58x_get_urb_cmd_len()
/linux-6.6.21/include/linux/usb/
Drndis_host.h25 __le32 msg_len; member
43 __le32 msg_len; /* rndis_data_hdr + data_len + pad */ member
60 __le32 msg_len; /* 24 */ member
70 __le32 msg_len; member
87 __le32 msg_len; member
94 __le32 msg_len; member
105 __le32 msg_len; member
115 __le32 msg_len; member
126 __le32 msg_len; member
134 __le32 msg_len; member
[all …]
/linux-6.6.21/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mgmt.c127 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-6.6.21/drivers/net/usb/
Drndis_host.c99 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()
319 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind()
427 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind()
447 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind()
482 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind()
[all …]
/linux-6.6.21/drivers/net/hyperv/
Drndis_filter.c84 u32 msg_len) in get_rndis_request() argument
99 rndis_msg->msg_len = msg_len; in get_rndis_request()
137 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= sizeof(struct rndis_packet)) { in dump_rndis_message()
143 rndis_msg->msg_len, in dump_rndis_message()
155 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message()
163 rndis_msg->msg_len, in dump_rndis_message()
176 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE >= in dump_rndis_message()
183 rndis_msg->msg_len, in dump_rndis_message()
192 if (rndis_msg->msg_len - RNDIS_HEADER_SIZE + sizeof(struct rndis_set_complete)) { in dump_rndis_message()
197 rndis_msg->msg_len, in dump_rndis_message()
[all …]
Dnetvsc_trace.h51 __field( u32, msg_len )
58 __entry->msg_len = msg->msg_len;
62 show_rndis_type(__entry->msg_type), __entry->msg_len)
/linux-6.6.21/drivers/i2c/busses/
Di2c-microchip-corei2c.c115 u16 msg_len; member
204 if (idev->msg_len > 0) { in mchp_corei2c_empty_rx()
206 idev->msg_len--; in mchp_corei2c_empty_rx()
209 if (idev->msg_len <= 1) { in mchp_corei2c_empty_rx()
218 if (idev->msg_len > 0) in mchp_corei2c_fill_tx()
220 idev->msg_len--; in mchp_corei2c_fill_tx()
241 if (idev->msg_len == 0) in mchp_corei2c_handle_isr()
250 if (idev->msg_len > 0) in mchp_corei2c_handle_isr()
263 if (idev->msg_len == 1u) { in mchp_corei2c_handle_isr()
270 if (idev->msg_len < 1u) in mchp_corei2c_handle_isr()
[all …]
Di2c-altera.c77 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 …]
Di2c-hix5hd2.c84 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()
Di2c-xlp9xx.c94 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-6.6.21/drivers/dma/
Dbcm-sba-raid.c644 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_memcpy_msg() argument
655 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg()
666 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg()
672 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg()
691 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg()
763 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_xor_msg() argument
775 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg()
786 cmdsp->data_len = msg_len; in sba_fillup_xor_msg()
793 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg()
804 cmdsp->data_len = msg_len; in sba_fillup_xor_msg()
[all …]
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dadf_pfvf_vf_proto.c227 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-6.6.21/drivers/char/ipmi/
Dipmi_bt_sm.c251 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-6.6.21/net/sctp/
Dchunk.c151 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()
Doutqueue.c344 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
411 msg_len -= chk->skb->truesize + sizeof(struct sctp_chunk); in sctp_prsctp_prune_unsent()
413 if (msg_len <= 0) in sctp_prsctp_prune_unsent()
419 return msg_len; in sctp_prsctp_prune_unsent()
424 struct sctp_sndrcvinfo *sinfo, int msg_len) in sctp_prsctp_prune() argument
431 msg_len = sctp_prsctp_prune_sent(asoc, sinfo, in sctp_prsctp_prune()
[all …]
/linux-6.6.21/drivers/net/wireless/silabs/wfx/
Dtraces.h166 __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-6.6.21/arch/sparc/kernel/
Dds.c431 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-6.6.21/include/uapi/linux/
Dtipc_config.h399 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-6.6.21/drivers/s390/crypto/
Dzcrypt_msgtype50.c52 unsigned short msg_len; member
210 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg()
221 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg()
232 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg()
280 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg()
294 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg()
309 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
/linux-6.6.21/drivers/w1/
Dw1_netlink.c542 u16 msg_len; in w1_cn_callback() local
562 msg_len = cn->len; in w1_cn_callback()
563 while (msg_len && !err) { in w1_cn_callback()
564 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
577 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
634 msg_len = cn->len; in w1_cn_callback()
635 while (msg_len && !err) { in w1_cn_callback()
640 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
702 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hwrm.c469 u32 msg_len = ctx->req_len; in __hwrm_send() local
486 if (msg_len > BNXT_HWRM_MAX_REQ_LEN && in __hwrm_send()
487 msg_len > bp->hwrm_max_ext_req_len) { in __hwrm_send()
512 msg_len > BNXT_HWRM_MAX_REQ_LEN) { in __hwrm_send()
516 short_input.size = cpu_to_le16(msg_len); in __hwrm_send()
520 msg_len = sizeof(short_input); in __hwrm_send()
529 __iowrite32_copy(bp->bar0 + bar_offset, data, msg_len / 4); in __hwrm_send()
531 for (i = msg_len; i < max_req_len; i += 4) in __hwrm_send()
/linux-6.6.21/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c167 unsigned long msg_len = strlen(msg); in vmw_port_hb_out() local
179 msg_len, si, di, in vmw_port_hb_out()
190 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out()
191 unsigned int bytes = min_t(size_t, msg_len, 4); in vmw_port_hb_out()
195 msg_len -= bytes; in vmw_port_hb_out()
280 size_t msg_len = strlen(msg); in vmw_send_msg() local
291 msg_len, si, di, in vmw_send_msg()
330 size_t *msg_len) in vmw_recv_msg() argument
338 *msg_len = 0; in vmw_recv_msg()
415 *msg_len = reply_len; in vmw_recv_msg()
/linux-6.6.21/ipc/
Dmqueue.c1062 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()
1181 size_t msg_len, unsigned int __user *u_msg_prio, in do_mq_timedreceive() argument
1198 audit_mq_sendrecv(mqdes, msg_len, 0, ts); in do_mq_timedreceive()
1220 if (unlikely(msg_len < info->attr.mq_msgsize)) { in do_mq_timedreceive()
1284 size_t, msg_len, unsigned int, msg_prio, in SYSCALL_DEFINE5() argument
1294 return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p); in SYSCALL_DEFINE5()
[all …]

123456