/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_tx.c | 166 void libipw_txb_free(struct libipw_txb *txb) in libipw_txb_free() argument 169 if (unlikely(!txb)) in libipw_txb_free() 171 for (i = 0; i < txb->nr_frags; i++) in libipw_txb_free() 172 if (txb->fragments[i]) in libipw_txb_free() 173 dev_kfree_skb_any(txb->fragments[i]); in libipw_txb_free() 174 kfree(txb); in libipw_txb_free() 180 struct libipw_txb *txb; in libipw_alloc_txb() local 183 txb = kmalloc(struct_size(txb, fragments, nr_frags), gfp_mask); in libipw_alloc_txb() 184 if (!txb) in libipw_alloc_txb() 187 memset(txb, 0, sizeof(struct libipw_txb)); in libipw_alloc_txb() [all …]
|
D | ipw2100.c | 2929 libipw_txb_free(packet->info.d_struct.txb); in __ipw2100_tx_process() 2930 packet->info.d_struct.txb = NULL; in __ipw2100_tx_process() 3085 if (unlikely(1 + packet->info.d_struct.txb->nr_frags > in ipw2100_tx_send_data() 3094 if (txq->available <= 3 + packet->info.d_struct.txb->nr_frags) { in ipw2100_tx_send_data() 3107 hdr = (struct libipw_hdr_3addr *)packet->info.d_struct.txb-> in ipw2100_tx_send_data() 3127 ipw_hdr->encrypted = packet->info.d_struct.txb->encrypted; in ipw2100_tx_send_data() 3128 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data() 3130 packet->info.d_struct.txb->frag_size - in ipw2100_tx_send_data() 3137 tbd->num_fragments = 1 + packet->info.d_struct.txb->nr_frags; in ipw2100_tx_send_data() 3147 if (packet->info.d_struct.txb->nr_frags > 1) in ipw2100_tx_send_data() [all …]
|
D | ipw2200.c | 3772 q->txb = kmalloc_array(count, sizeof(q->txb[0]), GFP_KERNEL); in ipw_queue_tx_init() 3773 if (!q->txb) in ipw_queue_tx_init() 3782 kfree(q->txb); in ipw_queue_tx_init() 3783 q->txb = NULL; in ipw_queue_tx_init() 3824 if (txq->txb[txq->q.last_used]) { in ipw_queue_tx_free_tfd() 3825 libipw_txb_free(txq->txb[txq->q.last_used]); in ipw_queue_tx_free_tfd() 3826 txq->txb[txq->q.last_used] = NULL; in ipw_queue_tx_free_tfd() 3857 kfree(txq->txb); in ipw_queue_tx_free() 5049 txq->txb[q->first_empty] = NULL; in ipw_queue_tx_hcmd() 10086 static int ipw_tx_skb(struct ipw_priv *priv, struct libipw_txb *txb, in ipw_tx_skb() argument [all …]
|
D | ipw2100.h | 323 struct libipw_txb *txb; member
|
D | libipw.h | 794 netdev_tx_t (*hard_start_xmit) (struct libipw_txb * txb,
|
D | ipw2200.h | 521 struct libipw_txb **txb; member
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_tx.c | 216 void ieee80211_txb_free(struct ieee80211_txb *txb) in ieee80211_txb_free() argument 219 if (unlikely(!txb)) in ieee80211_txb_free() 221 kfree(txb); in ieee80211_txb_free() 228 struct ieee80211_txb *txb; in ieee80211_alloc_txb() local 230 txb = kmalloc( in ieee80211_alloc_txb() 233 if (!txb) in ieee80211_alloc_txb() 236 memset(txb, 0, sizeof(struct ieee80211_txb)); in ieee80211_alloc_txb() 237 txb->nr_frags = nr_frags; in ieee80211_alloc_txb() 238 txb->frag_size = __cpu_to_le16(txb_size); in ieee80211_alloc_txb() 241 txb->fragments[i] = dev_alloc_skb(txb_size); in ieee80211_alloc_txb() [all …]
|
D | ieee80211_softmac.c | 2032 void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *ieee) in ieee80211_softmac_xmit() argument 2034 unsigned int queue_index = txb->queue_index; in ieee80211_softmac_xmit() 2045 ieee->stats.tx_bytes += le16_to_cpu(txb->payload_size); in ieee80211_softmac_xmit() 2047 tcb_desc = (struct cb_desc *)(txb->fragments[0]->cb + MAX_DEV_ADDR_SIZE); in ieee80211_softmac_xmit() 2052 for (i = 0; i < txb->nr_frags; i++) { in ieee80211_softmac_xmit() 2067 skb_queue_tail(&ieee->skb_drv_aggQ[queue_index], txb->fragments[i]); in ieee80211_softmac_xmit() 2069 skb_queue_tail(&ieee->skb_waitQ[queue_index], txb->fragments[i]); in ieee80211_softmac_xmit() 2072 ieee->softmac_data_hard_start_xmit(txb->fragments[i], in ieee80211_softmac_xmit() 2079 ieee80211_txb_free(txb); in ieee80211_softmac_xmit() 2090 for (i = ieee->tx_pending.frag; i < ieee->tx_pending.txb->nr_frags; i++) { in ieee80211_resume_tx() [all …]
|
D | ieee80211.h | 1458 struct ieee80211_txb *txb; member 1908 int (*hard_start_xmit)(struct ieee80211_txb *txb, 2182 void ieee80211_txb_free(struct ieee80211_txb *txb); 2227 void ieee80211_softmac_xmit(struct ieee80211_txb *txb,
|
/drivers/staging/rtl8192e/ |
D | rtllib_tx.c | 195 void rtllib_txb_free(struct rtllib_txb *txb) in rtllib_txb_free() argument 197 if (unlikely(!txb)) in rtllib_txb_free() 199 kfree(txb); in rtllib_txb_free() 205 struct rtllib_txb *txb; in rtllib_alloc_txb() local 208 txb = kmalloc(sizeof(struct rtllib_txb) + (sizeof(u8 *) * nr_frags), in rtllib_alloc_txb() 210 if (!txb) in rtllib_alloc_txb() 213 memset(txb, 0, sizeof(struct rtllib_txb)); in rtllib_alloc_txb() 214 txb->nr_frags = nr_frags; in rtllib_alloc_txb() 215 txb->frag_size = cpu_to_le16(txb_size); in rtllib_alloc_txb() 218 txb->fragments[i] = dev_alloc_skb(txb_size); in rtllib_alloc_txb() [all …]
|
D | rtllib_softmac.c | 2447 void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee) in rtllib_softmac_xmit() argument 2450 unsigned int queue_index = txb->queue_index; in rtllib_softmac_xmit() 2462 tcb_desc = (struct cb_desc *)(txb->fragments[0]->cb + in rtllib_softmac_xmit() 2470 for (i = 0; i < txb->nr_frags; i++) { in rtllib_softmac_xmit() 2481 txb->fragments[i]); in rtllib_softmac_xmit() 2483 kfree_skb(txb->fragments[i]); in rtllib_softmac_xmit() 2486 txb->fragments[i], in rtllib_softmac_xmit() 2491 rtllib_txb_free(txb); in rtllib_softmac_xmit() 2503 if (ieee->tx_pending.txb) { in rtllib_reset_queue() 2504 rtllib_txb_free(ieee->tx_pending.txb); in rtllib_reset_queue() [all …]
|
D | rtllib.h | 1208 struct rtllib_txb *txb; member 1695 int (*hard_start_xmit)(struct rtllib_txb *txb, 1942 void rtllib_txb_free(struct rtllib_txb *txb); 1980 void rtllib_softmac_xmit(struct rtllib_txb *txb, struct rtllib_device *ieee);
|
/drivers/net/ethernet/micrel/ |
D | ks8851_spi.c | 122 __le16 txb[2]; in ks8851_wrreg16_spi() local 125 txb[0] = cpu_to_le16(MK_OP(reg & 2 ? 0xC : 0x03, reg) | KS_SPIOP_WR); in ks8851_wrreg16_spi() 126 txb[1] = cpu_to_le16(val); in ks8851_wrreg16_spi() 128 xfer->tx_buf = txb; in ks8851_wrreg16_spi() 153 __le16 *txb = (__le16 *)ks->txd; in ks8851_rdreg() local 157 txb[0] = cpu_to_le16(op | KS_SPIOP_RD); in ks8851_rdreg() 163 xfer->tx_buf = txb; in ks8851_rdreg() 175 xfer->tx_buf = txb; in ks8851_rdreg() 218 u8 txb[1]; in ks8851_rdfifo_spi() local 225 txb[0] = KS_SPIOP_RXFIFO; in ks8851_rdfifo_spi() [all …]
|
D | ks8851.h | 337 u8 txb[6]; member 446 struct sk_buff *txb) in ks8851_done_tx() argument 450 dev->stats.tx_bytes += txb->len; in ks8851_done_tx() 453 dev_kfree_skb(txb); in ks8851_done_tx()
|
D | ks8851_common.c | 551 struct sk_buff *txb = skb_dequeue(&ks->txq); in ks8851_net_stop() local 554 "%s: freeing txb %p\n", __func__, txb); in ks8851_net_stop() 556 dev_kfree_skb(txb); in ks8851_net_stop()
|
/drivers/media/i2c/adv748x/ |
D | adv748x-core.c | 526 adv748x_tx_power(&state->txb, 1); in adv748x_reset() 527 adv748x_tx_power(&state->txb, 0); in adv748x_reset() 537 if (is_tx_enabled(&state->txb)) { in adv748x_reset() 539 adv748x_csi2_set_virtual_channel(&state->txb, 0); in adv748x_reset() 644 state->txb.num_lanes = num_lanes; in adv748x_parse_csi2_lanes() 645 state->txb.active_lanes = num_lanes; in adv748x_parse_csi2_lanes() 646 adv_dbg(state, "TXB: using %u lanes\n", state->txb.num_lanes); in adv748x_parse_csi2_lanes() 732 state->txa.state = state->txb.state = state; in adv748x_probe() 734 state->txb.page = ADV748X_PAGE_TXB; in adv748x_probe() 736 state->txb.port = ADV748X_PORT_TXB; in adv748x_probe() [all …]
|
D | adv748x.h | 96 #define is_txb(_tx) ((_tx) == &(_tx)->state->txb) 198 struct adv748x_csi2 txb; member
|
/drivers/spi/ |
D | spi-loopback-test.c | 570 u8 rxb, txb; in spi_test_check_loopback_result() local 593 txb = ((u8 *)xfer->tx_buf)[i]; in spi_test_check_loopback_result() 595 if (txb != rxb) in spi_test_check_loopback_result() 600 txb = ((u8 *)xfer->rx_buf)[0]; in spi_test_check_loopback_result() 602 if (!((txb == 0) || (txb == 0xff))) { in spi_test_check_loopback_result() 605 txb); in spi_test_check_loopback_result() 611 if (rxb != txb) in spi_test_check_loopback_result() 622 i, txb, rxb); in spi_test_check_loopback_result()
|
/drivers/net/fjes/ |
D | fjes_hw.h | 74 #define FJES_DEV_COMMAND_SHARE_BUFFER_REQ_LEN(txb, rxb) \ argument 75 (24 + (8 * ((txb) / EP_BUFFER_INFO_SIZE + (rxb) / EP_BUFFER_INFO_SIZE)))
|
/drivers/net/wireless/microchip/wilc1000/ |
D | wlan.c | 708 u8 *txb = wilc->tx_buffer; in wilc_wlan_handle_txq() local 887 memcpy(&txb[offset], &header, 4); in wilc_wlan_handle_txq() 895 memcpy(&txb[offset + 4], &prio, sizeof(prio)); in wilc_wlan_handle_txq() 896 memcpy(&txb[offset + 8], bssid, 6); in wilc_wlan_handle_txq() 901 memcpy(&txb[offset + buffer_offset], in wilc_wlan_handle_txq() 922 ret = func->hif_block_tx_ext(wilc, 0, txb, offset); in wilc_wlan_handle_txq()
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 56 struct alx_buffer *txb = &txq->bufs[entry]; in alx_free_txbuf() local 58 if (dma_unmap_len(txb, size)) { in alx_free_txbuf() 60 dma_unmap_addr(txb, dma), in alx_free_txbuf() 61 dma_unmap_len(txb, size), in alx_free_txbuf() 63 dma_unmap_len_set(txb, size, 0); in alx_free_txbuf() 66 if (txb->skb) { in alx_free_txbuf() 67 dev_kfree_skb_any(txb->skb); in alx_free_txbuf() 68 txb->skb = NULL; in alx_free_txbuf()
|
/drivers/staging/r8188eu/include/ |
D | ieee80211.h | 918 struct ieee80211_txb *txb; member
|
/drivers/net/ethernet/broadcom/ |
D | tg3.c | 7767 struct tg3_tx_ring_info *txb = &tnapi->tx_buffers[entry]; in tg3_tx_skb_unmap() local 7769 skb = txb->skb; in tg3_tx_skb_unmap() 7770 txb->skb = NULL; in tg3_tx_skb_unmap() 7772 dma_unmap_single(&tnapi->tp->pdev->dev, dma_unmap_addr(txb, mapping), in tg3_tx_skb_unmap() 7775 while (txb->fragmented) { in tg3_tx_skb_unmap() 7776 txb->fragmented = false; in tg3_tx_skb_unmap() 7778 txb = &tnapi->tx_buffers[entry]; in tg3_tx_skb_unmap() 7785 txb = &tnapi->tx_buffers[entry]; in tg3_tx_skb_unmap() 7788 dma_unmap_addr(txb, mapping), in tg3_tx_skb_unmap() 7791 while (txb->fragmented) { in tg3_tx_skb_unmap() [all …]
|