• Home
  • Raw
  • Download

Lines Matching refs:port_id

200 static u32 fm_assign_risc(int port_id)  in fm_assign_risc()  argument
203 risc_sel = (port_id & 0x1) ? FMFPPRC_RISC2 : FMFPPRC_RISC1; in fm_assign_risc()
204 val = (port_id << FMFPPRC_PORTID_SHIFT) & FMFPPRC_PORTID_MASK; in fm_assign_risc()
212 int i, port_id; in fm_init_fpm() local
222 port_id = OH_PORT_ID_BASE + i; in fm_init_fpm()
223 val = fm_assign_risc(port_id); in fm_init_fpm()
228 port_id = RX_PORT_1G_BASE + i; in fm_init_fpm()
229 val = fm_assign_risc(port_id); in fm_init_fpm()
234 port_id = TX_PORT_1G_BASE + i; in fm_init_fpm()
235 val = fm_assign_risc(port_id); in fm_init_fpm()
239 port_id = RX_PORT_10G_BASE; in fm_init_fpm()
240 val = fm_assign_risc(port_id); in fm_init_fpm()
243 port_id = TX_PORT_10G_BASE; in fm_init_fpm()
244 val = fm_assign_risc(port_id); in fm_init_fpm()
262 int blk, i, port_id; in fm_init_bmi() local
297 port_id = OH_PORT_ID_BASE + i - 1; in fm_init_bmi()
299 out_be32(&bmi->fmbm_pp[port_id], 0); in fm_init_bmi()
301 out_be32(&bmi->fmbm_pfs[port_id], 0); in fm_init_bmi()
305 port_id = RX_PORT_1G_BASE + i - 1; in fm_init_bmi()
307 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(4)); in fm_init_bmi()
309 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
313 port_id = TX_PORT_1G_BASE + i - 1; in fm_init_bmi()
315 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(4)); in fm_init_bmi()
317 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
320 port_id = RX_PORT_10G_BASE - 1; in fm_init_bmi()
322 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(12) | FMBM_PP_MXD(3)); in fm_init_bmi()
324 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()
327 port_id = TX_PORT_10G_BASE - 1; in fm_init_bmi()
329 out_be32(&bmi->fmbm_pp[port_id], FMBM_PP_MXT(12) | FMBM_PP_MXD(3)); in fm_init_bmi()
331 out_be32(&bmi->fmbm_pfs[port_id], FMBM_PFS_IFSZ(0xf)); in fm_init_bmi()