cmdq_pkt_write_mask_pa(9)
π NAME π
okay so bestie, welcome to the cmdq_pkt_write_mask_pa(9) page β yes, thatβs the manual name, and itβs lowkey iconic. This one is all about cmdq_pkt_write_mask_pa β append a write command with a mask to the CMDQ packet with pa. Main character energy for CMDQ packet writes, no cap. β¨
β¨ SYNOPSIS β¨
Hereβs the exact signature, copied with love:
int cmdq_pkt_write_mask_pa (struct cmdq_pkt *pkt , u8 subsys , u32
pa_base , u16 offset , u32 value , u32 mask );
π ARGUMENTS π
pktβ the CMDQ packet. Thatβs the thing youβre appending to, bestie.subsysβ unused parameter. Not me pointing out that itβs literally unused, but yes: itβs unused. πpa_baseβ the physical address base of the hardware register.offsetβ register offset from CMDQ sub system.valueβ the specified target register value.maskβ the specified target register mask.
π RETURN π
Returns 0 for success; else the error code is returned. Zero means slay, and anything else is the error code coming through. periodt. π
π¦ SEE ALSO π¦
The kernel file is ./include/linux/soc/mediatek/mtk-cmdq.h β go peek, iykyk. And hereβs the whole see-also friend group, every single one:
cmdq_dev_get_client_reg(9)cmdq_mbox_create(9)cmdq_mbox_destroy(9)cmdq_pkt_create(9)cmdq_pkt_destroy(9)cmdq_pkt_write(9)cmdq_pkt_write_pa(9)cmdq_pkt_write_subsys(9)cmdq_pkt_write_mask(9)cmdq_pkt_write_mask_subsys(9)cmdq_pkt_write_s(9)cmdq_pkt_write_s_mask(9)cmdq_pkt_write_s_value(9)cmdq_pkt_write_s_mask_value(9)cmdq_pkt_mem_move(9)cmdq_pkt_wfe(9)cmdq_pkt_acquire_event(9)cmdq_pkt_clear_event(9)cmdq_pkt_set_event(9)cmdq_pkt_poll(9)cmdq_pkt_poll_mask(9)cmdq_pkt_logic_command(9)cmdq_pkt_assign(9)cmdq_pkt_poll_addr(9)cmdq_pkt_jump_abs(9)cmdq_pkt_jump_rel(9)cmdq_pkt_jump_rel_temp(9)cmdq_pkt_eoc(9)
mwah π this pageβs source/version is ./include/linux/soc/mediatek, dated October 2026, and itβs the cmdq_pkt_write_mask_pa(9) manual. byeee π«Άβ¨
π¦ 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