/kernel/linux/linux-5.10/drivers/staging/vt6656/ |
H A D | rxtx.c | 66 if (!priv->tx_context[ii]) in vnt_get_free_context() 69 context = priv->tx_context[ii]; in vnt_get_free_context() 182 static void vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_g() argument 185 struct vnt_private *priv = tx_context->priv; in vnt_rxtx_datahead_g() 187 (struct ieee80211_hdr *)tx_context->skb->data; in vnt_rxtx_datahead_g() 188 u32 frame_len = tx_context->frame_len; in vnt_rxtx_datahead_g() 189 u16 rate = tx_context->tx_rate; in vnt_rxtx_datahead_g() 192 vnt_get_phy_field(priv, frame_len, rate, tx_context->pkt_type, &buf->a); in vnt_rxtx_datahead_g() 204 static void vnt_rxtx_datahead_ab(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_ab() argument 207 struct vnt_private *priv = tx_context in vnt_rxtx_datahead_ab() 222 vnt_fill_ieee80211_rts(struct vnt_usb_send_context *tx_context, struct ieee80211_rts *rts, __le16 duration) vnt_fill_ieee80211_rts() argument 236 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context, struct vnt_rts_g *buf) vnt_rxtx_rts_g_head() argument 256 vnt_rxtx_rts_ab_head(struct vnt_usb_send_context *tx_context, struct vnt_rts_ab *buf) vnt_rxtx_rts_ab_head() argument 272 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context, union vnt_tx_data_head *head) vnt_fill_cts_head() argument 379 vnt_rxtx_rts(struct vnt_usb_send_context *tx_context) vnt_rxtx_rts() argument 402 vnt_rxtx_cts(struct vnt_usb_send_context *tx_context) vnt_rxtx_cts() argument 423 vnt_rxtx_ab(struct vnt_usb_send_context *tx_context) vnt_rxtx_ab() argument 449 vnt_generate_tx_parameter(struct vnt_usb_send_context *tx_context) vnt_generate_tx_parameter() argument 509 struct vnt_usb_send_context *tx_context; vnt_tx_packet() local [all...] |
H A D | main_usb.c | 445 struct vnt_usb_send_context *tx_context; in vnt_free_tx_bufs() local 451 tx_context = priv->tx_context[ii]; in vnt_free_tx_bufs() 452 if (!tx_context) in vnt_free_tx_bufs() 455 kfree(tx_context); in vnt_free_tx_bufs() 491 struct vnt_usb_send_context *tx_context; in vnt_alloc_bufs() local 498 tx_context = kmalloc(sizeof(*tx_context), GFP_KERNEL); in vnt_alloc_bufs() 499 if (!tx_context) { in vnt_alloc_bufs() 504 priv->tx_context[i in vnt_alloc_bufs() [all...] |
H A D | device.h | 289 struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC]; member
|
H A D | usbpipe.c | 152 context = priv->tx_context[pkt_no]; in vnt_int_report_rate()
|
/kernel/linux/linux-6.6/drivers/staging/vt6656/ |
H A D | rxtx.c | 62 if (!priv->tx_context[ii]) in vnt_get_free_context() 65 context = priv->tx_context[ii]; in vnt_get_free_context() 178 static void vnt_rxtx_datahead_g(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_g() argument 181 struct vnt_private *priv = tx_context->priv; in vnt_rxtx_datahead_g() 183 (struct ieee80211_hdr *)tx_context->skb->data; in vnt_rxtx_datahead_g() 184 u32 frame_len = tx_context->frame_len; in vnt_rxtx_datahead_g() 185 u16 rate = tx_context->tx_rate; in vnt_rxtx_datahead_g() 188 vnt_get_phy_field(priv, frame_len, rate, tx_context->pkt_type, &buf->a); in vnt_rxtx_datahead_g() 200 static void vnt_rxtx_datahead_ab(struct vnt_usb_send_context *tx_context, in vnt_rxtx_datahead_ab() argument 203 struct vnt_private *priv = tx_context in vnt_rxtx_datahead_ab() 218 vnt_fill_ieee80211_rts(struct vnt_usb_send_context *tx_context, struct ieee80211_rts *rts, __le16 duration) vnt_fill_ieee80211_rts() argument 232 vnt_rxtx_rts_g_head(struct vnt_usb_send_context *tx_context, struct vnt_rts_g *buf) vnt_rxtx_rts_g_head() argument 252 vnt_rxtx_rts_ab_head(struct vnt_usb_send_context *tx_context, struct vnt_rts_ab *buf) vnt_rxtx_rts_ab_head() argument 268 vnt_fill_cts_head(struct vnt_usb_send_context *tx_context, union vnt_tx_data_head *head) vnt_fill_cts_head() argument 373 vnt_rxtx_rts(struct vnt_usb_send_context *tx_context) vnt_rxtx_rts() argument 396 vnt_rxtx_cts(struct vnt_usb_send_context *tx_context) vnt_rxtx_cts() argument 417 vnt_rxtx_ab(struct vnt_usb_send_context *tx_context) vnt_rxtx_ab() argument 443 vnt_generate_tx_parameter(struct vnt_usb_send_context *tx_context) vnt_generate_tx_parameter() argument 503 struct vnt_usb_send_context *tx_context; vnt_tx_packet() local [all...] |
H A D | main_usb.c | 443 struct vnt_usb_send_context *tx_context; in vnt_free_tx_bufs() local 449 tx_context = priv->tx_context[ii]; in vnt_free_tx_bufs() 450 if (!tx_context) in vnt_free_tx_bufs() 453 kfree(tx_context); in vnt_free_tx_bufs() 489 struct vnt_usb_send_context *tx_context; in vnt_alloc_bufs() local 496 tx_context = kmalloc(sizeof(*tx_context), GFP_KERNEL); in vnt_alloc_bufs() 497 if (!tx_context) { in vnt_alloc_bufs() 502 priv->tx_context[i in vnt_alloc_bufs() [all...] |
H A D | device.h | 285 struct vnt_usb_send_context *tx_context[CB_MAX_TX_DESC]; member
|
H A D | usbpipe.c | 150 context = priv->tx_context[pkt_no]; in vnt_int_report_rate()
|
/kernel/linux/linux-5.10/drivers/net/can/usb/ |
H A D | gs_usb.c | 183 struct gs_tx_context tx_context[GS_MAX_TX_URBS]; member 210 if (dev->tx_context[i].echo_id == GS_MAX_TX_URBS) { in gs_alloc_tx_context() 211 dev->tx_context[i].echo_id = i; in gs_alloc_tx_context() 213 return &dev->tx_context[i]; in gs_alloc_tx_context() 237 if (dev->tx_context[id].echo_id == id) { in gs_get_tx_context() 239 return &dev->tx_context[id]; in gs_get_tx_context() 745 dev->tx_context[rc].dev = dev; in gs_can_close() 746 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_can_close() 886 dev->tx_context[rc].dev = dev; in gs_make_candev() 887 dev->tx_context[r in gs_make_candev() [all...] |
H A D | mcba_usb.c | 75 struct mcba_usb_ctx tx_context[MCBA_MAX_TX_URBS]; member 171 priv->tx_context[i].ndx = MCBA_CTX_FREE; in mcba_init_ctx() 172 priv->tx_context[i].priv = priv; in mcba_init_ctx() 175 atomic_set(&priv->free_ctx_cnt, ARRAY_SIZE(priv->tx_context)); in mcba_init_ctx() 185 if (priv->tx_context[i].ndx == MCBA_CTX_FREE) { in mcba_usb_get_free_ctx() 186 ctx = &priv->tx_context[i]; in mcba_usb_get_free_ctx()
|
/kernel/linux/linux-6.6/drivers/net/can/usb/ |
H A D | mcba_usb.c | 74 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 D | gs_usb.c | 316 struct gs_tx_context tx_context[GS_MAX_TX_URBS]; member 349 if (dev->tx_context[i].echo_id == GS_MAX_TX_URBS) { in gs_alloc_tx_context() 350 dev->tx_context[i].echo_id = i; in gs_alloc_tx_context() 352 return &dev->tx_context[i]; in gs_alloc_tx_context() 376 if (dev->tx_context[id].echo_id == id) { in gs_get_tx_context() 378 return &dev->tx_context[id]; in gs_get_tx_context() 1077 dev->tx_context[rc].dev = dev; in gs_can_close() 1078 dev->tx_context[rc].echo_id = GS_MAX_TX_URBS; in gs_can_close() 1267 dev->tx_context[rc].dev = dev; in gs_make_candev() 1268 dev->tx_context[r in gs_make_candev() [all...] |