Home
last modified time | relevance | path

Searched refs:msglen (Results 1 – 25 of 55) sorted by relevance

123

/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
H A Dvendor.c29 u16 msglen, maxmsglen = PAGE_SIZE - 0x100; in brcmf_cfg80211_vndr_cmds_dcmd_handler() local
78 msglen = ret_len > maxmsglen ? maxmsglen : ret_len; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
79 ret_len -= msglen; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
80 payload = msglen + sizeof(msglen); in brcmf_cfg80211_vndr_cmds_dcmd_handler()
87 if (nla_put(reply, BRCMF_NLATTR_DATA, msglen, wr_pointer) || in brcmf_cfg80211_vndr_cmds_dcmd_handler()
88 nla_put_u16(reply, BRCMF_NLATTR_LEN, msglen)) { in brcmf_cfg80211_vndr_cmds_dcmd_handler()
98 wr_pointer += msglen; in brcmf_cfg80211_vndr_cmds_dcmd_handler()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtcp_custom_syncookie.c70 #define msglen 11 macro
74 char buf[msglen]; in transfer_message()
77 ret = send(sender, msg, msglen, 0); in transfer_message()
78 if (!ASSERT_EQ(ret, msglen, "send")) in transfer_message()
83 ret = recv(receiver, buf, msglen, 0); in transfer_message()
84 if (!ASSERT_EQ(ret, msglen, "recv")) in transfer_message()
87 ret = strncmp(buf, msg, msglen); in transfer_message()
H A Dsock_addr.c84 int msglen; member
163 socklen_t addrlen, const char *msg, int msglen) in send_msg_op() argument
171 memcpy(args.msg, msg, msglen); in send_msg_op()
172 args.msglen = msglen; in send_msg_op()
202 char *msg, int msglen) in kernel_sendmsg() argument
204 return send_msg_op("kernel_sendmsg", addr, addrlen, msg, msglen); in kernel_sendmsg()
208 char *msg, int msglen) in sock_sendmsg() argument
210 return send_msg_op("sock_sendmsg", addr, addrlen, msg, msglen); in sock_sendmsg()
287 char *msg, int msglen);
292 char *msg, int msglen) in user_sendmsg() argument
[all …]
/linux/fs/dlm/
H A Dmidcomms.c607 static int dlm_opts_check_msglen(const union dlm_packet *p, uint16_t msglen, in dlm_opts_check_msglen() argument
610 int len = msglen; in dlm_opts_check_msglen()
635 msglen, nodeid); in dlm_opts_check_msglen()
659 uint16_t msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2() local
726 ret = dlm_opts_check_msglen(p, msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
729 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
737 msglen = le16_to_cpu(p->header.h_length); in dlm_midcomms_receive_buffer_3_2()
740 if (msglen < sizeof(struct dlm_rcom)) { in dlm_midcomms_receive_buffer_3_2()
742 msglen, nodeid); in dlm_midcomms_receive_buffer_3_2()
748 if (msglen < sizeof(struct dlm_message)) { in dlm_midcomms_receive_buffer_3_2()
[all …]
/linux/tools/spi/
H A Dspidev_fdx.c110 int msglen = 0; in main() local
117 msglen = atoi(optarg); in main()
118 if (msglen < 0) in main()
151 if (msglen) in main()
152 do_msg(fd, msglen); in main()
/linux/include/linux/avf/
H A Dvirtchnl.h1546 u8 *msg, u16 msglen) in virtchnl_vc_validate_vf_msg() argument
1570 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1581 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1597 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1609 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1629 if (msglen) in virtchnl_vc_validate_vf_msg()
1630 valid_len = msglen; in virtchnl_vc_validate_vf_msg()
1638 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1648 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
1657 if (msglen >= valid_len) { in virtchnl_vc_validate_vf_msg()
[all …]
/linux/drivers/infiniband/core/
H A Dnetlink.c216 int msglen; in rdma_nl_rcv_skb() local
248 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in rdma_nl_rcv_skb()
249 if (msglen > skb->len) in rdma_nl_rcv_skb()
250 msglen = skb->len; in rdma_nl_rcv_skb()
251 skb_pull(skb, msglen); in rdma_nl_rcv_skb()
/linux/net/netfilter/
H A Dnfnetlink.c436 int msglen, type; in nfnetlink_rcv_batch() local
561 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_batch()
562 if (msglen > skb->len) in nfnetlink_rcv_batch()
563 msglen = skb->len; in nfnetlink_rcv_batch()
564 skb_pull(skb, msglen); in nfnetlink_rcv_batch()
619 int msglen, err; in nfnetlink_rcv_skb_batch() local
623 msglen = NLMSG_ALIGN(nlh->nlmsg_len); in nfnetlink_rcv_skb_batch()
624 if (msglen > skb->len) in nfnetlink_rcv_skb_batch()
625 msglen = skb->len; in nfnetlink_rcv_skb_batch()
640 skb_pull(skb, msglen); in nfnetlink_rcv_skb_batch()
H A Dnf_conntrack_sip.c1538 unsigned int msglen, origlen; in sip_help_tcp() local
1588 msglen = origlen = end - dptr; in sip_help_tcp()
1589 if (msglen > datalen) in sip_help_tcp()
1593 &dptr, &msglen); in sip_help_tcp()
1597 diff = msglen - origlen; in sip_help_tcp()
1600 dataoff += msglen; in sip_help_tcp()
1601 dptr += msglen; in sip_help_tcp()
1602 datalen = datalen + diff - msglen; in sip_help_tcp()
/linux/arch/powerpc/kernel/
H A Drtas_flash.c391 int msglen, status; in manage_flash_read() local
397 msglen = sprintf(msg, "%d\n", status); in manage_flash_read()
398 return simple_read_from_buffer(buf, count, ppos, msg, msglen); in manage_flash_read()
466 char *msg, int msglen) in get_validate_flash_msg() argument
474 n += snprintf(msg + n, msglen - n, "%s\n", in get_validate_flash_msg()
488 int msglen; in validate_flash_read() local
491 msglen = get_validate_flash_msg(args_buf, msg, VALIDATE_MSG_LEN); in validate_flash_read()
494 return simple_read_from_buffer(buf, count, ppos, msg, msglen); in validate_flash_read()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_common.c451 u8 *msg, u16 msglen, in iavf_aq_send_msg_to_pf() argument
462 if (msglen) { in iavf_aq_send_msg_to_pf()
465 if (msglen > IAVF_AQ_LARGE_BUF) in iavf_aq_send_msg_to_pf()
467 desc.datalen = cpu_to_le16(msglen); in iavf_aq_send_msg_to_pf()
474 status = iavf_asq_send_command(hw, &desc, msg, msglen, cmd_details); in iavf_aq_send_msg_to_pf()
/linux/include/uapi/scsi/
H A Dscsi_netlink.h33 __u16 msglen; member
105 (hdr)->msglen = mlen; \
/linux/drivers/char/tpm/
H A Dtpm_i2c_infineon.c110 unsigned int msglen = len; in iic_tpm_read() local
155 msglen = min_t(unsigned int, in iic_tpm_read()
158 msg2.len = msglen; in iic_tpm_read()
168 if (msglen > len) in iic_tpm_read()
171 len -= msglen; in iic_tpm_read()
172 msg2.buf += msglen; in iic_tpm_read()
/linux/drivers/i2c/busses/
H A Di2c-imx-lpi2c.c103 unsigned int msglen; member
352 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_set_rx_watermark()
369 if (lpi2c_imx->delivered == lpi2c_imx->msglen) in lpi2c_imx_write_txfifo()
377 if (lpi2c_imx->delivered < lpi2c_imx->msglen) in lpi2c_imx_write_txfifo()
402 lpi2c_imx->msglen += blocklen; in lpi2c_imx_read_rxfifo()
405 remaining = lpi2c_imx->msglen - lpi2c_imx->delivered; in lpi2c_imx_read_rxfifo()
477 lpi2c_imx->msglen = msgs[i].len; in lpi2c_imx_xfer()
/linux/lib/
H A Ddigsig.c31 unsigned long msglen, in pkcs_1_v1_5_decode_emsa() argument
40 if ((msglen > modulus_len) || (modulus_len < 11)) in pkcs_1_v1_5_decode_emsa()
59 *outlen = (msglen - (2 + ps_len + 1)); in pkcs_1_v1_5_decode_emsa()
/linux/drivers/soc/qcom/
H A Dqmi_encdec.c720 ssize_t msglen = 0; in qmi_encode_message() local
740 msglen = qmi_encode(ei, msg + sizeof(*hdr), c_struct, *len, 1); in qmi_encode_message()
741 if (msglen < 0) { in qmi_encode_message()
743 return ERR_PTR(msglen); in qmi_encode_message()
751 hdr->msg_len = msglen; in qmi_encode_message()
753 *len = sizeof(*hdr) + msglen; in qmi_encode_message()
/linux/arch/s390/include/asm/
H A Dap.h497 void *msg, size_t msglen, in ap_dqap() argument
510 rp2.odd = (unsigned long)msglen; in ap_dqap()
547 *length = msglen - rp2.odd; in ap_dqap()
/linux/arch/arm64/crypto/
H A Dsm4-ce-ccm-glue.c54 unsigned int msglen) in ccm_format_input() argument
64 if (l < 4 && msglen >> (8 * l)) in ccm_format_input()
85 len = cpu_to_be32(msglen); in ccm_format_input()
H A Daes-ce-ccm-glue.c62 static int ccm_init_mac(struct aead_request *req, u8 maciv[], u32 msglen) in ccm_init_mac() argument
73 if (l < 4 && msglen >> (8 * l)) in ccm_init_mac()
81 n[1] = cpu_to_be32(msglen); in ccm_init_mac()
/linux/drivers/soc/apple/
H A Drtkit.c417 int msglen; in apple_rtkit_syslog_rx_log() local
451 msglen = rtk->syslog_msg_size - 1; in apple_rtkit_syslog_rx_log()
452 while (msglen > 0 && in apple_rtkit_syslog_rx_log()
453 should_crop_syslog_char(rtk->syslog_msg_buffer[msglen - 1])) in apple_rtkit_syslog_rx_log()
454 msglen--; in apple_rtkit_syslog_rx_log()
456 rtk->syslog_msg_buffer[msglen] = 0; in apple_rtkit_syslog_rx_log()
/linux/net/qrtr/
H A Dns.c595 ssize_t msglen; in qrtr_ns_worker() local
611 msglen = kernel_recvmsg(qrtr_ns.sock, &msg, &iv, 1, in qrtr_ns_worker()
614 if (msglen == -EAGAIN) in qrtr_ns_worker()
617 if (msglen < 0) { in qrtr_ns_worker()
618 pr_err("error receiving packet: %zd\n", msglen); in qrtr_ns_worker()
/linux/net/mctp/
H A Daf_mctp.c212 size_t msglen; in mctp_recvmsg() local
230 msglen = skb->len - 1; in mctp_recvmsg()
232 if (len < msglen) in mctp_recvmsg()
235 len = msglen; in mctp_recvmsg()
274 rc = msglen; in mctp_recvmsg()
/linux/drivers/scsi/arm/
H A Dfas216.c1055 static void fas216_parse_message(FAS216_Info *info, unsigned char *message, int msglen) in fas216_parse_message() argument
1062 if (msglen != 1) in fas216_parse_message()
1071 if (msglen != 1) in fas216_parse_message()
1091 if (msglen != 1) in fas216_parse_message()
1104 if (msglen != 1) in fas216_parse_message()
1111 if (msglen != 1) in fas216_parse_message()
1129 if (msglen < 3) in fas216_parse_message()
1150 for (i = 0; i < msglen; i++) in fas216_parse_message()
1234 unsigned int msglen = 1; in fas216_message() local
1247 for (msglen = 2; msglen < message[1] + 2; msglen++) { in fas216_message()
[all …]
/linux/drivers/scsi/sym53c8xx_2/
H A Dsym_hipd.c1411 int msglen = 0; local
1434 msglen += spi_populate_sync_msg(msgptr + msglen, goal->period,
1438 msglen += spi_populate_width_msg(msgptr + msglen, goal->width);
1441 msglen += spi_populate_ppr_msg(msgptr + msglen, goal->period,
1461 return msglen;
3035 int msglen; local
3097 msglen = 1;
3110 msglen += sym_prepare_nego(np, cp, &cp->scsi_smsg2[msglen]);
3115 cp->phys.smsg.size = cpu_to_scr(msglen);
5136 u_int msglen; local
[all …]
/linux/tools/testing/selftests/bpf/bpf_testmod/
H A Dbpf_testmod.c908 args->msglen > sizeof(args->msg)) in bpf_kfunc_call_kernel_sendmsg()
912 iov.iov_len = args->msglen; in bpf_kfunc_call_kernel_sendmsg()
922 err = kernel_sendmsg(sock, &msg, &iov, 1, args->msglen); in bpf_kfunc_call_kernel_sendmsg()
940 args->msglen > sizeof(args->msg)) in bpf_kfunc_call_sock_sendmsg()
944 iov.iov_len = args->msglen; in bpf_kfunc_call_sock_sendmsg()
946 iov_iter_kvec(&msg.msg_iter, ITER_SOURCE, &iov, 1, args->msglen); in bpf_kfunc_call_sock_sendmsg()

123