Lines Matching refs:rx_port
162 static void bmi_rx_port_disable(struct fm_bmi_rx_port *rx_port) in bmi_rx_port_disable() argument
166 clrbits_be32(&rx_port->fmbm_rcfg, FMBM_RCFG_EN); in bmi_rx_port_disable()
169 while ((in_be32(&rx_port->fmbm_rst) & FMBM_RST_BSY) && timeout--) in bmi_rx_port_disable()
173 static void bmi_rx_port_init(struct fm_bmi_rx_port *rx_port) in bmi_rx_port_init() argument
176 out_be32(&rx_port->fmbm_rcfg, FMBM_RCFG_IM); in bmi_rx_port_init()
178 out_be32(&rx_port->fmbm_rim, 0); in bmi_rx_port_init()
180 out_be32(&rx_port->fmbm_rfne, NIA_ENG_RISC | NIA_RISC_AC_IM_RX); in bmi_rx_port_init()
182 clrbits_be32(&rx_port->fmbm_rfca, FMBM_RFCA_ORDER | FMBM_RFCA_MR_MASK); in bmi_rx_port_init()
183 setbits_be32(&rx_port->fmbm_rfca, FMBM_RFCA_MR(4)); in bmi_rx_port_init()
185 out_be32(&rx_port->fmbm_rstc, FMBM_RSTC_EN); in bmi_rx_port_init()
187 out_be32(&rx_port->fmbm_rpc, 0); in bmi_rx_port_init()
227 struct fm_bmi_rx_port *bmi_rx_port = fm_eth->rx_port; in fm_eth_rx_port_parameter_init()
411 bmi_rx_port_init(fm_eth->rx_port); in fm_eth_startup()
457 setbits_be32(&fm_eth->rx_port->fmbm_rcfg, FMBM_RCFG_EN); in fm_eth_open()
506 bmi_rx_port_disable(fm_eth->rx_port); in fm_eth_halt()
753 fm_eth->rx_port = (void *)®->port[info->rx_port_id - 1].fm_bmi; in fm_eth_initialize()