Home
last modified time | relevance | path

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

/drivers/dma/bestcomm/
Dfec.c131 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_rx_reset()
143 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_fec_rx_reset()
233 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_fec_tx_reset()
244 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.c50 bcom_task_alloc(int bd_count, int bd_size, int priv_size) in bcom_task_alloc() argument
95 tsk->bd = bcom_sram_alloc(bd_count * bd_size, 4, &tsk->bd_pa); in bcom_task_alloc()
98 memset_io(tsk->bd, 0x00, bd_count * bd_size); in bcom_task_alloc()
101 tsk->bd_size = bd_size; in bcom_task_alloc()
Data.c86 var->bd_last = tsk->bd_pa + ((tsk->num_bd-1) * tsk->bd_size); in bcom_ata_init()
136 memset_io(tsk->bd, 0x00, tsk->num_bd * tsk->bd_size); in bcom_ata_reset_bd()
/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()
/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()
1020 qe_port->bd_size = rx_size + tx_size; in qe_uart_request_port()
1053 dma_free_coherent(port->dev, qe_port->bd_size, qe_port->bd_virt, in qe_uart_release_port()
Dimx.c1155 unsigned int bd_size; in imx_uart_dma_rx_callback() local
1181 bd_size = sg_dma_len(sgl) / sport->rx_periods; in imx_uart_dma_rx_callback()
1182 rx_ring->tail = ((rx_ring->head-1) / bd_size) * bd_size; in imx_uart_dma_rx_callback()
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_enet.c1157 static unsigned int hns3_skb_bd_num(struct sk_buff *skb, unsigned int *bd_size, in hns3_skb_bd_num() argument
1165 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1173 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1185 bd_size[bd_num++] = HNS3_MAX_BD_SIZE; in hns3_skb_bd_num()
1192 bd_size[bd_num++] = size; in hns3_skb_bd_num()
1200 static unsigned int hns3_tx_bd_num(struct sk_buff *skb, unsigned int *bd_size, in hns3_tx_bd_num() argument
1217 bd_num = hns3_skb_bd_num(skb, bd_size, bd_num); in hns3_tx_bd_num()
1223 bd_num = hns3_tx_bd_num(frag_skb, bd_size, max_non_tso_bd_num, in hns3_tx_bd_num()
1246 static bool hns3_skb_need_linearized(struct sk_buff *skb, unsigned int *bd_size, in hns3_skb_need_linearized() argument
1253 tot_len += bd_size[i]; in hns3_skb_need_linearized()
[all …]
/drivers/dma/
Dimx-sdma.c1223 u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); in sdma_alloc_bd() local
1226 desc->bd = dma_alloc_coherent(desc->sdmac->sdma->dev, bd_size, in sdma_alloc_bd()
1238 u32 bd_size = desc->num_bd * sizeof(struct sdma_buffer_descriptor); in sdma_free_bd() local
1240 dma_free_coherent(desc->sdmac->sdma->dev, bd_size, desc->bd, in sdma_free_bd()
/drivers/net/ethernet/freescale/enetc/
Denetc.c833 static int enetc_dma_alloc_bdr(struct enetc_bdr *r, size_t bd_size) in enetc_dma_alloc_bdr() argument
835 r->bd_base = dma_alloc_coherent(r->dev, r->bd_count * bd_size, in enetc_dma_alloc_bdr()
842 dma_free_coherent(r->dev, r->bd_count * bd_size, r->bd_base, in enetc_dma_alloc_bdr()
/drivers/net/ethernet/freescale/
Dfec_main.c3328 int bd_size; in fec_enet_init() local
3355 bd_size = (fep->total_tx_ring_size + fep->total_rx_ring_size) * dsize; in fec_enet_init()
3358 cbd_base = dmam_alloc_coherent(&fep->pdev->dev, bd_size, &bd_dma, in fec_enet_init()