Lines Matching refs:tx_channel

446 static inline void SELECT_TX_CHANNEL (hrz_dev * dev, u16 tx_channel) {  in SELECT_TX_CHANNEL()  argument
447 wr_regl (dev, TX_CHANNEL_PORT_OFF, tx_channel); in SELECT_TX_CHANNEL()
1508 short tx_channel = -1; in setup_idle_tx_channel() local
1532 tx_channel = chan; in setup_idle_tx_channel()
1548 tx_ch_desc * tx_desc = &memmap->tx_descs[tx_channel]; in setup_idle_tx_channel()
1557 dev->tx_channel_record[tx_channel] = channel; in setup_idle_tx_channel()
1560 update_tx_channel_config (dev, tx_channel, RATE_TYPE_ACCESS, in setup_idle_tx_channel()
1564 update_tx_channel_config (dev, tx_channel, PCR_TIMER_ACCESS, in setup_idle_tx_channel()
1570 update_tx_channel_config (dev, tx_channel, SCR_TIMER_ACCESS, in setup_idle_tx_channel()
1574 update_tx_channel_config (dev, tx_channel, BUCKET_CAPACITY_ACCESS, in setup_idle_tx_channel()
1578 update_tx_channel_config (dev, tx_channel, BUCKET_FULLNESS_ACCESS, in setup_idle_tx_channel()
1625 return tx_channel; in setup_idle_tx_channel()
1640 short tx_channel; in hrz_send() local
1735 tx_channel = dev->tx_last; in hrz_send()
1739 for (tx_channel = 0; tx_channel < TX_CHANS; ++tx_channel) in hrz_send()
1740 if (dev->tx_channel_record[tx_channel] == channel) { in hrz_send()
1744 if (tx_channel == TX_CHANS) { in hrz_send()
1747 tx_channel = setup_idle_tx_channel (dev, vcc); in hrz_send()
1748 if (tx_channel < 0) { in hrz_send()
1751 return tx_channel; in hrz_send()
1756 SELECT_TX_CHANNEL(dev, tx_channel); in hrz_send()
1759 dev->tx_last = tx_channel; in hrz_send()
1762 PRINTD (DBG_TX, "using channel %u", tx_channel); in hrz_send()