• Home
  • Raw
  • Download

Lines Matching refs:pram

219 	struct fm_port_global_pram *pram;  in fm_eth_rx_port_parameter_init()  local
231 pram = (struct fm_port_global_pram *)fm_muram_alloc(fm_eth->fm_index, in fm_eth_rx_port_parameter_init()
233 if (!pram) { in fm_eth_rx_port_parameter_init()
238 fm_eth->rx_pram = pram; in fm_eth_rx_port_parameter_init()
241 pram_page_offset = (void *)pram - fm_muram_base(fm_eth->fm_index); in fm_eth_rx_port_parameter_init()
244 out_be32(&pram->mode, PRAM_MODE_GLOBAL); in fm_eth_rx_port_parameter_init()
247 out_be32(&pram->rxqd_ptr, pram_page_offset + 0x20); in fm_eth_rx_port_parameter_init()
250 muram_writew(&pram->mrblr, MAX_RXBUF_LOG2); in fm_eth_rx_port_parameter_init()
289 rxqd = &pram->rxqd; in fm_eth_rx_port_parameter_init()
308 struct fm_port_global_pram *pram; in fm_eth_tx_port_parameter_init() local
318 pram = (struct fm_port_global_pram *)fm_muram_alloc(fm_eth->fm_index, in fm_eth_tx_port_parameter_init()
320 if (!pram) { in fm_eth_tx_port_parameter_init()
324 fm_eth->tx_pram = pram; in fm_eth_tx_port_parameter_init()
327 pram_page_offset = (void *)pram - fm_muram_base(fm_eth->fm_index); in fm_eth_tx_port_parameter_init()
330 out_be32(&pram->mode, PRAM_MODE_GLOBAL); in fm_eth_tx_port_parameter_init()
333 out_be32(&pram->txqd_ptr, pram_page_offset + 0x40); in fm_eth_tx_port_parameter_init()
358 txqd = &pram->txqd; in fm_eth_tx_port_parameter_init()
420 struct fm_port_global_pram *pram; in fmc_tx_port_graceful_stop_enable() local
422 pram = fm_eth->tx_pram; in fmc_tx_port_graceful_stop_enable()
424 setbits_be32(&pram->mode, PRAM_MODE_GRACEFUL_STOP); in fmc_tx_port_graceful_stop_enable()
430 struct fm_port_global_pram *pram; in fmc_tx_port_graceful_stop_disable() local
432 pram = fm_eth->tx_pram; in fmc_tx_port_graceful_stop_disable()
434 clrbits_be32(&pram->mode, PRAM_MODE_GRACEFUL_STOP); in fmc_tx_port_graceful_stop_disable()
517 struct fm_port_global_pram *pram; in fm_eth_send() local
523 pram = fm_eth->tx_pram; in fm_eth_send()
544 offset_in = muram_readw(&pram->txqd.offset_in); in fm_eth_send()
546 if (offset_in >= muram_readw(&pram->txqd.bd_ring_size)) in fm_eth_send()
548 muram_writew(&pram->txqd.offset_in, offset_in); in fm_eth_send()
575 struct fm_port_global_pram *pram; in fm_eth_recv() local
584 pram = fm_eth->rx_pram; in fm_eth_recv()
614 offset_out = muram_readw(&pram->rxqd.offset_out); in fm_eth_recv()
616 if (offset_out >= muram_readw(&pram->rxqd.bd_ring_size)) in fm_eth_recv()
618 muram_writew(&pram->rxqd.offset_out, offset_out); in fm_eth_recv()