/linux-6.6.21/include/trace/events/ |
D | smbus.h | 26 char read_write, u8 command, int protocol, 28 TP_ARGS(adap, addr, flags, read_write, command, protocol, data), 29 TP_CONDITION(read_write == I2C_SMBUS_WRITE || 94 char read_write, u8 command, int protocol), 95 TP_ARGS(adap, addr, flags, read_write, command, protocol), 96 TP_CONDITION(!(read_write == I2C_SMBUS_WRITE || 136 char read_write, u8 command, int protocol, 138 TP_ARGS(adap, addr, flags, read_write, command, protocol, data, res), 139 TP_CONDITION(res >= 0 && read_write == I2C_SMBUS_READ), 202 char read_write, u8 command, int protocol, [all …]
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-amd756-s4882.c | 39 unsigned short flags, char read_write, in amd756_access_virt0() argument 52 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_virt0() 67 unsigned short flags, char read_write, in amd756_access_channel() argument 92 error = amd756_smbus.algo->smbus_xfer(adap, addr, flags, read_write, in amd756_access_channel() 101 unsigned short flags, char read_write, in amd756_access_virt1() argument 106 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt1() 111 unsigned short flags, char read_write, in amd756_access_virt2() argument 116 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt2() 121 unsigned short flags, char read_write, in amd756_access_virt3() argument 126 return amd756_access_channel(adap, addr, flags, read_write, command, in amd756_access_virt3() [all …]
|
D | i2c-nforce2-s4985.c | 37 unsigned short flags, char read_write, in nforce2_access_virt0() argument 49 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_virt0() 63 unsigned short flags, char read_write, in nforce2_access_channel() argument 87 error = nforce2_smbus->algo->smbus_xfer(adap, addr, flags, read_write, in nforce2_access_channel() 96 unsigned short flags, char read_write, in nforce2_access_virt1() argument 101 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt1() 106 unsigned short flags, char read_write, in nforce2_access_virt2() argument 111 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt2() 116 unsigned short flags, char read_write, in nforce2_access_virt3() argument 121 return nforce2_access_channel(adap, addr, flags, read_write, command, in nforce2_access_virt3() [all …]
|
D | i2c-isch.c | 139 unsigned short flags, char read_write, in sch_access() argument 164 (read_write)?"READ":"WRITE"); in sch_access() 167 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 171 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 172 if (read_write == I2C_SMBUS_WRITE) in sch_access() 177 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 179 if (read_write == I2C_SMBUS_WRITE) in sch_access() 184 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() 186 if (read_write == I2C_SMBUS_WRITE) { in sch_access() 193 outb((addr << 1) | read_write, SMBHSTADD); in sch_access() [all …]
|
D | i2c-sis96x.c | 151 unsigned short flags, char read_write, in sis96x_access() argument 158 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 163 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 164 if (read_write == I2C_SMBUS_WRITE) in sis96x_access() 170 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 172 if (read_write == I2C_SMBUS_WRITE) in sis96x_access() 179 sis96x_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis96x_access() 181 if (read_write == I2C_SMBUS_WRITE) { in sis96x_access() 199 ((read_write == I2C_SMBUS_WRITE) || (size == SIS96x_QUICK))) in sis96x_access()
|
D | i2c-amd756.c | 182 unsigned short flags, char read_write, in amd756_access() argument 190 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 195 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 197 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 202 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 205 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 210 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 213 if (read_write == I2C_SMBUS_WRITE) in amd756_access() 218 outw_p(((addr & 0x7f) << 1) | (read_write & 0x01), in amd756_access() 221 if (read_write == I2C_SMBUS_WRITE) { in amd756_access() [all …]
|
D | i2c-sis630.c | 230 union i2c_smbus_data *data, int read_write) in sis630_block_data() argument 235 if (read_write == I2C_SMBUS_WRITE) { in sis630_block_data() 324 unsigned short flags, char read_write, in sis630_access() argument 332 ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 337 ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 338 if (read_write == I2C_SMBUS_WRITE) in sis630_access() 344 ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 346 if (read_write == I2C_SMBUS_WRITE) in sis630_access() 353 ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis630_access() 355 if (read_write == I2C_SMBUS_WRITE) { in sis630_access() [all …]
|
D | i2c-ali1535.c | 342 unsigned short flags, char read_write, u8 command, in ali1535_access() argument 366 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 372 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 376 if (read_write == I2C_SMBUS_WRITE) in ali1535_access() 380 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 385 if (read_write == I2C_SMBUS_WRITE) in ali1535_access() 389 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 394 if (read_write == I2C_SMBUS_WRITE) { in ali1535_access() 400 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali1535_access() 405 if (read_write == I2C_SMBUS_WRITE) { in ali1535_access() [all …]
|
D | i2c-ali15x3.c | 334 unsigned short flags, char read_write, u8 command, in ali15x3_access() argument 357 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 362 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 364 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access() 369 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 372 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access() 377 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 380 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access() 387 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access() 390 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access() [all …]
|
D | i2c-i801.c | 485 char read_write, int command) in i801_block_transaction_by_block() argument 503 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_by_block() 515 if (read_write == I2C_SMBUS_READ || in i801_block_transaction_by_block() 645 char read_write, int command) in i801_block_transaction_byte_by_byte() argument 658 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_byte_by_byte() 664 read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte() 670 priv->is_read = (read_write == I2C_SMBUS_READ); in i801_block_transaction_byte_by_byte() 684 if (len == 1 && read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte() 693 if (i == 1 && read_write == I2C_SMBUS_READ in i801_block_transaction_byte_by_byte() 711 if (read_write == I2C_SMBUS_READ) { in i801_block_transaction_byte_by_byte() [all …]
|
D | i2c-amd8111.c | 190 unsigned short flags, char read_write, u8 command, int size, in amd8111_access() argument 197 protocol = (read_write == I2C_SMBUS_READ) ? AMD_SMB_PRTCL_READ in amd8111_access() 204 read_write = I2C_SMBUS_WRITE; in amd8111_access() 208 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 221 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 234 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 251 if (read_write == I2C_SMBUS_WRITE) { in amd8111_access() 277 if (read_write == I2C_SMBUS_WRITE) in amd8111_access() 301 read_write = I2C_SMBUS_READ; in amd8111_access() 320 read_write = I2C_SMBUS_READ; in amd8111_access() [all …]
|
D | i2c-sis5595.c | 279 unsigned short flags, char read_write, in sis5595_access() argument 286 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 290 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 291 if (read_write == I2C_SMBUS_WRITE) in sis5595_access() 296 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 298 if (read_write == I2C_SMBUS_WRITE) in sis5595_access() 304 sis5595_write(SMB_ADDR, ((addr & 0x7f) << 1) | (read_write & 0x01)); in sis5595_access() 306 if (read_write == I2C_SMBUS_WRITE) { in sis5595_access() 325 ((read_write == I2C_SMBUS_WRITE) || (size == SIS5595_QUICK))) in sis5595_access()
|
D | i2c-viapro.c | 191 unsigned short flags, char read_write, u8 command, in vt596_access() argument 202 if (read_write == I2C_SMBUS_WRITE) in vt596_access() 208 if (read_write == I2C_SMBUS_WRITE) in vt596_access() 214 if (read_write == I2C_SMBUS_WRITE) { in vt596_access() 229 if (read_write == I2C_SMBUS_READ) in vt596_access() 234 if (read_write == I2C_SMBUS_WRITE) { in vt596_access() 250 outb_p(((addr & 0x7f) << 1) | read_write, SMBHSTADD); in vt596_access() 257 read_write = I2C_SMBUS_READ; in vt596_access() 259 if ((read_write == I2C_SMBUS_WRITE) || (size == VT596_QUICK)) in vt596_access()
|
D | i2c-opal.c | 113 unsigned short flags, char read_write, in i2c_opal_smbus_xfer() argument 130 req.type = (read_write == I2C_SMBUS_READ) ? in i2c_opal_smbus_xfer() 138 req.type = (read_write == I2C_SMBUS_READ) ? in i2c_opal_smbus_xfer() 142 if (!read_write) { in i2c_opal_smbus_xfer() 150 req.type = (read_write == I2C_SMBUS_READ) ? in i2c_opal_smbus_xfer() 158 req.type = (read_write == I2C_SMBUS_READ) ? in i2c_opal_smbus_xfer() 166 if (!rc && read_write && size == I2C_SMBUS_WORD_DATA) { in i2c_opal_smbus_xfer()
|
D | i2c-nforce2.c | 179 unsigned short flags, char read_write, in nforce2_access() argument 187 protocol = (read_write == I2C_SMBUS_READ) ? NVIDIA_SMB_PRTCL_READ : in nforce2_access() 194 read_write = I2C_SMBUS_WRITE; in nforce2_access() 198 if (read_write == I2C_SMBUS_WRITE) in nforce2_access() 205 if (read_write == I2C_SMBUS_WRITE) in nforce2_access() 212 if (read_write == I2C_SMBUS_WRITE) { in nforce2_access() 221 if (read_write == I2C_SMBUS_WRITE) { in nforce2_access() 249 if (read_write == I2C_SMBUS_WRITE) in nforce2_access()
|
D | i2c-sibyte.c | 28 unsigned short flags, char read_write, in smbus_xfer() argument 41 (read_write == I2C_SMBUS_READ ? M_SMB_QDATA : 0) | in smbus_xfer() 45 if (read_write == I2C_SMBUS_READ) { in smbus_xfer() 57 if (read_write == I2C_SMBUS_READ) { in smbus_xfer() 70 if (read_write == I2C_SMBUS_READ) { in smbus_xfer()
|
D | i2c-scmi.c | 75 char read_write, u8 command, int size, in acpi_smbus_cmi_access() argument 91 (read_write) ? "READ" : "WRITE"); in acpi_smbus_cmi_access() 96 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access() 106 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access() 118 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access() 128 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access() 138 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access() 155 if (read_write == I2C_SMBUS_READ) { in acpi_smbus_cmi_access() 217 if (read_write == I2C_SMBUS_WRITE || size == I2C_SMBUS_QUICK) in acpi_smbus_cmi_access()
|
D | i2c-pasemi-core.c | 181 u16 addr, unsigned short flags, char read_write, u8 command, in pasemi_smb_xfer() argument 191 read_flag = read_write == I2C_SMBUS_READ; in pasemi_smb_xfer() 202 if (read_write) in pasemi_smb_xfer() 210 if (read_write) { in pasemi_smb_xfer() 220 if (read_write) { in pasemi_smb_xfer() 231 if (read_write) { in pasemi_smb_xfer() 248 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer() 258 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer() 281 if (read_write == I2C_SMBUS_WRITE) in pasemi_smb_xfer()
|
D | i2c-taos-evm.c | 59 unsigned short flags, char read_write, u8 command, in taos_smbus_xfer() argument 77 if (read_write == I2C_SMBUS_WRITE) in taos_smbus_xfer() 83 if (read_write == I2C_SMBUS_WRITE) in taos_smbus_xfer() 103 serio_write(serio, read_write == I2C_SMBUS_WRITE ? '>' : '<'); in taos_smbus_xfer() 120 if (read_write == I2C_SMBUS_WRITE) { in taos_smbus_xfer()
|
D | i2c-piix4.c | 616 unsigned short flags, char read_write, in piix4_access() argument 626 outb_p((addr << 1) | read_write, in piix4_access() 631 outb_p((addr << 1) | read_write, in piix4_access() 633 if (read_write == I2C_SMBUS_WRITE) in piix4_access() 638 outb_p((addr << 1) | read_write, in piix4_access() 641 if (read_write == I2C_SMBUS_WRITE) in piix4_access() 646 outb_p((addr << 1) | read_write, in piix4_access() 649 if (read_write == I2C_SMBUS_WRITE) { in piix4_access() 656 outb_p((addr << 1) | read_write, in piix4_access() 659 if (read_write == I2C_SMBUS_WRITE) { in piix4_access() [all …]
|
/linux-6.6.21/drivers/i2c/ |
D | i2c-core-smbus.c | 324 char read_write, u8 command, int size, in i2c_smbus_xfer_emulated() argument 335 int nmsgs = read_write == I2C_SMBUS_READ ? 2 : 1; in i2c_smbus_xfer_emulated() 359 msg[0].flags = flags | (read_write == I2C_SMBUS_READ ? in i2c_smbus_xfer_emulated() 364 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated() 371 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated() 379 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated() 389 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated() 396 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated() 416 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated() 436 read_write == I2C_SMBUS_READ ? "read" : "write", in i2c_smbus_xfer_emulated() [all …]
|
D | i2c-dev.c | 312 u8 read_write, u8 command, u32 size, in i2cdev_ioctl_smbus() argument 334 if ((read_write != I2C_SMBUS_READ) && in i2cdev_ioctl_smbus() 335 (read_write != I2C_SMBUS_WRITE)) { in i2cdev_ioctl_smbus() 338 read_write); in i2cdev_ioctl_smbus() 346 (read_write == I2C_SMBUS_WRITE))) in i2cdev_ioctl_smbus() 349 client->flags, read_write, in i2cdev_ioctl_smbus() 370 (read_write == I2C_SMBUS_WRITE)) { in i2cdev_ioctl_smbus() 378 if (read_write == I2C_SMBUS_READ) in i2cdev_ioctl_smbus() 382 read_write, command, size, &temp); in i2cdev_ioctl_smbus() 385 (read_write == I2C_SMBUS_READ))) { in i2cdev_ioctl_smbus() [all …]
|
D | i2c-stub.c | 124 char read_write, u8 command, int size, union i2c_smbus_data *data) in stub_xfer() argument 150 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 168 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 197 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 220 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer() 247 if (read_write == I2C_SMBUS_WRITE) { in stub_xfer()
|
/linux-6.6.21/drivers/net/wireless/microchip/wilc1000/ |
D | sdio.c | 35 u32 read_write: 1; member 43 u32 read_write: 1; member 72 if (cmd->read_write) { /* write */ in wilc_sdio_cmd52() 115 if (cmd->read_write) { /* write */ in wilc_sdio_cmd53() 207 cmd.read_write = 1; in wilc_sdio_reset() 297 cmd.read_write = 1; in wilc_sdio_set_func0_csa_address() 337 cmd.read_write = 1; in wilc_sdio_set_block_size() 377 cmd.read_write = 1; in wilc_sdio_write_reg() 396 cmd.read_write = 1; in wilc_sdio_write_reg() 422 cmd.read_write = 1; in wilc_sdio_write() [all …]
|
/linux-6.6.21/drivers/scsi/qedf/ |
D | drv_fcoe_fw_funcs.c | 59 SET_FIELD(t_st_ctx->read_write.flags, in init_initiator_rw_fcoe_task() 61 t_st_ctx->read_write.rx_id = cpu_to_le16(FCOE_RX_ID); in init_initiator_rw_fcoe_task() 94 SET_FIELD(t_st_ctx->read_write.flags, in init_initiator_rw_fcoe_task() 157 SET_FIELD(t_st_ctx->read_write.flags, in init_initiator_midpath_unsolicited_fcoe_task() 159 t_st_ctx->read_write.rx_id = cpu_to_le16(FCOE_RX_ID); in init_initiator_midpath_unsolicited_fcoe_task()
|