Home
last modified time | relevance | path

Searched refs:bdp (Results 1 - 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet-main.c90 cbd_t __iomem *bdp; in fs_enet_napi() local
99 bdp = fep->dirty_tx; in fs_enet_napi()
105 while (((sc = CBDR_SC(bdp)) & BD_ENET_TX_READY) == 0 && tx_left) { in fs_enet_napi()
106 dirtyidx = bdp - fep->tx_bd_base; in fs_enet_napi()
151 dma_unmap_page(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_napi()
152 CBDR_DATLEN(bdp), DMA_TO_DEVICE); in fs_enet_napi()
154 dma_unmap_single(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_napi()
155 CBDR_DATLEN(bdp), DMA_TO_DEVICE); in fs_enet_napi()
169 bdp++; in fs_enet_napi()
171 bdp in fs_enet_napi()
363 cbd_t __iomem *bdp; fs_init_bds() local
414 cbd_t __iomem *bdp; fs_cleanup_bds() local
487 cbd_t __iomem *bdp; fs_enet_start_xmit() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fs_enet/
H A Dfs_enet-main.c90 cbd_t __iomem *bdp; in fs_enet_napi() local
99 bdp = fep->dirty_tx; in fs_enet_napi()
105 while (((sc = CBDR_SC(bdp)) & BD_ENET_TX_READY) == 0 && tx_left) { in fs_enet_napi()
106 dirtyidx = bdp - fep->tx_bd_base; in fs_enet_napi()
151 dma_unmap_page(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_napi()
152 CBDR_DATLEN(bdp), DMA_TO_DEVICE); in fs_enet_napi()
154 dma_unmap_single(fep->dev, CBDR_BUFADDR(bdp), in fs_enet_napi()
155 CBDR_DATLEN(bdp), DMA_TO_DEVICE); in fs_enet_napi()
169 bdp++; in fs_enet_napi()
171 bdp in fs_enet_napi()
361 cbd_t __iomem *bdp; fs_init_bds() local
412 cbd_t __iomem *bdp; fs_cleanup_bds() local
485 cbd_t __iomem *bdp; fs_enet_start_xmit() local
[all...]
/kernel/linux/linux-5.10/drivers/tty/serial/cpm_uart/
H A Dcpm_uart_core.c66 cbd_t __iomem *bdp = pinfo->tx_bd_base; in cpm_uart_tx_empty() local
70 if (in_be16(&bdp->cbd_sc) & BD_SC_READY) in cpm_uart_tx_empty()
73 if (in_be16(&bdp->cbd_sc) & BD_SC_WRAP) { in cpm_uart_tx_empty()
77 bdp++; in cpm_uart_tx_empty()
233 cbd_t __iomem *bdp; in cpm_uart_int_rx() local
242 bdp = pinfo->rx_cur; in cpm_uart_int_rx()
251 status = in_be16(&bdp->cbd_sc); in cpm_uart_int_rx()
257 i = in_be16(&bdp->cbd_datlen); in cpm_uart_int_rx()
268 cp = cpm2cpu_addr(in_be32(&bdp->cbd_bufaddr), pinfo); in cpm_uart_int_rx()
293 clrbits16(&bdp in cpm_uart_int_rx()
672 cbd_t __iomem *bdp; cpm_uart_tx_pump() local
750 cbd_t __iomem *bdp; cpm_uart_initbd() local
965 cbd_t __iomem *bdp, *bdbase; cpm_uart_early_write() local
1047 volatile cbd_t *bdp; poll_wait_key() local
[all...]
/kernel/linux/linux-6.6/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 in cpm_uart_int_rx()
646 cbd_t __iomem *bdp; cpm_uart_tx_pump() local
722 cbd_t __iomem *bdp; cpm_uart_initbd() local
1011 cbd_t __iomem *bdp, *bdbase; cpm_uart_early_write() local
1093 volatile cbd_t *bdp; poll_wait_key() local
[all...]
H A Ducc_uart.c261 struct qe_bd *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 *bdp; in qe_uart_tx_pump() local
342 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
344 p = qe2cpu_addr(be32_to_cpu(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 in qe_uart_tx_pump()
463 struct qe_bd *bdp; qe_uart_int_rx() local
593 struct qe_bd *bdp; qe_uart_initbd() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/
H A Dfec_main.c282 static struct bufdesc *fec_enet_get_nextdesc(struct bufdesc *bdp, in fec_enet_get_nextdesc() argument
285 return (bdp >= bd->last) ? bd->base in fec_enet_get_nextdesc()
286 : (struct bufdesc *)(((void *)bdp) + bd->dsize); in fec_enet_get_nextdesc()
289 static struct bufdesc *fec_enet_get_prevdesc(struct bufdesc *bdp, in fec_enet_get_prevdesc() argument
292 return (bdp <= bd->base) ? bd->last in fec_enet_get_prevdesc()
293 : (struct bufdesc *)(((void *)bdp) - bd->dsize); in fec_enet_get_prevdesc()
296 static int fec_enet_get_bd_index(struct bufdesc *bdp, in fec_enet_get_bd_index() argument
299 return ((const char *)bdp - (const char *)bd->base) >> bd->dsize_log2; in fec_enet_get_bd_index()
334 struct bufdesc *bdp; in fec_dump() local
342 bdp in fec_dump()
386 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_frag_skb() local
473 struct bufdesc *bdp, *last_bdp; fec_enet_txq_submit_skb() local
596 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
656 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
715 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_tso() local
828 struct bufdesc *bdp; fec_enet_bd_init() local
1241 struct bufdesc *bdp; fec_enet_tx_queue() local
1357 fec_enet_new_rxbdp(struct net_device *ndev, struct bufdesc *bdp, struct sk_buff *skb) fec_enet_new_rxbdp() argument
1376 fec_enet_copybreak(struct net_device *ndev, struct sk_buff **skb, struct bufdesc *bdp, u32 length, bool swap) fec_enet_copybreak() argument
1412 struct bufdesc *bdp; fec_enet_rx_queue() local
2818 struct bufdesc *bdp; fec_enet_free_buffers() local
2929 struct bufdesc *bdp; fec_enet_alloc_rxq_buffers() local
2970 struct bufdesc *bdp; fec_enet_alloc_txq_buffers() 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()
1279 struct rxbd8 *bdp; in gfar_alloc_rx_buffs() local
1284 bdp = &rx_queue->rx_bd_base[i]; in gfar_alloc_rx_buffs()
1297 gfar_init_rxbdp(rx_queue, bdp, in gfar_alloc_rx_buffs()
1301 bdp++; in gfar_alloc_rx_buffs()
1306 bdp = rx_queue->rx_bd_base; in gfar_alloc_rx_buffs()
1767 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, in argument
1775 next_txbd(struct txbd8 *bdp, struct txbd8 *base, int ring_size) next_txbd() argument
2189 struct txbd8 *bdp, *next = NULL; gfar_clean_tx_ring() local
2542 struct rxbd8 *bdp; gfar_clean_rx_ring() local
[all...]
H A Dgianfar.h1267 static inline void gfar_clear_txbd_status(struct txbd8 *bdp) in gfar_clear_txbd_status() argument
1269 u32 lstatus = be32_to_cpu(bdp->lstatus); in gfar_clear_txbd_status()
1272 bdp->lstatus = cpu_to_be32(lstatus); in gfar_clear_txbd_status()
1285 struct rxbd8 *bdp; in gfar_rxbd_dma_lastfree() local
1290 bdp = &rxq->rx_bd_base[i]; in gfar_rxbd_dma_lastfree()
1292 bdp_dma += (uintptr_t)bdp - (uintptr_t)rxq->rx_bd_base; in gfar_rxbd_dma_lastfree()
/kernel/linux/linux-5.10/drivers/tty/serial/
H A Ducc_uart.c261 struct qe_bd *bdp = qe_port->tx_bd_base; in qe_uart_tx_empty() local
264 if (qe_ioread16be(&bdp->status) & BD_SC_READY) in qe_uart_tx_empty()
268 if (qe_ioread16be(&bdp->status) & BD_SC_WRAP) in qe_uart_tx_empty()
275 bdp++; in qe_uart_tx_empty()
333 struct qe_bd *bdp; in qe_uart_tx_pump() local
342 bdp = qe_port->tx_cur; in qe_uart_tx_pump()
344 p = qe2cpu_addr(be32_to_cpu(bdp->buf), qe_port); in qe_uart_tx_pump()
347 qe_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 (qe_ioread16be(&bdp in qe_uart_tx_pump()
465 struct qe_bd *bdp; qe_uart_int_rx() local
595 struct qe_bd *bdp; qe_uart_initbd() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/
H A Dfec_main.c343 static struct bufdesc *fec_enet_get_nextdesc(struct bufdesc *bdp, in fec_enet_get_nextdesc() argument
346 return (bdp >= bd->last) ? bd->base in fec_enet_get_nextdesc()
347 : (struct bufdesc *)(((void *)bdp) + bd->dsize); in fec_enet_get_nextdesc()
350 static struct bufdesc *fec_enet_get_prevdesc(struct bufdesc *bdp, in fec_enet_get_prevdesc() argument
353 return (bdp <= bd->base) ? bd->last in fec_enet_get_prevdesc()
354 : (struct bufdesc *)(((void *)bdp) - bd->dsize); in fec_enet_get_prevdesc()
357 static int fec_enet_get_bd_index(struct bufdesc *bdp, in fec_enet_get_bd_index() argument
360 return ((const char *)bdp - (const char *)bd->base) >> bd->dsize_log2; in fec_enet_get_bd_index()
385 struct bufdesc *bdp; in fec_dump() local
393 bdp in fec_dump()
480 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_frag_skb() local
568 struct bufdesc *bdp, *last_bdp; fec_enet_txq_submit_skb() local
689 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
749 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
808 struct bufdesc *bdp = txq->bd.cur; fec_enet_txq_submit_tso() local
921 struct bufdesc *bdp; fec_enet_bd_init() local
1383 struct bufdesc *bdp; fec_enet_tx_queue() local
1544 fec_enet_update_cbd(struct fec_enet_priv_rx_q *rxq, struct bufdesc *bdp, int index) fec_enet_update_cbd() argument
1634 struct bufdesc *bdp; fec_enet_rx_queue() local
3360 struct bufdesc *bdp; fec_enet_alloc_rxq_buffers() local
3408 struct bufdesc *bdp; fec_enet_alloc_txq_buffers() local
3801 struct bufdesc *bdp; fec_enet_txq_xmit_frame() local
[all...]
H A Dgianfar.c109 static void gfar_init_rxbdp(struct gfar_priv_rx_q *rx_queue, struct rxbd8 *bdp, in gfar_init_rxbdp() argument
114 bdp->bufPtr = cpu_to_be32(buf); in gfar_init_rxbdp()
117 if (bdp == rx_queue->rx_bd_base + rx_queue->rx_ring_size - 1) in gfar_init_rxbdp()
122 bdp->lstatus = cpu_to_be32(lstatus); in gfar_init_rxbdp()
1246 struct rxbd8 *bdp; in gfar_alloc_rx_buffs() local
1251 bdp = &rx_queue->rx_bd_base[i]; in gfar_alloc_rx_buffs()
1264 gfar_init_rxbdp(rx_queue, bdp, in gfar_alloc_rx_buffs()
1268 bdp++; in gfar_alloc_rx_buffs()
1273 bdp = rx_queue->rx_bd_base; in gfar_alloc_rx_buffs()
1734 static inline struct txbd8 *skip_txbd(struct txbd8 *bdp, in argument
1742 next_txbd(struct txbd8 *bdp, struct txbd8 *base, int ring_size) next_txbd() argument
2153 struct txbd8 *bdp, *next = NULL; gfar_clean_tx_ring() local
2506 struct rxbd8 *bdp; gfar_clean_rx_ring() local
[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()
/kernel/linux/linux-5.10/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 in greth_start_xmit_gbit()
621 struct greth_bd *bdp; greth_clean_tx() local
675 struct greth_bd *bdp, *bdp_last_frag; greth_clean_tx_gbit() local
741 struct greth_bd *bdp; greth_rx() local
857 struct greth_bd *bdp; greth_rx_gbit() local
[all...]
/kernel/linux/linux-6.6/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 in greth_start_xmit_gbit()
621 struct greth_bd *bdp; greth_clean_tx() local
675 struct greth_bd *bdp, *bdp_last_frag; greth_clean_tx_gbit() local
741 struct greth_bd *bdp; greth_rx() local
857 struct greth_bd *bdp; greth_rx_gbit() local
[all...]
/kernel/linux/linux-5.10/drivers/video/backlight/
H A Dcr_bllcd.c155 struct backlight_device *bdp; in cr_backlight_probe() local
176 bdp = devm_backlight_device_register(&pdev->dev, "cr-backlight", in cr_backlight_probe()
179 if (IS_ERR(bdp)) { in cr_backlight_probe()
181 return PTR_ERR(bdp); in cr_backlight_probe()
201 crp->cr_backlight_device = bdp; in cr_backlight_probe()
/kernel/linux/linux-6.6/drivers/video/backlight/
H A Dcr_bllcd.c155 struct backlight_device *bdp; in cr_backlight_probe() local
176 bdp = devm_backlight_device_register(&pdev->dev, "cr-backlight", in cr_backlight_probe()
179 if (IS_ERR(bdp)) { in cr_backlight_probe()
181 return PTR_ERR(bdp); in cr_backlight_probe()
201 crp->cr_backlight_device = bdp; in cr_backlight_probe()
/kernel/linux/linux-5.10/lib/
H A Ddecompress_bunzip2.c629 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument
642 bd = *bdp = malloc(i); in start_bunzip()
/kernel/linux/linux-6.6/lib/
H A Ddecompress_bunzip2.c629 static int INIT start_bunzip(struct bunzip_data **bdp, void *inbuf, long len, in start_bunzip() argument
642 bd = *bdp = malloc(i); in start_bunzip()
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_bbr.c348 /* Calculate bdp based on min RTT and the estimated bottleneck bandwidth:
350 * bdp = ceil(bw * min_rtt * gain)
360 u32 bdp; in bbr_bdp() local
377 bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_bdp()
379 return bdp; in bbr_bdp()
/kernel/linux/linux-6.6/net/ipv4/
H A Dtcp_bbr.c350 /* Calculate bdp based on min RTT and the estimated bottleneck bandwidth:
352 * bdp = ceil(bw * min_rtt * gain)
362 u32 bdp; in bbr_bdp() local
379 bdp = (((w * gain) >> BBR_SCALE) + BW_UNIT - 1) / BW_UNIT; in bbr_bdp()
381 return bdp; in bbr_bdp()
/kernel/linux/linux-5.10/drivers/scsi/
H A Dqla1280.c667 struct qla_boards *bdp; in qla1280_info() local
671 bdp = &ql1280_board_tbl[ha->devnum]; in qla1280_info()
677 &bdp->name[0], ha->fwver1, ha->fwver2, ha->fwver3, in qla1280_info()
4152 struct qla_boards *bdp = &ql1280_board_tbl[devnum]; in qla1280_probe_one() local
4165 bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); in qla1280_probe_one()
4225 ha->ports = bdp->numPorts; in qla1280_probe_one()
4231 host->max_channel = bdp->numPorts - 1; in qla1280_probe_one()
/kernel/linux/linux-6.6/drivers/scsi/
H A Dqla1280.c659 struct qla_boards *bdp; in qla1280_info() local
663 bdp = &ql1280_board_tbl[ha->devnum]; in qla1280_info()
669 &bdp->name[0], ha->fwver1, ha->fwver2, ha->fwver3, in qla1280_info()
4141 struct qla_boards *bdp = &ql1280_board_tbl[devnum]; in qla1280_probe_one() local
4154 bdp->name, pdev->bus->number, PCI_SLOT(pdev->devfn)); in qla1280_probe_one()
4214 ha->ports = bdp->numPorts; in qla1280_probe_one()
4220 host->max_channel = bdp->numPorts - 1; in qla1280_probe_one()

Completed in 44 milliseconds