/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | tls.c | 88 int send_len = 10; in TEST_F() local 91 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F() 93 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F() 94 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F() 95 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 276 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local 280 EXPECT_GE(send(self->fd, buf, send_len, 0), 0); in TEST_F() 281 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F() 282 EXPECT_EQ(memcmp(buf, recv_mem, send_len), in TEST_F() 288 int send_len = 10; TEST_F() local 300 int send_len = 10; TEST_F() local 314 int send_len = 10; TEST_F() local 326 size_t send_len = 13; TEST_F() local 375 size_t send_len = 16384; TEST_F() local 469 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 483 int send_len = 16000; TEST_F() local 501 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 514 EXPECT_GE(write(p[1], mem_send, send_len), send_len); TEST_F() local 515 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), send_len); TEST_F() local 523 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 538 int send_len = strlen(test_str) + 1; TEST_F() local 555 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 578 int send_len = 1 << 14; TEST_F() local 603 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 618 unsigned int send_len = 10; TEST_F() local 651 int send_len = strlen(test_str) + 1; TEST_F() local 679 int send_len = strlen(test_str) + 1; TEST_F() local 693 int send_len = strlen(test_str) + 1; TEST_F() local 802 int send_len = 10; TEST_F() local 840 int send_len = 10; TEST_F() local 856 int send_len = strlen(test_str) + 1; TEST_F() local 1122 int send_len = 10; TEST_F() local 1173 int send_len = 10; TEST_F() local 1189 int send_len = 10; TEST_F() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tls.c | 234 int send_len = 10; in TEST_F() local 237 ASSERT_EQ(strlen(test_str) + 1, send_len); in TEST_F() 239 EXPECT_EQ(send(self->fd, test_str, send_len, 0), send_len); in TEST_F() 240 EXPECT_NE(recv(self->cfd, buf, send_len, 0), -1); in TEST_F() 241 EXPECT_EQ(memcmp(buf, test_str, send_len), 0); in TEST_F() 492 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; in TEST_F() local 498 EXPECT_GE(send(self->fd, buf, send_len, 0), 0); in TEST_F() 499 EXPECT_NE(recv(self->cfd, recv_mem, send_len, 0), -1); in TEST_F() 500 EXPECT_EQ(memcmp(buf, recv_mem, send_len), in TEST_F() 506 int send_len = 10; TEST_F() local 518 int send_len = 10; TEST_F() local 532 int send_len = 10; TEST_F() local 542 int send_len = 10; TEST_F() local 555 size_t send_len = 13; TEST_F() local 604 size_t send_len = 16384; TEST_F() local 698 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 712 int send_len = 16000; TEST_F() local 732 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 745 EXPECT_GE(write(p[1], mem_send, send_len), send_len); TEST_F() local 746 EXPECT_GE(splice(p[0], NULL, self->fd, NULL, send_len, 0), send_len); TEST_F() local 754 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 764 EXPECT_EQ(read(p[0], mem_recv, send_len), send_len); TEST_F() local 772 int send_len = 10; TEST_F() local 795 int send_len = 10; TEST_F() local 816 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 834 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 859 EXPECT_EQ(read(p[0], mem_recv, send_len), send_len); TEST_F() local 866 int send_len = strlen(test_str) + 1; TEST_F() local 883 int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 907 int send_len = 1 << 14; TEST_F() local 932 unsigned int send_len = TLS_PAYLOAD_MAX_LEN; TEST_F() local 949 unsigned int send_len = 10; TEST_F() local 986 int send_len = strlen(test_str) + 1; TEST_F() local 1014 int send_len = strlen(test_str) + 1; TEST_F() local 1028 int send_len = strlen(test_str) + 1; TEST_F() local 1137 int send_len = 10; TEST_F() local 1174 int send_len = 10; TEST_F() local 1190 int send_len = strlen(test_str) + 1; TEST_F() local 1449 int send_len = 10; TEST_F() local 1477 int send_len = 10; TEST_F() local 1493 int send_len = 10; TEST_F() local 1683 int send_len = 10; TEST_F() local [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | hmdfs_client.c | 37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open() local 38 struct open_request *open_req = kzalloc(send_len, GFP_KERNEL); in hmdfs_send_open() 42 .len = send_len, in hmdfs_send_open() 80 size_t send_len = sizeof(struct release_request); in hmdfs_send_close() local 81 struct release_request *release_req = kzalloc(send_len, GFP_KERNEL); in hmdfs_send_close() 84 .len = send_len, in hmdfs_send_close() 133 size_t send_len = sizeof(struct readpage_request); in hmdfs_client_readpage() local 134 struct readpage_request *read_data = kzalloc(send_len, GFP_KERNEL); in hmdfs_client_readpage() 137 .len = send_len, in hmdfs_client_readpage() 362 size_t send_len in hmdfs_client_writepage() local 424 size_t send_len = sizeof(struct readdir_request) + path_len + 1; hmdfs_client_start_readdir() local 466 size_t send_len = sizeof(struct mkdir_request) + path_len + 1 + hmdfs_client_start_mkdir() local 515 size_t send_len = sizeof(struct create_request) + path_len + 1 + hmdfs_client_start_create() local 563 size_t send_len = sizeof(struct rmdir_request) + path_len + 1 + hmdfs_client_start_rmdir() local 594 size_t send_len = sizeof(struct unlink_request) + path_len + 1 + hmdfs_client_start_unlink() local 629 size_t send_len = sizeof(struct rename_request) + old_path_len + 1 + hmdfs_client_start_rename() local 670 size_t send_len = path_len + 1 + sizeof(struct setattr_request); hmdfs_send_setattr() local 728 size_t send_len = path_len + 1 + sizeof(struct getattr_request); hmdfs_send_getattr() local 785 size_t send_len = sizeof(struct statfs_request) + path_len + 1; hmdfs_send_statfs() local 867 size_t send_len = path_len + name_len + hmdfs_send_getxattr() local 907 size_t send_len = path_len + name_len + size + 2 + hmdfs_send_setxattr() local 958 size_t send_len = path_len + 1 + sizeof(struct listxattr_request); hmdfs_send_listxattr() local 1032 size_t send_len = sizeof(struct drop_push_request) + path_len + 1; hmdfs_send_drop_push() local [all...] |
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | hmdfs_client.c | 37 size_t send_len = sizeof(struct open_request) + path_len + 1; in hmdfs_send_open() local 38 struct open_request *open_req = kzalloc(send_len, GFP_KERNEL); in hmdfs_send_open() 42 .len = send_len, in hmdfs_send_open() 80 size_t send_len = sizeof(struct release_request); in hmdfs_send_close() local 81 struct release_request *release_req = kzalloc(send_len, GFP_KERNEL); in hmdfs_send_close() 84 .len = send_len, in hmdfs_send_close() 133 size_t send_len = sizeof(struct readpage_request); in hmdfs_client_readpage() local 134 struct readpage_request *read_data = kzalloc(send_len, GFP_KERNEL); in hmdfs_client_readpage() 137 .len = send_len, in hmdfs_client_readpage() 361 size_t send_len in hmdfs_client_writepage() local 423 size_t send_len = sizeof(struct readdir_request) + path_len + 1; hmdfs_client_start_readdir() local 465 size_t send_len = sizeof(struct mkdir_request) + path_len + 1 + hmdfs_client_start_mkdir() local 514 size_t send_len = sizeof(struct create_request) + path_len + 1 + hmdfs_client_start_create() local 562 size_t send_len = sizeof(struct rmdir_request) + path_len + 1 + hmdfs_client_start_rmdir() local 593 size_t send_len = sizeof(struct unlink_request) + path_len + 1 + hmdfs_client_start_unlink() local 628 size_t send_len = sizeof(struct rename_request) + old_path_len + 1 + hmdfs_client_start_rename() local 669 size_t send_len = path_len + 1 + sizeof(struct setattr_request); hmdfs_send_setattr() local 727 size_t send_len = path_len + 1 + sizeof(struct getattr_request); hmdfs_send_getattr() local 784 size_t send_len = sizeof(struct statfs_request) + path_len + 1; hmdfs_send_statfs() local 866 size_t send_len = path_len + name_len + hmdfs_send_getxattr() local 906 size_t send_len = path_len + name_len + size + 2 + hmdfs_send_setxattr() local 957 size_t send_len = path_len + 1 + sizeof(struct listxattr_request); hmdfs_send_listxattr() local 1031 size_t send_len = sizeof(struct drop_push_request) + path_len + 1; hmdfs_send_drop_push() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/gdm724x/ |
H A D | gdm_usb.c | 597 u16 send_len = 0; in packet_aggregation() local 611 if (send_len + t_sdu->len > MAX_SDU_SIZE) { in packet_aggregation() 619 memcpy(multi_sdu->data + send_len, t_sdu->buf, t_sdu->len); in packet_aggregation() 621 send_len += (t_sdu->len + 3) & 0xfffc; in packet_aggregation() 632 multi_sdu->len = gdm_cpu_to_dev16(udev->gdm_ed, send_len); in packet_aggregation() 635 return send_len + offsetof(struct multi_sdu, data); in packet_aggregation() 715 u16 send_len; in gdm_usb_sdu_send() local 734 send_len = len + SDU_PARAM_LEN; in gdm_usb_sdu_send() 737 send_len = len - ETH_HLEN; in gdm_usb_sdu_send() 738 send_len in gdm_usb_sdu_send() [all...] |
/kernel/linux/linux-6.6/drivers/staging/gdm724x/ |
H A D | gdm_usb.c | 597 u16 send_len = 0; in packet_aggregation() local 611 if (send_len + t_sdu->len > MAX_SDU_SIZE) { in packet_aggregation() 619 memcpy(multi_sdu->data + send_len, t_sdu->buf, t_sdu->len); in packet_aggregation() 621 send_len += (t_sdu->len + 3) & 0xfffc; in packet_aggregation() 632 multi_sdu->len = gdm_cpu_to_dev16(udev->gdm_ed, send_len); in packet_aggregation() 635 return send_len + offsetof(struct multi_sdu, data); in packet_aggregation() 715 u16 send_len; in gdm_usb_sdu_send() local 734 send_len = len + SDU_PARAM_LEN; in gdm_usb_sdu_send() 737 send_len = len - ETH_HLEN; in gdm_usb_sdu_send() 738 send_len in gdm_usb_sdu_send() [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/comm/ |
H A D | transport.c | 652 int send_len = 0; in tcp_send_message_sock_cipher() local 685 send_len = sendmsg_nofs(tcp->sock, &tcp_msg, iov, send_vec_cnt, in tcp_send_message_sock_cipher() 688 if (send_len <= 0) { in tcp_send_message_sock_cipher() 689 hmdfs_err("error %d", send_len); in tcp_send_message_sock_cipher() 691 } else if (send_len != msg->head_len + outlen) { in tcp_send_message_sock_cipher() 692 hmdfs_err("send part of message. %d/%zu", send_len, in tcp_send_message_sock_cipher() 706 int send_len = 0; in tcp_send_message_sock_tls() local 732 send_len = sendmsg_nofs(tcp->sock, &tcp_msg, iov, send_vec_cnt, in tcp_send_message_sock_tls() 735 if (send_len == -EBADMSG) { in tcp_send_message_sock_tls() 737 } else if (send_len < in tcp_send_message_sock_tls() [all...] |
H A D | connection.c | 354 __u32 send_len; in do_send_handshake() local 360 send_len = sizeof(struct connection_msg_head) + in do_send_handshake() 366 send_len += extend_len; in do_send_handshake() 369 hs_head = kzalloc(send_len, GFP_KERNEL); in do_send_handshake() 394 hs_head->datasize = cpu_to_le32(send_len); in do_send_handshake() 401 msg.len = send_len - msg.head_len; in do_send_handshake()
|
/kernel/linux/linux-6.6/fs/hmdfs/comm/ |
H A D | transport.c | 652 int send_len = 0; in tcp_send_message_sock_cipher() local 685 send_len = sendmsg_nofs(tcp->sock, &tcp_msg, iov, send_vec_cnt, in tcp_send_message_sock_cipher() 688 if (send_len <= 0) { in tcp_send_message_sock_cipher() 689 hmdfs_err("error %d", send_len); in tcp_send_message_sock_cipher() 691 } else if (send_len != msg->head_len + outlen) { in tcp_send_message_sock_cipher() 692 hmdfs_err("send part of message. %d/%zu", send_len, in tcp_send_message_sock_cipher() 706 int send_len = 0; in tcp_send_message_sock_tls() local 732 send_len = sendmsg_nofs(tcp->sock, &tcp_msg, iov, send_vec_cnt, in tcp_send_message_sock_tls() 735 if (send_len == -EBADMSG) { in tcp_send_message_sock_tls() 737 } else if (send_len < in tcp_send_message_sock_tls() [all...] |
H A D | connection.c | 354 __u32 send_len; in do_send_handshake() local 360 send_len = sizeof(struct connection_msg_head) + in do_send_handshake() 366 send_len += extend_len; in do_send_handshake() 369 hs_head = kzalloc(send_len, GFP_KERNEL); in do_send_handshake() 394 hs_head->datasize = cpu_to_le32(send_len); in do_send_handshake() 401 msg.len = send_len - msg.head_len; in do_send_handshake()
|
/kernel/linux/linux-5.10/fs/notify/inotify/ |
H A D | inotify_user.c | 285 size_t send_len = 0; in inotify_ioctl() local 297 send_len += sizeof(struct inotify_event); in inotify_ioctl() 298 send_len += round_event_name_len(fsn_event); in inotify_ioctl() 301 ret = put_user(send_len, (int __user *) p); in inotify_ioctl()
|
/kernel/linux/linux-6.6/fs/notify/inotify/ |
H A D | inotify_user.c | 321 size_t send_len = 0; in inotify_ioctl() local 333 send_len += sizeof(struct inotify_event); in inotify_ioctl() 334 send_len += round_event_name_len(fsn_event); in inotify_ioctl() 337 ret = put_user(send_len, (int __user *) p); in inotify_ioctl()
|
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_clc.c | 792 int len, send_len; in smc_clc_send_decline() local 811 send_len = sizeof(*dclc_v1); in smc_clc_send_decline() 815 send_len = sizeof(dclc); in smc_clc_send_decline() 817 dclc.hdr.length = htons(send_len); in smc_clc_send_decline() 821 vec.iov_len = send_len; in smc_clc_send_decline() 822 len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, send_len); in smc_clc_send_decline() 823 if (len < 0 || len < send_len) in smc_clc_send_decline()
|
/kernel/linux/linux-5.10/drivers/ps3/ |
H A D | ps3av.c | 287 int ps3av_do_pkt(u32 cid, u16 send_len, size_t usr_buf_size, in ps3av_do_pkt() argument 299 BUG_ON(send_len < PS3AV_HDR_SIZE); in ps3av_do_pkt() 300 BUG_ON(usr_buf_size < send_len); in ps3av_do_pkt() 304 ps3av_set_hdr(cid, send_len, buf); in ps3av_do_pkt() 307 res = ps3av_send_cmd_pkt(buf, &ps3av->recv_buf.reply_hdr, send_len, in ps3av_do_pkt()
|
H A D | ps3av_cmd.c | 215 int i, send_len, res; in ps3av_cmd_av_video_mute() local 227 send_len = sizeof(av_video_mute.send_hdr) + in ps3av_cmd_av_video_mute() 229 res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_MUTE, send_len, in ps3av_cmd_av_video_mute() 852 int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len) in ps3av_cmd_avb_param() argument 859 res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb), in ps3av_cmd_avb_param()
|
/kernel/linux/linux-6.6/drivers/ps3/ |
H A D | ps3av.c | 288 int ps3av_do_pkt(u32 cid, u16 send_len, size_t usr_buf_size, in ps3av_do_pkt() argument 300 BUG_ON(send_len < PS3AV_HDR_SIZE); in ps3av_do_pkt() 301 BUG_ON(usr_buf_size < send_len); in ps3av_do_pkt() 305 ps3av_set_hdr(cid, send_len, buf); in ps3av_do_pkt() 308 res = ps3av_send_cmd_pkt(buf, &ps3av->recv_buf.reply_hdr, send_len, in ps3av_do_pkt()
|
H A D | ps3av_cmd.c | 215 int i, send_len, res; in ps3av_cmd_av_video_mute() local 227 send_len = sizeof(av_video_mute.send_hdr) + in ps3av_cmd_av_video_mute() 229 res = ps3av_do_pkt(PS3AV_CID_AV_VIDEO_MUTE, send_len, in ps3av_cmd_av_video_mute() 852 int ps3av_cmd_avb_param(struct ps3av_pkt_avb_param *avb, u32 send_len) in ps3av_cmd_avb_param() argument 859 res = ps3av_do_pkt(PS3AV_CID_AVB_PARAM, send_len, sizeof(*avb), in ps3av_cmd_avb_param()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
H A D | vector_kern.c | 412 int result = 0, send_len, queue_depth = qi->max_depth; in vector_send() local 421 send_len = queue_depth; in vector_send() 425 if (send_len + qi->head > qi->max_depth) in vector_send() 426 send_len = qi->max_depth - qi->head; in vector_send() 428 if (send_len > 0) { in vector_send() 432 send_len, in vector_send() 436 (result != send_len); in vector_send() 448 result = send_len; in vector_send() 467 if (result != send_len) { in vector_send()
|
/kernel/linux/linux-6.6/arch/um/drivers/ |
H A D | vector_kern.c | 411 int result = 0, send_len, queue_depth = qi->max_depth; in vector_send() local 420 send_len = queue_depth; in vector_send() 424 if (send_len + qi->head > qi->max_depth) in vector_send() 425 send_len = qi->max_depth - qi->head; in vector_send() 427 if (send_len > 0) { in vector_send() 431 send_len, in vector_send() 435 (result != send_len); in vector_send() 447 result = send_len; in vector_send() 465 if (result != send_len) { in vector_send()
|
/kernel/linux/linux-6.6/drivers/hid/i2c-hid/ |
H A D | i2c-hid-core.c | 168 u8 *send_buf, int send_len, u8 *recv_buf, int recv_len) in i2c_hid_xfer() 175 if (send_len) { in i2c_hid_xfer() 177 __func__, send_len, send_buf); in i2c_hid_xfer() 181 msgs[n].len = send_len; in i2c_hid_xfer() 167 i2c_hid_xfer(struct i2c_hid *ihid, u8 *send_buf, int send_len, u8 *recv_buf, int recv_len) i2c_hid_xfer() argument
|
/kernel/linux/linux-5.10/fs/notify/fanotify/ |
H A D | fanotify_user.c | 634 size_t send_len = 0; in fanotify_ioctl() local 644 send_len += FAN_EVENT_METADATA_LEN; in fanotify_ioctl() 646 ret = put_user(send_len, (int __user *) p); in fanotify_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 512 u32 padded_len, send_len; in ath6kl_htc_tx_issue() local 517 send_len = packet->act_len + HTC_HDR_LENGTH; in ath6kl_htc_tx_issue() 519 padded_len = CALC_TXRX_PADDED_LEN(target, send_len); in ath6kl_htc_tx_issue() 523 send_len, packet->info.tx.seqno, padded_len, in ath6kl_htc_tx_issue() 541 trace_ath6kl_htc_tx(status, packet->endpoint, packet->buf, send_len); in ath6kl_htc_tx_issue()
|
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath6kl/ |
H A D | htc_mbox.c | 512 u32 padded_len, send_len; in ath6kl_htc_tx_issue() local 517 send_len = packet->act_len + HTC_HDR_LENGTH; in ath6kl_htc_tx_issue() 519 padded_len = CALC_TXRX_PADDED_LEN(target, send_len); in ath6kl_htc_tx_issue() 523 send_len, packet->info.tx.seqno, padded_len, in ath6kl_htc_tx_issue() 541 trace_ath6kl_htc_tx(status, packet->endpoint, packet->buf, send_len); in ath6kl_htc_tx_issue()
|
/kernel/linux/linux-6.6/fs/notify/fanotify/ |
H A D | fanotify_user.c | 966 size_t send_len = 0; in fanotify_ioctl() local 976 send_len += FAN_EVENT_METADATA_LEN; in fanotify_ioctl() 978 ret = put_user(send_len, (int __user *) p); in fanotify_ioctl()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4.h | 2129 const dma_addr_t *addr, u32 start, u32 send_len);
|