ax_spi_write(9)
π ax_spi_write(9) β like, the Kernel API Manual edition, bestie π
Okay so real talk, this page is about ax_spi_write, and honestly? It's giving "one job, does it well." β¨ It's a register write β 32 bit per word, no cap.
πΈ NAME πΈ
ax_spi_write β Register write - 32 bit per word π
Like, that's it. That's the whole vibe. You write a 32-bit word into a register and you go about your day. Iconic behavior, honestly. π
π¦ SYNOPSIS π¦
void ax_spi_write (struct ax_spi *xspi , u32 offset , u32 val );
Not me swooning over a function signature that returns void π β it just does the thing and gives you nothing back. Main character energy fr fr. π
β¨ ARGUMENTS β¨
xspiβ Pointer to theax_spistructure π«Ά. Like, this is your lil' SPI buddy, the whole context you're working inside of. Point at it. Respect it.offsetβ Register offset address π. This is the "where" of it all β which register you're sliding into. Choose wisely, bestie.valβ Value to write into that register π. A wholeu32of payload, hand-delivered tooffset. Slay.
Ngl, the types here are doing a lot of the talking:xspiis astruct ax_spi *, and bothoffsetandvalareu32. Keep that in mind so you don't hand it something cursed. π
π₯ SEE ALSO π₯
Kernel file ./drivers/spi/spi-axiado.c β go read it, iykyk π β plus the whole friend group:
ax_spi_read(9)ax_spi_write_b(9)ax_spi_init_hw(9)ax_spi_chipselect(9)ax_spi_config_clock_mode(9)ax_spi_config_clock_freq(9)ax_spi_setup_transfer(9)ax_spi_fill_tx_fifo(9)ax_spi_get_rx_byte_for_irq(9)ax_spi_process_rx_and_finalize(9)ax_spi_irq(9)ax_transfer_one(9)ax_prepare_transfer_hardware(9)ax_unprepare_transfer_hardware(9)ax_spi_detect_fifo_depth(9)ax_spi_get_rx_byte(9)ax_spi_probe(9)ax_spi_remove(9)ax_spi_suspend(9)ax_spi_resume(9)ax_spi_runtime_resume(9)ax_spi_runtime_suspend(9)
Literally the entire squad, all listed, no one left behind π«Άπ
π§ Sign-off π§
This lil' page lives under ./drivers/spi and it's dated October 2026 β put that in your calendar, bestie π
β¨. That's the whole thing! Go write your 32-bit words, stay hydrated, and remember: void means you get no tea back, and that's okay. ππΈπ
π¦ 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