Lines Matching refs:ierb
42 static void enetc_ierb_write(struct enetc_ierb *ierb, u32 offset, u32 val) in enetc_ierb_write() argument
44 iowrite32(val, ierb->regs + offset); in enetc_ierb_write()
50 struct enetc_ierb *ierb = platform_get_drvdata(pdev); in enetc_ierb_register_pf() local
57 if (!ierb) in enetc_ierb_register_pf()
91 enetc_ierb_write(ierb, ENETC_IERB_TXBCR(port), tx_credit); in enetc_ierb_register_pf()
92 enetc_ierb_write(ierb, ENETC_IERB_TXMBAR(port), tx_alloc); in enetc_ierb_register_pf()
93 enetc_ierb_write(ierb, ENETC_IERB_RXBCR(port), rx_credit); in enetc_ierb_register_pf()
101 struct enetc_ierb *ierb; in enetc_ierb_probe() local
104 ierb = devm_kzalloc(&pdev->dev, sizeof(*ierb), GFP_KERNEL); in enetc_ierb_probe()
105 if (!ierb) in enetc_ierb_probe()
112 ierb->regs = regs; in enetc_ierb_probe()
123 enetc_ierb_write(ierb, ENETC_IERB_FMBDTR, ENETC_RESERVED_FOR_ICM); in enetc_ierb_probe()
125 platform_set_drvdata(pdev, ierb); in enetc_ierb_probe()