Lines Matching refs:per_reg
114 int *per_reg, u8 *mask) in ksz_get_dscp_prio_reg() argument
118 *per_reg = 4; in ksz_get_dscp_prio_reg()
122 *per_reg = 4; in ksz_get_dscp_prio_reg()
126 *per_reg = 2; in ksz_get_dscp_prio_reg()
275 int reg, per_reg, ret, shift; in ksz_port_get_dscp_prio() local
278 ksz_get_dscp_prio_reg(dev, ®, &per_reg, &mask); in ksz_port_get_dscp_prio()
299 reg += dscp / per_reg; in ksz_port_get_dscp_prio()
304 shift = (dscp % per_reg) * (8 / per_reg); in ksz_port_get_dscp_prio()
322 int reg, per_reg, shift; in ksz_set_global_dscp_entry() local
325 ksz_get_dscp_prio_reg(dev, ®, &per_reg, &mask); in ksz_set_global_dscp_entry()
327 shift = (dscp % per_reg) * (8 / per_reg); in ksz_set_global_dscp_entry()
329 return ksz_rmw8(dev, reg + (dscp / per_reg), mask << shift, in ksz_set_global_dscp_entry()