Searched refs:hw_bank (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.4/drivers/usb/chipidea/ |
D | ci.h | 148 struct hw_bank { struct 210 struct hw_bank hw_bank; member 315 return ioread32(ci->hw_bank.abs + offset) & mask; in hw_read_id_reg() 329 data = (ioread32(ci->hw_bank.abs + offset) & ~mask) in hw_write_id_reg() 332 iowrite32(data, ci->hw_bank.abs + offset); in hw_write_id_reg() 345 return ioread32(ci->hw_bank.regmap[reg]) & mask; in hw_read() 379 data = (ioread32(ci->hw_bank.regmap[reg]) & ~mask) in hw_write() 382 __hw_write(ci, data, ci->hw_bank.regmap[reg]); in hw_write() 396 u32 val = ioread32(ci->hw_bank.regmap[reg]) & mask; in hw_test_and_clear() 398 __hw_write(ci, val, ci->hw_bank.regmap[reg]); in hw_test_and_clear()
|
D | core.c | 129 ci->hw_bank.regmap[i] = in hw_alloc_regmap() 130 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap() 134 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap() 225 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; in ci_hdrc_enter_lpm() 226 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm() 229 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm() 230 PORTSC_PHCD(ci->hw_bank.lpm)); in ci_hdrc_enter_lpm() 232 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm() 241 ci->hw_bank.abs = base; in hw_device_init() 243 ci->hw_bank.cap = ci->hw_bank.abs; in hw_device_init() [all …]
|
D | host.c | 121 hcd->rsrc_start = ci->hw_bank.phys; in host_start() 122 hcd->rsrc_len = ci->hw_bank.size; in host_start() 123 hcd->regs = ci->hw_bank.abs; in host_start() 135 ehci->caps = ci->hw_bank.cap; in host_start() 136 ehci->has_hostpc = ci->hw_bank.lpm; in host_start() 137 ehci->has_tdi_phy_lpm = ci->hw_bank.lpm; in host_start()
|
D | udc.c | 239 return ci->hw_bank.lpm ? hw_read(ci, OP_DEVLC, DEVLC_PSPD) : in hw_port_is_high_speed()
|