Lines Matching refs:mem
155 static inline u8 hwstatus_get(void __iomem *mem) in hwstatus_get() argument
157 return readb(mem + INTEL_RNG_HW_STATUS); in hwstatus_get()
160 static inline u8 hwstatus_set(void __iomem *mem, in hwstatus_set() argument
163 writeb(hw_status, mem + INTEL_RNG_HW_STATUS); in hwstatus_set()
164 return hwstatus_get(mem); in hwstatus_set()
169 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_present() local
173 data = !!(readb(mem + INTEL_RNG_STATUS) & in intel_rng_data_present()
184 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_data_read() local
186 *data = readb(mem + INTEL_RNG_DATA); in intel_rng_data_read()
193 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_init() local
197 hw_status = hwstatus_get(mem); in intel_rng_init()
200 hw_status = hwstatus_set(mem, hw_status | INTEL_RNG_ENABLED); in intel_rng_init()
212 void __iomem *mem = (void __iomem *)rng->priv; in intel_rng_cleanup() local
215 hw_status = hwstatus_get(mem); in intel_rng_cleanup()
217 hwstatus_set(mem, hw_status & ~INTEL_RNG_ENABLED); in intel_rng_cleanup()
233 void __iomem *mem; member
258 writeb(INTEL_FWH_RESET_CMD, intel_rng_hw->mem); in intel_rng_hw_init()
259 writeb(INTEL_FWH_READ_ID_CMD, intel_rng_hw->mem); in intel_rng_hw_init()
260 mfc = readb(intel_rng_hw->mem + INTEL_FWH_MANUFACTURER_CODE_ADDRESS); in intel_rng_hw_init()
261 dvc = readb(intel_rng_hw->mem + INTEL_FWH_DEVICE_CODE_ADDRESS); in intel_rng_hw_init()
262 writeb(INTEL_FWH_RESET_CMD, intel_rng_hw->mem); in intel_rng_hw_init()
320 intel_rng_hw->mem = ioremap(INTEL_FWH_ADDR, INTEL_FWH_ADDR_LEN); in intel_init_hw_struct()
321 if (intel_rng_hw->mem == NULL) in intel_init_hw_struct()
333 void __iomem *mem; in intel_rng_mod_init() local
374 iounmap(intel_rng_hw->mem); in intel_rng_mod_init()
381 mem = ioremap(INTEL_RNG_ADDR, INTEL_RNG_ADDR_LEN); in intel_rng_mod_init()
382 if (!mem) in intel_rng_mod_init()
384 intel_rng.priv = (unsigned long)mem; in intel_rng_mod_init()
388 hw_status = hwstatus_get(mem); in intel_rng_mod_init()
390 iounmap(mem); in intel_rng_mod_init()
399 iounmap(mem); in intel_rng_mod_init()
408 void __iomem *mem = (void __iomem *)intel_rng.priv; in intel_rng_mod_exit() local
411 iounmap(mem); in intel_rng_mod_exit()