Home
last modified time | relevance | path

Searched refs:bdr (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc.h143 static inline void enetc_bdr_idx_inc(struct enetc_bdr *bdr, int *i) in enetc_bdr_idx_inc() argument
145 if (unlikely(++*i == bdr->bd_count)) in enetc_bdr_idx_inc()
149 static inline int enetc_bd_unused(struct enetc_bdr *bdr) in enetc_bd_unused() argument
151 if (bdr->next_to_clean > bdr->next_to_use) in enetc_bd_unused()
152 return bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
154 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_use - 1; in enetc_bd_unused()
157 static inline int enetc_swbd_unused(struct enetc_bdr *bdr) in enetc_swbd_unused() argument
159 if (bdr->next_to_clean > bdr->next_to_alloc) in enetc_swbd_unused()
160 return bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
162 return bdr->bd_count + bdr->next_to_clean - bdr->next_to_alloc - 1; in enetc_swbd_unused()
H A Denetc.c3025 struct enetc_bdr *bdr; in enetc_alloc_msix() local
3036 bdr = &v->rx_ring; in enetc_alloc_msix()
3037 bdr->index = i; in enetc_alloc_msix()
3038 bdr->ndev = priv->ndev; in enetc_alloc_msix()
3039 bdr->dev = priv->dev; in enetc_alloc_msix()
3042 priv->rx_ring[i] = bdr; in enetc_alloc_msix()
3073 bdr = &v->tx_ring[j]; in enetc_alloc_msix()
3074 bdr->index = idx; in enetc_alloc_msix()
3075 bdr->ndev = priv->ndev; in enetc_alloc_msix()
3076 bdr->dev = priv->dev; in enetc_alloc_msix()
[all …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Dtda10086.c293 u32 bdr; in tda10086_set_symbol_rate() local
340 bdr = big & 0xfffff; in tda10086_set_symbol_rate()
348 tda10086_write_byte(state, 0x06, bdr); in tda10086_set_symbol_rate()
349 tda10086_write_byte(state, 0x07, bdr >> 8); in tda10086_set_symbol_rate()
350 tda10086_write_byte(state, 0x08, bdr >> 16); in tda10086_set_symbol_rate()