Home
last modified time | relevance | path

Searched refs:i2cdev (Results 1 – 2 of 2) sorted by relevance

/external/syslinux/gpxe/src/include/gpxe/
Di2c.h68 int ( * read ) ( struct i2c_interface *i2c, struct i2c_device *i2cdev,
81 int ( * write ) ( struct i2c_interface *i2c, struct i2c_device *i2cdev,
136 struct i2c_device *i2cdev ) { in i2c_check_presence() argument
137 return i2c->write ( i2c, i2cdev, 0, NULL, 0 ); in i2c_check_presence()
149 init_i2c_eeprom ( struct i2c_device *i2cdev, unsigned int dev_addr ) { in init_i2c_eeprom() argument
150 i2cdev->dev_addr = dev_addr; in init_i2c_eeprom()
151 i2cdev->dev_addr_len = 1; in init_i2c_eeprom()
152 i2cdev->word_addr_len = 1; in init_i2c_eeprom()
161 init_at24c11 ( struct i2c_device *i2cdev ) { in init_at24c11() argument
166 i2cdev->dev_addr = 0; in init_at24c11()
[all …]
/external/syslinux/gpxe/src/drivers/bitbash/
Di2c_bit.c198 static int i2c_select ( struct bit_basher *basher, struct i2c_device *i2cdev, in i2c_select() argument
208 address = ( ( ( i2cdev->dev_addr | in i2c_select()
209 ( offset >> ( 8 * i2cdev->word_addr_len ) ) ) << 1 ) in i2c_select()
213 for ( shift = ( 8 * ( i2cdev->dev_addr_len - 1 ) ) ; in i2c_select()
277 struct i2c_device *i2cdev, unsigned int offset, in i2c_bit_read() argument
285 basher, i2cdev->dev_addr ); in i2c_bit_read()
290 if ( ( rc = i2c_select ( basher, i2cdev, offset, in i2c_bit_read()
303 if ( ( rc = i2c_select ( basher, i2cdev, offset, in i2c_bit_read()
331 struct i2c_device *i2cdev, unsigned int offset, in i2c_bit_write() argument
339 basher, i2cdev->dev_addr ); in i2c_bit_write()
[all …]