/drivers/staging/pi433/ |
D | rf69.h | 20 u8 rf69_read_reg(struct spi_device *spi, u8 addr); 21 int rf69_get_version(struct spi_device *spi); 22 int rf69_set_mode(struct spi_device *spi, enum mode mode); 23 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode); 24 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation); 25 int rf69_set_modulation_shaping(struct spi_device *spi, 27 int rf69_set_bit_rate(struct spi_device *spi, u16 bit_rate); 28 int rf69_set_deviation(struct spi_device *spi, u32 deviation); 29 int rf69_set_frequency(struct spi_device *spi, u32 frequency); 30 int rf69_enable_amplifier(struct spi_device *spi, u8 amplifier_mask); [all …]
|
D | rf69.c | 20 u8 rf69_read_reg(struct spi_device *spi, u8 addr) in rf69_read_reg() 25 static int rf69_write_reg(struct spi_device *spi, u8 addr, u8 value) in rf69_write_reg() 37 static int rf69_set_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_set_bit() 46 static int rf69_clear_bit(struct spi_device *spi, u8 reg, u8 mask) in rf69_clear_bit() 55 static inline int rf69_read_mod_write(struct spi_device *spi, u8 reg, in rf69_read_mod_write() 67 int rf69_get_version(struct spi_device *spi) in rf69_get_version() 72 int rf69_set_mode(struct spi_device *spi, enum mode mode) in rf69_set_mode() 99 int rf69_set_data_mode(struct spi_device *spi, u8 data_mode) in rf69_set_data_mode() 105 int rf69_set_modulation(struct spi_device *spi, enum modulation modulation) in rf69_set_modulation() 122 static enum modulation rf69_get_modulation(struct spi_device *spi) in rf69_get_modulation() [all …]
|
/drivers/hwmon/ |
D | max31722.c | 26 struct spi_device *spi_device; member 33 struct spi_device *spi = data->spi_device; in max31722_set_mode() 55 ret = spi_w8r16(data->spi_device, MAX31722_REG_TEMP_LSB); in max31722_temp_show() 71 static int max31722_probe(struct spi_device *spi) in max31722_probe() 81 data->spi_device = spi; in max31722_probe() 103 static void max31722_remove(struct spi_device *spi) in max31722_remove() 118 struct spi_device *spi_device = to_spi_device(dev); in max31722_suspend() local 119 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_suspend() 126 struct spi_device *spi_device = to_spi_device(dev); in max31722_resume() local 127 struct max31722_data *data = spi_get_drvdata(spi_device); in max31722_resume()
|
D | adt7310.c | 42 static int adt7310_spi_read_word(struct spi_device *spi, u8 reg) in adt7310_spi_read_word() 47 static int adt7310_spi_write_word(struct spi_device *spi, u8 reg, u16 data) in adt7310_spi_write_word() 57 static int adt7310_spi_read_byte(struct spi_device *spi, u8 reg) in adt7310_spi_read_byte() 62 static int adt7310_spi_write_byte(struct spi_device *spi, u8 reg, u8 data) in adt7310_spi_write_byte() 85 struct spi_device *spi = context; in adt7310_reg_read() 107 struct spi_device *spi = context; in adt7310_reg_write() 133 static int adt7310_spi_probe(struct spi_device *spi) in adt7310_spi_probe()
|
/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 …]
|
/drivers/iio/dac/ |
D | ad5592r.c | 21 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_spi_wnop_r16() 35 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_write_dac() 44 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_read_adc() 72 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_write() 81 struct spi_device *spi = container_of(st->dev, struct spi_device, dev); in ad5592r_reg_read() 126 static int ad5592r_spi_probe(struct spi_device *spi) in ad5592r_spi_probe() 133 static void ad5592r_spi_remove(struct spi_device *spi) in ad5592r_spi_remove()
|
/drivers/iio/accel/ |
D | bma220_spi.c | 63 struct spi_device *spi_device; member 80 static inline int bma220_read_reg(struct spi_device *spi, u8 reg) in bma220_read_reg() 96 struct spi_device *spi = data->spi_device; in bma220_trigger_handler() 124 ret = bma220_read_reg(data->spi_device, chan->address); in bma220_read_raw() 131 ret = bma220_read_reg(data->spi_device, BMA220_REG_RANGE); in bma220_read_raw() 166 ret = spi_write(data->spi_device, data->tx_buf, in bma220_write_raw() 169 dev_err(&data->spi_device->dev, in bma220_write_raw() 201 static int bma220_init(struct spi_device *spi) in bma220_init() 221 static int bma220_power(struct spi_device *spi, bool up) in bma220_power() 250 static int bma220_probe(struct spi_device *spi) in bma220_probe() [all …]
|
/drivers/spi/ |
D | spi-bitbang.c | 42 u32 (*txrx_word)(struct spi_device *spi, unsigned nsecs, 44 unsigned (*txrx_bufs)(struct spi_device *, 46 struct spi_device *spi, 55 struct spi_device *spi, in bitbang_txrx_8() 56 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_8() 84 struct spi_device *spi, in bitbang_txrx_16() 85 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_16() 113 struct spi_device *spi, in bitbang_txrx_32() 114 u32 (*txrx_word)(struct spi_device *spi, in bitbang_txrx_32() 141 int spi_bitbang_setup_transfer(struct spi_device *spi, struct spi_transfer *t) in spi_bitbang_setup_transfer() [all …]
|
D | spi-gpio.c | 75 spi_to_spi_gpio(const struct spi_device *spi) in spi_to_spi_gpio() 86 static inline void setsck(const struct spi_device *spi, int is_on) in setsck() 93 static inline void setmosi(const struct spi_device *spi, int is_on) in setmosi() 100 static inline int getmiso(const struct spi_device *spi) in getmiso() 134 static u32 spi_gpio_txrx_word_mode0(struct spi_device *spi, in spi_gpio_txrx_word_mode0() 143 static u32 spi_gpio_txrx_word_mode1(struct spi_device *spi, in spi_gpio_txrx_word_mode1() 152 static u32 spi_gpio_txrx_word_mode2(struct spi_device *spi, in spi_gpio_txrx_word_mode2() 161 static u32 spi_gpio_txrx_word_mode3(struct spi_device *spi, in spi_gpio_txrx_word_mode3() 180 static u32 spi_gpio_spec_txrx_word_mode0(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode0() 190 static u32 spi_gpio_spec_txrx_word_mode1(struct spi_device *spi, in spi_gpio_spec_txrx_word_mode1() [all …]
|
D | spi-sh-sci.c | 57 static inline void setsck(struct spi_device *dev, int on) in setsck() 62 static inline void setmosi(struct spi_device *dev, int on) in setmosi() 67 static inline u32 getmiso(struct spi_device *dev) in getmiso() 78 static u32 sh_sci_spi_txrx_mode0(struct spi_device *spi, in sh_sci_spi_txrx_mode0() 85 static u32 sh_sci_spi_txrx_mode1(struct spi_device *spi, in sh_sci_spi_txrx_mode1() 92 static u32 sh_sci_spi_txrx_mode2(struct spi_device *spi, in sh_sci_spi_txrx_mode2() 99 static u32 sh_sci_spi_txrx_mode3(struct spi_device *spi, in sh_sci_spi_txrx_mode3() 106 static void sh_sci_spi_chipselect(struct spi_device *dev, int value) in sh_sci_spi_chipselect()
|
D | spi-test.h | 77 int (*run_test)(struct spi_device *spi, struct spi_test *test, 79 int (*execute_msg)(struct spi_device *spi, struct spi_test *test, 107 int spi_test_run_test(struct spi_device *spi, 112 int spi_test_execute_msg(struct spi_device *spi, 117 int spi_test_run_tests(struct spi_device *spi,
|
D | spi-butterfly.c | 44 static inline struct butterfly *spidev_to_pp(struct spi_device *spi) in spidev_to_pp() 58 struct spi_device *dataflash; 59 struct spi_device *butterfly; 67 setsck(struct spi_device *spi, int is_on) in setsck() 83 setmosi(struct spi_device *spi, int is_on) in setmosi() 98 static inline int getmiso(struct spi_device *spi) in getmiso() 111 static void butterfly_chipselect(struct spi_device *spi, int value) in butterfly_chipselect() 137 butterfly_txrx_word_mode0(struct spi_device *spi, unsigned nsecs, u32 word, in butterfly_txrx_word_mode0()
|
/drivers/misc/ |
D | gehc-achc.c | 21 struct spi_device *main; 22 struct spi_device *ezport; 59 static int ezport_start_programming(struct spi_device *spi, struct gpio_desc *reset) in ezport_start_programming() 92 static void ezport_stop_programming(struct spi_device *spi, struct gpio_desc *reset) in ezport_stop_programming() 100 static int ezport_get_status_register(struct spi_device *spi) in ezport_get_status_register() 115 static int ezport_soft_reset(struct spi_device *spi) in ezport_soft_reset() 129 static int ezport_send_simple(struct spi_device *spi, u8 cmd) in ezport_send_simple() 140 static int ezport_wait_write(struct spi_device *spi, u32 retries) in ezport_wait_write() 155 static int ezport_write_enable(struct spi_device *spi) in ezport_write_enable() 172 static int ezport_bulk_erase(struct spi_device *spi) in ezport_bulk_erase() [all …]
|
/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() 200 struct spi_device *spi = dev->priv; in b53_spi_write8() 217 struct spi_device *spi = dev->priv; in b53_spi_write16() 234 struct spi_device *spi = dev->priv; in b53_spi_write32() 251 struct spi_device *spi = dev->priv; in b53_spi_write48() [all …]
|
/drivers/char/tpm/ |
D | tpm_tis_spi_main.c | 61 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_flow_control() 126 ret = spi_sync(phy->spi_device, &m); in tpm_tis_spi_transfer_half() 150 spi_bus_lock(phy->spi_device->master); in tpm_tis_spi_transfer_full() 168 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full() 193 ret = spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full() 211 spi_sync_locked(phy->spi_device, &m); in tpm_tis_spi_transfer_full() 214 spi_bus_unlock(phy->spi_device->master); in tpm_tis_spi_transfer_full() 222 struct spi_controller *ctlr = phy->spi_device->controller; in tpm_tis_spi_transfer() 248 int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy, in tpm_tis_spi_init() 255 phy->spi_device = spi; in tpm_tis_spi_init() [all …]
|
D | tpm_tis_spi.h | 14 struct spi_device *spi_device; member 28 extern int tpm_tis_spi_init(struct spi_device *spi, struct tpm_tis_spi_phy *phy, 35 extern int cr50_spi_probe(struct spi_device *spi); 37 static inline int cr50_spi_probe(struct spi_device *spi) in cr50_spi_probe()
|
/drivers/char/tpm/st33zp24/ |
D | spi.c | 55 struct spi_device *spi_device; member 101 struct spi_device *dev = phy->spi_device; in st33zp24_spi_send() 144 struct spi_device *dev = phy->spi_device; in st33zp24_spi_read8_reg() 222 static int st33zp24_spi_probe(struct spi_device *dev) in st33zp24_spi_probe() 231 phy->spi_device = dev; in st33zp24_spi_probe() 245 static void st33zp24_spi_remove(struct spi_device *dev) in st33zp24_spi_remove()
|
/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 …]
|
/drivers/net/wan/ |
D | slic_ds26522.c | 29 static struct spi_device *g_spi; 37 static void slic_write(struct spi_device *spi, u16 addr, in slic_write() 52 static u8 slic_read(struct spi_device *spi, u16 addr) in slic_read() 68 static bool get_slic_product_code(struct spi_device *spi) in get_slic_product_code() 79 static void ds26522_e1_spec_config(struct spi_device *spi) in ds26522_e1_spec_config() 139 static int slic_ds26522_init_configure(struct spi_device *spi) in slic_ds26522_init_configure() 197 static void slic_ds26522_remove(struct spi_device *spi) in slic_ds26522_remove() 202 static int slic_ds26522_probe(struct spi_device *spi) in slic_ds26522_probe()
|
/drivers/net/can/spi/ |
D | hi311x.c | 147 struct spi_device *spi; 200 static int hi3110_spi_trans(struct spi_device *spi, int len) in hi3110_spi_trans() 222 static int hi3110_cmd(struct spi_device *spi, u8 command) in hi3110_cmd() 232 static u8 hi3110_read(struct spi_device *spi, u8 command) in hi3110_read() 244 static void hi3110_write(struct spi_device *spi, u8 reg, u8 val) in hi3110_write() 253 static void hi3110_hw_tx_frame(struct spi_device *spi, u8 *buf, int len) in hi3110_hw_tx_frame() 262 static void hi3110_hw_tx(struct spi_device *spi, struct can_frame *frame) in hi3110_hw_tx() 305 static void hi3110_hw_rx_frame(struct spi_device *spi, u8 *buf) in hi3110_hw_rx_frame() 314 static void hi3110_hw_rx(struct spi_device *spi) in hi3110_hw_rx() 360 static void hi3110_hw_sleep(struct spi_device *spi) in hi3110_hw_sleep() [all …]
|
D | mcp251x.c | 231 struct spi_device *spi; 264 static inline int mcp251x_is_##_model(struct spi_device *spi) \ 297 static int mcp251x_spi_trans(struct spi_device *spi, int len) in mcp251x_spi_trans() 318 static int mcp251x_spi_write(struct spi_device *spi, int len) in mcp251x_spi_write() 330 static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg) in mcp251x_read_reg() 348 static void mcp251x_read_2regs(struct spi_device *spi, u8 reg, u8 *v1, u8 *v2) in mcp251x_read_2regs() 369 static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val) in mcp251x_write_reg() 380 static void mcp251x_write_2regs(struct spi_device *spi, u8 reg, u8 v1, u8 v2) in mcp251x_write_2regs() 392 static void mcp251x_write_bits(struct spi_device *spi, u8 reg, in mcp251x_write_bits() 405 static u8 mcp251x_read_stat(struct spi_device *spi) in mcp251x_read_stat() [all …]
|
/drivers/net/ieee802154/ |
D | ca8210.c | 316 struct spi_device *spi; 618 struct spi_device *spi, 628 static void ca8210_reset_send(struct spi_device *spi, unsigned int ms) in ca8210_reset_send() 792 static void ca8210_remove(struct spi_device *spi_device); 869 struct spi_device *spi, in ca8210_spi_transfer() 953 struct spi_device *spi = device_ref; in ca8210_spi_exchange() 1073 struct spi_device *spi = device_ref; in tdme_setsfr_request_sync() 1114 struct spi_device *spi = device_ref; in tdme_chipinit() 1502 struct spi_device *spi = device_ref; in mlme_reset_request_sync() 2647 struct spi_device *spi_device, in ca8210_get_platform_data() argument [all …]
|
/drivers/base/regmap/ |
D | regmap-spi.c | 31 struct spi_device *spi = to_spi_device(dev); in regmap_spi_write() 41 struct spi_device *spi = to_spi_device(dev); in regmap_spi_gather_write() 62 struct spi_device *spi = to_spi_device(dev); in regmap_spi_async_write() 96 struct spi_device *spi = to_spi_device(dev); in regmap_spi_read() 112 static const struct regmap_bus *regmap_get_spi_bus(struct spi_device *spi, in regmap_get_spi_bus() 140 struct regmap *__regmap_init_spi(struct spi_device *spi, in __regmap_init_spi() 154 struct regmap *__devm_regmap_init_spi(struct spi_device *spi, in __devm_regmap_init_spi()
|
/drivers/misc/lis3lv02d/ |
D | lis3lv02d_spi.c | 27 struct spi_device *spi = lis3->bus_priv; in lis3_spi_read() 39 struct spi_device *spi = lis3->bus_priv; in lis3_spi_write() 68 static int lis302dl_spi_probe(struct spi_device *spi) in lis302dl_spi_probe() 99 static void lis302dl_spi_remove(struct spi_device *spi) in lis302dl_spi_remove() 111 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_suspend() 122 struct spi_device *spi = to_spi_device(dev); in lis3lv02d_spi_resume()
|
/drivers/video/backlight/ |
D | ili922x.c | 139 struct spi_device *spi; 149 static int ili922x_read_status(struct spi_device *spi, u16 *rs) in ili922x_read_status() 192 static int ili922x_read(struct spi_device *spi, u8 reg, u16 *rx) in ili922x_read() 246 static int ili922x_write(struct spi_device *spi, u8 reg, u16 value) in ili922x_write() 301 static void ili922x_reg_dump(struct spi_device *spi) in ili922x_reg_dump() 314 static inline void ili922x_reg_dump(struct spi_device *spi) {} in ili922x_reg_dump() 321 static void set_write_to_gram_reg(struct spi_device *spi) in set_write_to_gram_reg() 352 static int ili922x_poweron(struct spi_device *spi) in ili922x_poweron() 381 static int ili922x_poweroff(struct spi_device *spi) in ili922x_poweroff() 402 static void ili922x_display_init(struct spi_device *spi) in ili922x_display_init() [all …]
|