Home
last modified time | relevance | path

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

12

/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 ib_destroy_ah(mad_send_wc->send_buf->ah); in agent_send_handler()
[all …]
Dmad_rmpp.c211 if (mad_send_wc->send_buf->context[0] == mad_send_wc->send_buf->ah) in ib_rmpp_send_handler()
212 ib_destroy_ah(mad_send_wc->send_buf->ah); in ib_rmpp_send_handler()
213 ib_free_send_mad(mad_send_wc->send_buf); in ib_rmpp_send_handler()
581 rmpp_mad = mad_send_wr->send_buf.mad; in send_next_seg()
587 paylen = (mad_send_wr->send_buf.seg_count * in send_next_seg()
588 mad_send_wr->send_buf.seg_rmpp_size) - in send_next_seg()
592 if (mad_send_wr->seg_num == mad_send_wr->send_buf.seg_count) { in send_next_seg()
594 paylen = mad_send_wr->send_buf.seg_rmpp_size - mad_send_wr->pad; in send_next_seg()
599 timeout = mad_send_wr->send_buf.timeout_ms; in send_next_seg()
618 if ((mad_send_wr->last_ack == mad_send_wr->send_buf.seg_count) || in abort_send()
[all …]
Dmad.c641 struct ib_mad_send_buf *send_buf, in snoop_send() argument
659 send_buf, mad_send_wc); in snoop_send()
743 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp()
838 mad_wc.byte_len = mad_send_wr->send_buf.hdr_len in handle_outgoing_dr_smp()
839 + mad_send_wr->send_buf.data_len in handle_outgoing_dr_smp()
936 struct ib_mad_send_buf *send_buf = &send_wr->send_buf; in alloc_send_rmpp_list() local
937 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list()
941 send_buf->seg_size = mad_size - send_buf->hdr_len; in alloc_send_rmpp_list()
942 send_buf->seg_rmpp_size = mad_size - IB_MGMT_RMPP_HDR; in alloc_send_rmpp_list()
943 seg_size = send_buf->seg_size; in alloc_send_rmpp_list()
[all …]
Dsa_query.c749 mad_send_wc.send_buf = query->mad_buf; in ib_nl_process_good_resolve_rsp()
783 mad_send_wc.send_buf = query->mad_buf; in ib_nl_request_timeout()
876 struct ib_mad_send_buf *send_buf; in ib_nl_handle_resolve_resp() local
905 send_buf = query->mad_buf; in ib_nl_handle_resolve_resp()
913 mad_send_wc.send_buf = send_buf; in ib_nl_handle_resolve_resp()
1849 struct ib_sa_query *query = mad_send_wc->send_buf->context[0]; in send_handler()
1878 struct ib_mad_send_buf *send_buf, in recv_handler() argument
1883 if (!send_buf) in recv_handler()
1886 query = send_buf->context[0]; in recv_handler()
Dmad_priv.h124 struct ib_mad_send_buf send_buf; member
/drivers/bluetooth/
Dath3k.c214 u8 *send_buf; in ath3k_load_firmware() local
223 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_firmware()
224 if (!send_buf) { in ath3k_load_firmware()
229 memcpy(send_buf, firmware->data, 20); in ath3k_load_firmware()
231 0, 0, send_buf, 20, USB_CTRL_SET_TIMEOUT); in ath3k_load_firmware()
246 memcpy(send_buf, firmware->data + sent, size); in ath3k_load_firmware()
248 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware()
262 kfree(send_buf); in ath3k_load_firmware()
311 u8 *send_buf; in ath3k_load_fwfile() local
318 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_fwfile()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_mad.c167 struct ib_mad_send_buf *send_buf; in forward_trap() local
173 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
176 if (IS_ERR(send_buf)) in forward_trap()
185 memcpy(send_buf->mad, mad, sizeof *mad); in forward_trap()
186 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
187 ret = ib_post_send_mad(send_buf, NULL); in forward_trap()
193 ib_free_send_mad(send_buf); in forward_trap()
290 ib_free_send_mad(mad_send_wc->send_buf); in send_handler()
/drivers/staging/i4l/icn/
Dicn.h129 frag_buf send_buf[0x10]; member
214 #define sbuf_d dev.shmem->data_buffers.send_buf[readb(&sbuf_n)].data
215 #define sbuf_l dev.shmem->data_buffers.send_buf[readb(&sbuf_n)].length
216 #define sbuf_f dev.shmem->data_buffers.send_buf[readb(&sbuf_n)].endflag
/drivers/hid/intel-ish-hid/ishtp/
Dclient-buffers.c80 tx_buf->send_buf.data = kmalloc(len, GFP_KERNEL); in ishtp_cl_alloc_tx_ring()
81 if (!tx_buf->send_buf.data) { in ishtp_cl_alloc_tx_ring()
147 kfree(tx_buf->send_buf.data); in ishtp_cl_free_tx_ring()
158 kfree(tx_buf->send_buf.data); in ishtp_cl_free_tx_ring()
Dclient.c569 if (!cl_msg->send_buf.data) { in ishtp_cl_send()
581 memcpy(cl_msg->send_buf.data, buf, length); in ishtp_cl_send()
582 cl_msg->send_buf.size = length; in ishtp_cl_send()
671 rem = cl_msg->send_buf.size - cl->tx_offs; in ipc_tx_callback()
676 pmsg = cl_msg->send_buf.data + cl->tx_offs; in ipc_tx_callback()
749 msg_addr = ishtp_cl_get_dma_send_buf(dev, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
766 memcpy(msg_addr, cl_msg->send_buf.data, cl_msg->send_buf.size); in ishtp_cl_send_msg_dma()
776 dma_xfer.msg_length = cl_msg->send_buf.size; in ishtp_cl_send_msg_dma()
Dclient.h49 struct ishtp_msg_data send_buf; member
/drivers/media/usb/as102/
Das102_usb_drv.c87 unsigned char *send_buf, int send_buf_len, in as102_usb_xfer_cmd() argument
92 if (send_buf != NULL) { in as102_usb_xfer_cmd()
100 send_buf, send_buf_len, in as102_usb_xfer_cmd()
144 unsigned char *send_buf, in as102_send_ep1() argument
152 send_buf, send_buf_len, &actual_len, 200); in as102_send_ep1()
Das10x_handle.h35 unsigned char *send_buf, int send_buf_len,
/drivers/iio/common/ms_sensors/
Dms_sensors_i2c.c191 __be16 send_buf; in ms_sensors_read_serial() local
199 .buf = (__u8 *)&send_buf, in ms_sensors_read_serial()
209 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_MSB); in ms_sensors_read_serial()
231 send_buf = cpu_to_be16(MS_SENSORS_SERIAL_READ_LSB); in ms_sensors_read_serial()
/drivers/net/hyperv/
Dnetvsc.c254 if (net_device->send_buf) { in netvsc_destroy_buf()
256 vfree(net_device->send_buf); in netvsc_destroy_buf()
257 net_device->send_buf = NULL; in netvsc_destroy_buf()
364 net_device->send_buf = vzalloc_node(net_device->send_buf_size, node); in netvsc_init_buf()
365 if (!net_device->send_buf) in netvsc_init_buf()
366 net_device->send_buf = vzalloc(net_device->send_buf_size); in netvsc_init_buf()
367 if (!net_device->send_buf) { in netvsc_init_buf()
378 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf, in netvsc_init_buf()
738 char *start = net_device->send_buf; in netvsc_copy_to_send_buf()
/drivers/iio/common/ssp_sensors/
Dssp_spi.c487 u8 *send_buf, u8 length) in ssp_send_instruction() argument
508 ssp_fill_buffer(msg, 1, send_buf, length); in ssp_send_instruction()
511 __func__, inst, sensor_type, send_buf[1]); in ssp_send_instruction()
Dssp.h243 u8 *send_buf, u8 length);
/drivers/media/platform/mtk-vpu/
Dmtk_vpu.c210 struct share_obj *send_buf; member
298 struct share_obj *send_obj = vpu->send_buf; in vpu_ipi_send()
719 vpu->send_buf = vpu->recv_buf + 1; in vpu_ipi_init()
721 memset(vpu->send_buf, 0, sizeof(struct share_obj)); in vpu_ipi_init()
/drivers/infiniband/sw/rdmavt/
Dmad.c91 ib_free_send_mad(mad_send_wc->send_buf); in rvt_send_mad_handler()
/drivers/tty/
Dnozomi.c387 u8 *send_buf; member
796 size = kfifo_out(&port->fifo_ul, dc->send_buf, in send_data()
808 write_mem32(addr + 4, (u32 *) dc->send_buf, size); in send_data()
1411 dc->send_buf = kmalloc(SEND_BUF_MAX, GFP_KERNEL); in nozomi_card_init()
1412 if (!dc->send_buf) { in nozomi_card_init()
1486 kfree(dc->send_buf); in nozomi_card_init()
1549 kfree(dc->send_buf); in nozomi_card_exit()
/drivers/infiniband/hw/mlx4/
Dmad.c383 struct ib_mad_send_buf *send_buf; in forward_trap() local
389 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
392 if (IS_ERR(send_buf)) in forward_trap()
401 memcpy(send_buf->mad, mad, sizeof *mad); in forward_trap()
402 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
403 ret = ib_post_send_mad(send_buf, NULL); in forward_trap()
409 ib_free_send_mad(send_buf); in forward_trap()
993 if (mad_send_wc->send_buf->context[0]) in send_handler()
994 ib_destroy_ah(mad_send_wc->send_buf->context[0]); in send_handler()
995 ib_free_send_mad(mad_send_wc->send_buf); in send_handler()
/drivers/infiniband/hw/qib/
Dqib_mad.c66 struct ib_mad_send_buf *send_buf; in qib_send_trap() local
86 send_buf = ib_create_send_mad(agent, 0, 0, 0, IB_MGMT_MAD_HDR, in qib_send_trap()
89 if (IS_ERR(send_buf)) in qib_send_trap()
92 smp = send_buf->mad; in qib_send_trap()
112 send_buf->ah = ah; in qib_send_trap()
119 send_buf->ah = &ibp->rvp.sm_ah->ibah; in qib_send_trap()
125 ret = ib_post_send_mad(send_buf, NULL); in qib_send_trap()
131 ib_free_send_mad(send_buf); in qib_send_trap()
/drivers/ps3/
Dps3av.c219 static int ps3av_send_cmd_pkt(const struct ps3av_send_hdr *send_buf, in ps3av_send_cmd_pkt() argument
231 res = ps3av_vuart_write(ps3av->dev, send_buf, write_len); in ps3av_send_cmd_pkt()
240 cmd = send_buf->cid; in ps3av_send_cmd_pkt()
/drivers/net/wan/
Dfsl_ucc_hdlc.c317 u8 *send_buf; in ucc_hdlc_tx() local
357 send_buf = (u8 *)skb->data; in ucc_hdlc_tx()
363 pr_info("%02x\n", send_buf[i]); in ucc_hdlc_tx()
/drivers/staging/gdm724x/
Dgdm_usb.c598 static u32 packet_aggregation(struct lte_udev *udev, u8 *send_buf) in packet_aggregation() argument
602 struct multi_sdu *multi_sdu = (struct multi_sdu *)send_buf; in packet_aggregation()

12