Home
last modified time | relevance | path

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

123

/linux/drivers/infiniband/core/
H A Dagent.c96 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 …]
H A Dmad_rmpp.c206 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()
580 mad_send_wr->send_buf.seg_rmpp_size) - in send_next_seg()
619 wc.send_buf = &mad_send_wr->send_buf; in abort_send()
708 if (!mad_send_wr->send_buf.timeout_ms) { in process_rmpp_ack()
716 wc.send_buf = &mad_send_wr->send_buf; in process_rmpp_ack()
880 rmpp_mad = mad_send_wr->send_buf.mad; in ib_send_rmpp_mad()
906 rmpp_mad = mad_send_wr->send_buf.mad; in ib_process_rmpp_send_wc()
[all …]
H A Dmad.c791 struct ib_mad_send_buf *send_buf = &send_wr->send_buf; in alloc_send_rmpp_list() local
796 send_buf->seg_size = mad_size - send_buf->hdr_len; in alloc_send_rmpp_list()
1072 for (; send_buf; send_buf = next_send_buf) { in ib_post_send_mad()
1846 mad_send_wc.send_buf = &mad_send_wr->send_buf; in ib_mad_complete_recv()
2316 mad_send_wc.send_buf = &mad_send_wr->send_buf; in ib_mad_send_done()
2427 mad_send_wc.send_buf = &mad_send_wr->send_buf; in cancel_mads()
2443 if (&mad_send_wr->send_buf == send_buf) in find_send_wr()
2451 &mad_send_wr->send_buf == send_buf) in find_send_wr()
2464 if (!send_buf) in ib_modify_mad()
2568 mad_send_wc.send_buf = &local->mad_send_wr->send_buf; in local_completions()
[all …]
/linux/drivers/bluetooth/
H A Dath3k.c205 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()
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()
314 kfree(send_buf); in ath3k_load_fwfile()
[all …]
/linux/include/trace/events/
H A Dib_mad.h64 __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;
73 ((struct ib_mad_hdr *)wr->send_buf.mad)->method;
75 ((struct ib_mad_hdr *)wr->send_buf.mad)->status;
80 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id;
82 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_mod;
156 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
160 ((struct ib_mad_hdr *)wr->send_buf.mad)->method;
[all …]
/linux/drivers/cdx/controller/
H A Dcdx_rpmsg.c30 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/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c169 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/drivers/hid/
H A Dhid-thrustmaster.c153 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/arch/arm/mach-orion5x/
H A Dterastation_pro2-setup.c202 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()
H A Dkurobox_pro-setup.c224 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/include/rdma/
H A Dib_mad.h549 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/drivers/net/ethernet/intel/idpf/
H A Didpf_virtchnl.c83 struct kvec send_buf; member
455 const struct kvec *send_buf = &params->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()
1828 xn_params.send_buf.iov_base = eq; in idpf_send_ena_dis_queues_msg()
2075 xn_params.send_buf.iov_base = eq; in idpf_send_delete_queues_msg()
2138 xn_params.send_buf.iov_base = &aq; in idpf_send_add_queues_msg()
2188 xn_params.send_buf.iov_base = ∾ in idpf_send_alloc_vectors_msg()
2236 xn_params.send_buf.iov_base = vcs; in idpf_send_dealloc_vectors_msg()
2365 xn_params.send_buf.iov_base = rl; in idpf_send_get_set_rss_lut_msg()
[all …]
/linux/drivers/uio/
H A Duio_hv_generic.c63 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/net/vmw_vsock/
H A Dhyperv_transport.c242 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()
650 struct hvs_send_buf *send_buf; in hvs_stream_enqueue() local
655 BUILD_BUG_ON(sizeof(*send_buf) != HV_HYP_PAGE_SIZE); in hvs_stream_enqueue()
657 send_buf = kmalloc(sizeof(*send_buf), GFP_KERNEL); in hvs_stream_enqueue()
658 if (!send_buf) in hvs_stream_enqueue()
674 ret = memcpy_from_msg(send_buf->data, msg, to_write); in hvs_stream_enqueue()
678 ret = hvs_send_data(hvs->chan, send_buf, to_write); in hvs_stream_enqueue()
689 kfree(send_buf); in hvs_stream_enqueue()
/linux/drivers/hid/intel-ish-hid/ishtp/
H A Dclient-buffers.c73 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()
H A Dclient.c739 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/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_vema.c607 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/drivers/media/usb/as102/
H A Das102_usb_drv.c78 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()
H A Das10x_handle.h26 unsigned char *send_buf, int send_buf_len,
/linux/sound/soc/codecs/
H A Dtas571x.c107 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()
H A Dadau1701.c218 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()
H A Dtas5086.c196 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/tools/testing/vsock/
H A Dvsock_test.c286 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()
H A Dutil.h55 void send_buf(int fd, const void *buf, size_t len, int flags,
/linux/drivers/iio/common/ms_sensors/
H A Dms_sensors_i2c.c190 __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()

123