Home
last modified time | relevance | path

Searched refs:tx_context (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/drivers/staging/vt6656/
Drxtx.c86 if (!priv->tx_context[ii]) in vnt_get_free_context()
89 context = priv->tx_context[ii]; in vnt_get_free_context()
247 static u16 vnt_mac_hdr_pos(struct vnt_usb_send_context *tx_context, in vnt_mac_hdr_pos() argument
250 u8 *head = tx_context->data + offsetof(struct vnt_tx_buffer, fifo_head); in vnt_mac_hdr_pos()
253 tx_context->hdr = hdr; in vnt_mac_hdr_pos()
254 if (!tx_context->hdr) in vnt_mac_hdr_pos()
260 static u16 vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_g() argument
264 struct vnt_private *priv = tx_context->priv; in vnt_rxtx_datahead_g()
266 (struct ieee80211_hdr *)tx_context->skb->data; in vnt_rxtx_datahead_g()
267 u32 frame_len = tx_context->frame_len; in vnt_rxtx_datahead_g()
[all …]
Dmain_usb.c372 struct vnt_usb_send_context *tx_context; in vnt_free_tx_bufs() local
376 tx_context = priv->tx_context[ii]; in vnt_free_tx_bufs()
378 if (tx_context->urb) { in vnt_free_tx_bufs()
379 usb_kill_urb(tx_context->urb); in vnt_free_tx_bufs()
380 usb_free_urb(tx_context->urb); in vnt_free_tx_bufs()
383 kfree(tx_context); in vnt_free_tx_bufs()
428 struct vnt_usb_send_context *tx_context; in vnt_alloc_bufs() local
433 tx_context = kmalloc(sizeof(struct vnt_usb_send_context), in vnt_alloc_bufs()
435 if (tx_context == NULL) in vnt_alloc_bufs()
438 priv->tx_context[ii] = tx_context; in vnt_alloc_bufs()
[all …]
Dint.c81 context = priv->tx_context[pkt_no]; in vnt_int_report_rate()
Ddevice.h296 struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC]; member
/linux-4.1.27/drivers/net/can/usb/
Dgs_usb.c167 struct gs_tx_context tx_context[GS_MAX_TX_URBS]; member
192 if (dev->tx_context[i].echo_id == GS_MAX_TX_URBS) { in gs_alloc_tx_context()
193 dev->tx_context[i].echo_id = i; in gs_alloc_tx_context()
195 return &dev->tx_context[i]; in gs_alloc_tx_context()
218 if (dev->tx_context[id].echo_id == id) { in gs_get_tx_context()
220 return &dev->tx_context[id]; in gs_get_tx_context()
707 dev->tx_context[rc].dev = dev; in gs_can_close()
708 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_can_close()
788 dev->tx_context[rc].dev = dev; in gs_make_candev()
789 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_make_candev()