Home
last modified time | relevance | path

Searched refs:hw_read (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/chipidea/
H A Dulpi.c24 if (!hw_read(ci, OP_ULPI_VIEWPORT, mask)) in ci_ulpi_wait()
48 return hw_read(ci, OP_ULPI_VIEWPORT, GENMASK(15, 8)) >> 8; in ci_ulpi_read()
102 if (hw_read(ci, OP_ULPI_VIEWPORT, ULPI_SYNC_STATE)) in ci_ulpi_resume()
H A Dcore.c141 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
153 return hw_read(ci, OP_USBSTS, ~0); in hw_read_intr_status()
183 return hw_read(ci, OP_PORTSC, PORTSC_PTC) >> __ffs(PORTSC_PTC); in hw_port_test_get()
201 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm()
223 reg = hw_read(ci, CAP_HCCPARAMS, HCCPARAMS_LEN) >> in hw_device_init()
232 reg = hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_DEN) >> in hw_device_init()
400 is_device_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_DC; in ci_platform_configure()
401 is_host_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_HC; in ci_platform_configure()
458 while (hw_read(ci, OP_USBCMD, USBCMD_RST)) { in hw_controller_reset()
500 if (hw_read(c in hw_device_reset()
[all...]
H A Dudc.c108 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
110 } while (hw_read(ci, OP_ENDPTSTAT, BIT(n))); in hw_ep_flush()
178 return hw_read(ci, OP_ENDPTCTRL + num, mask) ? 1 : 0; in hw_ep_get_halt()
197 if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) in hw_ep_prime()
202 while (hw_read(ci, OP_ENDPTPRIME, BIT(n))) in hw_ep_prime()
204 if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) in hw_ep_prime()
247 return ci->hw_bank.lpm ? hw_read(ci, OP_DEVLC, DEVLC_PSPD) : in hw_port_is_high_speed()
248 hw_read(ci, OP_PORTSC, PORTSC_HSP); in hw_port_is_high_speed()
339 while (hw_read(ci, OP_ENDPTPRIME, ~0)) in hw_usb_reset()
597 if (hw_read(c in _hardware_enqueue()
[all...]
H A Ddebug.c319 tmp_reg = hw_read(ci, OP_USBMODE, ~0); in ci_registers_show()
322 tmp_reg = hw_read(ci, OP_USBCMD, ~0); in ci_registers_show()
325 tmp_reg = hw_read(ci, OP_PORTSC, ~0); in ci_registers_show()
H A Dci.h349 * hw_read: reads from a hw register
356 static inline u32 hw_read(struct ci_hdrc *ci, enum ci_hw_regs reg, u32 mask) in hw_read() function
427 u32 val = hw_read(ci, reg, ~0); in hw_test_and_write()
H A Dotg.c32 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
H A Dhost.c364 if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_HC)) in ci_hdrc_host_init()
H A Dotg_fsm.c646 port_conn = hw_read(ci, OP_PORTSC, PORTSC_CCS); in ci_otg_fsm_event()
/kernel/linux/linux-6.6/drivers/usb/chipidea/
H A Dulpi.c24 if (!hw_read(ci, OP_ULPI_VIEWPORT, mask)) in ci_ulpi_wait()
48 return hw_read(ci, OP_ULPI_VIEWPORT, GENMASK(15, 8)) >> 8; in ci_ulpi_read()
102 if (hw_read(ci, OP_ULPI_VIEWPORT, ULPI_SYNC_STATE)) in ci_ulpi_resume()
H A Dudc.c111 while (hw_read(ci, OP_ENDPTFLUSH, BIT(n))) in hw_ep_flush()
113 } while (hw_read(ci, OP_ENDPTSTAT, BIT(n))); in hw_ep_flush()
181 return hw_read(ci, OP_ENDPTCTRL + num, mask) ? 1 : 0; in hw_ep_get_halt()
200 if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) in hw_ep_prime()
205 while (hw_read(ci, OP_ENDPTPRIME, BIT(n))) in hw_ep_prime()
207 if (is_ctrl && dir == RX && hw_read(ci, OP_ENDPTSETUPSTAT, BIT(num))) in hw_ep_prime()
250 return ci->hw_bank.lpm ? hw_read(ci, OP_DEVLC, DEVLC_PSPD) : in hw_port_is_high_speed()
251 hw_read(ci, OP_PORTSC, PORTSC_HSP); in hw_port_is_high_speed()
342 while (hw_read(ci, OP_ENDPTPRIME, ~0)) in hw_usb_reset()
606 if (!hw_read(c in _hardware_enqueue()
[all...]
H A Dcore.c143 return hw_read(ci, OP_USBINTR, ~0); in hw_read_intr_enable()
155 return hw_read(ci, OP_USBSTS, ~0); in hw_read_intr_status()
185 return hw_read(ci, OP_PORTSC, PORTSC_PTC) >> __ffs(PORTSC_PTC); in hw_port_test_get()
203 bool lpm = !!(hw_read(ci, reg, PORTSC_PHCD(ci->hw_bank.lpm))); in ci_hdrc_enter_lpm_common()
230 reg = hw_read(ci, CAP_HCCPARAMS, HCCPARAMS_LEN) >> in hw_device_init()
239 reg = hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_DEN) >> in hw_device_init()
407 is_device_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_DC; in ci_platform_configure()
408 is_host_mode = hw_read(ci, OP_USBMODE, USBMODE_CM) == USBMODE_CM_HC; in ci_platform_configure()
465 while (hw_read(ci, OP_USBCMD, USBCMD_RST)) { in hw_controller_reset()
507 if (hw_read(c in hw_device_reset()
[all...]
H A Ddebug.c265 tmp_reg = hw_read(ci, OP_USBMODE, ~0); in ci_registers_show()
268 tmp_reg = hw_read(ci, OP_USBCMD, ~0); in ci_registers_show()
271 tmp_reg = hw_read(ci, OP_PORTSC, ~0); in ci_registers_show()
H A Dci.h369 * hw_read: reads from a hw register
376 static inline u32 hw_read(struct ci_hdrc *ci, enum ci_hw_regs reg, u32 mask) in hw_read() function
447 u32 val = hw_read(ci, reg, ~0); in hw_test_and_write()
H A Dotg.c32 u32 val = hw_read(ci, OP_OTGSC, mask); in hw_read_otgsc()
H A Dhost.c471 if (!hw_read(ci, CAP_DCCPARAMS, DCCPARAMS_HC)) in ci_hdrc_host_init()
H A Dotg_fsm.c653 port_conn = hw_read(ci, OP_PORTSC, PORTSC_CCS); in ci_otg_fsm_event()
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Dhwregs.c206 ACPI_FUNCTION_NAME(hw_read); in acpi_hw_read()
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Dhwregs.c206 ACPI_FUNCTION_NAME(hw_read); in acpi_hw_read()

Completed in 19 milliseconds