Home
last modified time | relevance | path

Searched refs:read_write (Results 1 – 25 of 59) sorted by relevance

123

/Linux-v5.10/include/trace/events/
Dsmbus.h26 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-v5.10/drivers/staging/kpc2000/
Dkpc2000_i2c.c256 char read_write, int hwpec) in i801_block_transaction_by_block() argument
264 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_by_block()
276 if (read_write == I2C_SMBUS_READ) { in i801_block_transaction_by_block()
290 char read_write, int command, in i801_block_transaction_byte_by_byte() argument
305 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_byte_by_byte()
311 if (i == len && read_write == I2C_SMBUS_READ) { in i801_block_transaction_byte_by_byte()
318 read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte()
339 if (i == 1 && read_write == I2C_SMBUS_READ && in i801_block_transaction_byte_by_byte()
359 if (read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte()
361 if (read_write == I2C_SMBUS_WRITE && i + 1 <= len) in i801_block_transaction_byte_by_byte()
[all …]
/Linux-v5.10/drivers/i2c/busses/
Di2c-nforce2-s4985.c37 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 …]
Di2c-amd756-s4882.c39 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 …]
Di2c-isch.c139 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 …]
Di2c-sis96x.c151 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()
Di2c-amd756.c182 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 …]
Di2c-sis630.c230 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 …]
Di2c-ali1535.c342 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 …]
Di2c-ali15x3.c333 unsigned short flags, char read_write, u8 command, in ali15x3_access() argument
356 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
361 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
363 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access()
368 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
371 if (read_write == I2C_SMBUS_WRITE) in ali15x3_access()
376 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
379 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access()
386 outb_p(((addr & 0x7f) << 1) | (read_write & 0x01), in ali15x3_access()
389 if (read_write == I2C_SMBUS_WRITE) { in ali15x3_access()
[all …]
Di2c-sis5595.c279 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()
Di2c-amd8111.c190 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 …]
Di2c-viapro.c191 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()
Di2c-opal.c113 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()
Di2c-nforce2.c179 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()
Di2c-sibyte.c28 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()
Di2c-scmi.c82 char read_write, u8 command, int size, in acpi_smbus_cmi_access() argument
98 (read_write) ? "READ" : "WRITE"); in acpi_smbus_cmi_access()
103 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access()
113 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access()
125 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access()
135 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access()
145 if (read_write == I2C_SMBUS_WRITE) { in acpi_smbus_cmi_access()
162 if (read_write == I2C_SMBUS_READ) { in acpi_smbus_cmi_access()
224 if (read_write == I2C_SMBUS_WRITE || size == I2C_SMBUS_QUICK) in acpi_smbus_cmi_access()
Di2c-pasemi.c167 u16 addr, unsigned short flags, char read_write, u8 command, in pasemi_smb_xfer() argument
177 read_flag = read_write == I2C_SMBUS_READ; in pasemi_smb_xfer()
188 if (read_write) in pasemi_smb_xfer()
196 if (read_write) { in pasemi_smb_xfer()
206 if (read_write) { in pasemi_smb_xfer()
217 if (read_write) { in pasemi_smb_xfer()
234 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer()
244 read_write = I2C_SMBUS_READ; in pasemi_smb_xfer()
267 if (read_write == I2C_SMBUS_WRITE) in pasemi_smb_xfer()
Di2c-i801.c527 char read_write, int command, in i801_block_transaction_by_block() argument
548 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_by_block()
559 if (read_write == I2C_SMBUS_READ || in i801_block_transaction_by_block()
689 char read_write, int command, in i801_block_transaction_byte_by_byte() argument
707 if (read_write == I2C_SMBUS_WRITE) { in i801_block_transaction_byte_by_byte()
713 read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte()
719 priv->is_read = (read_write == I2C_SMBUS_READ); in i801_block_transaction_byte_by_byte()
741 if (i == len && read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte()
753 if (i == 1 && read_write == I2C_SMBUS_READ in i801_block_transaction_byte_by_byte()
772 if (read_write == I2C_SMBUS_READ) in i801_block_transaction_byte_by_byte()
[all …]
Di2c-piix4.c515 unsigned short flags, char read_write, in piix4_access() argument
525 outb_p((addr << 1) | read_write, in piix4_access()
530 outb_p((addr << 1) | read_write, in piix4_access()
532 if (read_write == I2C_SMBUS_WRITE) in piix4_access()
537 outb_p((addr << 1) | read_write, in piix4_access()
540 if (read_write == I2C_SMBUS_WRITE) in piix4_access()
545 outb_p((addr << 1) | read_write, in piix4_access()
548 if (read_write == I2C_SMBUS_WRITE) { in piix4_access()
555 outb_p((addr << 1) | read_write, in piix4_access()
558 if (read_write == I2C_SMBUS_WRITE) { in piix4_access()
[all …]
Di2c-taos-evm.c59 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()
/Linux-v5.10/drivers/i2c/
Di2c-core-smbus.c315 char read_write, u8 command, int size, in i2c_smbus_xfer_emulated() argument
326 int num = read_write == I2C_SMBUS_READ ? 2 : 1; in i2c_smbus_xfer_emulated()
349 msg[0].flags = flags | (read_write == I2C_SMBUS_READ ? in i2c_smbus_xfer_emulated()
354 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated()
361 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated()
369 if (read_write == I2C_SMBUS_READ) in i2c_smbus_xfer_emulated()
379 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated()
386 if (read_write == I2C_SMBUS_READ) { in i2c_smbus_xfer_emulated()
407 read_write = I2C_SMBUS_READ; in i2c_smbus_xfer_emulated()
428 read_write == I2C_SMBUS_READ ? "read" : "write", in i2c_smbus_xfer_emulated()
[all …]
Di2c-dev.c312 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 …]
/Linux-v5.10/drivers/net/wireless/microchip/wilc1000/
Dsdio.c33 u32 read_write: 1; member
41 u32 read_write: 1; member
69 if (cmd->read_write) { /* write */ in wilc_sdio_cmd52()
103 if (cmd->read_write) { /* write */ in wilc_sdio_cmd53()
178 cmd.read_write = 1; in wilc_sdio_reset()
261 cmd.read_write = 1; in wilc_sdio_set_func0_csa_address()
301 cmd.read_write = 1; in wilc_sdio_set_block_size()
341 cmd.read_write = 1; in wilc_sdio_write_reg()
360 cmd.read_write = 1; in wilc_sdio_write_reg()
385 cmd.read_write = 1; in wilc_sdio_write()
[all …]
/Linux-v5.10/drivers/scsi/qedf/
Ddrv_fcoe_fw_funcs.c59 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()

123