Lines Matching refs:base_address
90 return in_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET); in buffer_icap_get_status()
101 static inline u32 buffer_icap_get_bram(void __iomem *base_address, in buffer_icap_get_bram() argument
104 return in_be32(base_address + (offset << 2)); in buffer_icap_get_bram()
115 static inline bool buffer_icap_busy(void __iomem *base_address) in buffer_icap_busy() argument
117 u32 status = in_be32(base_address + XHI_STATUS_REG_OFFSET); in buffer_icap_busy()
129 static inline void buffer_icap_set_size(void __iomem *base_address, in buffer_icap_set_size() argument
132 out_be32(base_address + XHI_SIZE_REG_OFFSET, data); in buffer_icap_set_size()
143 static inline void buffer_icap_set_offset(void __iomem *base_address, in buffer_icap_set_offset() argument
146 out_be32(base_address + XHI_BRAM_OFFSET_REG_OFFSET, data); in buffer_icap_set_offset()
159 static inline void buffer_icap_set_rnc(void __iomem *base_address, in buffer_icap_set_rnc() argument
162 out_be32(base_address + XHI_RNC_REG_OFFSET, data); in buffer_icap_set_rnc()
174 static inline void buffer_icap_set_bram(void __iomem *base_address, in buffer_icap_set_bram() argument
177 out_be32(base_address + (offset << 2), data); in buffer_icap_set_bram()
192 void __iomem *base_address = drvdata->base_address; in buffer_icap_device_read() local
194 if (buffer_icap_busy(base_address)) in buffer_icap_device_read()
201 buffer_icap_set_size(base_address, (count << 2)); in buffer_icap_device_read()
202 buffer_icap_set_offset(base_address, offset); in buffer_icap_device_read()
203 buffer_icap_set_rnc(base_address, XHI_READBACK); in buffer_icap_device_read()
205 while (buffer_icap_busy(base_address)) { in buffer_icap_device_read()
226 void __iomem *base_address = drvdata->base_address; in buffer_icap_device_write() local
228 if (buffer_icap_busy(base_address)) in buffer_icap_device_write()
235 buffer_icap_set_size(base_address, count << 2); in buffer_icap_device_write()
236 buffer_icap_set_offset(base_address, offset); in buffer_icap_device_write()
237 buffer_icap_set_rnc(base_address, XHI_CONFIGURE); in buffer_icap_device_write()
239 while (buffer_icap_busy(base_address)) { in buffer_icap_device_write()
258 out_be32(drvdata->base_address + XHI_STATUS_REG_OFFSET, 0xFEFE); in buffer_icap_reset()
275 void __iomem *base_address = drvdata->base_address; in buffer_icap_set_configuration() local
281 buffer_icap_set_bram(base_address, buffer_count, data[i]); in buffer_icap_set_configuration()
333 void __iomem *base_address = drvdata->base_address; in buffer_icap_get_configuration() local
360 data[i] = buffer_icap_get_bram(base_address, buffer_count); in buffer_icap_get_configuration()