/openbmc/linux/drivers/dma/ |
H A D | sa11x0-dma.c | 155 p->num, &txd->vd, txd->vd.tx.cookie, txd->ddar); in sa11x0_dma_start_desc() 167 if (!txd) in sa11x0_dma_start_sg() 304 if (txd) { in sa11x0_dma_start_txd() 458 if (txd) { in sa11x0_dma_tx_status() 466 i, txd->sg[i].addr, txd->sg[i].len); in sa11x0_dma_tx_status() 468 addr < txd->sg[i].addr + txd->sg[i].len) { in sa11x0_dma_tx_status() 482 i, txd->sg[i].addr, txd->sg[i].len); in sa11x0_dma_tx_status() 556 txd = kzalloc(struct_size(txd, sg, j), GFP_ATOMIC); in sa11x0_dma_prep_slave_sg() 557 if (!txd) { in sa11x0_dma_prep_slave_sg() 599 &c->vc, &txd->vd, txd->size, txd->sglen); in sa11x0_dma_prep_slave_sg() [all …]
|
H A D | owl-dma.c | 547 vchan->txd = txd; in owl_dma_start_next_txd() 654 txd = vchan->txd; in owl_dma_interrupt() 655 if (txd) { in owl_dma_interrupt() 686 kfree(txd); in owl_dma_free_txd() 780 txd = vchan->txd; in owl_dma_getbytes_chan() 881 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in owl_dma_prep_memcpy() 882 if (!txd) in owl_dma_prep_memcpy() 932 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in owl_dma_prep_slave_sg() 933 if (!txd) in owl_dma_prep_slave_sg() 996 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in owl_prep_dma_cyclic() [all …]
|
H A D | timb_dma.c | 64 struct dma_async_tx_descriptor txd; member 231 txd = &td_desc->txd; in __td_finish() 234 txd->cookie); in __td_finish() 243 dma_cookie_complete(txd); in __td_finish() 250 dma_descriptor_unmap(txd); in __td_finish() 288 __func__, td_desc->txd.cookie); in __td_start_next() 297 txd); in td_tx_submit() 307 txd->cookie); in td_tx_submit() 312 txd->cookie); in td_tx_submit() 363 dma_unmap_single(chan2dmadev(td_desc->txd.chan), td_desc->txd.phys, in td_free_desc() [all …]
|
H A D | amba-pl08x.c | 1274 bd.txd = txd; in pl08x_fill_llis_for_desc() 1498 dma_pool_free(pl08x->pool, txd->llis_va, txd->llis_bus); in pl08x_free_txd() 1505 kfree(txd); in pl08x_free_txd() 1746 struct pl08x_txd *txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in pl08x_get_txd() local 1748 if (txd) in pl08x_get_txd() 1750 return txd; in pl08x_get_txd() 1892 if (!txd) { in pl08x_prep_dma_memcpy() 1942 if (!txd) { in pl08x_init_txd() 2012 return txd; in pl08x_init_txd() 2057 if (!txd) in pl08x_prep_slave_sg() [all …]
|
H A D | txx9dmac.c | 141 return container_of(txd, struct txx9dmac_desc, txd); in txd_to_txx9dmac_desc() 403 struct dma_async_tx_descriptor *txd = &desc->txd; in txx9dmac_descriptor_complete() local 406 txd->cookie, desc); in txx9dmac_descriptor_complete() 408 dma_cookie_complete(txd); in txx9dmac_descriptor_complete() 415 dma_descriptor_unmap(txd); in txx9dmac_descriptor_complete() 421 dma_run_dependencies(txd); in txx9dmac_descriptor_complete() 528 bad_desc->txd.cookie); in txx9dmac_handle_error() 796 first->txd.flags = flags; in txx9dmac_prep_dma_memcpy() 799 return &first->txd; in txx9dmac_prep_dma_memcpy() 874 prev->txd.phys, in txx9dmac_prep_slave_sg() [all …]
|
H A D | sun6i-dma.c | 431 kfree(txd); in sun6i_dma_free_desc() 666 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in sun6i_dma_prep_dma_memcpy() 667 if (!txd) in sun6i_dma_prep_dma_memcpy() 696 kfree(txd); in sun6i_dma_prep_dma_memcpy() 724 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in sun6i_dma_prep_slave_sg() 725 if (!txd) in sun6i_dma_prep_slave_sg() 769 for (p_lli = txd->p_lli, v_lli = txd->v_lli; v_lli; in sun6i_dma_prep_slave_sg() 776 for (p_lli = txd->p_lli, v_lli = txd->v_lli; v_lli; in sun6i_dma_prep_slave_sg() 807 txd = kzalloc(sizeof(*txd), GFP_NOWAIT); in sun6i_dma_prep_dma_cyclic() 808 if (!txd) in sun6i_dma_prep_dma_cyclic() [all …]
|
H A D | plx_dma.c | 98 struct dma_async_tx_descriptor txd; member 126 return container_of(txd, struct plx_dma_desc, txd); in to_plx_desc() 159 dma_cookie_complete(&desc->txd); in plx_dma_process_desc() 160 dma_descriptor_unmap(&desc->txd); in plx_dma_process_desc() 162 desc->txd.callback = NULL; in plx_dma_process_desc() 163 desc->txd.callback_result = NULL; in plx_dma_process_desc() 186 dma_cookie_complete(&desc->txd); in plx_dma_abort_desc() 187 dma_descriptor_unmap(&desc->txd); in plx_dma_abort_desc() 189 desc->txd.callback = NULL; in plx_dma_abort_desc() 283 plxdesc->txd.flags = flags; in plx_dma_prep_memcpy() [all …]
|
H A D | ep93xx_dma.c | 258 d->txd.callback = desc->txd.callback; in ep93xx_dma_set_active() 259 d->txd.callback_param = desc->txd.callback_param; in ep93xx_dma_set_active() 302 return !desc->txd.cookie; in ep93xx_dma_advance_active() 693 desc->txd.cookie = 0; in ep93xx_dma_desc_get() 1014 first->txd.cookie = -EBUSY; in ep93xx_dma_prep_dma_memcpy() 1015 first->txd.flags = flags; in ep93xx_dma_prep_dma_memcpy() 1017 return &first->txd; in ep93xx_dma_prep_dma_memcpy() 1089 first->txd.cookie = -EBUSY; in ep93xx_dma_prep_slave_sg() 1090 first->txd.flags = flags; in ep93xx_dma_prep_slave_sg() 1092 return &first->txd; in ep93xx_dma_prep_slave_sg() [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ef100_tx.c | 104 if (likely(tx_queue->txd.addr)) in ef100_tx_desc() 153 EFX_OR_OWORD(*txd, *txd, csum); in ef100_set_tx_csum_partial() 164 EFX_OR_OWORD(*txd, *txd, vlan); in ef100_set_tx_hw_vlan() 173 EFX_POPULATE_OWORD_3(*txd, in ef100_make_send_desc() 182 ef100_set_tx_hw_vlan(skb, txd); in ef100_make_send_desc() 231 EFX_POPULATE_OWORD_19(*txd, in ef100_make_tso_desc() 265 efx_oword_t *txd; in ef100_tx_make_descriptors() local 283 EFX_POPULATE_OWORD_3(*txd, in ef100_tx_make_descriptors() 306 buffer, txd, nr_descs); in ef100_tx_make_descriptors() 312 buffer, txd, nr_descs); in ef100_tx_make_descriptors() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfd3/ |
H A D | ipsec.c | 10 void nfp_nfd3_ipsec_tx(struct nfp_nfd3_tx_desc *txd, struct sk_buff *skb) in nfp_nfd3_ipsec_tx() argument 18 txd->flags |= NFD3_DESC_TX_CSUM; in nfp_nfd3_ipsec_tx() 21 txd->flags |= NFD3_DESC_TX_IP4_CSUM; in nfp_nfd3_ipsec_tx() 32 txd->flags |= NFD3_DESC_TX_UDP_CSUM; in nfp_nfd3_ipsec_tx() 35 txd->flags |= NFD3_DESC_TX_TCP_CSUM; in nfp_nfd3_ipsec_tx()
|
H A D | dp.c | 100 txd->mss = cpu_to_le16(mss); in nfp_nfd3_tx_tso() 259 struct nfp_nfd3_tx_desc *txd; in nfp_nfd3_tx() local 321 txd->flags = 0; in nfp_nfd3_tx() 322 txd->mss = 0; in nfp_nfd3_tx() 323 txd->lso_hdrlen = 0; in nfp_nfd3_tx() 883 txd->flags = 0; in nfp_nfd3_tx_xdp_buf() 884 txd->mss = 0; in nfp_nfd3_tx_xdp_buf() 885 txd->lso_hdrlen = 0; in nfp_nfd3_tx_xdp_buf() 1267 txd->flags = 0; in nfp_nfd3_ctrl_tx_one() 1268 txd->mss = 0; in nfp_nfd3_ctrl_tx_one() [all …]
|
H A D | xsk.c | 23 struct nfp_nfd3_tx_desc *txd; in nfp_nfd3_xsk_tx_xdp() local 40 txd = &tx_ring->txds[wr_idx]; in nfp_nfd3_xsk_tx_xdp() 41 txd->offset_eop = NFD3_DESC_TX_EOP; in nfp_nfd3_xsk_tx_xdp() 42 txd->dma_len = cpu_to_le16(pkt_len); in nfp_nfd3_xsk_tx_xdp() 44 txd->data_len = cpu_to_le16(pkt_len); in nfp_nfd3_xsk_tx_xdp() 46 txd->flags = 0; in nfp_nfd3_xsk_tx_xdp() 47 txd->mss = 0; in nfp_nfd3_xsk_tx_xdp() 48 txd->lso_hdrlen = 0; in nfp_nfd3_xsk_tx_xdp() 338 struct nfp_nfd3_tx_desc *txd; in nfp_nfd3_xsk_tx() local 366 txd = &tx_ring->txds[wr_idx]; in nfp_nfd3_xsk_tx() [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/ |
H A D | dp.c | 74 return txd.raw; in nfp_nfdk_tx_tso() 346 txd++; in nfp_nfdk_tx() 364 txd++; in nfp_nfdk_tx() 393 txd++; in nfp_nfdk_tx() 402 txd += 2; in nfp_nfdk_tx() 982 txd++; in nfp_nfdk_tx_xdp_buf() 993 txd++; in nfp_nfdk_tx_xdp_buf() 1000 txd++; in nfp_nfdk_tx_xdp_buf() 1396 txd++; in nfp_nfdk_ctrl_tx_one() 1407 txd++; in nfp_nfdk_ctrl_tx_one() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ftmac110.c | 60 struct ftmac110_desc *txd; member 283 struct ftmac110_desc *txd; in ftmac110_send() local 296 txd = &chip->txd[chip->txd_idx]; in ftmac110_send() 297 ctrl = le64_to_cpu(txd->ctrl); in ftmac110_send() 305 memcpy(txd->vbuf, (void *)pkt, len); in ftmac110_send() 315 txd->ctrl = cpu_to_le64(ctrl); in ftmac110_send() 430 chip->txd = dma_alloc_coherent( in ftmac110_initialize() 432 if (!chip->txd) in ftmac110_initialize() 434 memset(chip->txd, 0, in ftmac110_initialize() 441 chip->txd[i].vbuf = va; in ftmac110_initialize() [all …]
|
H A D | pic32_eth.c | 388 struct eth_dma_desc *txd; in pic32_eth_send() local 391 txd = &priv->txd_ring[0]; in pic32_eth_send() 394 txd->hdr = EDH_SOP | EDH_EOP | EDH_EOWN | EDH_BCOUNT(length); in pic32_eth_send() 397 txd->data_buff = virt_to_phys(packet); in pic32_eth_send() 400 __func__, __LINE__, txd->hdr, txd->data_buff, txd->stat2, in pic32_eth_send() 401 txd->next_ed); in pic32_eth_send() 407 flush_dcache_range((ulong)txd, (ulong)txd + sizeof(*txd)); in pic32_eth_send() 410 writel(virt_to_phys(txd), &ectl_p->txst.raw); in pic32_eth_send() 434 invalidate_dcache_range((ulong)txd, (ulong)txd + sizeof(*txd)); in pic32_eth_send() 435 if (!(txd->hdr & EDH_EOWN)) in pic32_eth_send()
|
H A D | ns8382x.c | 619 txd.link = (u32) 0; in ns8382x_init_txd() 620 txd.bufptr = cpu_to_le32((u32) & txb[0]); in ns8382x_init_txd() 621 txd.cmdsts = (u32) 0; in ns8382x_init_txd() 622 txd.extsts = (u32) 0; in ns8382x_init_txd() 625 OUTL(dev, phys_to_bus((u32)&txd), TxRingPtr); in ns8382x_init_txd() 628 INL(dev, TxRingPtr), &txd); in ns8382x_init_txd() 747 txd.link = cpu_to_le32(0x0); in ns8382x_send() 749 txd.extsts = cpu_to_le32(0x0); in ns8382x_send() 750 txd.cmdsts = cpu_to_le32(DescOwn | length); in ns8382x_send() 758 le32_to_cpu(txd.link), le32_to_cpu(txd.bufptr), in ns8382x_send() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | marvell,armada-39x-pinctrl.txt | 19 mpp1 1 gpio, ua0(txd) 22 mpp4 4 gpio, ua1(txd), ua0(rts), smi(mdc) 32 mpp14 14 gpio, dram(vttctrl), dev(we1), ua1(txd) 36 mpp18 18 gpio, ua1(txd), spi0(cs0), i2c2(sck) 38 mpp20 20 gpio, sata0(prsnt) [1], ua0(rts), ua1(txd), smi(mdc) 44 mpp25 25 gpio, spi0(cs0), ua0(rts), ua1(txd), sd0(d5), dev(cs0) 61 mpp42 42 gpio, ua1(txd), ua0(rts), dev(ad7) 66 mpp46 46 gpio, ref(clk), pcie0(rstout), ua1(txd), led(stb) 73 mpp51 51 gpio, tdm(dtx) [2], audio(sdo) [2], dram(deccerr), ua2(txd) 78 mpp56 56 gpio, ua1(rts), dram(deccerr), spi1(mosi), ua1(txd) [all …]
|
H A D | marvell,kirkwood-pinctrl.txt | 36 mpp10 10 gpo, spi(sck), uart0(txd), ptp(trig) 40 mpp13 13 gpio, sdio(cmd), uart1(txd) 78 mpp13 13 gpio, sdio(cmd), uart1(txd) 122 mpp13 13 gpio, sdio(cmd), uart1(txd) 171 mpp13 13 gpio, sdio(cmd), uart1(txd) 293 mpp5 5 gpo, nand(io7), uart0(txd) 298 mpp10 10 gpo, spi(sck), uart0(txd) 300 mpp13 13 gpio, uart1(txd) 330 mpp5 5 gpo, nand(io7), uart0(txd) 335 mpp10 10 gpo, uart0(txd) [all …]
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/ |
H A D | mcu.c | 43 struct mt7603_mcu_txd *txd; in mt7603_mcu_skb_send_msg() local 54 txd->len = cpu_to_le16(skb->len); in mt7603_mcu_skb_send_msg() 58 txd->pq_id = cpu_to_le16(MCU_PORT_QUEUE); in mt7603_mcu_skb_send_msg() 59 txd->pkt_type = MCU_PKT_ID; in mt7603_mcu_skb_send_msg() 60 txd->seq = seq; in mt7603_mcu_skb_send_msg() 63 txd->cid = -cmd; in mt7603_mcu_skb_send_msg() 64 txd->set_query = MCU_Q_NA; in mt7603_mcu_skb_send_msg() 66 txd->cid = MCU_CMD_EXT_CID; in mt7603_mcu_skb_send_msg() 67 txd->ext_cid = cmd; in mt7603_mcu_skb_send_msg() 68 txd->set_query = MCU_Q_SET; in mt7603_mcu_skb_send_msg() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_debugfs.c | 60 struct fm10k_tx_desc *txd = FM10K_TX_DESC(ring, i); in fm10k_dbg_tx_desc_seq_show() local 63 i, txd->buffer_addr, txd->buflen, txd->vlan, in fm10k_dbg_tx_desc_seq_show() 64 txd->mss, txd->hdrlen, txd->flags); in fm10k_dbg_tx_desc_seq_show()
|
/openbmc/linux/drivers/rapidio/devices/ |
H A D | tsi721_dma.c | 60 return container_of(txd, struct tsi721_tx_desc, txd); in to_tsi721_desc() 375 struct dma_async_tx_descriptor *txd = &desc->txd; in tsi721_dma_tx_err() local 377 void *param = txd->callback_param; in tsi721_dma_tx_err() 641 dma_cookie_complete(&desc->txd); in tsi721_dma_tasklet() 669 callback = desc->txd.callback; in tsi721_dma_tasklet() 701 bdma_chan->id, txd); in tsi721_tx_submit() 712 cookie = dma_cookie_assign(txd); in tsi721_tx_submit() 878 txd = &desc->txd; in tsi721_prep_rio_sg() 879 txd->flags = flags; in tsi721_prep_rio_sg() 884 if (!txd) { in tsi721_prep_rio_sg() [all …]
|
/openbmc/linux/drivers/media/pci/mantis/ |
H A D | mantis_i2c.c | 75 u32 txd = 0, stat, trials; in mantis_i2c_write() local 82 txd = (msg->addr << 25) | (msg->buf[i] << 8) in mantis_i2c_write() 88 txd &= ~MANTIS_I2C_STOP; in mantis_i2c_write() 91 mmwrite(txd, MANTIS_I2CDATA_CTL); in mantis_i2c_write() 119 u32 stat, data, txd; in mantis_i2c_xfer() local 142 txd = msgs[i].addr << 25 | (0x1 << 24) in mantis_i2c_xfer() 146 mmwrite(txd, MANTIS_I2CDATA_CTL); in mantis_i2c_xfer()
|
/openbmc/linux/include/linux/ |
H A D | dmaengine.h | 658 static inline void txd_lock(struct dma_async_tx_descriptor *txd) in txd_lock() argument 661 static inline void txd_unlock(struct dma_async_tx_descriptor *txd) in txd_unlock() argument 684 static inline void txd_lock(struct dma_async_tx_descriptor *txd) in txd_lock() argument 686 spin_lock_bh(&txd->lock); in txd_lock() 690 spin_unlock_bh(&txd->lock); in txd_unlock() 694 txd->next = next; in txd_chain() 695 next->parent = txd; in txd_chain() 699 txd->parent = NULL; in txd_clear_parent() 703 txd->next = NULL; in txd_clear_next() 707 return txd->parent; in txd_parent() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | soft_spi_legacy.c | 110 const u8 *txd = dout; in spi_xfer() local 117 slave->bus, slave->cs, *(uint *)txd, *(uint *)rxd, bitlen); in spi_xfer() 127 if (txd) in spi_xfer() 128 tmpdout = *txd++; in spi_xfer()
|
/openbmc/linux/Documentation/devicetree/bindings/arm/marvell/ |
H A D | cp110-system-controller.txt | 92 mpp1 1 gpio, dev(ale0), au(i2sdo_spdifo), ge0(rxd2), tdm(drx), ptp(clk), mss_i2c(sck), uart0(txd), … 94 …ev(ad14), au(i2slrclk), ge0(rxd0), tdm(fsync), mss_uart(txd), pcie(rstoutn), i2c1(sda), uart1(txd)… 96 … dev(ad12), au(i2sdi), ge0(rxclk), tdm(intn), mss_uart(txd), uart1(rts), pcie1(clkreq), uart3(txd)… 98 mpp7 7 gpio, dev(ad10), ge0(txd2), spi0(csn1), spi1(csn1), sata0(present_act), led(data), uart0(txd… 102 mpp11 11 gpio, dev(wen1), ge0(txclkout), spi0(clk), spi1(clk), uart0(rts), led(clk), uart2(txd), sa… 136 mpp45 45 gpio, ge1(txd3), uart0(txd), pcie(rstoutn) 138 mpp47 47 gpio, ge1(txd0), spi1(clk), uart1(txd), ge(mdc) 141 mpp50 50 gpio, ge1(rxclk), mss_i2c(sda), spi1(csn0), uart2(txd), uart0(rxd), xg(mdio), sdio(pwr11) 148 mpp57 57 gpio, mss_i2c(sda), ptp(pclk_out), tdm(intn), au(i2sbclk), spi0(mosi), uart1(txd), sata0(p… 150 …pio7, synce2(clk), tdm(fsync), au(i2slrclk), spi0(csn0), uart0(cts), led(stb), uart1(txd), sdio(d1) [all …]
|