Home
last modified time | relevance | path

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

/drivers/infiniband/core/
Dagent.c87 struct ib_mad_send_buf *send_buf; in agent_send_response() local
109 send_buf = ib_create_send_mad(agent, wc->src_qp, wc->pkey_index, 0, in agent_send_response()
112 if (IS_ERR(send_buf)) { in agent_send_response()
117 memcpy(send_buf->mad, mad, sizeof *mad); in agent_send_response()
118 send_buf->ah = ah; in agent_send_response()
121 mad_send_wr = container_of(send_buf, in agent_send_response()
123 send_buf); in agent_send_response()
127 if (ib_post_send_mad(send_buf, NULL)) { in agent_send_response()
133 ib_free_send_mad(send_buf); in agent_send_response()
141 ib_destroy_ah(mad_send_wc->send_buf->ah); in agent_send_handler()
[all …]
Dmad.c652 struct ib_mad_send_buf *send_buf, in snoop_send() argument
670 send_buf, mad_send_wc); in snoop_send()
729 struct ib_smp *smp = mad_send_wr->send_buf.mad; in handle_outgoing_dr_smp()
875 struct ib_mad_send_buf *send_buf = &send_wr->send_buf; in alloc_send_rmpp_list() local
876 struct ib_rmpp_mad *rmpp_mad = send_buf->mad; in alloc_send_rmpp_list()
880 send_buf->seg_size = sizeof (struct ib_mad) - send_buf->hdr_len; in alloc_send_rmpp_list()
881 seg_size = send_buf->seg_size; in alloc_send_rmpp_list()
885 for (left = send_buf->data_len + pad; left > 0; left -= seg_size) { in alloc_send_rmpp_list()
888 dev_err(&send_buf->mad_agent->device->dev, in alloc_send_rmpp_list()
894 seg->num = ++send_buf->seg_count; in alloc_send_rmpp_list()
[all …]
Dmad_rmpp.c207 if (mad_send_wc->send_buf->context[0] == mad_send_wc->send_buf->ah) in ib_rmpp_send_handler()
208 ib_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()
567 rmpp_mad = mad_send_wr->send_buf.mad; in send_next_seg()
573 paylen = mad_send_wr->send_buf.seg_count * IB_MGMT_RMPP_DATA - in send_next_seg()
577 if (mad_send_wr->seg_num == mad_send_wr->send_buf.seg_count) { in send_next_seg()
584 timeout = mad_send_wr->send_buf.timeout_ms; in send_next_seg()
603 if ((mad_send_wr->last_ack == mad_send_wr->send_buf.seg_count) || in abort_send()
612 wc.send_buf = &mad_send_wr->send_buf; in abort_send()
672 if ((mad_send_wr->last_ack == mad_send_wr->send_buf.seg_count) && in process_rmpp_ack()
[all …]
Dmad_priv.h125 struct ib_mad_send_buf send_buf; member
Dsa_query.c1102 struct ib_sa_query *query = mad_send_wc->send_buf->context[0]; in send_handler()
Duser_mad.c198 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler()
Dcm.c3219 struct ib_mad_send_buf *msg = mad_send_wc->send_buf; in cm_send_handler()
/drivers/bluetooth/
Dath3k.c210 u8 *send_buf; in ath3k_load_firmware() local
218 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_firmware()
219 if (!send_buf) { in ath3k_load_firmware()
224 memcpy(send_buf, firmware->data, 20); in ath3k_load_firmware()
226 0, 0, send_buf, 20, USB_CTRL_SET_TIMEOUT); in ath3k_load_firmware()
241 memcpy(send_buf, firmware->data + sent, size); in ath3k_load_firmware()
243 err = usb_bulk_msg(udev, pipe, send_buf, size, in ath3k_load_firmware()
257 kfree(send_buf); in ath3k_load_firmware()
306 u8 *send_buf; in ath3k_load_fwfile() local
312 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_fwfile()
[all …]
/drivers/infiniband/hw/mthca/
Dmthca_mad.c166 struct ib_mad_send_buf *send_buf; in forward_trap() local
172 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
174 if (IS_ERR(send_buf)) in forward_trap()
183 memcpy(send_buf->mad, mad, sizeof *mad); in forward_trap()
184 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
185 ret = ib_post_send_mad(send_buf, NULL); in forward_trap()
191 ib_free_send_mad(send_buf); in forward_trap()
281 ib_free_send_mad(mad_send_wc->send_buf); in send_handler()
/drivers/isdn/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/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/net/hyperv/
Dnetvsc.c206 if (net_device->send_buf) { in netvsc_destroy_buf()
208 vfree(net_device->send_buf); in netvsc_destroy_buf()
209 net_device->send_buf = NULL; in netvsc_destroy_buf()
317 net_device->send_buf = vzalloc(net_device->send_buf_size); in netvsc_init_buf()
318 if (!net_device->send_buf) { in netvsc_init_buf()
329 ret = vmbus_establish_gpadl(device->channel, net_device->send_buf, in netvsc_init_buf()
691 char *start = net_device->send_buf; in netvsc_copy_to_send_buf()
Dhyperv_net.h617 void *send_buf; member
/drivers/infiniband/hw/mlx4/
Dmad.c362 struct ib_mad_send_buf *send_buf; in forward_trap() local
368 send_buf = ib_create_send_mad(agent, qpn, 0, 0, IB_MGMT_MAD_HDR, in forward_trap()
370 if (IS_ERR(send_buf)) in forward_trap()
379 memcpy(send_buf->mad, mad, sizeof *mad); in forward_trap()
380 if ((send_buf->ah = dev->sm_ah[port_num - 1])) in forward_trap()
381 ret = ib_post_send_mad(send_buf, NULL); in forward_trap()
387 ib_free_send_mad(send_buf); in forward_trap()
887 if (mad_send_wc->send_buf->context[0]) in send_handler()
888 ib_destroy_ah(mad_send_wc->send_buf->context[0]); in send_handler()
889 ib_free_send_mad(mad_send_wc->send_buf); in send_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/qib/
Dqib_mad.c66 struct ib_mad_send_buf *send_buf; in qib_send_trap() local
85 send_buf = ib_create_send_mad(agent, 0, 0, 0, IB_MGMT_MAD_HDR, in qib_send_trap()
87 if (IS_ERR(send_buf)) in qib_send_trap()
90 smp = send_buf->mad; in qib_send_trap()
110 send_buf->ah = ah; in qib_send_trap()
117 send_buf->ah = &ibp->sm_ah->ibah; in qib_send_trap()
123 ret = ib_post_send_mad(send_buf, NULL); in qib_send_trap()
129 ib_free_send_mad(send_buf); in qib_send_trap()
2440 ib_free_send_mad(mad_send_wc->send_buf); in send_handler()
Dqib_iba7322.c5478 struct ib_mad_send_buf *send_buf; in try_7322_ipg() local
5488 send_buf = ib_create_send_mad(agent, 0, 0, 0, IB_MGMT_MAD_HDR, in try_7322_ipg()
5490 if (IS_ERR(send_buf)) in try_7322_ipg()
5500 send_buf->ah = ah; in try_7322_ipg()
5505 send_buf->ah = &ibp->smi_ah->ibah; in try_7322_ipg()
5509 smp = send_buf->mad; in try_7322_ipg()
5519 ret = ib_post_send_mad(send_buf, NULL); in try_7322_ipg()
5521 ib_free_send_mad(send_buf); in try_7322_ipg()
/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/staging/gdm724x/
Dgdm_usb.c600 static u32 packet_aggregation(struct lte_udev *udev, u8 *send_buf) in packet_aggregation() argument
604 struct multi_sdu *multi_sdu = (struct multi_sdu *)send_buf; in packet_aggregation()
/drivers/net/wireless/ath/wcn36xx/
Dsmd.c229 #define PREPARE_HAL_BUF(send_buf, msg_body) \ argument
231 memset(send_buf, 0, msg_body.header.len); \
232 memcpy(send_buf, &msg_body, sizeof(msg_body)); \
/drivers/infiniband/ulp/srpt/
Dib_srpt.c452 ib_destroy_ah(mad_wc->send_buf->ah); in srpt_mad_send_handler()
453 ib_free_send_mad(mad_wc->send_buf); in srpt_mad_send_handler()