D | hd64570.c | 89 static inline u16 next_desc(port_t *port, u16 desc, int transmit) in next_desc() argument 91 return (desc + 1) % (transmit ? port_to_card(port)->tx_ring_buffers in next_desc() 95 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument 100 desc %= (transmit ? tx_buffs : rx_buffs); // called with "X + 1" etc. in desc_abs_number() 102 transmit * rx_buffs + desc; in desc_abs_number() 105 static inline u16 desc_offset(port_t *port, u16 desc, int transmit) in desc_offset() argument 108 return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc); in desc_offset() 112 int transmit) in desc_address() argument 116 + desc_offset(port, desc, transmit)); in desc_address() 119 + desc_offset(port, desc, transmit)); in desc_address() [all …]
|