Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/staging/vt6656/
Drxtx.c76 if (!priv->tx_context[ii]) in vnt_get_free_context()
79 context = priv->tx_context[ii]; in vnt_get_free_context()
252 static u16 vnt_mac_hdr_pos(struct vnt_usb_send_context *tx_context, in vnt_mac_hdr_pos() argument
255 u8 *head = tx_context->data + offsetof(struct vnt_tx_buffer, fifo_head); in vnt_mac_hdr_pos()
258 tx_context->hdr = hdr; in vnt_mac_hdr_pos()
259 if (!tx_context->hdr) in vnt_mac_hdr_pos()
265 static u16 vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_g() argument
268 struct vnt_private *priv = tx_context->priv; in vnt_rxtx_datahead_g()
270 (struct ieee80211_hdr *)tx_context->skb->data; in vnt_rxtx_datahead_g()
271 u32 frame_len = tx_context->frame_len; in vnt_rxtx_datahead_g()
[all …]
Dmain_usb.c390 struct vnt_usb_send_context *tx_context; in vnt_free_tx_bufs() local
394 tx_context = priv->tx_context[ii]; in vnt_free_tx_bufs()
395 if (!tx_context) in vnt_free_tx_bufs()
399 if (tx_context->urb) { in vnt_free_tx_bufs()
400 usb_kill_urb(tx_context->urb); in vnt_free_tx_bufs()
401 usb_free_urb(tx_context->urb); in vnt_free_tx_bufs()
404 kfree(tx_context); in vnt_free_tx_bufs()
440 struct vnt_usb_send_context *tx_context; in vnt_alloc_bufs() local
445 tx_context = kmalloc(sizeof(*tx_context), GFP_KERNEL); in vnt_alloc_bufs()
446 if (!tx_context) { in vnt_alloc_bufs()
[all …]
Dint.c69 context = priv->tx_context[pkt_no]; in vnt_int_report_rate()
Ddevice.h283 struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC]; member
/Linux-v5.4/drivers/net/can/usb/
Dgs_usb.c177 struct gs_tx_context tx_context[GS_MAX_TX_URBS]; member
202 if (dev->tx_context[i].echo_id == GS_MAX_TX_URBS) { in gs_alloc_tx_context()
203 dev->tx_context[i].echo_id = i; in gs_alloc_tx_context()
205 return &dev->tx_context[i]; in gs_alloc_tx_context()
229 if (dev->tx_context[id].echo_id == id) { in gs_get_tx_context()
231 return &dev->tx_context[id]; in gs_get_tx_context()
711 dev->tx_context[rc].dev = dev; in gs_can_close()
712 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_can_close()
851 dev->tx_context[rc].dev = dev; in gs_make_candev()
852 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_make_candev()
Dmcba_usb.c75 struct mcba_usb_ctx tx_context[MCBA_MAX_TX_URBS]; member
167 priv->tx_context[i].ndx = MCBA_CTX_FREE; in mcba_init_ctx()
168 priv->tx_context[i].priv = priv; in mcba_init_ctx()
171 atomic_set(&priv->free_ctx_cnt, ARRAY_SIZE(priv->tx_context)); in mcba_init_ctx()
181 if (priv->tx_context[i].ndx == MCBA_CTX_FREE) { in mcba_usb_get_free_ctx()
182 ctx = &priv->tx_context[i]; in mcba_usb_get_free_ctx()