Home
last modified time | relevance | path

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

12

/linux-5.19.10/drivers/infiniband/core/
Dagent.c87 struct ib_mad_send_buf *send_buf; in agent_send_response() local
112 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, in agent_send_response()
117 if (IS_ERR(send_buf)) { in agent_send_response()
122 memcpy(send_buf->mad, mad_hdr, resp_mad_len); in agent_send_response()
123 send_buf->ah = ah; in agent_send_response()
126 mad_send_wr = container_of(send_buf, in agent_send_response()
128 send_buf); in agent_send_response()
132 if (ib_post_send_mad(send_buf, NULL)) { in agent_send_response()
138 ib_free_send_mad(send_buf); in agent_send_response()
146 rdma_destroy_ah(mad_send_wc->send_buf->ah, RDMA_DESTROY_AH_SLEEPABLE); in agent_send_handler()
[all …]
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()
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 …]
Dmad.c602 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp()
699 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp()
700 + mad_send_wr->send_buf.data_len in handle_outgoing_dr_smp()
796 struct ib_mad_send_buf *send_buf = &send_wr->send_buf; in alloc_send_rmpp_list() local
797 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list()
801 send_buf->seg_size = mad_size - send_buf->hdr_len; in alloc_send_rmpp_list()
802 send_buf->seg_rmpp_size = mad_size - IB_MGMT_RMPP_HDR; in alloc_send_rmpp_list()
803 seg_size = send_buf->seg_size; in alloc_send_rmpp_list()
807 for (left = send_buf->data_len + pad; left > 0; left -= seg_size) { in alloc_send_rmpp_list()
813 seg->num = ++send_buf->seg_count; in alloc_send_rmpp_list()
[all …]
Dsa_query.c912 mad_send_wc.send_buf = query->mad_buf; in ib_nl_process_good_resolve_rsp()
946 mad_send_wc.send_buf = query->mad_buf; in ib_nl_request_timeout()
1038 struct ib_mad_send_buf *send_buf; in ib_nl_handle_resolve_resp() local
1066 send_buf = query->mad_buf; in ib_nl_handle_resolve_resp()
1074 mad_send_wc.send_buf = send_buf; in ib_nl_handle_resolve_resp()
1960 struct ib_sa_query *query = mad_send_wc->send_buf->context[0]; in send_handler()
1990 struct ib_mad_send_buf *send_buf, in recv_handler() argument
1995 if (!send_buf) in recv_handler()
1998 query = send_buf->context[0]; in recv_handler()
/linux-5.19.10/drivers/bluetooth/
Dath3k.c207 u8 *send_buf; in ath3k_load_firmware() local
214 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_firmware()
215 if (!send_buf) { in ath3k_load_firmware()
237 memcpy(send_buf, firmware->data + sent, size); in ath3k_load_firmware()
239 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware()
252 kfree(send_buf); in ath3k_load_firmware()
276 u8 *send_buf; in ath3k_load_fwfile() local
283 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_fwfile()
284 if (!send_buf) { in ath3k_load_fwfile()
296 kfree(send_buf); in ath3k_load_fwfile()
[all …]
/linux-5.19.10/include/trace/events/
Dib_mad.h65 __entry->length = wr->send_buf.hdr_len +
66 wr->send_buf.data_len;
68 ((struct ib_mad_hdr *)wr->send_buf.mad)->base_version;
70 ((struct ib_mad_hdr *)wr->send_buf.mad)->mgmt_class;
72 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_version;
74 ((struct ib_mad_hdr *)wr->send_buf.mad)->method;
76 ((struct ib_mad_hdr *)wr->send_buf.mad)->status;
78 ((struct ib_mad_hdr *)wr->send_buf.mad)->class_specific;
79 __entry->tid = ((struct ib_mad_hdr *)wr->send_buf.mad)->tid;
81 ((struct ib_mad_hdr *)wr->send_buf.mad)->attr_id;
[all …]
/linux-5.19.10/drivers/infiniband/hw/mthca/
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-5.19.10/drivers/hid/
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-5.19.10/include/rdma/
Dib_mad.h547 struct ib_mad_send_buf *send_buf,
591 struct ib_mad_send_buf *send_buf; member
708 int ib_post_send_mad(struct ib_mad_send_buf *send_buf,
729 int ib_modify_mad(struct ib_mad_send_buf *send_buf, u32 timeout_ms);
738 static inline void ib_cancel_mad(struct ib_mad_send_buf *send_buf) in ib_cancel_mad() argument
740 ib_modify_mad(send_buf, 0); in ib_cancel_mad()
804 void *ib_get_rmpp_segment(struct ib_mad_send_buf *send_buf, int seg_num);
810 void ib_free_send_mad(struct ib_mad_send_buf *send_buf);
/linux-5.19.10/arch/arm/mach-orion5x/
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()
Dkurobox_pro-setup.c227 unsigned char send_buf[40]; in kurobox_pro_miconsend() local
246 memset(&send_buf, 0xff, sizeof(send_buf)); in kurobox_pro_miconsend()
247 kurobox_pro_miconwrite(send_buf, sizeof(send_buf)); in kurobox_pro_miconsend()
/linux-5.19.10/drivers/uio/
Duio_hv_generic.c64 void *send_buf; member
184 vfree(pdata->send_buf); in hv_uio_cleanup()
311 pdata->send_buf = vzalloc(SEND_BUFFER_SIZE); in hv_uio_probe()
312 if (pdata->send_buf == NULL) { in hv_uio_probe()
317 ret = vmbus_establish_gpadl(channel, pdata->send_buf, in hv_uio_probe()
320 vfree(pdata->send_buf); in hv_uio_probe()
328 = (uintptr_t)pdata->send_buf; in hv_uio_probe()
/linux-5.19.10/net/vmw_vsock/
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-5.19.10/drivers/hid/intel-ish-hid/ishtp/
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()
Dclient.c574 if (!cl_msg->send_buf.data) { in ishtp_cl_send()
588 memcpy(cl_msg->send_buf.data, buf, length); in ishtp_cl_send()
589 cl_msg->send_buf.size = length; in ishtp_cl_send()
679 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send()
685 pmsg = cl_msg->send_buf.data + cl->tx_offs; in ipc_tx_send()
704 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_send()
767 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
784 memcpy(msg_addr, cl_msg->send_buf.data, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
792 clflush_cache_range(msg_addr, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
802 dma_xfer.msg_length = cl_msg->send_buf.size; in ishtp_cl_send_msg_dma()
/linux-5.19.10/drivers/infiniband/ulp/opa_vnic/
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-5.19.10/drivers/media/usb/as102/
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()
Das10x_handle.h26 unsigned char *send_buf, int send_buf_len,
/linux-5.19.10/sound/soc/codecs/
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()
Dadau1701.c219 uint8_t send_buf[2], recv_buf[3]; in adau1701_reg_read() local
227 send_buf[0] = reg >> 8; in adau1701_reg_read()
228 send_buf[1] = reg & 0xff; in adau1701_reg_read()
231 msgs[0].len = sizeof(send_buf); in adau1701_reg_read()
232 msgs[0].buf = send_buf; in adau1701_reg_read()
Dtas5086.c197 uint8_t send_buf, recv_buf[4]; in tas5086_reg_read() local
207 send_buf = reg; in tas5086_reg_read()
210 msgs[0].len = sizeof(send_buf); in tas5086_reg_read()
211 msgs[0].buf = &send_buf; in tas5086_reg_read()
/linux-5.19.10/drivers/iio/common/ms_sensors/
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()
/linux-5.19.10/drivers/net/hyperv/
Dnetvsc.c166 vfree(nvdev->send_buf); in free_netvsc_device()
478 net_device->send_buf = vzalloc(buf_size); in netvsc_init_buf()
479 if (!net_device->send_buf) { in netvsc_init_buf()
491 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf, in netvsc_init_buf()
501 vaddr = hv_map_memory(net_device->send_buf, buf_size); in netvsc_init_buf()
507 net_device->send_original_buf = net_device->send_buf; in netvsc_init_buf()
508 net_device->send_buf = vaddr; in netvsc_init_buf()
769 hv_unmap_memory(net_device->send_buf); in netvsc_device_remove()
957 char *start = net_device->send_buf; in netvsc_copy_to_send_buf()
1835 hv_unmap_memory(net_device->send_buf); in netvsc_device_add()
/linux-5.19.10/drivers/iio/common/ssp_sensors/
Dssp_spi.c480 u8 *send_buf, u8 length) in ssp_send_instruction() argument
501 ssp_fill_buffer(msg, 1, send_buf, length); in ssp_send_instruction()
504 __func__, inst, sensor_type, send_buf[1]); in ssp_send_instruction()
/linux-5.19.10/drivers/infiniband/sw/rdmavt/
Dmad.c49 ib_free_send_mad(mad_send_wc->send_buf); in rvt_send_mad_handler()

12