Lines Matching full:target

16 	enum ocelot_target target;  in __ocelot_bulk_read_ix()  local
19 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_bulk_read_ix()
20 WARN_ON(!target); in __ocelot_bulk_read_ix()
22 return regmap_bulk_read(ocelot->targets[target], addr + offset, in __ocelot_bulk_read_ix()
29 enum ocelot_target target; in __ocelot_read_ix() local
32 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_read_ix()
33 WARN_ON(!target); in __ocelot_read_ix()
35 regmap_read(ocelot->targets[target], addr + offset, &val); in __ocelot_read_ix()
43 enum ocelot_target target; in __ocelot_write_ix() local
46 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_write_ix()
47 WARN_ON(!target); in __ocelot_write_ix()
49 regmap_write(ocelot->targets[target], addr + offset, val); in __ocelot_write_ix()
56 enum ocelot_target target; in __ocelot_rmw_ix() local
59 ocelot_reg_to_target_addr(ocelot, reg, &target, &addr); in __ocelot_rmw_ix()
60 WARN_ON(!target); in __ocelot_rmw_ix()
62 regmap_update_bits(ocelot->targets[target], addr + offset, mask, val); in __ocelot_rmw_ix()
69 u16 target = reg >> TARGET_OFFSET; in ocelot_port_readl() local
72 WARN_ON(!target); in ocelot_port_readl()
74 regmap_read(port->target, ocelot->map[target][reg & REG_MASK], &val); in ocelot_port_readl()
82 u16 target = reg >> TARGET_OFFSET; in ocelot_port_writel() local
84 WARN_ON(!target); in ocelot_port_writel()
86 regmap_write(port->target, ocelot->map[target][reg & REG_MASK], val); in ocelot_port_writel()
99 u32 __ocelot_target_read_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_read_ix() argument
104 regmap_read(ocelot->targets[target], in __ocelot_target_read_ix()
105 ocelot->map[target][reg] + offset, &val); in __ocelot_target_read_ix()
109 void __ocelot_target_write_ix(struct ocelot *ocelot, enum ocelot_target target, in __ocelot_target_write_ix() argument
112 regmap_write(ocelot->targets[target], in __ocelot_target_write_ix()
113 ocelot->map[target][reg] + offset, val); in __ocelot_target_write_ix()
120 u16 target; in ocelot_regfields_init() local
129 target = regfields[i].reg >> TARGET_OFFSET; in ocelot_regfields_init()
131 regfield.reg = ocelot->map[target][reg & REG_MASK]; in ocelot_regfields_init()
139 ocelot->targets[target], in ocelot_regfields_init()