Searched refs:PTR_DIFF (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | tx_tso.c | 34 #define PTR_DIFF(p1, p2) ((u8 *)(p1) - (u8 *)(p2)) macro 161 EFX_WARN_ON_ONCE_PARANOID((PTR_DIFF(tcp_hdr(skb), skb->data) + in efx_tso_check_protocol()
|
/openbmc/linux/arch/s390/kernel/ |
H A D | crash_dump.c | 28 #define PTR_DIFF(x, y) ((unsigned long)(((char *) (x)) - ((unsigned long) (y)))) macro 611 hdr_off = PTR_DIFF(ptr, hdr); in elfcorehdr_alloc() 614 hdr_off = PTR_DIFF(ptr, hdr); in elfcorehdr_alloc()
|
/openbmc/u-boot/fs/jffs2/ |
H A D | compr_lzo.c | 144 #define PTR_DIFF(a,b) ((lzo_ptrdiff_t) (PTR(a) - PTR(b))) macro
|
/openbmc/linux/drivers/atm/ |
H A D | nicstar.c | 109 #define PTR_DIFF(a, b) ((u32)((unsigned long)(a) - (unsigned long)(b))) macro 1910 writel(PTR_DIFF(previous, card->tsq.base), in process_tsq() 1971 writel(PTR_DIFF(previous, card->rsq.base), card->membase + RSQH); in process_rsq()
|