Home
last modified time | relevance | path

Searched refs:bd_size (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/dma/bestcomm/
Dfec.c127 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_rx_reset()
139 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_rx_reset()
229 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_tx_reset()
240 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_tx_reset()
Dgen_bd.c134 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_gen_bd_rx_reset()
145 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_gen_bd_rx_reset()
218 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_gen_bd_tx_reset()
229 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_gen_bd_tx_reset()
Dbestcomm.c48 bcom_task_alloc(int bd_count, int bd_size, int priv_size) in bcom_task_alloc() argument
93 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
96 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc()
99 tsk->bd_size = bd_size; in bcom_task_alloc()
Data.c82 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
132 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_ata_reset_bd()
/linux-6.1.9/include/linux/fsl/bestcomm/
Dbestcomm.h58 unsigned int bd_size; member
152 return ((void *)tsk->bd) + (index * tsk->bd_size); in bcom_get_bd()
Dbestcomm_priv.h236 extern struct bcom_task *bcom_task_alloc(int bd_count, int bd_size, int priv_size);
/linux-6.1.9/drivers/net/ethernet/ibm/emac/
Dmal.c517 int err = 0, i, bd_size; in mal_probe() local
631 bd_size = sizeof(struct mal_descriptor) * in mal_probe()
634 mal->bd_virt = dma_alloc_coherent(&ofdev->dev, bd_size, &mal->bd_dma, in mal_probe()
703 dma_free_coherent(&ofdev->dev, bd_size, mal->bd_virt, mal->bd_dma); in mal_probe()
/linux-6.1.9/drivers/tty/serial/
Ducc_uart.c200 unsigned int bd_size; /* size of BD buffer space */ member
221 (addr < (qe_port->bd_virt + qe_port->bd_size))) in cpu2qe_addr()
240 (addr < (qe_port->bd_dma_addr + qe_port->bd_size)))) in qe2cpu_addr()
1008 qe_port->bd_size = rx_size + tx_size; in qe_uart_request_port()
1041 dma_free_coherent(port->dev, qe_port->bd_size, qe_port->bd_virt, in qe_uart_release_port()
Dimx.c1137 unsigned int bd_size; in imx_uart_dma_rx_callback() local
1163 bd_size = sg_dma_len(sgl) / sport->rx_periods; in imx_uart_dma_rx_callback()
1164 rx_ring->tail = ((rx_ring->head-1) / bd_size) * bd_size; in imx_uart_dma_rx_callback()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1766 static unsigned int hns3_skb_bd_num(struct sk_buff *skb, unsigned int *bd_size, in hns3_skb_bd_num() argument
1774 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1782 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1794 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1801 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1809 static unsigned int hns3_tx_bd_num(struct sk_buff *skb, unsigned int *bd_size, in hns3_tx_bd_num() argument
1826 bd_num = hns3_skb_bd_num(skb, bd_size, bd_num); in hns3_tx_bd_num()
1831 bd_num = hns3_tx_bd_num(frag_skb, bd_size, max_non_tso_bd_num, in hns3_tx_bd_num()
1854 static bool hns3_skb_need_linearized(struct sk_buff *skb, unsigned int *bd_size, in hns3_skb_need_linearized() argument
1861 tot_len += bd_size[i]; in hns3_skb_need_linearized()
[all …]
/linux-6.1.9/drivers/dma/
Dimx-sdma.c1374 u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); in sdma_alloc_bd() local
1377 desc->bd = dma_alloc_coherent(desc->sdmac->sdma->dev, bd_size, in sdma_alloc_bd()
1389 u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); in sdma_free_bd() local
1391 dma_free_coherent(desc->sdmac->sdma->dev, bd_size, desc->bd, in sdma_free_bd()
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc.c1720 static int enetc_dma_alloc_bdr(struct enetc_bdr *r, size_t bd_size) in enetc_dma_alloc_bdr() argument
1722 r->bd_base = dma_alloc_coherent(r->dev, r->bd_count * bd_size, in enetc_dma_alloc_bdr()
1729 dma_free_coherent(r->dev, r->bd_count * bd_size, r->bd_base, in enetc_dma_alloc_bdr()
/linux-6.1.9/drivers/net/ethernet/freescale/
Dfec_main.c3606 int bd_size; in fec_enet_init() local
3637 bd_size = (fep->total_tx_ring_size + fep->total_rx_ring_size) * dsize; in fec_enet_init()
3640 cbd_base = dmam_alloc_coherent(&fep->pdev->dev, bd_size, &bd_dma, in fec_enet_init()