Searched refs:hw_bank (Results 1 – 4 of 4) sorted by relevance
/drivers/usb/chipidea/ |
D | ci.h | 149 struct hw_bank { struct 212 struct hw_bank hw_bank; member 328 return ioread32(ci->hw_bank.abs + offset) & mask; in hw_read_id_reg() 342 data = (ioread32(ci->hw_bank.abs + offset) & ~mask) in hw_write_id_reg() 345 iowrite32(data, ci->hw_bank.abs + offset); in hw_write_id_reg() 358 return ioread32(ci->hw_bank.regmap[reg]) & mask; in hw_read() 392 data = (ioread32(ci->hw_bank.regmap[reg]) & ~mask) in hw_write() 395 __hw_write(ci, data, ci->hw_bank.regmap[reg]); in hw_write() 409 u32 val = ioread32(ci->hw_bank.regmap[reg]) & mask; in hw_test_and_clear() 411 __hw_write(ci, val, ci->hw_bank.regmap[reg]); in hw_test_and_clear()
|
D | core.c | 103 ci->hw_bank.regmap[i] = in hw_alloc_regmap() 104 (i <= CAP_LAST ? ci->hw_bank.cap : ci->hw_bank.op) + in hw_alloc_regmap() 108 ci->hw_bank.regmap[i] = ci->hw_bank.op + in hw_alloc_regmap() 200 enum ci_hw_regs reg = ci->hw_bank.lpm ? OP_DEVLC : OP_PORTSC; in ci_hdrc_enter_lpm() 201 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm() 204 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm() 205 PORTSC_PHCD(ci->hw_bank.lpm)); in ci_hdrc_enter_lpm() 207 hw_write(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm), in ci_hdrc_enter_lpm() 216 ci->hw_bank.abs = base; in hw_device_init() 218 ci->hw_bank.cap = ci->hw_bank.abs; in hw_device_init() [all …]
|
D | host.c | 123 hcd->rsrc_start = ci->hw_bank.phys; in host_start() 124 hcd->rsrc_len = ci->hw_bank.size; in host_start() 125 hcd->regs = ci->hw_bank.abs; in host_start() 137 ehci->caps = ci->hw_bank.cap; in host_start() 138 ehci->has_hostpc = ci->hw_bank.lpm; in host_start() 139 ehci->has_tdi_phy_lpm = ci->hw_bank.lpm; in host_start()
|
D | udc.c | 247 return ci->hw_bank.lpm ? hw_read(ci, OP_DEVLC, DEVLC_PSPD) : in hw_port_is_high_speed()
|