Home
last modified time | relevance | path

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

/linux-6.1.9/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.h21 int (*read)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
23 int (*write)(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg,
27 int vsc73xx_is_addr_valid(u8 block, u8 subblock);
Dvitesse-vsc73xx-core.c343 int vsc73xx_is_addr_valid(u8 block, u8 subblock) in vsc73xx_is_addr_valid() argument
347 switch (subblock) { in vsc73xx_is_addr_valid()
356 switch (subblock) { in vsc73xx_is_addr_valid()
365 switch (subblock) { in vsc73xx_is_addr_valid()
376 static int vsc73xx_read(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_read() argument
379 return vsc->ops->read(vsc, block, subblock, reg, val); in vsc73xx_read()
382 static int vsc73xx_write(struct vsc73xx *vsc, u8 block, u8 subblock, u8 reg, in vsc73xx_write() argument
385 return vsc->ops->write(vsc, block, subblock, reg, val); in vsc73xx_write()
388 static int vsc73xx_update_bits(struct vsc73xx *vsc, u8 block, u8 subblock, in vsc73xx_update_bits() argument
395 ret = vsc73xx_read(vsc, block, subblock, reg, &orig); in vsc73xx_update_bits()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-fsl-cpm.c54 qe_issue_cmd(QE_INIT_TX_RX, mspi->subblock, in fsl_spi_cpm_reinit_txrx()
257 qe_issue_cmd(QE_ASSIGN_PAGE_TO_DEVICE, mspi->subblock, in fsl_spi_cpm_get_pram()
292 mspi->subblock = *iprop; in fsl_spi_cpm_init()
294 switch (mspi->subblock) { in fsl_spi_cpm_init()
299 mspi->subblock = QE_CR_SUBBLOCK_SPI1; in fsl_spi_cpm_init()
302 mspi->subblock = QE_CR_SUBBLOCK_SPI2; in fsl_spi_cpm_init()
Dspi-fsl-lib.h28 int subblock; member
/linux-6.1.9/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.1.9/drivers/gpu/drm/amd/amdgpu/
Dgfx_v9_0.c359 #define AMDGPU_RAS_SUB_BLOCK(subblock, a, b, c, d, e, f, g, h) \ argument
360 [AMDGPU_RAS_BLOCK__##subblock] = { \
361 #subblock, \
362 TA_RAS_BLOCK__##subblock, \