/drivers/i2c/busses/ |
D | i2c-i801.c | 266 char read_write, int hwpec) in i801_block_transaction_by_block() argument 274 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_by_block() 286 if (read_write == I2C_SMBUS_READ) { in i801_block_transaction_by_block() 299 char read_write, int command, in i801_block_transaction_byte_by_byte() argument 314 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_byte_by_byte() 320 if (i == len && read_write == I2C_SMBUS_READ) { in i801_block_transaction_byte_by_byte() 327 && read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte() 350 if (i == 1 && read_write == I2C_SMBUS_READ in i801_block_transaction_byte_by_byte() 367 if (read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte() 369 if (read_write == I2C_SMBUS_WRITE && i+1 <= len) in i801_block_transaction_byte_by_byte() [all …]
|
D | i2c-nforce2-s4985.c | 50 unsigned short flags, char read_write, in nforce2_access_virt0() argument 62 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_virt0() 76 unsigned short flags, char read_write, in nforce2_access_channel() argument 100 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_channel() 109 unsigned short flags, char read_write, in nforce2_access_virt1() argument 114 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt1() 119 unsigned short flags, char read_write, in nforce2_access_virt2() argument 124 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt2() 129 unsigned short flags, char read_write, in nforce2_access_virt3() argument 134 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt3() [all …]
|
D | i2c-amd756-s4882.c | 52 unsigned short flags, char read_write, in amd756_access_virt0() argument 65 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_virt0() 80 unsigned short flags, char read_write, in amd756_access_channel() argument 105 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_channel() 114 unsigned short flags, char read_write, in amd756_access_virt1() argument 119 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt1() 124 unsigned short flags, char read_write, in amd756_access_virt2() argument 129 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt2() 134 unsigned short flags, char read_write, in amd756_access_virt3() argument 139 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt3() [all …]
|
D | i2c-isch.c | 155 unsigned short flags, char read_write, in sch_access() argument 167 (read_write)?"READ":"WRITE"); in sch_access() 170 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 174 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 175 if (read_write == I2C_SMBUS_WRITE) in sch_access() 180 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 182 if (read_write == I2C_SMBUS_WRITE) in sch_access() 187 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 189 if (read_write == I2C_SMBUS_WRITE) { in sch_access() 196 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() [all …]
|
D | i2c-sis630.c | 232 static int sis630_block_data(struct i2c_adapter *adap, union i2c_smbus_data *data, int read_write) in sis630_block_data() argument 237 if (read_write == I2C_SMBUS_WRITE) { in sis630_block_data() 318 unsigned short flags, char read_write, in sis630_access() argument 325 sis630_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 329 sis630_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 330 if (read_write == I2C_SMBUS_WRITE) in sis630_access() 335 sis630_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 337 if (read_write == I2C_SMBUS_WRITE) in sis630_access() 343 sis630_write(SMB_ADDR,((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 345 if (read_write == I2C_SMBUS_WRITE) { in sis630_access() [all …]
|
D | i2c-sis96x.c | 164 unsigned short flags, char read_write, in sis96x_access() argument 171 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 176 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 177 if (read_write == I2C_SMBUS_WRITE) in sis96x_access() 183 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 185 if (read_write == I2C_SMBUS_WRITE) in sis96x_access() 192 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 194 if (read_write == I2C_SMBUS_WRITE) { in sis96x_access() 212 ((read_write == I2C_SMBUS_WRITE) || (size == SIS96x_QUICK))) in sis96x_access()
|
D | i2c-amd756.c | 195 unsigned short flags, char read_write, in amd756_access() argument 203 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 208 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 210 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 215 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 218 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 223 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 226 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 231 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 234 if (read_write == I2C_SMBUS_WRITE) { in amd756_access() [all …]
|
D | i2c-ali1535.c | 341 unsigned short flags, char read_write, u8 command, in ali1535_access() argument 365 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 371 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 375 if (read_write == I2C_SMBUS_WRITE) in ali1535_access() 379 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 384 if (read_write == I2C_SMBUS_WRITE) in ali1535_access() 388 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 393 if (read_write == I2C_SMBUS_WRITE) { in ali1535_access() 399 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 404 if (read_write == I2C_SMBUS_WRITE) { in ali1535_access() [all …]
|
D | i2c-piix4.c | 305 unsigned short flags, char read_write, in piix4_access() argument 313 outb_p((addr << 1) | read_write, in piix4_access() 318 outb_p((addr << 1) | read_write, in piix4_access() 320 if (read_write == I2C_SMBUS_WRITE) in piix4_access() 325 outb_p((addr << 1) | read_write, in piix4_access() 328 if (read_write == I2C_SMBUS_WRITE) in piix4_access() 333 outb_p((addr << 1) | read_write, in piix4_access() 336 if (read_write == I2C_SMBUS_WRITE) { in piix4_access() 343 outb_p((addr << 1) | read_write, in piix4_access() 346 if (read_write == I2C_SMBUS_WRITE) { in piix4_access() [all …]
|
D | i2c-ali15x3.c | 346 unsigned short flags, char read_write, u8 command, in ali15x3_access() argument 369 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 374 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 376 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access() 381 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 384 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access() 389 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 392 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access() 399 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 402 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access() [all …]
|
D | i2c-bfin-twi.c | 37 char read_write; member 212 iface->read_write = I2C_SMBUS_READ; in bfin_twi_handle_interrupt() 214 iface->read_write = I2C_SMBUS_WRITE; in bfin_twi_handle_interrupt() 235 MEN | ((iface->read_write == I2C_SMBUS_READ) ? in bfin_twi_handle_interrupt() 326 iface->read_write = I2C_SMBUS_READ; in bfin_twi_master_xfer() 328 iface->read_write = I2C_SMBUS_WRITE; in bfin_twi_master_xfer() 356 ((iface->read_write == I2C_SMBUS_READ) ? MDIR : 0) | in bfin_twi_master_xfer() 375 unsigned short flags, char read_write, in bfin_twi_smbus_xfer() argument 400 if (read_write == I2C_SMBUS_READ) in bfin_twi_smbus_xfer() 409 if (read_write == I2C_SMBUS_READ) { in bfin_twi_smbus_xfer() [all …]
|
D | i2c-amd8111.c | 193 unsigned short flags, char read_write, u8 command, int size, in amd8111_access() argument 200 protocol = (read_write == I2C_SMBUS_READ) ? AMD_SMB_PRTCL_READ in amd8111_access() 207 read_write = I2C_SMBUS_WRITE; in amd8111_access() 211 if (read_write == I2C_SMBUS_WRITE) in amd8111_access() 218 if (read_write == I2C_SMBUS_WRITE) in amd8111_access() 225 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 236 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 252 if (read_write == I2C_SMBUS_WRITE) in amd8111_access() 264 read_write = I2C_SMBUS_READ; in amd8111_access() 276 read_write = I2C_SMBUS_READ; in amd8111_access() [all …]
|
D | i2c-sis5595.c | 291 unsigned short flags, char read_write, in sis5595_access() argument 298 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 302 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 303 if (read_write == I2C_SMBUS_WRITE) in sis5595_access() 308 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 310 if (read_write == I2C_SMBUS_WRITE) in sis5595_access() 316 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 318 if (read_write == I2C_SMBUS_WRITE) { in sis5595_access() 337 ((read_write == I2C_SMBUS_WRITE) || (size == SIS5595_QUICK))) in sis5595_access()
|
D | i2c-viapro.c | 208 unsigned short flags, char read_write, u8 command, in vt596_access() argument 219 if (read_write == I2C_SMBUS_WRITE) in vt596_access() 225 if (read_write == I2C_SMBUS_WRITE) in vt596_access() 231 if (read_write == I2C_SMBUS_WRITE) { in vt596_access() 246 if (read_write == I2C_SMBUS_READ) in vt596_access() 251 if (read_write == I2C_SMBUS_WRITE) { in vt596_access() 267 outb_p(((addr & 0x7f) << 1) | read_write, SMBHSTADD); in vt596_access() 274 read_write = I2C_SMBUS_READ; in vt596_access() 276 if ((read_write == I2C_SMBUS_WRITE) || (size == VT596_QUICK)) in vt596_access()
|
D | i2c-pasemi.c | 178 u16 addr, unsigned short flags, char read_write, u8 command, in pasemi_smb_xfer() argument 188 read_flag = read_write == I2C_SMBUS_READ; in pasemi_smb_xfer() 199 if (read_write) in pasemi_smb_xfer() 207 if (read_write) { in pasemi_smb_xfer() 217 if (read_write) { in pasemi_smb_xfer() 228 if (read_write) { in pasemi_smb_xfer() 245 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer() 255 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer() 278 if (read_write == I2C_SMBUS_WRITE) in pasemi_smb_xfer()
|
D | i2c-nforce2.c | 187 unsigned short flags, char read_write, in nforce2_access() argument 195 protocol = (read_write == I2C_SMBUS_READ) ? NVIDIA_SMB_PRTCL_READ : in nforce2_access() 203 read_write = I2C_SMBUS_WRITE; in nforce2_access() 207 if (read_write == I2C_SMBUS_WRITE) in nforce2_access() 214 if (read_write == I2C_SMBUS_WRITE) in nforce2_access() 221 if (read_write == I2C_SMBUS_WRITE) { in nforce2_access() 230 if (read_write == I2C_SMBUS_WRITE) { in nforce2_access() 259 if (read_write == I2C_SMBUS_WRITE) in nforce2_access()
|
D | i2c-sibyte.c | 41 unsigned short flags, char read_write, in smbus_xfer() argument 54 (read_write == I2C_SMBUS_READ ? M_SMB_QDATA : 0) | in smbus_xfer() 58 if (read_write == I2C_SMBUS_READ) { in smbus_xfer() 70 if (read_write == I2C_SMBUS_READ) { in smbus_xfer() 83 if (read_write == I2C_SMBUS_READ) { in smbus_xfer()
|
D | i2c-stub.c | 48 char read_write, u8 command, int size, union i2c_smbus_data * data) in stub_xfer() argument 72 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 88 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 106 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer()
|
D | i2c-taos-evm.c | 69 unsigned short flags, char read_write, u8 command, in taos_smbus_xfer() argument 87 if (read_write == I2C_SMBUS_WRITE) in taos_smbus_xfer() 93 if (read_write == I2C_SMBUS_WRITE) in taos_smbus_xfer() 121 serio_write(serio, read_write == I2C_SMBUS_WRITE ? '>' : '<'); in taos_smbus_xfer() 138 if (read_write == I2C_SMBUS_WRITE) { in taos_smbus_xfer()
|
D | i2c-highlander.c | 279 unsigned short flags, char read_write, in highlander_i2c_smbus_xfer() argument 284 int read = read_write & I2C_SMBUS_READ; in highlander_i2c_smbus_xfer() 290 addr, command, read_write, size); in highlander_i2c_smbus_xfer()
|
D | i2c-powermac.c | 43 char read_write, in i2c_powermac_smbus_xfer() argument 50 int read = (read_write == I2C_SMBUS_READ); in i2c_powermac_smbus_xfer()
|
/drivers/i2c/ |
D | i2c-dev.c | 313 if ((data_arg.read_write != I2C_SMBUS_READ) && in i2cdev_ioctl_smbus() 314 (data_arg.read_write != I2C_SMBUS_WRITE)) { in i2cdev_ioctl_smbus() 317 data_arg.read_write); in i2cdev_ioctl_smbus() 325 (data_arg.read_write == I2C_SMBUS_WRITE))) in i2cdev_ioctl_smbus() 328 client->flags, data_arg.read_write, in i2cdev_ioctl_smbus() 349 (data_arg.read_write == I2C_SMBUS_WRITE)) { in i2cdev_ioctl_smbus() 357 if (data_arg.read_write == I2C_SMBUS_READ) in i2cdev_ioctl_smbus() 361 data_arg.read_write, data_arg.command, data_arg.size, &temp); in i2cdev_ioctl_smbus() 364 (data_arg.read_write == I2C_SMBUS_READ))) { in i2cdev_ioctl_smbus()
|
D | i2c-core.c | 1812 char read_write, u8 command, int size, in i2c_smbus_xfer_emulated() argument 1821 int num = read_write == I2C_SMBUS_READ?2:1; in i2c_smbus_xfer_emulated() 1834 msg[0].flags = flags | (read_write == I2C_SMBUS_READ ? in i2c_smbus_xfer_emulated() 1839 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated() 1846 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated() 1854 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated() 1864 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated() 1871 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated() 1889 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated() 1904 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated() [all …]
|
/drivers/acpi/acpica/ |
D | exfldio.c | 58 acpi_integer * value, u32 read_write); 363 acpi_integer * value, u32 read_write) in acpi_ex_field_datum_io() argument 370 if (read_write == ACPI_READ) { in acpi_ex_field_datum_io() 406 if (read_write == ACPI_READ) { in acpi_ex_field_datum_io() 471 value, read_write); in acpi_ex_field_datum_io() 502 if (read_write == ACPI_READ) { in acpi_ex_field_datum_io() 536 if (read_write == ACPI_READ) { in acpi_ex_field_datum_io()
|
/drivers/staging/go7007/ |
D | go7007-i2c.c | 225 unsigned short flags, char read_write, in go7007_smbus_xfer() argument 232 return go7007_i2c_xfer(go, addr, read_write == I2C_SMBUS_READ, command, in go7007_smbus_xfer()
|