/Linux-v4.19/drivers/staging/pi433/ |
D | rf69.h | 30 int rf69_set_mode(struct spi_device *spi, enum mode mode); 31 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode); 32 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation); 33 int rf69_set_modulation_shaping(struct spi_device *spi, 35 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate); 36 int rf69_set_deviation(struct spi_device *spi, u32 deviation); 37 int rf69_set_frequency(struct spi_device *spi, u32 frequency); 38 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask); 39 int rf69_disable_amplifier(struct spi_device *spi, u8 amplifier_mask); 40 int rf69_set_output_power_level(struct spi_device *spi, u8 power_level); [all …]
|
D | rf69.c | 37 static u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg() 58 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg() 85 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit() 94 static int rf69_clear_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_clear_bit() 103 static inline int rf69_read_mod_write(struct spi_device *spi, u8 reg, in rf69_read_mod_write() 115 int rf69_set_mode(struct spi_device *spi, enum mode mode) in rf69_set_mode() 142 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode) in rf69_set_data_mode() 148 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation) in rf69_set_modulation() 165 static enum modulation rf69_get_modulation(struct spi_device *spi) in rf69_get_modulation() 181 int rf69_set_modulation_shaping(struct spi_device *spi, in rf69_set_modulation_shaping() [all …]
|
/Linux-v4.19/include/linux/spi/ |
D | spi.h | 142 struct spi_device { struct 186 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument 188 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device() 192 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get() 197 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put() 204 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata() 209 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata() 216 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata() 221 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata() 256 int (*probe)(struct spi_device *spi); [all …]
|
D | spi_bitbang.h | 18 int (*setup_transfer)(struct spi_device *spi, 21 void (*chipselect)(struct spi_device *spi, int is_on); 28 int (*txrx_bufs)(struct spi_device *spi, struct spi_transfer *t); 31 u32 (*txrx_word[4])(struct spi_device *spi, 34 int (*set_line_direction)(struct spi_device *spi, bool output); 40 extern int spi_bitbang_setup(struct spi_device *spi); 41 extern void spi_bitbang_cleanup(struct spi_device *spi); 42 extern int spi_bitbang_setup_transfer(struct spi_device *spi,
|
D | mmc_spi.h | 54 extern struct mmc_spi_platform_data *mmc_spi_get_pdata(struct spi_device *spi); 55 extern void mmc_spi_put_pdata(struct spi_device *spi); 58 mmc_spi_get_pdata(struct spi_device *spi) in mmc_spi_get_pdata() 62 static inline void mmc_spi_put_pdata(struct spi_device *spi) {} in mmc_spi_put_pdata()
|
/Linux-v4.19/drivers/hwmon/ |
D | max31722.c | 30 struct spi_device *spi_device; member 37 struct spi_device *spi = data->spi_device; in max31722_set_mode() 60 ret = spi_w8r16(data->spi_device, MAX31722_REG_TEMP_LSB); in max31722_show_temp() 77 static int max31722_probe(struct spi_device *spi) in max31722_probe() 87 data->spi_device = spi; in max31722_probe() 109 static int max31722_remove(struct spi_device *spi) in max31722_remove() 120 struct spi_device *spi_device = to_spi_device(dev); in max31722_suspend() local 121 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_suspend() 128 struct spi_device *spi_device = to_spi_device(dev); in max31722_resume() local 129 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_resume()
|
D | adt7310.c | 44 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_word() 51 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_word() 62 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_read_byte() 70 struct spi_device *spi = to_spi_device(dev); in adt7310_spi_write_byte() 86 static int adt7310_spi_probe(struct spi_device *spi) in adt7310_spi_probe() 92 static int adt7310_spi_remove(struct spi_device *spi) in adt7310_spi_remove()
|
/Linux-v4.19/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_spi_device.c | 17 struct cxd2880_spi_device *spi_device = NULL; in cxd2880_spi_device_write() local 25 spi_device = spi->user; in cxd2880_spi_device_write() 33 result = spi_sync(spi_device->spi, &msg); in cxd2880_spi_device_write() 47 struct cxd2880_spi_device *spi_device = NULL; in cxd2880_spi_device_write_read() local 54 spi_device = spi->user; in cxd2880_spi_device_write_read() 56 result = spi_write_then_read(spi_device->spi, tx_data, in cxd2880_spi_device_write_read() 65 cxd2880_spi_device_initialize(struct cxd2880_spi_device *spi_device, in cxd2880_spi_device_initialize() argument 70 struct spi_device *spi = spi_device->spi; in cxd2880_spi_device_initialize() 101 struct cxd2880_spi_device *spi_device) in cxd2880_spi_device_create_spi() argument 103 if (!spi || !spi_device) in cxd2880_spi_device_create_spi() [all …]
|
/Linux-v4.19/drivers/iio/dac/ |
D | ad5592r.c | 23 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_spi_wnop_r16() 37 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_write_dac() 46 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_read_adc() 74 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_write() 83 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_read() 128 static int ad5592r_spi_probe(struct spi_device *spi) in ad5592r_spi_probe() 135 static int ad5592r_spi_remove(struct spi_device *spi) in ad5592r_spi_remove()
|
/Linux-v4.19/drivers/iio/accel/ |
D | bma220_spi.c | 77 struct spi_device *spi_device; member 90 static inline int bma220_read_reg(struct spi_device *spi, u8 reg) in bma220_read_reg() 106 struct spi_device *spi = data->spi_device; in bma220_trigger_handler() 134 ret = bma220_read_reg(data->spi_device, chan->address); in bma220_read_raw() 140 ret = bma220_read_reg(data->spi_device, BMA220_REG_RANGE); in bma220_read_raw() 175 ret = spi_write(data->spi_device, data->tx_buf, in bma220_write_raw() 178 dev_err(&data->spi_device->dev, in bma220_write_raw() 194 static int bma220_init(struct spi_device *spi) in bma220_init() 212 static int bma220_deinit(struct spi_device *spi) in bma220_deinit() 226 static int bma220_probe(struct spi_device *spi) in bma220_probe() [all …]
|
/Linux-v4.19/include/drm/tinydrm/ |
D | tinydrm-helpers.h | 18 struct spi_device; 54 size_t tinydrm_spi_max_transfer_size(struct spi_device *spi, size_t max_len); 55 bool tinydrm_spi_bpw_supported(struct spi_device *spi, u8 bpw); 56 int tinydrm_spi_transfer(struct spi_device *spi, u32 speed_hz, 59 void _tinydrm_dbg_spi_message(struct spi_device *spi, struct spi_message *m); 71 static inline void tinydrm_dbg_spi_message(struct spi_device *spi, in tinydrm_dbg_spi_message() 78 static inline void tinydrm_dbg_spi_message(struct spi_device *spi, in tinydrm_dbg_spi_message()
|
/Linux-v4.19/drivers/spi/ |
D | spi-bitbang.c | 51 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, 53 unsigned (*txrx_bufs)(struct spi_device *, 55 struct spi_device *spi, 64 struct spi_device *spi, in bitbang_txrx_8() 65 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_8() 92 struct spi_device *spi, in bitbang_txrx_16() 93 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_16() 120 struct spi_device *spi, in bitbang_txrx_32() 121 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_32() 147 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer() [all …]
|
D | spi-gpio.c | 89 spi_to_spi_gpio(const struct spi_device *spi) in spi_to_spi_gpio() 100 spi_to_pdata(const struct spi_device *spi) in spi_to_pdata() 106 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() 113 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() 120 static inline int getmiso(const struct spi_device *spi) in getmiso() 154 static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi, in spi_gpio_txrx_word_mode0() 160 static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi, in spi_gpio_txrx_word_mode1() 166 static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi, in spi_gpio_txrx_word_mode2() 172 static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi, in spi_gpio_txrx_word_mode3() 188 static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode0() [all …]
|
D | spi-test.h | 86 int (*run_test)(struct spi_device *spi, struct spi_test *test, 88 int (*execute_msg)(struct spi_device *spi, struct spi_test *test, 116 int spi_test_run_test(struct spi_device *spi, 121 int spi_test_execute_msg(struct spi_device *spi, 126 int spi_test_run_tests(struct spi_device *spi,
|
D | spi-sh-sci.c | 61 static inline void setsck(struct spi_device *dev, int on) in setsck() 66 static inline void setmosi(struct spi_device *dev, int on) in setmosi() 71 static inline u32 getmiso(struct spi_device *dev) in getmiso() 82 static u32 sh_sci_spi_txrx_mode0(struct spi_device *spi, in sh_sci_spi_txrx_mode0() 89 static u32 sh_sci_spi_txrx_mode1(struct spi_device *spi, in sh_sci_spi_txrx_mode1() 96 static u32 sh_sci_spi_txrx_mode2(struct spi_device *spi, in sh_sci_spi_txrx_mode2() 103 static u32 sh_sci_spi_txrx_mode3(struct spi_device *spi, in sh_sci_spi_txrx_mode3() 110 static void sh_sci_spi_chipselect(struct spi_device *dev, int value) in sh_sci_spi_chipselect()
|
/Linux-v4.19/drivers/net/dsa/b53/ |
D | b53_spi.c | 42 static inline int b53_spi_read_reg(struct spi_device *spi, u8 reg, u8 *val, in b53_spi_read_reg() 53 static inline int b53_spi_clear_status(struct spi_device *spi) in b53_spi_clear_status() 76 static inline int b53_spi_set_page(struct spi_device *spi, u8 page) in b53_spi_set_page() 87 static inline int b53_prepare_reg_access(struct spi_device *spi, u8 page) in b53_prepare_reg_access() 97 static int b53_spi_prepare_reg_read(struct spi_device *spi, u8 reg) in b53_spi_prepare_reg_read() 127 struct spi_device *spi = dev->priv; in b53_spi_read() 190 struct spi_device *spi = dev->priv; in b53_spi_write8() 207 struct spi_device *spi = dev->priv; in b53_spi_write16() 224 struct spi_device *spi = dev->priv; in b53_spi_write32() 241 struct spi_device *spi = dev->priv; in b53_spi_write48() [all …]
|
/Linux-v4.19/drivers/input/misc/ |
D | adxl34x-spi.c | 28 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read() 39 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_write() 52 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_read_block() 68 static int adxl34x_spi_probe(struct spi_device *spi) in adxl34x_spi_probe() 90 static int adxl34x_spi_remove(struct spi_device *spi) in adxl34x_spi_remove() 99 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_suspend() 109 struct spi_device *spi = to_spi_device(dev); in adxl34x_spi_resume()
|
/Linux-v4.19/drivers/net/dsa/microchip/ |
D | ksz_spi.c | 36 static int ksz_spi_read_reg(struct spi_device *spi, u32 reg, u8 *val, in ksz_spi_read_reg() 54 struct spi_device *spi = dev->priv; in ksz_spi_read() 99 static int ksz_spi_write_reg(struct spi_device *spi, u32 reg, u8 *val, in ksz_spi_write_reg() 123 struct spi_device *spi = dev->priv; in ksz_spi_write8() 130 struct spi_device *spi = dev->priv; in ksz_spi_write16() 138 struct spi_device *spi = dev->priv; in ksz_spi_write24() 148 struct spi_device *spi = dev->priv; in ksz_spi_write32() 165 static int ksz_spi_probe(struct spi_device *spi) in ksz_spi_probe() 186 static int ksz_spi_remove(struct spi_device *spi) in ksz_spi_remove()
|
/Linux-v4.19/drivers/char/tpm/ |
D | tpm_tis_spi.c | 48 struct spi_device *spi_device; member 67 spi_bus_lock(phy->spi_device->master); in tpm_tis_spi_transfer() 85 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer() 97 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer() 124 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer() 137 spi_bus_unlock(phy->spi_device->master); in tpm_tis_spi_transfer() 199 static int tpm_tis_spi_probe(struct spi_device *dev) in tpm_tis_spi_probe() 209 phy->spi_device = dev; in tpm_tis_spi_probe() 227 static int tpm_tis_spi_remove(struct spi_device *dev) in tpm_tis_spi_remove()
|
/Linux-v4.19/drivers/net/ethernet/wiznet/ |
D | w5100-spi.c | 28 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_read() 40 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5100_spi_write() 141 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read() 153 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write() 161 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_read16() 173 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_write16() 186 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_readbulk() 216 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5200_spi_writebulk() 286 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_read() 302 struct spi_device *spi = to_spi_device(ndev->dev.parent); in w5500_spi_write() [all …]
|
/Linux-v4.19/drivers/char/tpm/st33zp24/ |
D | spi.c | 71 struct spi_device *spi_device; member 118 struct spi_device *dev = phy->spi_device; in st33zp24_spi_send() 161 struct spi_device *dev = phy->spi_device; in st33zp24_spi_read8_reg() 240 static int st33zp24_spi_acpi_request_resources(struct spi_device *spi_dev) in st33zp24_spi_acpi_request_resources() 271 static int st33zp24_spi_of_request_resources(struct spi_device *spi_dev) in st33zp24_spi_of_request_resources() 311 static int st33zp24_spi_request_resources(struct spi_device *dev) in st33zp24_spi_request_resources() 348 static int st33zp24_spi_probe(struct spi_device *dev) in st33zp24_spi_probe() 366 phy->spi_device = dev; in st33zp24_spi_probe() 396 static int st33zp24_spi_remove(struct spi_device *dev) in st33zp24_spi_remove()
|
/Linux-v4.19/drivers/net/wan/ |
D | slic_ds26522.c | 35 static struct spi_device *g_spi; 43 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() 58 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() 74 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code() 85 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config() 145 static int slic_ds26522_init_configure(struct spi_device *spi) in slic_ds26522_init_configure() 203 static int slic_ds26522_remove(struct spi_device *spi) in slic_ds26522_remove() 209 static int slic_ds26522_probe(struct spi_device *spi) in slic_ds26522_probe()
|
/Linux-v4.19/drivers/misc/lis3lv02d/ |
D | lis3lv02d_spi.c | 30 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() 42 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write() 71 static int lis302dl_spi_probe(struct spi_device *spi) in lis302dl_spi_probe() 102 static int lis302dl_spi_remove(struct spi_device *spi) in lis302dl_spi_remove() 114 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_suspend() 125 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume()
|
/Linux-v4.19/drivers/net/can/spi/ |
D | hi311x.c | 155 struct spi_device *spi; 210 static int hi3110_spi_trans(struct spi_device *spi, int len) in hi3110_spi_trans() 239 static u8 hi3110_cmd(struct spi_device *spi, u8 command) in hi3110_cmd() 249 static u8 hi3110_read(struct spi_device *spi, u8 command) in hi3110_read() 261 static void hi3110_write(struct spi_device *spi, u8 reg, u8 val) in hi3110_write() 270 static void hi3110_hw_tx_frame(struct spi_device *spi, u8 *buf, int len) in hi3110_hw_tx_frame() 279 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx() 322 static void hi3110_hw_rx_frame(struct spi_device *spi, u8 *buf) in hi3110_hw_rx_frame() 331 static void hi3110_hw_rx(struct spi_device *spi) in hi3110_hw_rx() 378 static void hi3110_hw_sleep(struct spi_device *spi) in hi3110_hw_sleep() [all …]
|
/Linux-v4.19/drivers/base/regmap/ |
D | regmap-spi.c | 35 struct spi_device *spi = to_spi_device(dev); in regmap_spi_write() 45 struct spi_device *spi = to_spi_device(dev); in regmap_spi_gather_write() 66 struct spi_device *spi = to_spi_device(dev); in regmap_spi_async_write() 100 struct spi_device *spi = to_spi_device(dev); in regmap_spi_read() 116 struct regmap *__regmap_init_spi(struct spi_device *spi, in __regmap_init_spi() 126 struct regmap *__devm_regmap_init_spi(struct spi_device *spi, in __devm_regmap_init_spi()
|