/external/syslinux/gpxe/src/drivers/bitbash/ |
D | i2c_bit.c | 54 static void setscl ( struct bit_basher *basher, int state ) { in setscl() argument 56 write_bit ( basher, I2C_BIT_SCL, state ); in setscl() 66 static void setsda ( struct bit_basher *basher, int state ) { in setsda() argument 68 write_bit ( basher, I2C_BIT_SDA, state ); in setsda() 78 static int getsda ( struct bit_basher *basher ) { in getsda() argument 80 state = read_bit ( basher, I2C_BIT_SDA ); in getsda() 90 static void i2c_start ( struct bit_basher *basher ) { in i2c_start() argument 91 setscl ( basher, 1 ); in i2c_start() 92 setsda ( basher, 0 ); in i2c_start() 93 setscl ( basher, 0 ); in i2c_start() [all …]
|
D | spi_bit.c | 60 struct bit_basher *basher = &spibit->basher; in spi_bit_set_slave_select() local 67 write_bit ( basher, SPI_BIT_SS ( slave ), state ); in spi_bit_set_slave_select() 90 struct bit_basher *basher = &spibit->basher; in spi_bit_transfer() local 122 write_bit ( basher, SPI_BIT_MOSI, bit ); in spi_bit_transfer() 127 bit = read_bit ( basher, SPI_BIT_MISO ); in spi_bit_transfer() 140 write_bit ( basher, SPI_BIT_SCLK, sclk ); in spi_bit_transfer() 166 write_bit ( &spibit->basher, SPI_BIT_SCLK, in spi_bit_rw() 222 assert ( &spibit->basher.op->read != NULL ); in init_spi_bit_basher() 223 assert ( &spibit->basher.op->write != NULL ); in init_spi_bit_basher()
|
D | bitbash.c | 39 void write_bit ( struct bit_basher *basher, unsigned int bit_id, in write_bit() argument 41 basher->op->write ( basher, bit_id, ( data ? -1UL : 0 ) ); in write_bit() 55 int read_bit ( struct bit_basher *basher, unsigned int bit_id ) { in read_bit() argument 56 return ( basher->op->read ( basher, bit_id ) ? -1UL : 0 ); in read_bit()
|
/external/syslinux/gpxe/src/include/gpxe/ |
D | bitbash.h | 29 void ( * write ) ( struct bit_basher *basher, unsigned int bit_id, 39 int ( * read ) ( struct bit_basher *basher, unsigned int bit_id ); 48 extern void write_bit ( struct bit_basher *basher, unsigned int bit_id, 50 extern int read_bit ( struct bit_basher *basher, unsigned int bit_id );
|
D | spi_bit.h | 20 struct bit_basher basher; member
|
D | i2c.h | 95 struct bit_basher basher; member
|
/external/syslinux/gpxe/src/drivers/net/ |
D | rtl8139.c | 224 static int rtl_spi_read_bit ( struct bit_basher *basher, in rtl_spi_read_bit() argument 226 struct rtl8139_nic *rtl = container_of ( basher, struct rtl8139_nic, in rtl_spi_read_bit() 227 spibit.basher ); in rtl_spi_read_bit() 235 static void rtl_spi_write_bit ( struct bit_basher *basher, in rtl_spi_write_bit() argument 237 struct rtl8139_nic *rtl = container_of ( basher, struct rtl8139_nic, in rtl_spi_write_bit() 238 spibit.basher ); in rtl_spi_write_bit() 275 rtl->spibit.basher.op = &rtl_basher_ops; in rtl_init_eeprom()
|
D | natsemi.c | 104 static int natsemi_spi_read_bit ( struct bit_basher *basher, in natsemi_spi_read_bit() argument 106 struct natsemi_private *np = container_of ( basher, struct natsemi_private, in natsemi_spi_read_bit() 107 spibit.basher ); in natsemi_spi_read_bit() 115 static void natsemi_spi_write_bit ( struct bit_basher *basher, in natsemi_spi_write_bit() argument 117 struct natsemi_private *np = container_of ( basher, struct natsemi_private, in natsemi_spi_write_bit() 118 spibit.basher ); in natsemi_spi_write_bit() 151 np->spibit.basher.op = &natsemi_basher_ops; in natsemi_init_eeprom()
|
D | eepro100.c | 491 static int ifec_spi_read_bit ( struct bit_basher *basher, in ifec_spi_read_bit() argument 495 container_of ( basher, struct ifec_private, spi.basher ); in ifec_spi_read_bit() 516 static void ifec_spi_write_bit ( struct bit_basher *basher, in ifec_spi_write_bit() argument 521 container_of ( basher, struct ifec_private, spi.basher ); in ifec_spi_write_bit() 552 priv->spi.basher.op = &ifec_basher_ops; in ifec_init_eeprom()
|
D | etherfabric.c | 1510 falcon_i2c_bit_write ( struct bit_basher *basher, unsigned int bit_id, in falcon_i2c_bit_write() argument 1513 struct efab_nic *efab = container_of ( basher, struct efab_nic, in falcon_i2c_bit_write() 1514 i2c_bb.basher ); in falcon_i2c_bit_write() 1534 falcon_i2c_bit_read ( struct bit_basher *basher, unsigned int bit_id ) in falcon_i2c_bit_read() argument 1536 struct efab_nic *efab = container_of ( basher, struct efab_nic, in falcon_i2c_bit_read() 1537 i2c_bb.basher ); in falcon_i2c_bit_read()
|
/external/syslinux/gpxe/src/drivers/net/rtl818x/ |
D | rtl818x.c | 601 static int rtl818x_spi_read_bit(struct bit_basher *basher, unsigned int bit_id) in rtl818x_spi_read_bit() argument 603 struct rtl818x_priv *priv = container_of(basher, struct rtl818x_priv, in rtl818x_spi_read_bit() 604 spibit.basher); in rtl818x_spi_read_bit() 610 static void rtl818x_spi_write_bit(struct bit_basher *basher, in rtl818x_spi_write_bit() argument 613 struct rtl818x_priv *priv = container_of(basher, struct rtl818x_priv, in rtl818x_spi_write_bit() 614 spibit.basher); in rtl818x_spi_write_bit() 729 priv->spibit.basher.op = &rtl818x_basher_ops; in rtl818x_probe()
|
/external/syslinux/gpxe/src/drivers/infiniband/ |
D | linda.c | 1525 static int linda_i2c_read_bit ( struct bit_basher *basher, in linda_i2c_read_bit() argument 1528 container_of ( basher, struct linda, i2c.basher ); in linda_i2c_read_bit() 1549 static void linda_i2c_write_bit ( struct bit_basher *basher, in linda_i2c_write_bit() argument 1552 container_of ( basher, struct linda, i2c.basher ); in linda_i2c_write_bit()
|