Home
last modified time | relevance | path

Searched refs:dptrl (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/net/ethernet/renesas/
H A Drswitch.h881 #define TS_DESC_TSUN(dptrl) ((dptrl) & GENMASK(7, 0)) argument
882 #define TS_DESC_SPN(dptrl) (((dptrl) & GENMASK(10, 8)) >> 8) argument
883 #define TS_DESC_DPN(dptrl) (((dptrl) & GENMASK(17, 16)) >> 16) argument
884 #define TS_DESC_TN(dptrl) ((dptrl) & BIT(24)) argument
890 __le32 dptrl; /* Descriptor pointer LSW */ member
H A Drswitch.c340 desc->dptrl = cpu_to_le32(lower_32_bits(addr)); in rswitch_desc_set_dptr()
346 return __le32_to_cpu(desc->dptrl) | (u64)(desc->dptrh) << 32; in rswitch_desc_get_dptr()
927 port = TS_DESC_DPN(__le32_to_cpu(desc->desc.dptrl)); in rswitch_ts()
928 tag = TS_DESC_TSUN(__le32_to_cpu(desc->desc.dptrl)); in rswitch_ts()