Lines Matching refs:port_id
197 static u32 fm_assign_risc(int port_id) in fm_assign_risc() argument
200 risc_sel = (port_id & 0x1) ? FMFPPRC_RISC2 : FMFPPRC_RISC1; in fm_assign_risc()
201 val = (port_id << FMFPPRC_PORTID_SHIFT) & FMFPPRC_PORTID_MASK; in fm_assign_risc()
209 int i, port_id; in fm_init_fpm() local
219 port_id = OH_PORT_ID_BASE + i; in fm_init_fpm()
220 val = fm_assign_risc(port_id); in fm_init_fpm()
225 port_id = RX_PORT_1G_BASE + i; in fm_init_fpm()
226 val = fm_assign_risc(port_id); in fm_init_fpm()
231 port_id = TX_PORT_1G_BASE + i; in fm_init_fpm()
232 val = fm_assign_risc(port_id); in fm_init_fpm()
236 port_id = RX_PORT_10G_BASE; in fm_init_fpm()
237 val = fm_assign_risc(port_id); in fm_init_fpm()
240 port_id = TX_PORT_10G_BASE; in fm_init_fpm()
241 val = fm_assign_risc(port_id); in fm_init_fpm()
259 int blk, i, port_id; in fm_init_bmi() local
294 port_id = OH_PORT_ID_BASE + i - 1; in fm_init_bmi()
296 out_be32(&bmi->fmbm_pp[port_id], 0); in fm_init_bmi()
298 out_be32(&bmi->fmbm_pfs[port_id], 0); in fm_init_bmi()
302 port_id = RX_PORT_1G_BASE + i - 1; in fm_init_bmi()
304 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(4)); in fm_init_bmi()
306 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
310 port_id = TX_PORT_1G_BASE + i - 1; in fm_init_bmi()
312 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(4)); in fm_init_bmi()
314 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
317 port_id = RX_PORT_10G_BASE - 1; in fm_init_bmi()
319 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(12) | FMBM_PP_MXD(3)); in fm_init_bmi()
321 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
324 port_id = TX_PORT_10G_BASE - 1; in fm_init_bmi()
326 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(12) | FMBM_PP_MXD(3)); in fm_init_bmi()
328 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()