Home
last modified time | relevance | path

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

/linux-6.15/drivers/net/can/usb/
H A Dmcba_usb.c74 struct mcba_usb_ctx tx_context[MCBA_MAX_TX_URBS]; member
170 priv->tx_context[i].ndx = MCBA_CTX_FREE; in mcba_init_ctx()
171 priv->tx_context[i].priv = priv; in mcba_init_ctx()
174 atomic_set(&priv->free_ctx_cnt, ARRAY_SIZE(priv->tx_context)); in mcba_init_ctx()
184 if (priv->tx_context[i].ndx == MCBA_CTX_FREE) { in mcba_usb_get_free_ctx()
185 ctx = &priv->tx_context[i]; in mcba_usb_get_free_ctx()
H A Dgs_usb.c319 struct gs_tx_context tx_context[GS_MAX_TX_URBS]; member
355 if (dev->tx_context[i].echo_id == GS_MAX_TX_URBS) { in gs_alloc_tx_context()
356 dev->tx_context[i].echo_id = i; in gs_alloc_tx_context()
358 return &dev->tx_context[i]; in gs_alloc_tx_context()
382 if (dev->tx_context[id].echo_id == id) { in gs_get_tx_context()
384 return &dev->tx_context[id]; in gs_get_tx_context()
1082 dev->tx_context[rc].dev = dev; in gs_can_close()
1083 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_can_close()
1272 dev->tx_context[rc].dev = dev; in gs_make_candev()
1273 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_make_candev()