Home
last modified time | relevance | path

Searched refs:subblock (Results 1 – 8 of 8) sorted by relevance

/linux-6.12.1/drivers/net/dsa/
Dvitesse-vsc73xx-platform.c42 static u32 vsc73xx_make_addr(u8 block, u8 subblock, u8 reg) in vsc73xx_make_addr() argument
48 ret |= (subblock & VSC73XX_CMD_PLATFORM_SUBBLOCK_MASK) in vsc73xx_make_addr()
55 static int vsc73xx_platform_read(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_platform_read() argument
61 if (!vsc73xx_is_addr_valid(block, subblock)) in vsc73xx_platform_read()
64 offset = vsc73xx_make_addr(block, subblock, reg); in vsc73xx_platform_read()
73 static int vsc73xx_platform_write(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_platform_write() argument
79 if (!vsc73xx_is_addr_valid(block, subblock)) in vsc73xx_platform_write()
82 offset = vsc73xx_make_addr(block, subblock, reg); in vsc73xx_platform_write()
Dvitesse-vsc73xx-spi.c40 static u8 vsc73xx_make_addr(u8 mode, u8 block, u8 subblock) in vsc73xx_make_addr() argument
47 ret |= subblock & VSC73XX_CMD_SPI_SUBBLOCK_MASK; in vsc73xx_make_addr()
52 static int vsc73xx_spi_read(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_spi_read() argument
62 if (!vsc73xx_is_addr_valid(block, subblock)) in vsc73xx_spi_read()
77 cmd[0] = vsc73xx_make_addr(VSC73XX_CMD_SPI_MODE_READ, block, subblock); in vsc73xx_spi_read()
94 static int vsc73xx_spi_write(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_spi_write() argument
104 if (!vsc73xx_is_addr_valid(block, subblock)) in vsc73xx_spi_write()
119 cmd[0] = vsc73xx_make_addr(VSC73XX_CMD_SPI_MODE_WRITE, block, subblock); in vsc73xx_spi_write()
Dvitesse-vsc73xx.h70 int (*read)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
72 int (*write)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
91 int vsc73xx_is_addr_valid(u8 block, u8 subblock);
Dvitesse-vsc73xx-core.c455 int vsc73xx_is_addr_valid(u8 block, u8 subblock) in vsc73xx_is_addr_valid() argument
459 switch (subblock) { in vsc73xx_is_addr_valid()
468 switch (subblock) { in vsc73xx_is_addr_valid()
476 switch (subblock) { in vsc73xx_is_addr_valid()
482 switch (subblock) { in vsc73xx_is_addr_valid()
494 static int vsc73xx_read(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_read() argument
497 return vsc->ops->read(vsc, block, subblock, reg, val); in vsc73xx_read()
500 static int vsc73xx_write(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_write() argument
503 return vsc->ops->write(vsc, block, subblock, reg, val); in vsc73xx_write()
506 static int vsc73xx_update_bits(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_update_bits() argument
[all …]
/linux-6.12.1/drivers/spi/
Dspi-fsl-cpm.c55 qe_issue_cmd(QE_INIT_TX_RX, mspi->subblock, in fsl_spi_cpm_reinit_txrx()
274 qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, mspi->subblock, in fsl_spi_cpm_get_pram()
309 mspi->subblock = *iprop; in fsl_spi_cpm_init()
311 switch (mspi->subblock) { in fsl_spi_cpm_init()
316 mspi->subblock = QE_CR_SUBBLOCK_SPI1; in fsl_spi_cpm_init()
319 mspi->subblock = QE_CR_SUBBLOCK_SPI2; in fsl_spi_cpm_init()
Dspi-fsl-lib.h28 int subblock; member
/linux-6.12.1/Documentation/devicetree/bindings/spi/
Dfsl-spi.txt4 - cell-index : QE SPI subblock index.
5 0: QE subblock SPI1
6 1: QE subblock SPI2
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Dgfx_v9_0.c491 #define AMDGPU_RAS_SUB_BLOCK(subblock, a, b, c, d, e, f, g, h) \ argument
492 [AMDGPU_RAS_BLOCK__##subblock] = { \
493 #subblock, \
494 TA_RAS_BLOCK__##subblock, \