Lines Matching +full:prop +full:- +full:3
1 /* spi_dw.h - Designware SPI driver private definitions */
7 * SPDX-License-Identifier: Apache-2.0
56 #define DT_INST_NODE_PROP_NOT_OR(inst, prop) \ argument
57 !DT_INST_PROP(inst, prop) ||
58 #define DT_ANY_INST_NOT_PROP_STATUS_OKAY(prop) \ argument
59 (DT_INST_FOREACH_STATUS_OKAY_VARGS(DT_INST_NODE_PROP_NOT_OR, prop) 0)
61 #define DT_INST_NODE_PROP_AND_OR(inst, prop) \ argument
62 DT_INST_PROP(inst, prop) ||
63 #define DT_ANY_INST_PROP_STATUS_OKAY(prop) \ argument
64 (DT_INST_FOREACH_STATUS_OKAY_VARGS(DT_INST_NODE_PROP_AND_OR, prop) 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); \
205 #define DW_SPI_CTRLR0_TMOD_EEPROM (3 << DW_SPI_CTRLR0_TMOD_SHIFT)
206 #define DW_SPI_CTRLR0_TMOD_RESET (3 << DW_SPI_CTRLR0_TMOD_SHIFT)
208 #define DW_SPI_CTRLR0_DFS_16(__bpw) ((__bpw) - 1)
209 #define DW_SPI_CTRLR0_DFS_32(__bpw) (((__bpw) - 1) << 16)
229 #define DW_SPI_SR_RFNE_BIT (3)
235 #define DW_SPI_IMR_RXOIM_BIT (3)