Lines Matching +full:divide +full:- +full:10
1 /* spi_dw.h - Designware SPI driver private definitions */
7 * SPDX-License-Identifier: Apache-2.0
106 return -EINVAL; in reg_read()
148 const struct spi_dw_config *info = dev->config; \
149 return info->read_func(__sz, (mm_reg_t)DEVICE_MMIO_GET(dev), __off); \
154 const struct spi_dw_config *info = dev->config; \
155 info->write_func(__sz, data, (mm_reg_t)DEVICE_MMIO_GET(dev), __off); \
161 const struct spi_dw_config *info = dev->config; \
162 info->set_bit_func(__bit, (mm_reg_t)DEVICE_MMIO_GET(dev), __reg_off); \
168 const struct spi_dw_config *info = dev->config; \
169 info->clear_bit_func(__bit, (mm_reg_t)DEVICE_MMIO_GET(dev), __reg_off); \
175 const struct spi_dw_config *info = dev->config; \
176 return info->test_bit_func(__bit, (mm_reg_t)DEVICE_MMIO_GET(dev), __reg_off); \
186 #define DW_SPI_CTRLR0_SLV_OE_BIT (10)
192 #define DW_SPI_CTRLR0_TMOD_SHIFT (10)
208 #define DW_SPI_CTRLR0_DFS_16(__bpw) ((__bpw) - 1)
209 #define DW_SPI_CTRLR0_DFS_32(__bpw) (((__bpw) - 1) << 16)
212 * These are the bits were when you divide by 8, you keep the result as it is.