Home
last modified time | relevance | path

Searched refs:send_len (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dtls.c88 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), 0); in TEST_F()
288 int send_len = 10; in TEST_F() local
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_client.c37 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()
78 size_t send_len = sizeof(struct release_request); in hmdfs_send_close() local
79 struct release_request *release_req = kzalloc(send_len, GFP_KERNEL); in hmdfs_send_close()
82 .len = send_len, in hmdfs_send_close()
128 size_t send_len = sizeof(struct readpage_request); in hmdfs_client_readpage() local
129 struct readpage_request *read_data = kzalloc(send_len, GFP_KERNEL); in hmdfs_client_readpage()
132 .len = send_len, in hmdfs_client_readpage()
356 size_t send_len = sizeof(struct writepage_request) + HMDFS_PAGE_SIZE; in hmdfs_client_writepage() local
[all …]
/kernel/linux/linux-5.10/fs/hmdfs/comm/
Dtransport.c652 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 <= 0) { in tcp_send_message_sock_tls()
[all …]
Dconnection.c354 __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/drivers/staging/gdm724x/
Dgdm_usb.c597 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 += SDU_PARAM_LEN; in gdm_usb_sdu_send()
[all …]
/kernel/linux/linux-5.10/drivers/ps3/
Dps3av_cmd.c215 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()
Dps3av.c287 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()
/kernel/linux/linux-5.10/arch/um/drivers/
Dvector_kern.c412 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-5.10/fs/notify/inotify/
Dinotify_user.c285 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-5.10/fs/notify/fanotify/
Dfanotify_user.c634 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/
Dhtc_mbox.c512 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-5.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h2129 const dma_addr_t *addr, u32 start, u32 send_len);