Home
last modified time | relevance | path

Searched refs:bdp (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/tty/serial/
H A Dcpm_uart.c69 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty() local
73 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty()
76 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty()
80 bdp++; in cpm_uart_tx_empty()
236 cbd_t __iomem *bdp; in cpm_uart_int_rx() local
245 bdp = pinfo->rx_cur; in cpm_uart_int_rx()
254 status = in_be16(&bdp->cbd_sc); in cpm_uart_int_rx()
260 i = in_be16(&bdp->cbd_datlen); in cpm_uart_int_rx()
271 cp = cpm2cpu_addr(in_be32(&bdp->cbd_bufaddr), pinfo); in cpm_uart_int_rx()
296 clrbits16(&bdp->cbd_sc, BD_SC_BR | BD_SC_FR | BD_SC_PR | in cpm_uart_int_rx()
[all …]
H A Ducc_uart.c261 struct qe_bd __iomem *bdp = qe_port->tx_bd_base; in qe_uart_tx_empty() local
264 if (ioread16be(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
268 if (ioread16be(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
275 bdp++; in qe_uart_tx_empty()
333 struct qe_bd __iomem *bdp; in qe_uart_tx_pump() local
342 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
344 p = qe2cpu_addr(ioread32be(&bdp->buf), qe_port); in qe_uart_tx_pump()
347 iowrite16be(1, &bdp->length); in qe_uart_tx_pump()
348 qe_setbits_be16(&bdp->status, BD_SC_READY); in qe_uart_tx_pump()
350 if (ioread16be(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_pump()
[all …]
/linux/drivers/net/ethernet/freescale/
H A Dfec_main.c317 static struct bufdesc *fec_enet_get_nextdesc(struct bufdesc *bdp, in fec_enet_get_nextdesc() argument
320 return (bdp >= bd->last) ? bd->base in fec_enet_get_nextdesc()
321 : (struct bufdesc *)(((void *)bdp) + bd->dsize); in fec_enet_get_nextdesc()
324 static struct bufdesc *fec_enet_get_prevdesc(struct bufdesc *bdp, in fec_enet_get_prevdesc() argument
327 return (bdp <= bd->base) ? bd->last in fec_enet_get_prevdesc()
328 : (struct bufdesc *)(((void *)bdp) - bd->dsize); in fec_enet_get_prevdesc()
331 static int fec_enet_get_bd_index(struct bufdesc *bdp, in fec_enet_get_bd_index() argument
334 return ((const char *)bdp - (const char *)bd->base) >> bd->dsize_log2; in fec_enet_get_bd_index()
359 struct bufdesc *bdp; in fec_dump() local
367 bdp in fec_dump()
513 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_frag_skb() local
601 struct bufdesc *bdp, *last_bdp; fec_enet_txq_submit_skb() local
724 fec_enet_txq_put_data_tso(struct fec_enet_priv_tx_q * txq,struct sk_buff * skb,struct net_device * ndev,struct bufdesc * bdp,int index,char * data,int size,bool last_tcp,bool is_last) fec_enet_txq_put_data_tso() argument
784 fec_enet_txq_put_hdr_tso(struct fec_enet_priv_tx_q * txq,struct sk_buff * skb,struct net_device * ndev,struct bufdesc * bdp,int index) fec_enet_txq_put_hdr_tso() argument
841 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_tso() local
978 struct bufdesc *bdp; fec_enet_bd_init() local
1491 struct bufdesc *bdp; fec_enet_xsk_xmit() local
1571 struct bufdesc *bdp = txq->dirty_tx; fec_enet_tx_queue() local
1752 fec_enet_update_cbd(struct fec_enet_priv_rx_q * rxq,struct bufdesc * bdp,int index) fec_enet_update_cbd() argument
1769 fec_enet_update_cbd_zc(struct fec_enet_priv_rx_q * rxq,struct bufdesc * bdp,int index) fec_enet_update_cbd_zc() argument
1838 fec_build_skb(struct fec_enet_private * fep,struct fec_enet_priv_rx_q * rxq,struct bufdesc * bdp,struct page * page,u32 len) fec_build_skb() argument
1900 struct bufdesc *bdp = rxq->bd.cur; fec_enet_rx_queue() local
2024 struct bufdesc *bdp = rxq->bd.cur; fec_enet_rx_queue_xdp() local
2212 struct bufdesc *bdp; fec_enet_xsk_tx_xmit() local
2275 struct bufdesc *bdp = rxq->bd.cur; fec_enet_rx_queue_xsk() local
3997 struct bufdesc *bdp = rxq->bd.base; fec_alloc_rxq_buffers_pp() local
4047 struct bufdesc *bdp = rxq->bd.base; fec_alloc_rxq_buffers_zc() local
4106 struct bufdesc *bdp; fec_enet_alloc_txq_buffers() local
4506 struct bufdesc *bdp = rxq->bd.base; fec_init_rxq_bd_buffers() local
4680 struct bufdesc *bdp; fec_enet_txq_xmit_frame() local
[all...]
H A Dgianfar.c110 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp, in gfar_init_rxbdp() argument
115 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
118 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
123 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
1236 struct rxbd8 *bdp; in gfar_alloc_rx_buffs() local
1241 bdp = &rx_queue->rx_bd_base[i]; in gfar_alloc_rx_buffs()
1254 gfar_init_rxbdp(rx_queue, bdp, in gfar_alloc_rx_buffs()
1258 bdp++; in gfar_alloc_rx_buffs()
1263 bdp = rx_queue->rx_bd_base; in gfar_alloc_rx_buffs()
1712 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, int stride, in skip_txbd() argument
[all …]
H A Dgianfar.h1311 static inline void gfar_clear_txbd_status(struct txbd8 *bdp) in gfar_clear_txbd_status() argument
1313 u32 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clear_txbd_status()
1316 bdp->lstatus = cpu_to_be32(lstatus); in gfar_clear_txbd_status()
1329 struct rxbd8 *bdp; in gfar_rxbd_dma_lastfree() local
1334 bdp = &rxq->rx_bd_base[i]; in gfar_rxbd_dma_lastfree()
1336 bdp_dma += (uintptr_t)bdp - (uintptr_t)rxq->rx_bd_base; in gfar_rxbd_dma_lastfree()
/linux/drivers/net/ethernet/aeroflex/
H A Dgreth.c397 struct greth_bd *bdp; in greth_start_xmit() local
425 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit()
426 dma_addr = greth_read_bd(&bdp->addr); in greth_start_xmit()
444 greth_write_bd(&bdp->stat, status); in greth_start_xmit()
466 struct greth_bd *bdp; in greth_start_xmit_gbit() local
506 bdp = greth->tx_bd_base + greth->tx_next; in greth_start_xmit_gbit()
507 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
513 greth_write_bd(&bdp->addr, dma_addr); in greth_start_xmit_gbit()
521 bdp = greth->tx_bd_base + curr_tx; in greth_start_xmit_gbit()
538 greth_write_bd(&bdp->stat, status); in greth_start_xmit_gbit()
[all …]
/linux/drivers/clk/mediatek/
H A DMakefile39 obj-$(CONFIG_COMMON_CLK_MT2701_BDPSYS) += clk-mt2701-bdp.o
47 obj-$(CONFIG_COMMON_CLK_MT2712_BDPSYS) += clk-mt2712-bdp.o