Home
last modified time | relevance | path

Searched refs:spi_write (Results 1 – 25 of 137) sorted by relevance

123456

/openbmc/u-boot/board/renesas/sh7753evb/
H A Dspi-boot.c59 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
74 spi_write(0x00, CR3); in spi_reset()
75 spi_write(0x02, CR1); in spi_reset()
80 spi_write(0x00, CR1); in spi_reset()
82 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
83 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
85 spi_write(0, SPIDMCOR); in spi_reset()
91 spi_write(CR7_IDX_OR12, CR7); in spi_read_flash()
94 spi_write(M25_READ_4BYTE, TBR); in spi_read_flash()
95 spi_write((addr >> 24) & 0xFF, TBR); /* ADDR31-24 */ in spi_read_flash()
[all …]
/openbmc/u-boot/board/renesas/sh7752evb/
H A Dspi-boot.c57 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
69 spi_write(0x00, CR3); in spi_reset()
70 spi_write(0x02, CR1); in spi_reset()
75 spi_write(0x00, CR1); in spi_reset()
77 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
78 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
80 spi_write(0, SPIDMCOR); in spi_reset()
86 spi_write(M25_READ, TBR); in spi_read_flash()
87 spi_write((addr >> 16) & 0xFF, TBR); in spi_read_flash()
88 spi_write((addr >> 8) & 0xFF, TBR); in spi_read_flash()
[all …]
/openbmc/u-boot/board/renesas/sh7757lcr/
H A Dspi-boot.c60 #define spi_write(val, addr) (*(volatile unsigned long *)(addr)) = val macro
69 spi_write(0xfe, CR1); in spi_reset()
71 spi_write(0, SPIDMCOR); in spi_reset()
72 spi_write(0x00, CR1); in spi_reset()
74 spi_write(spi_read(CR2) | SPI_RSTF, CR2); /* fifo reset */ in spi_reset()
75 spi_write(spi_read(CR2) & ~SPI_RSTF, CR2); in spi_reset()
81 spi_write(M25_READ, TBR); in spi_read_flash()
82 spi_write((addr >> 16) & 0xFF, TBR); in spi_read_flash()
83 spi_write((addr >> 8) & 0xFF, TBR); in spi_read_flash()
84 spi_write(addr & 0xFF, TBR); in spi_read_flash()
[all …]
/openbmc/linux/drivers/video/backlight/
H A Dl4f00242t03.c82 spi_write(spi, (const u8 *)cmd, ARRAY_SIZE(cmd) * sizeof(u16)); in l4f00242t03_lcd_init()
121 spi_write(spi, (const u8 *)&slpout, sizeof(u16)); in l4f00242t03_lcd_power_set()
123 spi_write(spi, (const u8 *)&dison, sizeof(u16)); in l4f00242t03_lcd_power_set()
135 spi_write(spi, (const u8 *)&disoff, sizeof(u16)); in l4f00242t03_lcd_power_set()
137 spi_write(spi, (const u8 *)&slpin, sizeof(u16)); in l4f00242t03_lcd_power_set()
150 spi_write(spi, (const u8 *)&disoff, sizeof(u16)); in l4f00242t03_lcd_power_set()
H A Dlms283gf05.c113 spi_write(spi, buf, 3); in lms283gf05_toggle()
118 spi_write(spi, buf, 3); in lms283gf05_toggle()
H A Dotm3225a.c170 spi_write(spi, buf, 3); in otm3225a_write()
176 spi_write(spi, buf, 3); in otm3225a_write()
/openbmc/linux/drivers/misc/
H A Dlattice-ecp3-config.c132 spi_write(spi, txbuf, 4); in firmware_load()
135 spi_write(spi, txbuf, 4); in firmware_load()
138 spi_write(spi, txbuf, 4); in firmware_load()
162 spi_write(spi, buffer, fw->size + 8); in firmware_load()
165 spi_write(spi, txbuf, 4); in firmware_load()
H A Dad525x_dpot-spi.c18 return spi_write(client, &data, 1); in write8()
25 return spi_write(client, data, 2); in write16()
32 return spi_write(client, data, 3); in write24()
H A Dgehc-achc.c120 ret = spi_write(spi, &cmd, 1); in ezport_soft_reset()
133 ret = spi_write(spi, &cmd, 1); in ezport_send_simple()
183 ret = spi_write(spi, &cmd, 1); in ezport_bulk_erase()
208 ret = spi_write(spi, query, sizeof(query)); in ezport_section_erase()
/openbmc/linux/drivers/iio/dac/
H A Dad5592r.c39 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_write_dac()
49 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_read_adc()
76 return spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_write()
87 ret = spi_write(spi, &st->spi_msg, sizeof(st->spi_msg)); in ad5592r_reg_read()
/openbmc/linux/drivers/net/dsa/b53/
H A Db53_spi.c84 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_set_page()
212 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write8()
229 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write16()
246 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write32()
263 return spi_write(spi, txbuf, sizeof(txbuf) - 2); in b53_spi_write48()
280 return spi_write(spi, txbuf, sizeof(txbuf)); in b53_spi_write64()
/openbmc/linux/drivers/mtd/devices/
H A Dsst25l.c97 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
102 err = spi_write(flash->spi, command, 1); in sst25l_write_enable()
108 err = spi_write(flash->spi, command, 2); in sst25l_write_enable()
155 err = spi_write(flash->spi, command, 4); in sst25l_erase_sector()
276 ret = spi_write(flash->spi, command, 5); in sst25l_write()
292 ret = spi_write(flash->spi, command, 2); in sst25l_write()
H A Dmchp48l640.c126 ret = spi_write(flash->spi, cmd, 1); in mchp48l640_write_prepare()
154 ret = spi_write(flash->spi, cmd, 2); in mchp48l640_set_mode()
190 ret = spi_write(flash->spi, cmd, cmdlen + len); in mchp48l640_write_page()
/openbmc/linux/drivers/net/ethernet/asix/
H A Dax88796c_spi.c25 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 1); in axspi_wakeup()
74 return spi_write(ax_spi->spi, data, len); in axspi_write_txq()
110 ret = spi_write(ax_spi->spi, ax_spi->cmd_buf, 4); in axspi_write_reg()
/openbmc/linux/drivers/rtc/
H A Drtc-m41t94.c53 return spi_write(spi, buf, 8); in m41t94_set_time()
69 spi_write(spi, buf, 2); in m41t94_read_time()
79 spi_write(spi, buf, 2); in m41t94_read_time()
/openbmc/linux/drivers/iio/adc/
H A Dmax1027.c310 return spi_write(st->spi, &st->reg, 1); in max1027_configure_chans_and_start()
329 return spi_write(st->spi, &st->reg, 1); in max1027_enable_trigger()
348 ret = spi_write(st->spi, &st->reg, 1); in max1027_read_single_value()
432 return spi_write(st->spi, val, 1); in max1027_debugfs_reg_access()
615 ret = spi_write(st->spi, &st->reg, 1); in max1027_probe()
623 ret = spi_write(st->spi, &st->reg, 1); in max1027_probe()
H A Dad7949.c103 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg()
107 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buffer, 2); in ad7949_spi_write_cfg()
112 ret = spi_write(ad7949_adc->spi, &ad7949_adc->buf8b, 2); in ad7949_spi_write_cfg()
/openbmc/linux/drivers/video/fbdev/mmp/panel/
H A Dtpo_tj032md01bw.c83 ret = spi_write(plat->spi, init, sizeof(init)); in tpohvga_onoff()
87 ret = spi_write(plat->spi, poweroff, sizeof(poweroff)); in tpohvga_onoff()
/openbmc/linux/drivers/staging/iio/addac/
H A Dadt7316-spi.c37 ret = spi_write(spi_dev, cmd, 2); in adt7316_spi_multi_read()
68 ret = spi_write(spi_dev, buf, count + 2); in adt7316_spi_multi_write()
/openbmc/linux/drivers/leds/
H A Dleds-cr0014114.c89 ret = spi_write(priv->spi, &cmd, sizeof(cmd)); in cr0014114_recount()
97 ret = spi_write(priv->spi, &cmd, sizeof(cmd)); in cr0014114_recount()
136 ret = spi_write(priv->spi, priv->buf, priv->count + 2); in cr0014114_sync()
/openbmc/linux/drivers/hwmon/
H A Dadt7310.c54 return spi_write(spi, buf, sizeof(buf)); in adt7310_spi_write_word()
69 return spi_write(spi, buf, sizeof(buf)); in adt7310_spi_write_byte()
/openbmc/linux/drivers/iio/chemical/
H A Dbme680_spi.c52 ret = spi_write(spi, buf, 2); in bme680_regmap_spi_select_page()
83 return spi_write(spi, buf, 2); in bme680_regmap_spi_write()
/openbmc/linux/drivers/mfd/
H A Dmc13xxx-spi.c100 spi_write(spi, data, count); in mc13xxx_spi_write()
102 return spi_write(spi, data, count); in mc13xxx_spi_write()
/openbmc/linux/drivers/iio/potentiometer/
H A Dmax5481.c73 return spi_write(spi, data->msg, 3); in max5481_write_cmd()
77 return spi_write(spi, data->msg, 1); in max5481_write_cmd()
/openbmc/linux/drivers/fpga/
H A Dice40-spi.c107 return spi_write(priv->dev, buf, count); in ice40_fpga_ops_write()
125 return spi_write(dev, padding, sizeof(padding)); in ice40_fpga_ops_write_complete()

123456