cbdr              945 drivers/net/ethernet/freescale/enetc/enetc.c static int enetc_alloc_cbdr(struct device *dev, struct enetc_cbdr *cbdr)
cbdr              947 drivers/net/ethernet/freescale/enetc/enetc.c 	int size = cbdr->bd_count * sizeof(struct enetc_cbd);
cbdr              949 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->bd_base = dma_alloc_coherent(dev, size, &cbdr->bd_dma_base,
cbdr              951 drivers/net/ethernet/freescale/enetc/enetc.c 	if (!cbdr->bd_base)
cbdr              955 drivers/net/ethernet/freescale/enetc/enetc.c 	if (!IS_ALIGNED(cbdr->bd_dma_base, 128)) {
cbdr              956 drivers/net/ethernet/freescale/enetc/enetc.c 		dma_free_coherent(dev, size, cbdr->bd_base, cbdr->bd_dma_base);
cbdr              960 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->next_to_clean = 0;
cbdr              961 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->next_to_use = 0;
cbdr              966 drivers/net/ethernet/freescale/enetc/enetc.c static void enetc_free_cbdr(struct device *dev, struct enetc_cbdr *cbdr)
cbdr              968 drivers/net/ethernet/freescale/enetc/enetc.c 	int size = cbdr->bd_count * sizeof(struct enetc_cbd);
cbdr              970 drivers/net/ethernet/freescale/enetc/enetc.c 	dma_free_coherent(dev, size, cbdr->bd_base, cbdr->bd_dma_base);
cbdr              971 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->bd_base = NULL;
cbdr              974 drivers/net/ethernet/freescale/enetc/enetc.c static void enetc_setup_cbdr(struct enetc_hw *hw, struct enetc_cbdr *cbdr)
cbdr              980 drivers/net/ethernet/freescale/enetc/enetc.c 	enetc_wr(hw, ENETC_SICBDRBAR0, lower_32_bits(cbdr->bd_dma_base));
cbdr              981 drivers/net/ethernet/freescale/enetc/enetc.c 	enetc_wr(hw, ENETC_SICBDRBAR1, upper_32_bits(cbdr->bd_dma_base));
cbdr              982 drivers/net/ethernet/freescale/enetc/enetc.c 	enetc_wr(hw, ENETC_SICBDRLENR, ENETC_RTBLENR_LEN(cbdr->bd_count));
cbdr              990 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->pir = hw->reg + ENETC_SICBDRPIR;
cbdr              991 drivers/net/ethernet/freescale/enetc/enetc.c 	cbdr->cir = hw->reg + ENETC_SICBDRCIR;