Home
last modified time | relevance | path

Searched refs:recv_buf (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.12.1/arch/arm/mach-orion5x/
Dterastation_pro2-setup.c201 unsigned char recv_buf[40]; in tsp2_miconsend() local
217 if (tsp2_miconread(recv_buf, sizeof(recv_buf)) <= 3) { in tsp2_miconsend()
226 tsp2_miconread(recv_buf, sizeof(recv_buf)); in tsp2_miconsend()
234 if ((recv_buf[0] + recv_buf[1] + recv_buf[2] + in tsp2_miconsend()
235 recv_buf[3]) & 0xFF) { in tsp2_miconsend()
238 "\n", __func__, recv_buf[0], in tsp2_miconsend()
239 recv_buf[1], recv_buf[2], recv_buf[3]); in tsp2_miconsend()
242 if (correct_ack[0] == recv_buf[0] && in tsp2_miconsend()
243 correct_ack[1] == recv_buf[1] && in tsp2_miconsend()
244 correct_ack[2] == recv_buf[2]) { in tsp2_miconsend()
Dkurobox_pro-setup.c223 unsigned char recv_buf[40]; in kurobox_pro_miconsend() local
239 if (kurobox_pro_miconread(recv_buf, sizeof(recv_buf)) <= 3) { in kurobox_pro_miconsend()
248 kurobox_pro_miconread(recv_buf, sizeof(recv_buf)); in kurobox_pro_miconsend()
256 if ((recv_buf[0] + recv_buf[1] + recv_buf[2] + in kurobox_pro_miconsend()
257 recv_buf[3]) & 0xFF) { in kurobox_pro_miconsend()
260 "\n", __func__, recv_buf[0], in kurobox_pro_miconsend()
261 recv_buf[1], recv_buf[2], recv_buf[3]); in kurobox_pro_miconsend()
264 if (correct_ack[0] == recv_buf[0] && in kurobox_pro_miconsend()
265 correct_ack[1] == recv_buf[1] && in kurobox_pro_miconsend()
266 correct_ack[2] == recv_buf[2]) { in kurobox_pro_miconsend()
/linux-6.12.1/drivers/vfio/pci/mlx5/
Dcmd.c318 struct mlx5_vhca_recv_buf *recv_buf, in _create_mkey() argument
322 recv_buf->npages; in _create_mkey()
348 *mtt++ = cpu_to_be64(recv_buf->dma_addrs[i]); in _create_mkey()
1256 data->lkey = cpu_to_be32(qp->recv_buf.mkey); in mlx5vf_post_recv()
1257 data->addr = cpu_to_be64(qp->recv_buf.next_rq_offset); in mlx5vf_post_recv()
1287 struct mlx5_vhca_recv_buf *recv_buf = &qp->recv_buf; in mlx5vf_activate_qp() local
1292 recv_buf->next_rq_offset += qp->max_msg_size; in mlx5vf_activate_qp()
1337 static void free_recv_pages(struct mlx5_vhca_recv_buf *recv_buf) in free_recv_pages() argument
1342 for (i = 0; i < recv_buf->npages; i++) in free_recv_pages()
1343 __free_page(recv_buf->page_list[i]); in free_recv_pages()
[all …]
/linux-6.12.1/samples/nitro_enclaves/
Dne_ioctl_sample.c658 unsigned char recv_buf = 0; in ne_start_enclave_check_booted() local
736 rc = read(client_vsock_fd, &recv_buf, sizeof(recv_buf)); in ne_start_enclave_check_booted()
743 if (rc != sizeof(recv_buf) || recv_buf != NE_IMAGE_LOAD_HEARTBEAT_VALUE) { in ne_start_enclave_check_booted()
744 printf("Read %d instead of %d\n", recv_buf, in ne_start_enclave_check_booted()
751 rc = write(client_vsock_fd, &recv_buf, sizeof(recv_buf)); in ne_start_enclave_check_booted()
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dmsg_oob.c216 char recv_buf[2][BUF_SZ] = {}; in __recvpair() local
224 ret[i] = recv(self->fd[i * 2 + 1], recv_buf[i], buf_len, flags); in __recvpair()
234 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
242 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
243 TH_LOG("TCP :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]); in __recvpair()
256 cmp = strncmp(expected_buf, recv_buf[0], expected_len); in __recvpair()
258 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
264 cmp = strncmp(recv_buf[0], recv_buf[1], expected_len); in __recvpair()
267 TH_LOG("AF_UNIX :%s", ret[0] < 0 ? strerror(recv_errno[0]) : recv_buf[0]); in __recvpair()
268 TH_LOG("TCP :%s", ret[1] < 0 ? strerror(recv_errno[1]) : recv_buf[1]); in __recvpair()
/linux-6.12.1/drivers/infiniband/core/
Dmad_rmpp.c136 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in ack_recv()
144 format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); in ack_recv()
159 recv_wc->recv_buf.grh, agent->port_num); in alloc_response_msg()
163 hdr_len = ib_get_mad_data_offset(recv_wc->recv_buf.mad->mad_hdr.mgmt_class); in alloc_response_msg()
190 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in ack_ds_ack()
224 memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); in nack_recv()
288 mad_recv_wc->recv_buf.grh, in create_rmpp_recv()
302 rmpp_recv->cur_seg_buf = &mad_recv_wc->recv_buf; in create_rmpp_recv()
308 mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in create_rmpp_recv()
327 struct ib_mad_hdr *mad_hdr = &mad_recv_wc->recv_buf.mad->mad_hdr; in find_rmpp_recv()
[all …]
Dmad.c1172 recv_buf); in ib_free_recv_mad()
1666 rwc->recv_buf.mad->mad_hdr.mgmt_class; in rcv_has_same_class()
1683 rcv_resp = ib_response_mad(&rwc->recv_buf.mad->mad_hdr); in rcv_has_same_gid()
1713 return !memcmp(sgid.raw, rwc->recv_buf.grh->dgid.raw, in rcv_has_same_gid()
1722 rwc->recv_buf.grh->sgid.raw, in rcv_has_same_gid()
1738 mad_hdr = &wc->recv_buf.mad->mad_hdr; in ib_find_send_mad()
1798 list_add(&mad_recv_wc->recv_buf.list, &mad_recv_wc->rmpp_list); in ib_mad_complete_recv()
1809 if (ib_response_mad(&mad_recv_wc->recv_buf.mad->mad_hdr)) { in ib_mad_complete_recv()
1815 && ib_is_mad_class_rmpp(mad_recv_wc->recv_buf.mad->mad_hdr.mgmt_class) in ib_mad_complete_recv()
1816 && (ib_get_rmpp_flags(&((struct ib_rmpp_mad *)mad_recv_wc->recv_buf.mad)->rmpp_hdr) in ib_mad_complete_recv()
[all …]
/linux-6.12.1/drivers/staging/rtl8723bs/hal/
Drtl8723bs_recv.c11 static void initrecvbuf(struct recv_buf *precvbuf, struct adapter *padapter) in initrecvbuf()
175 struct recv_buf *precvbuf) in try_alloc_recvframe()
224 struct recv_buf *precvbuf; in rtl8723bs_recv_tasklet()
373 struct recv_buf *precvbuf; in rtl8723bs_init_recv_priv()
384 n = NR_RECVBUFF * sizeof(struct recv_buf) + 4; in rtl8723bs_init_recv_priv()
394 precvbuf = (struct recv_buf *)precvpriv->precv_buf; in rtl8723bs_init_recv_priv()
428 precvbuf = (struct recv_buf *)precvpriv->precv_buf; in rtl8723bs_init_recv_priv()
457 struct recv_buf *precvbuf; in rtl8723bs_free_recv_priv()
465 precvbuf = (struct recv_buf *)precvpriv->precv_buf; in rtl8723bs_free_recv_priv()
/linux-6.12.1/drivers/uio/
Duio_hv_generic.c59 void *recv_buf; member
202 vfree(pdata->recv_buf); in hv_uio_cleanup()
299 pdata->recv_buf = vzalloc(RECV_BUFFER_SIZE); in hv_uio_probe()
300 if (pdata->recv_buf == NULL) { in hv_uio_probe()
305 ret = vmbus_establish_gpadl(channel, pdata->recv_buf, in hv_uio_probe()
309 vfree(pdata->recv_buf); in hv_uio_probe()
318 = (uintptr_t)pdata->recv_buf; in hv_uio_probe()
/linux-6.12.1/drivers/ps3/
Dps3av.c50 } recv_buf; member
208 struct ps3av_reply_hdr *recv_buf, int write_len, in ps3av_send_cmd_pkt() argument
231 res = ps3av_vuart_read(ps3av->dev, recv_buf, PS3AV_HDR_SIZE, in ps3av_send_cmd_pkt()
241 res = ps3av_vuart_read(ps3av->dev, &recv_buf->cid, in ps3av_send_cmd_pkt()
242 recv_buf->size, timeout); in ps3av_send_cmd_pkt()
250 event = ps3av_parse_event_packet(recv_buf); in ps3av_send_cmd_pkt()
254 if ((cmd | PS3AV_REPLY_BIT) != recv_buf->cid) { in ps3av_send_cmd_pkt()
256 __LINE__, recv_buf->cid); in ps3av_send_cmd_pkt()
264 const struct ps3av_reply_hdr *recv_buf, in ps3av_process_reply_packet() argument
269 if (recv_buf->version != PS3AV_VERSION) { in ps3av_process_reply_packet()
[all …]
/linux-6.12.1/drivers/media/usb/as102/
Das102_usb_drv.c79 unsigned char *recv_buf, int recv_buf_len) in as102_usb_xfer_cmd() argument
106 if (recv_buf != NULL) { in as102_usb_xfer_cmd()
118 recv_buf, recv_buf_len, in as102_usb_xfer_cmd()
159 unsigned char *recv_buf, int recv_buf_len) in as102_read_ep2() argument
163 if (recv_buf == NULL) in as102_read_ep2()
168 recv_buf, recv_buf_len, &actual_len, 200); in as102_read_ep2()
Das10x_handle.h27 unsigned char *recv_buf, int recv_buf_len);
39 unsigned char *recv_buf,
/linux-6.12.1/drivers/staging/rtl8712/
Drecv_osdep.h34 struct recv_buf *precvbuf);
36 struct recv_buf *precvbuf);
Dusb_ops_linux.c178 struct recv_buf *precvbuf = (struct recv_buf *)purb->context; in r8712_usb_read_port_complete()
243 struct recv_buf *precvbuf = (struct recv_buf *)rmem; in r8712_usb_read_port()
294 struct recv_buf *precvbuf; in r8712_usb_read_port_cancel()
296 precvbuf = (struct recv_buf *)padapter->recvpriv.precv_buf; in r8712_usb_read_port_cancel()
Drtl8712_recv.h88 struct recv_buf { struct
139 void r8712_init_recvbuf(struct _adapter *padapter, struct recv_buf *precvbuf);
Drecv_linux.c41 struct recv_buf *precvbuf) in r8712_os_recvbuf_resource_alloc()
63 struct recv_buf *precvbuf) in r8712_os_recvbuf_resource_free()
/linux-6.12.1/sound/soc/codecs/
Dtas571x.c107 uint8_t send_buf, recv_buf[4]; in tas571x_reg_read() local
123 msgs[1].buf = recv_buf; in tas571x_reg_read()
136 *value |= recv_buf[i]; in tas571x_reg_read()
181 uint8_t *recv_buf, *p; in tas571x_reg_read_multiword() local
186 recv_buf = kzalloc(recv_size, GFP_KERNEL | GFP_DMA); in tas571x_reg_read_multiword()
187 if (!recv_buf) in tas571x_reg_read_multiword()
199 msgs[1].buf = recv_buf; in tas571x_reg_read_multiword()
210 for (i = 0, p = recv_buf; i < len; i++, p += sizeof(uint32_t)) in tas571x_reg_read_multiword()
214 kfree(recv_buf); in tas571x_reg_read_multiword()
/linux-6.12.1/tools/testing/vsock/
Dvsock_test.c310 recv_buf(fd, buf_peek, sizeof(buf_peek), MSG_PEEK | MSG_DONTWAIT, in test_msg_peek_server()
316 recv_buf(fd, buf_half, sizeof(buf_half), MSG_PEEK, sizeof(buf_half)); in test_msg_peek_server()
319 recv_buf(fd, buf_peek, sizeof(buf_peek), MSG_PEEK, sizeof(buf_peek)); in test_msg_peek_server()
332 recv_buf(fd, buf_half, sizeof(buf_half), MSG_PEEK | MSG_TRUNC, in test_msg_peek_server()
336 recv_buf(fd, buf_normal, sizeof(buf_normal), 0, sizeof(buf_normal)); in test_msg_peek_server()
895 recv_buf(fd, buf, sizeof(buf), MSG_DONTWAIT, RCVLOWAT_BUF_SIZE); in test_stream_poll_rcvlowat_client()
923 recv_buf(fd, NULL, sizeof(data), 0, -EFAULT); in test_inv_buf_client()
933 recv_buf(fd, data, sizeof(data), MSG_DONTWAIT, expected_ret); in test_inv_buf_client()
1030 recv_buf(fd, buf + read, to_read, 0, to_read); in test_stream_virtio_skb_merge_server()
1038 recv_buf(fd, buf + read, to_read, 0, to_read); in test_stream_virtio_skb_merge_server()
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dqmi_interface.c533 iv.iov_base = qmi->recv_buf; in qmi_data_ready_work()
560 qmi_recv_ctrl_pkt(qmi, qmi->recv_buf, msglen); in qmi_data_ready_work()
562 ops->msg_handler(qmi, &sq, qmi->recv_buf, msglen); in qmi_data_ready_work()
564 qmi_handle_message(qmi, &sq, qmi->recv_buf, msglen); in qmi_data_ready_work()
649 qmi->recv_buf = kzalloc(recv_buf_size, GFP_KERNEL); in qmi_handle_init()
650 if (!qmi->recv_buf) in qmi_handle_init()
675 kfree(qmi->recv_buf); in qmi_handle_init()
706 kfree(qmi->recv_buf); in qmi_handle_release()
/linux-6.12.1/drivers/gpu/drm/hyperv/
Dhyperv_drm_proto.c433 msg = (struct synthvid_msg *)hv->recv_buf; in hyperv_receive_sub()
455 struct synthvid_msg *recv_buf; in hyperv_receive() local
463 recv_buf = (struct synthvid_msg *)hv->recv_buf; in hyperv_receive()
466 ret = vmbus_recvpacket(hdev->channel, recv_buf, in hyperv_receive()
470 recv_buf->pipe_hdr.type == PIPE_MSG_DATA) in hyperv_receive()
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Drtw_recv.h260 struct recv_buf { struct
357 signed int rtw_enqueue_recvbuf_to_head(struct recv_buf *precvbuf, struct __queue *queue);
358 signed int rtw_enqueue_recvbuf(struct recv_buf *precvbuf, struct __queue *queue);
359 struct recv_buf *rtw_dequeue_recvbuf(struct __queue *queue);
/linux-6.12.1/net/vmw_vsock/
Dhyperv_transport.c580 struct hvs_recv_buf *recv_buf; in hvs_update_recv_data() local
588 recv_buf = (struct hvs_recv_buf *)(hvs->recv_desc + 1); in hvs_update_recv_data()
589 payload_len = recv_buf->hdr.data_size; in hvs_update_recv_data()
609 struct hvs_recv_buf *recv_buf; in hvs_stream_dequeue() local
625 recv_buf = (struct hvs_recv_buf *)(hvs->recv_desc + 1); in hvs_stream_dequeue()
627 ret = memcpy_to_msg(msg, recv_buf->data + hvs->recv_data_off, to_read); in hvs_stream_dequeue()
/linux-6.12.1/net/qrtr/
Dns.c596 void *recv_buf; in qrtr_ns_worker() local
603 recv_buf = kzalloc(recv_buf_size, GFP_KERNEL); in qrtr_ns_worker()
604 if (!recv_buf) in qrtr_ns_worker()
608 iv.iov_base = recv_buf; in qrtr_ns_worker()
622 pkt = recv_buf; in qrtr_ns_worker()
677 kfree(recv_buf); in qrtr_ns_worker()
/linux-6.12.1/drivers/tty/serial/
Dicom.c268 unsigned char *recv_buf; member
399 if (icom_port->recv_buf) { in free_port_memory()
400 dma_free_coherent(&dev->dev, 4096, icom_port->recv_buf, in free_port_memory()
402 icom_port->recv_buf = NULL; in free_port_memory()
441 icom_port->recv_buf = in get_port_memory()
444 if (!icom_port->recv_buf) { in get_port_memory()
450 (unsigned long) icom_port->recv_buf); in get_port_memory()
517 (unsigned long) icom_port->recv_buf); in get_port_memory()
525 (unsigned long) icom_port->recv_buf + 2048); in get_port_memory()
1001 first = icom_port->recv_buf[offset]; in recv_interrupt()
[all …]
/linux-6.12.1/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_vema.c630 if (!mad_wc || !mad_wc->recv_buf.mad) in vema_recv()
635 mad_wc->recv_buf.grh, mad_agent->port_num); in vema_recv()
648 memcpy(vema_mad, mad_wc->recv_buf.mad, IB_MGMT_VENDOR_HDR); in vema_recv()
655 switch (mad_wc->recv_buf.mad->mad_hdr.method) { in vema_recv()
657 vema_get(port, (struct opa_vnic_vema_mad *)mad_wc->recv_buf.mad, in vema_recv()
661 vema_set(port, (struct opa_vnic_vema_mad *)mad_wc->recv_buf.mad, in vema_recv()

123