Example #1
0
static inline u16 desc_offset(port_t *port, u16 desc, int transmit)
{
	/* Descriptor offset always fits in 16 bits */
	return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc);
}
Example #2
0
static inline u32 buffer_offset(port_t *port, u16 desc, int transmit)
{
	return port_to_card(port)->buff_offset +
		desc_abs_number(port, desc, transmit) * (u32)HDLC_MAX_MRU;
}
static inline u16 desc_offset(port_t *port, u16 desc, int transmit)
{

    return desc_abs_number(port, desc, transmit) * sizeof(pkt_desc);
}