/linux-6.12.1/drivers/infiniband/core/ |
D | agent.c | 96 struct ib_mad_send_buf *send_buf; in agent_send_response() local 121 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, in agent_send_response() 126 if (IS_ERR(send_buf)) { in agent_send_response() 131 memcpy(send_buf->mad, mad_hdr, resp_mad_len); in agent_send_response() 132 send_buf->ah = ah; in agent_send_response() 135 mad_send_wr = container_of(send_buf, in agent_send_response() 137 send_buf); in agent_send_response() 141 if (ib_post_send_mad(send_buf, NULL)) { in agent_send_response() 147 ib_free_send_mad(send_buf); in agent_send_response() 155 rdma_destroy_ah(mad_send_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in agent_send_handler() [all …]
|
D | mad_rmpp.c | 206 if (mad_send_wc->send_buf->context[0] == mad_send_wc->send_buf->ah) in ib_rmpp_send_handler() 207 rdma_destroy_ah(mad_send_wc->send_buf->ah, in ib_rmpp_send_handler() 209 ib_free_send_mad(mad_send_wc->send_buf); in ib_rmpp_send_handler() 573 rmpp_mad = mad_send_wr->send_buf.mad; in send_next_seg() 579 paylen = (mad_send_wr->send_buf.seg_count * in send_next_seg() 580 mad_send_wr->send_buf.seg_rmpp_size) - in send_next_seg() 584 if (mad_send_wr->seg_num == mad_send_wr->send_buf.seg_count) { in send_next_seg() 586 paylen = mad_send_wr->send_buf.seg_rmpp_size - mad_send_wr->pad; in send_next_seg() 591 timeout = mad_send_wr->send_buf.timeout_ms; in send_next_seg() 610 if ((mad_send_wr->last_ack == mad_send_wr->send_buf.seg_count) || in abort_send() [all …]
|
D | mad.c | 597 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp() 694 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp() 695 + mad_send_wr->send_buf.data_len in handle_outgoing_dr_smp() 791 struct ib_mad_send_buf *send_buf = &send_wr->send_buf; in alloc_send_rmpp_list() local 792 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list() 796 send_buf->seg_size = mad_size - send_buf->hdr_len; in alloc_send_rmpp_list() 797 send_buf->seg_rmpp_size = mad_size - IB_MGMT_RMPP_HDR; in alloc_send_rmpp_list() 798 seg_size = send_buf->seg_size; in alloc_send_rmpp_list() 802 for (left = send_buf->data_len + pad; left > 0; left -= seg_size) { in alloc_send_rmpp_list() 808 seg->num = ++send_buf->seg_count; in alloc_send_rmpp_list() [all …]
|
/linux-6.12.1/drivers/bluetooth/ |
D | ath3k.c | 205 u8 *send_buf; in ath3k_load_firmware() local 212 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_firmware() 213 if (!send_buf) { in ath3k_load_firmware() 235 memcpy(send_buf, firmware->data + sent, size); in ath3k_load_firmware() 237 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware() 250 kfree(send_buf); in ath3k_load_firmware() 274 u8 *send_buf; in ath3k_load_fwfile() local 281 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_fwfile() 282 if (!send_buf) { in ath3k_load_fwfile() 294 kfree(send_buf); in ath3k_load_fwfile() [all …]
|
/linux-6.12.1/include/trace/events/ |
D | ib_mad.h | 64 __entry->length = wr->send_buf.hdr_len + 65 wr->send_buf.data_len; 67 ((struct ib_mad_hdr *)wr->send_buf.mad)->base_version; 69 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class; 71 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_version; 73 ((struct ib_mad_hdr *)wr->send_buf.mad)->method; 75 ((struct ib_mad_hdr *)wr->send_buf.mad)->status; 77 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_specific; 78 __entry->tid = ((struct ib_mad_hdr *)wr->send_buf.mad)->tid; 80 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id; [all …]
|
/linux-6.12.1/drivers/cdx/controller/ |
D | cdx_rpmsg.c | 30 unsigned char *send_buf; in cdx_rpmsg_send() local 33 send_buf = kzalloc(hdr_len + sdu_len, GFP_KERNEL); in cdx_rpmsg_send() 34 if (!send_buf) in cdx_rpmsg_send() 37 memcpy(send_buf, hdr, hdr_len); in cdx_rpmsg_send() 38 memcpy(send_buf + hdr_len, sdu, sdu_len); in cdx_rpmsg_send() 40 ret = rpmsg_send(cdx_mcdi->ept, send_buf, hdr_len + sdu_len); in cdx_rpmsg_send() 41 kfree(send_buf); in cdx_rpmsg_send()
|
/linux-6.12.1/drivers/infiniband/hw/mthca/ |
D | mthca_mad.c | 169 struct ib_mad_send_buf *send_buf; in forward_trap() local 175 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap() 178 if (IS_ERR(send_buf)) in forward_trap() 187 memcpy(send_buf->mad, mad, sizeof *mad); in forward_trap() 188 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap() 189 ret = ib_post_send_mad(send_buf, NULL); in forward_trap() 195 ib_free_send_mad(send_buf); in forward_trap() 280 ib_free_send_mad(mad_send_wc->send_buf); in send_handler()
|
/linux-6.12.1/drivers/hid/ |
D | hid-thrustmaster.c | 153 u8 *send_buf = kmalloc(256, GFP_KERNEL); in thrustmaster_interrupts() local 159 if (!send_buf) { in thrustmaster_interrupts() 165 kfree(send_buf); in thrustmaster_interrupts() 174 memcpy(send_buf, setup_arr[i], setup_arr_sizes[i]); in thrustmaster_interrupts() 178 send_buf, in thrustmaster_interrupts() 185 kfree(send_buf); in thrustmaster_interrupts() 190 kfree(send_buf); in thrustmaster_interrupts()
|
/linux-6.12.1/arch/arm/mach-orion5x/ |
D | terastation_pro2-setup.c | 202 unsigned char send_buf[40]; in tsp2_miconsend() local 221 memset(&send_buf, 0xff, sizeof(send_buf)); in tsp2_miconsend() 222 tsp2_miconwrite(send_buf, sizeof(send_buf)); in tsp2_miconsend()
|
D | kurobox_pro-setup.c | 224 unsigned char send_buf[40]; in kurobox_pro_miconsend() local 243 memset(&send_buf, 0xff, sizeof(send_buf)); in kurobox_pro_miconsend() 244 kurobox_pro_miconwrite(send_buf, sizeof(send_buf)); in kurobox_pro_miconsend()
|
/linux-6.12.1/include/rdma/ |
D | ib_mad.h | 549 struct ib_mad_send_buf *send_buf, 593 struct ib_mad_send_buf *send_buf; member 710 int ib_post_send_mad(struct ib_mad_send_buf *send_buf, 731 int ib_modify_mad(struct ib_mad_send_buf *send_buf, u32 timeout_ms); 740 static inline void ib_cancel_mad(struct ib_mad_send_buf *send_buf) in ib_cancel_mad() argument 742 ib_modify_mad(send_buf, 0); in ib_cancel_mad() 806 void *ib_get_rmpp_segment(struct ib_mad_send_buf *send_buf, int seg_num); 812 void ib_free_send_mad(struct ib_mad_send_buf *send_buf);
|
/linux-6.12.1/drivers/net/ethernet/intel/idpf/ |
D | idpf_virtchnl.c | 83 struct kvec send_buf; member 455 const struct kvec *send_buf = ¶ms->send_buf; in idpf_vc_xn_exec() local 495 send_buf->iov_len, send_buf->iov_base, in idpf_vc_xn_exec() 796 xn_params.send_buf.iov_base = &vvi; in idpf_send_ver_msg() 797 xn_params.send_buf.iov_len = sizeof(vvi); in idpf_send_ver_msg() 798 xn_params.recv_buf = xn_params.send_buf; in idpf_send_ver_msg() 902 xn_params.send_buf.iov_base = ∩︀ in idpf_send_get_caps_msg() 903 xn_params.send_buf.iov_len = sizeof(caps); in idpf_send_get_caps_msg() 1288 xn_params.send_buf.iov_base = vport_msg; in idpf_send_create_vport_msg() 1289 xn_params.send_buf.iov_len = buf_size; in idpf_send_create_vport_msg() [all …]
|
/linux-6.12.1/drivers/uio/ |
D | uio_hv_generic.c | 63 void *send_buf; member 196 vfree(pdata->send_buf); in hv_uio_cleanup() 322 pdata->send_buf = vzalloc(SEND_BUFFER_SIZE); in hv_uio_probe() 323 if (pdata->send_buf == NULL) { in hv_uio_probe() 328 ret = vmbus_establish_gpadl(channel, pdata->send_buf, in hv_uio_probe() 332 vfree(pdata->send_buf); in hv_uio_probe() 340 = (uintptr_t)pdata->send_buf; in hv_uio_probe()
|
/linux-6.12.1/net/vmw_vsock/ |
D | hyperv_transport.c | 242 struct hvs_send_buf *send_buf, size_t to_write) in hvs_send_data() argument 244 return __hvs_send_data(chan, &send_buf->hdr, to_write); in hvs_send_data() 651 struct hvs_send_buf *send_buf; in hvs_stream_enqueue() local 656 BUILD_BUG_ON(sizeof(*send_buf) != HV_HYP_PAGE_SIZE); in hvs_stream_enqueue() 658 send_buf = kmalloc(sizeof(*send_buf), GFP_KERNEL); in hvs_stream_enqueue() 659 if (!send_buf) in hvs_stream_enqueue() 675 ret = memcpy_from_msg(send_buf->data, msg, to_write); in hvs_stream_enqueue() 679 ret = hvs_send_data(hvs->chan, send_buf, to_write); in hvs_stream_enqueue() 690 kfree(send_buf); in hvs_stream_enqueue()
|
/linux-6.12.1/drivers/hid/intel-ish-hid/ishtp/ |
D | client-buffers.c | 73 tx_buf->send_buf.data = kmalloc(len, GFP_KERNEL); in ishtp_cl_alloc_tx_ring() 74 if (!tx_buf->send_buf.data) { in ishtp_cl_alloc_tx_ring() 142 kfree(tx_buf->send_buf.data); in ishtp_cl_free_tx_ring() 153 kfree(tx_buf->send_buf.data); in ishtp_cl_free_tx_ring()
|
D | client.c | 739 if (!cl_msg->send_buf.data) { in ishtp_cl_send() 753 memcpy(cl_msg->send_buf.data, buf, length); in ishtp_cl_send() 754 cl_msg->send_buf.size = length; in ishtp_cl_send() 844 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send() 850 pmsg = cl_msg->send_buf.data + cl->tx_offs; in ipc_tx_send() 869 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send() 932 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma() 949 memcpy(msg_addr, cl_msg->send_buf.data, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma() 957 clflush_cache_range(msg_addr, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma() 967 dma_xfer.msg_length = cl_msg->send_buf.size; in ishtp_cl_send_msg_dma()
|
/linux-6.12.1/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 607 rdma_destroy_ah(mad_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in vema_send() 608 ib_free_send_mad(mad_wc->send_buf); in vema_send() 622 struct ib_mad_send_buf *send_buf, in vema_recv() argument 729 struct ib_mad_send_buf *send_buf; in opa_vnic_vema_send_trap() local 796 send_buf = ib_create_send_mad(port->mad_agent, 1, pkey_idx, 0, in opa_vnic_vema_send_trap() 799 if (IS_ERR(send_buf)) { in opa_vnic_vema_send_trap() 804 send_buf->ah = ah; in opa_vnic_vema_send_trap() 807 trap_mad = send_buf->mad; in opa_vnic_vema_send_trap() 838 if (ib_post_send_mad(send_buf, NULL)) { in opa_vnic_vema_send_trap() 839 ib_free_send_mad(send_buf); in opa_vnic_vema_send_trap()
|
/linux-6.12.1/drivers/media/usb/as102/ |
D | as102_usb_drv.c | 78 unsigned char *send_buf, int send_buf_len, in as102_usb_xfer_cmd() argument 83 if (send_buf != NULL) { in as102_usb_xfer_cmd() 91 send_buf, send_buf_len, in as102_usb_xfer_cmd() 135 unsigned char *send_buf, in as102_send_ep1() argument 143 send_buf, send_buf_len, &actual_len, 200); in as102_send_ep1()
|
D | as10x_handle.h | 26 unsigned char *send_buf, int send_buf_len,
|
/linux-6.12.1/sound/soc/codecs/ |
D | tas571x.c | 107 uint8_t send_buf, recv_buf[4]; in tas571x_reg_read() local 114 send_buf = reg; in tas571x_reg_read() 117 msgs[0].len = sizeof(send_buf); in tas571x_reg_read() 118 msgs[0].buf = &send_buf; in tas571x_reg_read() 180 uint8_t send_buf; in tas571x_reg_read_multiword() local 190 send_buf = reg; in tas571x_reg_read_multiword() 193 msgs[0].len = sizeof(send_buf); in tas571x_reg_read_multiword() 194 msgs[0].buf = &send_buf; in tas571x_reg_read_multiword()
|
D | adau1701.c | 218 uint8_t send_buf[2], recv_buf[3]; in adau1701_reg_read() local 226 send_buf[0] = reg >> 8; in adau1701_reg_read() 227 send_buf[1] = reg & 0xff; in adau1701_reg_read() 230 msgs[0].len = sizeof(send_buf); in adau1701_reg_read() 231 msgs[0].buf = send_buf; in adau1701_reg_read()
|
D | tas5086.c | 196 uint8_t send_buf, recv_buf[4]; in tas5086_reg_read() local 206 send_buf = reg; in tas5086_reg_read() 209 msgs[0].len = sizeof(send_buf); in tas5086_reg_read() 210 msgs[0].buf = &send_buf; in tas5086_reg_read()
|
/linux-6.12.1/tools/testing/vsock/ |
D | vsock_test.c | 286 send_buf(fd, buf, sizeof(buf), 0, sizeof(buf)); in test_msg_peek_client() 410 send_buf(fd, buf, buf_size, flags, buf_size); in test_seqpacket_msg_bounds_client() 516 send_buf(fd, buf, sizeof(buf), 0, sizeof(buf)); in test_seqpacket_msg_trunc_client() 664 send_buf(fd, data, sock_buf_size, 0, -EMSGSIZE); in test_seqpacket_bigmsg_client() 718 send_buf(fd, buf1, buf_size, 0, buf_size); in test_seqpacket_invalid_rec_buffer_client() 720 send_buf(fd, buf2, buf_size, 0, buf_size); in test_seqpacket_invalid_rec_buffer_client() 955 send_buf(fd, data, sizeof(data), 0, sizeof(data)); in test_inv_buf_server() 998 send_buf(fd, HELLO_STR, strlen(HELLO_STR), 0, strlen(HELLO_STR)); in test_stream_virtio_skb_merge_client() 1005 send_buf(fd, WORLD_STR, strlen(WORLD_STR), 0, strlen(WORLD_STR)); in test_stream_virtio_skb_merge_client() 1275 send_buf(fd, buf, sizeof(buf), 0, sizeof(buf)); in test_unsent_bytes_client()
|
D | util.h | 55 void send_buf(int fd, const void *buf, size_t len, int flags,
|
/linux-6.12.1/drivers/iio/common/ms_sensors/ |
D | ms_sensors_i2c.c | 190 __be16 send_buf; in ms_sensors_read_serial() local 198 .buf = (__u8 *)&send_buf, in ms_sensors_read_serial() 208 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_MSB); in ms_sensors_read_serial() 230 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_LSB); in ms_sensors_read_serial()
|