Home
last modified time | relevance | path

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

123456

/Linux-v4.19/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 …]
/Linux-v4.19/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mgmt.c128 u16 msg_len, enum hinic_mod_type mod, in prepare_header() argument
135 return HINIC_MSG_HEADER_SET(msg_len, MSG_LEN) | in prepare_header()
156 static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) in prepare_mgmt_cmd() argument
164 memcpy(mgmt_cmd, msg, msg_len); in prepare_mgmt_cmd()
176 u16 msg_len = MGMT_MSG_RSVD_FOR_DEV + sizeof(u64) + msg_data_len; in mgmt_msg_len() local
178 if (msg_len > MGMT_MSG_LEN_MIN) in mgmt_msg_len()
179 msg_len = MGMT_MSG_LEN_MIN + in mgmt_msg_len()
180 ALIGN((msg_len - MGMT_MSG_LEN_MIN), in mgmt_msg_len()
183 msg_len = MGMT_MSG_LEN_MIN; in mgmt_msg_len()
185 return msg_len; in mgmt_msg_len()
[all …]
/Linux-v4.19/drivers/net/usb/
Drndis_host.c111 u32 xid = 0, msg_len, request_id, msg_type, rsp, in rndis_command() local
133 buf, le32_to_cpu(buf->msg_len), in rndis_command()
164 msg_len = le32_to_cpu(buf->msg_len); in rndis_command()
191 msg->msg_len = cpu_to_le32(sizeof *msg); in rndis_command()
209 le32_to_cpu(buf->msg_type), msg_len); in rndis_command()
256 u.get->msg_len = cpu_to_le32(sizeof *u.get + in_len); in rndis_query()
330 u.init->msg_len = cpu_to_le32(sizeof *u.init); in generic_rndis_bind()
441 u.set->msg_len = cpu_to_le32(4 + sizeof *u.set); in generic_rndis_bind()
461 u.halt->msg_len = cpu_to_le32(sizeof *u.halt); in generic_rndis_bind()
486 halt->msg_len = cpu_to_le32(sizeof *halt); in rndis_unbind()
[all …]
/Linux-v4.19/drivers/dma/
Dbcm-sba-raid.c653 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_memcpy_msg() argument
664 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg()
675 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg()
681 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_memcpy_msg()
700 cmdsp->data_len = msg_len; in sba_fillup_memcpy_msg()
772 dma_addr_t msg_offset, size_t msg_len, in sba_fillup_xor_msg() argument
784 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg()
795 cmdsp->data_len = msg_len; in sba_fillup_xor_msg()
802 cmd = sba_cmd_enc(cmd, msg_len, in sba_fillup_xor_msg()
813 cmdsp->data_len = msg_len; in sba_fillup_xor_msg()
[all …]
/Linux-v4.19/drivers/i2c/busses/
Di2c-altera.c88 size_t msg_len; member
198 if (idev->msg_len == 1) in altr_i2c_transfer()
200 if (idev->msg_len > 0) in altr_i2c_transfer()
211 int bytes_to_transfer = min(rx_fifo_avail, idev->msg_len); in altr_i2c_empty_rx_fifo()
215 idev->msg_len--; in altr_i2c_empty_rx_fifo()
228 int bytes_to_transfer = min(tx_fifo_avail, idev->msg_len); in altr_i2c_fill_tx_fifo()
229 int ret = idev->msg_len - bytes_to_transfer; in altr_i2c_fill_tx_fifo()
233 idev->msg_len--; in altr_i2c_fill_tx_fifo()
288 if (!idev->msg_len) in altr_i2c_isr()
293 if (idev->msg_len > 0) in altr_i2c_isr()
[all …]
Di2c-hix5hd2.c90 unsigned int msg_len; member
205 if (priv->msg_len == 1) { in hix5hd2_read_handle()
208 } else if (priv->msg_len > 1) { in hix5hd2_read_handle()
220 if (priv->msg_len > 0) { in hix5hd2_write_handle()
240 priv->msg_len--; in hix5hd2_rw_preprocess()
243 __func__, priv->state, priv->msg_len); in hix5hd2_rw_preprocess()
275 if (priv->msg_len > 0) { in hix5hd2_i2c_irq()
328 priv->msg_len = priv->msg->len; in hix5hd2_i2c_xfer_msg()
Di2c-xlp9xx.c96 u32 msg_len; member
174 len = max_t(u32, priv->msg_len, len + 4); in xlp9xx_i2c_update_rlen()
211 priv->msg_len = 0; in xlp9xx_i2c_drain_rx_fifo()
221 priv->msg_len = rlen + 1; in xlp9xx_i2c_drain_rx_fifo()
253 if ((status & XLP9XX_I2C_INTEN_SADDR) && (priv->msg_len == 0)) in xlp9xx_i2c_isr()
332 priv->msg_buf_remaining = priv->msg_len = msg->len; in xlp9xx_i2c_xfer_msg()
420 if (!priv->msg_len) in xlp9xx_i2c_xfer_msg()
422 msg->len = priv->msg_len; in xlp9xx_i2c_xfer_msg()
Di2c-sirf.c75 u32 msg_len; /* Message length */ member
109 while (((siic->finished_len + i) < siic->msg_len) in i2c_sirfsoc_queue_cmd()
113 (siic->msg_len - 1)) && siic->last) in i2c_sirfsoc_queue_cmd()
123 && (siic->finished_len < siic->msg_len)) { in i2c_sirfsoc_queue_cmd()
125 if ((siic->finished_len == (siic->msg_len - 1)) in i2c_sirfsoc_queue_cmd()
170 if (siic->finished_len == siic->msg_len) in i2c_sirfsoc_irq()
248 siic->msg_len = msgs[i].len; in i2c_sirfsoc_xfer()
/Linux-v4.19/drivers/char/ipmi/
Dipmi_bt_sm.c247 int i, msg_len; in bt_get_result() local
249 msg_len = bt->read_count - 2; /* account for length & seq */ in bt_get_result()
250 if (msg_len < 3 || msg_len > IPMI_MAX_MSG_LENGTH) { in bt_get_result()
252 msg_len = 3; in bt_get_result()
256 if (length < msg_len || bt->truncated) { in bt_get_result()
258 msg_len = 3; in bt_get_result()
260 memcpy(data + 2, bt->read_data + 4, msg_len - 2); in bt_get_result()
263 printk(KERN_WARNING "BT: result %d bytes:", msg_len); in bt_get_result()
264 for (i = 0; i < msg_len; i++) in bt_get_result()
268 return msg_len; in bt_get_result()
/Linux-v4.19/net/sctp/
Dchunk.c170 size_t msg_len = iov_iter_count(from); in sctp_datamsg_from_user() local
230 msg_len > max_data) in sctp_datamsg_from_user()
238 if (msg_len >= first_len) { in sctp_datamsg_from_user()
240 if (msg_len > first_len) in sctp_datamsg_from_user()
245 first_len = msg_len; in sctp_datamsg_from_user()
249 for (remaining = msg_len; remaining; remaining -= len) { in sctp_datamsg_from_user()
252 if (remaining == msg_len) { in sctp_datamsg_from_user()
Doutqueue.c358 struct list_head *queue, int msg_len) in sctp_prsctp_prune_sent() argument
388 msg_len -= SCTP_DATA_SNDSIZE(chk) + in sctp_prsctp_prune_sent()
391 if (msg_len <= 0) in sctp_prsctp_prune_sent()
395 return msg_len; in sctp_prsctp_prune_sent()
399 struct sctp_sndrcvinfo *sinfo, int msg_len) in sctp_prsctp_prune_unsent() argument
424 msg_len -= SCTP_DATA_SNDSIZE(chk) + in sctp_prsctp_prune_unsent()
428 if (msg_len <= 0) in sctp_prsctp_prune_unsent()
434 return msg_len; in sctp_prsctp_prune_unsent()
439 struct sctp_sndrcvinfo *sinfo, int msg_len) in sctp_prsctp_prune() argument
446 msg_len = sctp_prsctp_prune_sent(asoc, sinfo, in sctp_prsctp_prune()
[all …]
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg.c152 size_t msg_len = strlen(msg); in vmw_send_msg() local
164 msg_len, si, di, in vmw_send_msg()
182 msg_len, si, di, in vmw_send_msg()
212 size_t *msg_len) in vmw_recv_msg() argument
220 *msg_len = 0; in vmw_recv_msg()
307 *msg_len = reply_len; in vmw_recv_msg()
/Linux-v4.19/net/wimax/
Dop-msg.c340 size_t msg_len; in wimax_gnl_doit_msg_from_user() local
363 msg_len = nla_len(info->attrs[WIMAX_GNL_MSG_DATA]); in wimax_gnl_doit_msg_from_user()
391 d_printf(1, dev, "CRX: wimax message %zu bytes\n", msg_len); in wimax_gnl_doit_msg_from_user()
392 d_dump(2, dev, msg_buf, msg_len); in wimax_gnl_doit_msg_from_user()
395 msg_buf, msg_len, info); in wimax_gnl_doit_msg_from_user()
/Linux-v4.19/drivers/net/hyperv/
Drndis_filter.c92 u32 msg_len) in get_rndis_request() argument
107 rndis_msg->msg_len = msg_len; in get_rndis_request()
148 rndis_msg->msg_len, in dump_rndis_message()
163 rndis_msg->msg_len, in dump_rndis_message()
180 rndis_msg->msg_len, in dump_rndis_message()
192 rndis_msg->msg_len, in dump_rndis_message()
200 rndis_msg->msg_len, in dump_rndis_message()
209 rndis_msg->msg_len); in dump_rndis_message()
225 packet->total_data_buflen = req->request_msg.msg_len; in rndis_filter_send_request()
230 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)
/Linux-v4.19/arch/sparc/kernel/
Dds.c430 int msg_len; in __dr_cpu_send_error() local
439 msg_len = (sizeof(struct ds_data) + in __dr_cpu_send_error()
442 pkt.data.tag.len = msg_len - sizeof(struct ds_msg_tag); in __dr_cpu_send_error()
444 __ds_send(dp->lp, &pkt, msg_len); in __dr_cpu_send_error()
782 int msg_len, loops; in ldom_set_var() local
804 msg_len = (sizeof(struct ds_data) + in ldom_set_var()
807 msg_len = (msg_len + 3) & ~3; in ldom_set_var()
808 pkt.header.data.tag.len = msg_len - sizeof(struct ds_msg_tag); in ldom_set_var()
816 __ds_send(dp->lp, &pkt, msg_len); in ldom_set_var()
894 int err, msg_len; in register_services() local
[all …]
/Linux-v4.19/drivers/s390/crypto/
Dzcrypt_msgtype50.c57 unsigned short msg_len; member
217 meb1->header.msg_len = sizeof(*meb1); in ICAMEX_msg_to_type50MEX_msg()
228 meb2->header.msg_len = sizeof(*meb2); in ICAMEX_msg_to_type50MEX_msg()
239 meb3->header.msg_len = sizeof(*meb3); in ICAMEX_msg_to_type50MEX_msg()
285 crb1->header.msg_len = sizeof(*crb1); in ICACRT_msg_to_type50CRT_msg()
299 crb2->header.msg_len = sizeof(*crb2); in ICACRT_msg_to_type50CRT_msg()
314 crb3->header.msg_len = sizeof(*crb3); in ICACRT_msg_to_type50CRT_msg()
/Linux-v4.19/drivers/w1/
Dw1_netlink.c549 u16 msg_len; in w1_cn_callback() local
569 msg_len = cn->len; in w1_cn_callback()
570 while (msg_len && !err) { in w1_cn_callback()
571 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
584 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
640 msg_len = cn->len; in w1_cn_callback()
641 while (msg_len && !err) { in w1_cn_callback()
646 if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { in w1_cn_callback()
708 msg_len -= sizeof(struct w1_netlink_msg) + msg->len; in w1_cn_callback()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c77 const u8 *msg_data, u8 msg_len, bool need_resp, in hclgevf_send_mbx_msg() argument
87 if (msg_len > (HCLGE_MBX_MAX_MSG_SIZE - 2)) { in hclgevf_send_mbx_msg()
90 msg_len, HCLGE_MBX_MAX_MSG_SIZE); in hclgevf_send_mbx_msg()
97 memcpy(&req->msg[2], msg_data, msg_len); in hclgevf_send_mbx_msg()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/
Dhclge_mbx.h78 u8 msg_len; member
86 u8 msg_len; member
/Linux-v4.19/ipc/
Dmqueue.c910 size_t msg_len, unsigned int msg_prio, in do_mq_timedsend() argument
932 audit_mq_sendrecv(mqdes, msg_len, msg_prio, ts); in do_mq_timedsend()
953 if (unlikely(msg_len > info->attr.mq_msgsize)) { in do_mq_timedsend()
960 msg_ptr = load_msg(u_msg_ptr, msg_len); in do_mq_timedsend()
965 msg_ptr->m_ts = msg_len; in do_mq_timedsend()
1028 size_t msg_len, unsigned int __user *u_msg_prio, in do_mq_timedreceive() argument
1045 audit_mq_sendrecv(mqdes, msg_len, 0, ts); in do_mq_timedreceive()
1067 if (unlikely(msg_len < info->attr.mq_msgsize)) { in do_mq_timedreceive()
1130 size_t, msg_len, unsigned int, msg_prio, in SYSCALL_DEFINE5() argument
1140 return do_mq_timedsend(mqdes, u_msg_ptr, msg_len, msg_prio, p); in SYSCALL_DEFINE5()
[all …]
/Linux-v4.19/include/uapi/linux/
Dtipc_config.h401 int msg_len; in TCM_SET() local
403 msg_len = TCM_LENGTH(data_len); in TCM_SET()
405 tcm_hdr->tcm_len = htonl(msg_len); in TCM_SET()
/Linux-v4.19/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_mbx.c37 resp_pf_to_vf->msg_len = vf_to_pf_req->msg_len; in hclge_gen_resp_to_vf()
55 static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, in hclge_send_mbx_msg() argument
68 resp_pf_to_vf->msg_len = msg_len; in hclge_send_mbx_msg()
71 memcpy(&resp_pf_to_vf->msg[1], msg, msg_len); in hclge_send_mbx_msg()
/Linux-v4.19/drivers/media/usb/ttusb-dec/
Dttusbdecfe.c155 if (cmd->msg_len > sizeof(b) - 4) in ttusbdecfe_dvbs_diseqc_send_master_cmd()
158 memcpy(&b[4], cmd->msg, cmd->msg_len); in ttusbdecfe_dvbs_diseqc_send_master_cmd()
161 sizeof(b) - (6 - cmd->msg_len), b, in ttusbdecfe_dvbs_diseqc_send_master_cmd()
/Linux-v4.19/drivers/misc/
Dibmvmc.h96 u32 msg_len; member
147 __be32 msg_len; member

123456