hw_test_and_write(9)
β¨ hw_test_and_write(9) β¨
okay so bestie, welcome to the Kernel API Manual corner of the group chat. Today's main character is hw_test_and_write, and the NAME line is literally right here: it tests & writes a hw register. π
β¨
π NAME π
hw_test_and_write β tests & writes a hw register.
π¦ SYNOPSIS π¦
u32 hw_test_and_write (struct ci_hdrc *ci , enum ci_hw_regs reg , u32
mask , u32 data );
πΈ ARGUMENTS πΈ
ciβ the controller.regβ register index.maskβ bitfield mask.dataβ new value.
π DESCRIPTION π
The DESCRIPTION is short and sweet: this function returns register contents. That's the whole flex, no cap. πβ¨
π SEE ALSO π
bestie, the kernel file to peek at is ./drivers/usb/chipidea/ci.h, and these friends are all linked too:
struct ci_hw_ep(9)struct ci_role_driver(9)struct hw_bank(9)struct ci_hdrc(9)hw_read_id_reg(9)hw_write_id_reg(9)hw_read(9)hw_write(9)hw_test_and_clear(9)ci_otg_is_fsm_mode(9)
mwah π this page is signing off from ./drivers/usb/chipidea, dated October 2026 β bye bestie! π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms