Home
last modified time | relevance | path

Searched refs:is_read (Results 1 – 25 of 79) sorted by relevance

1234

/openbmc/linux/drivers/gpu/drm/i915/
H A Dintel_sbi.c15 u32 *val, bool is_read) in intel_sbi_rw() argument
31 intel_uncore_write_fw(uncore, SBI_DATA, is_read ? 0 : *val); in intel_sbi_rw()
37 if (!is_read) in intel_sbi_rw()
54 if (is_read) in intel_sbi_rw()
H A Dvlv_sideband.c82 const bool is_read = (opcode == SB_MRD_NP || opcode == SB_CRRDDA_NP); in vlv_sideband_rw() local
94 is_read ? "read" : "write"); in vlv_sideband_rw()
101 intel_uncore_write_fw(uncore, VLV_IOSF_DATA, is_read ? 0 : *val); in vlv_sideband_rw()
113 if (is_read) in vlv_sideband_rw()
118 is_read ? "read" : "write"); in vlv_sideband_rw()
H A Dintel_pcode.c58 bool is_read) in __snb_pcode_rw() argument
84 if (is_read) in __snb_pcode_rw()
86 if (is_read && val1) in __snb_pcode_rw()
/openbmc/linux/arch/arm64/kvm/hyp/
H A Dvgic-v3-sr.c1022 bool is_read; in __vgic_v3_perform_cpuif_access() local
1037 is_read = (esr & ESR_ELx_SYS64_ISS_DIR_MASK) == ESR_ELx_SYS64_ISS_DIR_READ; in __vgic_v3_perform_cpuif_access()
1042 if (unlikely(!is_read)) in __vgic_v3_perform_cpuif_access()
1048 if (unlikely(is_read)) in __vgic_v3_perform_cpuif_access()
1053 if (is_read) in __vgic_v3_perform_cpuif_access()
1059 if (is_read) in __vgic_v3_perform_cpuif_access()
1066 if (is_read) in __vgic_v3_perform_cpuif_access()
1073 if (is_read) in __vgic_v3_perform_cpuif_access()
1080 if (is_read) in __vgic_v3_perform_cpuif_access()
1087 if (is_read) in __vgic_v3_perform_cpuif_access()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dbcm2835_sdhost.c270 static int bcm2835_transfer_block_pio(struct bcm2835_host *host, bool is_read) in bcm2835_transfer_block_pio() argument
281 buf = is_read ? (u32 *)data->dest : (u32 *)data->src; in bcm2835_transfer_block_pio()
283 if (is_read) in bcm2835_transfer_block_pio()
300 if (is_read) in bcm2835_transfer_block_pio()
308 if ((is_read && in bcm2835_transfer_block_pio()
312 (!is_read && in bcm2835_transfer_block_pio()
334 if (is_read) in bcm2835_transfer_block_pio()
348 bool is_read; in bcm2835_transfer_pio() local
351 is_read = (host->data->flags & MMC_DATA_READ) != 0; in bcm2835_transfer_pio()
352 ret = bcm2835_transfer_block_pio(host, is_read); in bcm2835_transfer_pio()
[all …]
/openbmc/u-boot/drivers/i2c/
H A Dsandbox_i2c.c54 bool is_read; in sandbox_i2c_xfer() local
74 is_read = nmsgs > 1; in sandbox_i2c_xfer()
75 if (i2c->speed_hz > (is_read ? 400000 : 100000)) { in sandbox_i2c_xfer()
H A Dat91_i2c.c48 bool is_read = msg->flags & I2C_M_RD; in at91_i2c_xfer_msg() local
53 if (is_read) { in at91_i2c_xfer_msg()
112 bool is_read; in at91_i2c_xfer() local
137 is_read = m_start->flags & I2C_M_RD; in at91_i2c_xfer()
140 (is_read ? TWI_MMR_MREAD : 0), &reg->mmr); in at91_i2c_xfer()
H A Dcros_ec_ldo.c22 bool is_read = nmsgs > 1; in cros_ec_ldo_xfer() local
40 if (is_read) { in cros_ec_ldo_xfer()
H A Ds3c24x0_i2c.c230 bool is_read = msg->flags & I2C_M_RD; in s3c24x0_do_msg() local
242 if (is_read) in s3c24x0_do_msg()
255 if (is_read) { in s3c24x0_do_msg()
/openbmc/linux/drivers/md/bcache/
H A Dio.c84 int is_read, in bch_count_io_errors() argument
129 is_read ? ", recovering." : "."); in bch_count_io_errors()
142 int is_read = (bio_data_dir(bio) == READ ? 1 : 0); in bch_bbio_count_io_errors() local
164 bch_count_io_errors(ca, error, is_read, m); in bch_bbio_count_io_errors()
/openbmc/qemu/block/
H A Dwin32-aio.c55 bool is_read; member
74 if (waiocb->is_read) { in win32_aio_process_completion()
84 if (ret == 0 && waiocb->is_read) { in win32_aio_process_completion()
125 waiocb->is_read = (type == QEMU_AIO_READ); in win32_aio_submit()
H A Dio_uring.c34 bool is_read; member
194 if (luringcb->is_read) { in luring_process_completions()
392 .is_read = (type == QEMU_AIO_READ), in luring_co_submit()
/openbmc/linux/arch/x86/xen/
H A Dpmu.c199 int index, bool is_read) in xen_intel_pmu_emulate() argument
247 if (is_read) in xen_intel_pmu_emulate()
261 static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read) in xen_amd_pmu_emulate() argument
292 if (is_read) in xen_amd_pmu_emulate()
302 static bool pmu_msr_chk_emulated(unsigned int msr, uint64_t *val, bool is_read, in pmu_msr_chk_emulated() argument
308 *emul = xen_amd_pmu_emulate(msr, val, is_read); in pmu_msr_chk_emulated()
310 *emul = xen_intel_pmu_emulate(msr, val, type, index, is_read); in pmu_msr_chk_emulated()
/openbmc/linux/arch/arm64/kvm/
H A Dtrace_arm.h368 TP_PROTO(struct kvm_vcpu *vcpu, u32 sysreg, bool is_read),
369 TP_ARGS(vcpu, sysreg, is_read),
374 __field(bool, is_read)
380 __entry->is_read = is_read;
385 __entry->is_read ? 'R' : 'W',
/openbmc/linux/drivers/base/regmap/
H A Dregmap-spi-avmm.c178 static int br_trans_tx_prepare(struct spi_avmm_bridge *br, bool is_read, u32 reg, in br_trans_tx_prepare() argument
187 if (is_read) { in br_trans_tx_prepare()
207 if (!is_read) { in br_trans_tx_prepare()
546 static int do_reg_access(void *context, bool is_read, unsigned int reg, in do_reg_access() argument
556 ret = br_trans_tx_prepare(br, is_read, reg, value, count); in do_reg_access()
572 if (is_read) in do_reg_access()
/openbmc/linux/tools/lib/perf/
H A Dlib.c10 static ssize_t ion(bool is_read, int fd, void *buf, size_t n) in ion() argument
17 ssize_t ret = is_read ? read(fd, buf, left) : in ion()
/openbmc/u-boot/drivers/spi/
H A Dtegra20_slink.c238 int is_read = 0; in tegra30_spi_xfer() local
261 for (tm = 0, is_read = 0; tm < SPI_TIMEOUT; ++tm) { in tegra30_spi_xfer()
267 if (is_read && (status & SLINK_STAT_TXF_EMPTY)) in tegra30_spi_xfer()
276 is_read = 1; in tegra30_spi_xfer()
H A Dtegra20_sflash.c238 int is_read = 0; in tegra20_sflash_xfer() local
262 for (tm = 0, is_read = 0; tm < SPI_TIMEOUT; ++tm) { in tegra20_sflash_xfer()
268 if (is_read && (status & SPI_STAT_TXF_EMPTY)) in tegra20_sflash_xfer()
277 is_read = 1; in tegra20_sflash_xfer()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/
H A Dhclgevf_cmd.h111 #define hclgevf_cmd_setup_basic_desc(desc, opcode, is_read) \ argument
112 hclge_comm_cmd_setup_basic_desc(desc, opcode, is_read)
/openbmc/qemu/target/hexagon/
H A Dgen_trans_funcs.py99 if reg.is_read() and reg.is_new():
106 if reg_type == "P" and reg.is_written() and not reg.is_read():
/openbmc/linux/arch/m68k/mac/
H A Dmisc.c176 int is_read; in via_rtc_command() local
191 is_read = command & (RTC_FLG_READ << 8); in via_rtc_command()
194 is_read = command & RTC_FLG_READ; in via_rtc_command()
196 if (is_read) { in via_rtc_command()
/openbmc/linux/drivers/mmc/host/
H A Dbcm2835.c328 static void bcm2835_transfer_block_pio(struct bcm2835_host *host, bool is_read) in bcm2835_transfer_block_pio() argument
367 if (is_read) in bcm2835_transfer_block_pio()
376 if ((is_read && in bcm2835_transfer_block_pio()
380 (!is_read && in bcm2835_transfer_block_pio()
393 is_read ? "read" : "write", in bcm2835_transfer_block_pio()
408 if (is_read) in bcm2835_transfer_block_pio()
427 bool is_read; in bcm2835_transfer_pio() local
429 is_read = (host->data->flags & MMC_DATA_READ) != 0; in bcm2835_transfer_pio()
430 bcm2835_transfer_block_pio(host, is_read); in bcm2835_transfer_pio()
437 is_read ? "read" : "write", sdhsts); in bcm2835_transfer_pio()
[all …]
/openbmc/linux/block/
H A Dfops.c169 bool is_read = (iov_iter_rw(iter) == READ), is_sync; in __blkdev_direct_IO() local
170 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); in __blkdev_direct_IO()
199 if (is_read && user_backed_iter(iter)) in __blkdev_direct_IO()
235 if (is_read) { in __blkdev_direct_IO()
306 bool is_read = iov_iter_rw(iter) == READ; in __blkdev_direct_IO_async() local
307 blk_opf_t opf = is_read ? REQ_OP_READ : dio_bio_write_op(iocb); in __blkdev_direct_IO_async()
344 if (is_read) { in __blkdev_direct_IO_async()
/openbmc/qemu/hw/sd/
H A Dpl181.c219 int is_read; in pl181_fifo_run() local
221 is_read = (s->datactrl & PL181_DATA_DIRECTION) != 0; in pl181_fifo_run()
222 if (s->datacnt != 0 && (!is_read || sdbus_data_ready(&s->sdbus)) in pl181_fifo_run()
224 if (is_read) { in pl181_fifo_run()
/openbmc/qemu/include/qemu/
H A Dselfmap.h18 bool is_read; member

1234