D | hd64570.c | 84 static inline u16 next_desc(port_t *port, u16 desc, int transmit) in next_desc() argument 86 return (desc + 1) % (transmit ? port_to_card(port)->tx_ring_buffers in next_desc() 91 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument 96 desc %= (transmit ? tx_buffs : rx_buffs); // called with "X + 1" etc. in desc_abs_number() 98 transmit * rx_buffs + desc; in desc_abs_number() 102 static inline u16 desc_offset(port_t *port, u16 desc, int transmit) in desc_offset() argument 105 return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc); in desc_offset() 110 int transmit) in desc_address() argument 114 + desc_offset(port, desc, transmit)); in desc_address() 117 + desc_offset(port, desc, transmit)); in desc_address() [all …]
|