Lines Matching refs:me
49 bfin_pfmon_io_write_buffer (struct hw *me, const void *source, int space,
52 struct bfin_pfmon *pfmon = hw_data (me);
58 if (!dv_bfin_mmr_require_32 (me, addr, nr_bytes, true))
75 dv_bfin_mmr_invalid (me, addr, nr_bytes, true);
83 bfin_pfmon_io_read_buffer (struct hw *me, void *dest, int space,
86 struct bfin_pfmon *pfmon = hw_data (me);
92 if (!dv_bfin_mmr_require_32 (me, addr, nr_bytes, false))
108 dv_bfin_mmr_invalid (me, addr, nr_bytes, false);
118 attach_bfin_pfmon_regs (struct hw *me, struct bfin_pfmon *pfmon)
125 if (hw_find_property (me, "reg") == NULL)
126 hw_abort (me, "Missing \"reg\" property");
128 if (!hw_find_reg_array_property (me, "reg", 0, ®))
129 hw_abort (me, "\"reg\" property must contain three addr/size entries");
131 hw_unit_address_to_attach_address (hw_parent (me),
133 &attach_space, &attach_address, me);
134 hw_unit_size_to_attach_size (hw_parent (me), ®.size, &attach_size, me);
137 hw_abort (me, "\"reg\" size must be %#x", BFIN_COREMMR_PFMON_SIZE);
139 hw_attach_address (hw_parent (me),
140 0, attach_space, attach_address, attach_size, me);
146 bfin_pfmon_finish (struct hw *me)
150 pfmon = HW_ZALLOC (me, struct bfin_pfmon);
152 set_hw_data (me, pfmon);
153 set_hw_io_read_buffer (me, bfin_pfmon_io_read_buffer);
154 set_hw_io_write_buffer (me, bfin_pfmon_io_write_buffer);
156 attach_bfin_pfmon_regs (me, pfmon);