Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dmessage_verify.c289 static int verify_open_req(size_t msg_len, void *msg) in verify_open_req() argument
297 if (msg_len != sizeof(*req) + req->path_len + 1) in verify_open_req()
307 static int verify_open_resp(size_t msg_len, void *msg) in verify_open_resp() argument
311 if (msg_len != sizeof(*resp)) in verify_open_resp()
317 static int hmdfs_open_verify(int flag, size_t msg_len, void *msg) in hmdfs_open_verify() argument
319 if (!msg || !msg_len) in hmdfs_open_verify()
323 return verify_open_req(msg_len, msg); in hmdfs_open_verify()
325 return verify_open_resp(msg_len, msg); in hmdfs_open_verify()
328 static int verify_atomic_open_req(size_t msg_len, void *msg) in verify_atomic_open_req() argument
337 if (msg_len != sizeof(*req) + req->path_len + 1 + req->file_len + 1) in verify_atomic_open_req()
[all …]
/kernel/linux/linux-5.10/include/linux/usb/
Drndis_host.h39 __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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
430 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind()
450 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind()
475 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind()
[all …]
/kernel/liteos_m/kal/libc/newlib/porting/include/
Dmqueue.h52 ssize_t mq_receive(mqd_t personal, char *msg_ptr, size_t msg_len, unsigned *msg_prio);
53 int mq_send(mqd_t personal, const char *msg_ptr, size_t msg_len, unsigned msg_prio);
55 ssize_t mq_timedreceive(mqd_t personal, char *__restrict msg, size_t msg_len, \
57 int mq_timedsend(mqd_t personal, const char *msg, size_t msg_len, unsigned msg_prio, const struct t…
/kernel/linux/linux-5.10/drivers/dma/
Dbcm-sba-raid.c652 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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c152 unsigned long msg_len = strlen(msg); in vmw_port_hb_out() local
163 msg_len, si, di, in vmw_port_hb_out()
174 while (msg_len && (HIGH_WORD(ecx) & MESSAGE_STATUS_SUCCESS)) { in vmw_port_hb_out()
175 unsigned int bytes = min_t(size_t, msg_len, 4); in vmw_port_hb_out()
179 msg_len -= bytes; in vmw_port_hb_out()
263 size_t msg_len = strlen(msg); in vmw_send_msg() local
274 msg_len, si, di, in vmw_send_msg()
313 size_t *msg_len) in vmw_recv_msg() argument
321 *msg_len = 0; in vmw_recv_msg()
398 *msg_len = reply_len; in vmw_recv_msg()
/kernel/linux/linux-5.10/drivers/i2c/busses/
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()
212 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo()
213 int ret = idev->msg_len - bytes_to_transfer; in altr_i2c_fill_tx_fifo()
217 idev->msg_len--; in altr_i2c_fill_tx_fifo()
273 if (!idev->msg_len) in altr_i2c_isr()
278 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()
Di2c-sirf.c73 u32 msg_len; /* Message length */ member
107 while (((siic->finished_len + i) < siic->msg_len) in i2c_sirfsoc_queue_cmd()
111 (siic->msg_len - 1)) && siic->last) in i2c_sirfsoc_queue_cmd()
121 && (siic->finished_len < siic->msg_len)) { in i2c_sirfsoc_queue_cmd()
123 if ((siic->finished_len == (siic->msg_len - 1)) in i2c_sirfsoc_queue_cmd()
168 if (siic->finished_len == siic->msg_len) in i2c_sirfsoc_irq()
246 siic->msg_len = msgs[i].len; in i2c_sirfsoc_xfer()
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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()
Dipmb_dev_int.c139 u8 rq_sa, netf_rq_lun, msg_len; in ipmb_write() local
166 msg_len = msg[IPMB_MSG_LEN_IDX] - SMBUS_MSG_HEADER_LENGTH; in ipmb_write()
167 if (msg_len > I2C_SMBUS_BLOCK_MAX) in ipmb_write()
168 msg_len = I2C_SMBUS_BLOCK_MAX; in ipmb_write()
170 data.block[0] = msg_len; in ipmb_write()
171 memcpy(&data.block[1], msg + SMBUS_MSG_IDX_OFFSET, msg_len); in ipmb_write()
/kernel/linux/linux-5.10/drivers/net/hyperv/
Drndis_filter.c81 u32 msg_len) in get_rndis_request() argument
96 rndis_msg->msg_len = msg_len; in get_rndis_request()
137 rndis_msg->msg_len, in dump_rndis_message()
152 rndis_msg->msg_len, in dump_rndis_message()
169 rndis_msg->msg_len, in dump_rndis_message()
181 rndis_msg->msg_len, in dump_rndis_message()
189 rndis_msg->msg_len, in dump_rndis_message()
198 rndis_msg->msg_len); in dump_rndis_message()
214 packet->total_data_buflen = req->request_msg.msg_len; in rndis_filter_send_request()
219 pb[0].len = req->request_msg.msg_len; in rndis_filter_send_request()
[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)
/kernel/linux/linux-5.10/net/wimax/
Dop-msg.c325 size_t msg_len; in wimax_gnl_doit_msg_from_user() local
348 msg_len = nla_len(info->attrs[WIMAX_GNL_MSG_DATA]); in wimax_gnl_doit_msg_from_user()
376 d_printf(1, dev, "CRX: wimax message %zu bytes\n", msg_len); in wimax_gnl_doit_msg_from_user()
377 d_dump(2, dev, msg_buf, msg_len); in wimax_gnl_doit_msg_from_user()
380 msg_buf, msg_len, info); in wimax_gnl_doit_msg_from_user()
/kernel/linux/linux-5.10/drivers/staging/wfx/
Dtraces.h167 __field(int, msg_len)
177 __entry->msg_len = le16_to_cpu(hif->len);
193 __entry->buf_len = min_t(int, __entry->msg_len,
206 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "",
207 __entry->msg_len
244 __field(int, msg_len)
252 __entry->msg_len = len;
254 __entry->msg_len);
265 __entry->msg_len > sizeof(__entry->buf) ? " ..." : "",
266 __entry->msg_len
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dtipc_config.h403 int msg_len; in TCM_SET() local
405 msg_len = TCM_LENGTH(data_len); in TCM_SET()
407 tcm_hdr->tcm_len = htonl(msg_len); in TCM_SET()
412 memset((char *)TCM_DATA(msg) + data_len, 0, TCM_SPACE(data_len) - msg_len); in TCM_SET()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dtipc_config.h217 int msg_len; in TCM_SET() local
218 msg_len = TCM_LENGTH(data_len); in TCM_SET()
220 tcm_hdr->tcm_len = htonl(msg_len); in TCM_SET()
225 memset(TCM_DATA(msg) + data_len, 0, TCM_SPACE(data_len) - msg_len); in TCM_SET()
/kernel/linux/linux-5.10/drivers/s390/crypto/
Dzcrypt_msgtype50.c55 unsigned short msg_len; member
215 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg()
226 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg()
237 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg()
289 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg()
303 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg()
318 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
/kernel/linux/linux-5.10/drivers/w1/
Dw1_netlink.c540 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()
/kernel/linux/linux-5.10/ipc/
Dmqueue.c1061 size_t msg_len, unsigned int msg_prio, in do_mq_timedsend() argument
1083 audit_mq_sendrecv(mqdes, msg_len, msg_prio, ts); in do_mq_timedsend()
1104 if (unlikely(msg_len > info->attr.mq_msgsize)) { in do_mq_timedsend()
1111 msg_ptr = load_msg(u_msg_ptr, msg_len); in do_mq_timedsend()
1116 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()
1285 size_t, msg_len, unsigned int, msg_prio, in SYSCALL_DEFINE5() argument
1295 return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p); in SYSCALL_DEFINE5()
[all …]

123456