Lines Matching refs:reg

105 #define REG(reg, offset)		[reg & REG_MASK] = offset  argument
108 #define REG_RESERVED(reg) REG(reg, REG_RESERVED_ADDR) argument
906 #define ocelot_bulk_read(ocelot, reg, buf, count) \ argument
907 __ocelot_bulk_read_ix(ocelot, reg, 0, buf, count)
909 #define ocelot_read_ix(ocelot, reg, gi, ri) \ argument
910 __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
911 #define ocelot_read_gix(ocelot, reg, gi) \ argument
912 __ocelot_read_ix(ocelot, reg, reg##_GSZ * (gi))
913 #define ocelot_read_rix(ocelot, reg, ri) \ argument
914 __ocelot_read_ix(ocelot, reg, reg##_RSZ * (ri))
915 #define ocelot_read(ocelot, reg) \ argument
916 __ocelot_read_ix(ocelot, reg, 0)
918 #define ocelot_write_ix(ocelot, val, reg, gi, ri) \ argument
919 __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
920 #define ocelot_write_gix(ocelot, val, reg, gi) \ argument
921 __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi))
922 #define ocelot_write_rix(ocelot, val, reg, ri) \ argument
923 __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri))
924 #define ocelot_write(ocelot, val, reg) __ocelot_write_ix(ocelot, val, reg, 0) argument
926 #define ocelot_rmw_ix(ocelot, val, m, reg, gi, ri) \ argument
927 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
928 #define ocelot_rmw_gix(ocelot, val, m, reg, gi) \ argument
929 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi))
930 #define ocelot_rmw_rix(ocelot, val, m, reg, ri) \ argument
931 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_RSZ * (ri))
932 #define ocelot_rmw(ocelot, val, m, reg) __ocelot_rmw_ix(ocelot, val, m, reg, 0) argument
934 #define ocelot_field_write(ocelot, reg, val) \ argument
935 regmap_field_write((ocelot)->regfields[(reg)], (val))
936 #define ocelot_field_read(ocelot, reg, val) \ argument
937 regmap_field_read((ocelot)->regfields[(reg)], (val))
938 #define ocelot_fields_write(ocelot, id, reg, val) \ argument
939 regmap_fields_write((ocelot)->regfields[(reg)], (id), (val))
940 #define ocelot_fields_read(ocelot, id, reg, val) \ argument
941 regmap_fields_read((ocelot)->regfields[(reg)], (id), (val))
943 #define ocelot_target_read_ix(ocelot, target, reg, gi, ri) \ argument
944 __ocelot_target_read_ix(ocelot, target, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
945 #define ocelot_target_read_gix(ocelot, target, reg, gi) \ argument
946 __ocelot_target_read_ix(ocelot, target, reg, reg##_GSZ * (gi))
947 #define ocelot_target_read_rix(ocelot, target, reg, ri) \ argument
948 __ocelot_target_read_ix(ocelot, target, reg, reg##_RSZ * (ri))
949 #define ocelot_target_read(ocelot, target, reg) \ argument
950 __ocelot_target_read_ix(ocelot, target, reg, 0)
952 #define ocelot_target_write_ix(ocelot, target, val, reg, gi, ri) \ argument
953 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
954 #define ocelot_target_write_gix(ocelot, target, val, reg, gi) \ argument
955 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi))
956 #define ocelot_target_write_rix(ocelot, target, val, reg, ri) \ argument
957 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_RSZ * (ri))
958 #define ocelot_target_write(ocelot, target, val, reg) \ argument
959 __ocelot_target_write_ix(ocelot, target, val, reg, 0)
962 u32 ocelot_port_readl(struct ocelot_port *port, enum ocelot_reg reg);
963 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg);
965 enum ocelot_reg reg);
966 int __ocelot_bulk_read_ix(struct ocelot *ocelot, enum ocelot_reg reg,
968 u32 __ocelot_read_ix(struct ocelot *ocelot, enum ocelot_reg reg, u32 offset);
969 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, enum ocelot_reg reg,
972 enum ocelot_reg reg, u32 offset);
974 u32 reg, u32 offset);
976 u32 val, u32 reg, u32 offset);