Lines Matching refs:val
657 void (*wm_stat)(u32 val, u32 *inuse, u32 *maxuse);
908 #define ocelot_write_ix(ocelot, val, reg, gi, ri) \
909 __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
910 #define ocelot_write_gix(ocelot, val, reg, gi) \
911 __ocelot_write_ix(ocelot, val, reg, reg##_GSZ * (gi))
912 #define ocelot_write_rix(ocelot, val, reg, ri) \
913 __ocelot_write_ix(ocelot, val, reg, reg##_RSZ * (ri))
914 #define ocelot_write(ocelot, val, reg) __ocelot_write_ix(ocelot, val, reg, 0)
916 #define ocelot_rmw_ix(ocelot, val, m, reg, gi, ri) \
917 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
918 #define ocelot_rmw_gix(ocelot, val, m, reg, gi) \
919 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_GSZ * (gi))
920 #define ocelot_rmw_rix(ocelot, val, m, reg, ri) \
921 __ocelot_rmw_ix(ocelot, val, m, reg, reg##_RSZ * (ri))
922 #define ocelot_rmw(ocelot, val, m, reg) __ocelot_rmw_ix(ocelot, val, m, reg, 0)
924 #define ocelot_field_write(ocelot, reg, val) \
925 regmap_field_write((ocelot)->regfields[(reg)], (val))
926 #define ocelot_field_read(ocelot, reg, val) \
927 regmap_field_read((ocelot)->regfields[(reg)], (val))
928 #define ocelot_fields_write(ocelot, id, reg, val) \
929 regmap_fields_write((ocelot)->regfields[(reg)], (id), (val))
930 #define ocelot_fields_read(ocelot, id, reg, val) \
931 regmap_fields_read((ocelot)->regfields[(reg)], (id), (val))
942 #define ocelot_target_write_ix(ocelot, target, val, reg, gi, ri) \
943 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi) + reg##_RSZ * (ri))
944 #define ocelot_target_write_gix(ocelot, target, val, reg, gi) \
945 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_GSZ * (gi))
946 #define ocelot_target_write_rix(ocelot, target, val, reg, ri) \
947 __ocelot_target_write_ix(ocelot, target, val, reg, reg##_RSZ * (ri))
948 #define ocelot_target_write(ocelot, target, val, reg) \
949 __ocelot_target_write_ix(ocelot, target, val, reg, 0)
953 void ocelot_port_writel(struct ocelot_port *port, u32 val, enum ocelot_reg reg);
954 void ocelot_port_rmwl(struct ocelot_port *port, u32 val, u32 mask,
959 void __ocelot_write_ix(struct ocelot *ocelot, u32 val, enum ocelot_reg reg,
961 void __ocelot_rmw_ix(struct ocelot *ocelot, u32 val, u32 mask,
966 u32 val, u32 reg, u32 offset);
997 void ocelot_wm_stat(u32 val, u32 *inuse, u32 *maxuse);
1026 struct switchdev_brport_flags val);
1028 struct switchdev_brport_flags val);