Lines Matching refs:frame_base
78 #define XCAN_FRAME_ID_OFFSET(frame_base) ((frame_base) + 0x00) argument
79 #define XCAN_FRAME_DLC_OFFSET(frame_base) ((frame_base) + 0x04) argument
80 #define XCAN_FRAME_DW1_OFFSET(frame_base) ((frame_base) + 0x08) argument
81 #define XCAN_FRAME_DW2_OFFSET(frame_base) ((frame_base) + 0x0C) argument
82 #define XCANFD_FRAME_DW_OFFSET(frame_base) ((frame_base) + 0x08) argument
842 static int xcan_rx(struct net_device *ndev, int frame_base) in xcan_rx() argument
857 id_xcan = priv->read_reg(priv, XCAN_FRAME_ID_OFFSET(frame_base)); in xcan_rx()
858 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)) >> in xcan_rx()
882 data[0] = priv->read_reg(priv, XCAN_FRAME_DW1_OFFSET(frame_base)); in xcan_rx()
883 data[1] = priv->read_reg(priv, XCAN_FRAME_DW2_OFFSET(frame_base)); in xcan_rx()
912 static int xcanfd_rx(struct net_device *ndev, int frame_base) in xcanfd_rx() argument
920 id_xcan = priv->read_reg(priv, XCAN_FRAME_ID_OFFSET(frame_base)); in xcanfd_rx()
921 dlc = priv->read_reg(priv, XCAN_FRAME_DLC_OFFSET(frame_base)); in xcanfd_rx()
963 dw_offset = XCANFD_FRAME_DW_OFFSET(frame_base) + in xcanfd_rx()
971 dw_offset = XCANFD_FRAME_DW_OFFSET(frame_base); in xcanfd_rx()