Home
last modified time | relevance | path

Searched refs:io (Results 1 – 25 of 1127) sorted by relevance

12345678910>>...46

/kernel/linux/linux-5.10/drivers/char/ipmi/
Dipmi_si_mem_io.c6 static unsigned char intf_mem_inb(const struct si_sm_io *io, in intf_mem_inb() argument
9 return readb((io->addr)+(offset * io->regspacing)); in intf_mem_inb()
12 static void intf_mem_outb(const struct si_sm_io *io, unsigned int offset, in intf_mem_outb() argument
15 writeb(b, (io->addr)+(offset * io->regspacing)); in intf_mem_outb()
18 static unsigned char intf_mem_inw(const struct si_sm_io *io, in intf_mem_inw() argument
21 return (readw((io->addr)+(offset * io->regspacing)) >> io->regshift) in intf_mem_inw()
25 static void intf_mem_outw(const struct si_sm_io *io, unsigned int offset, in intf_mem_outw() argument
28 writeb(b << io->regshift, (io->addr)+(offset * io->regspacing)); in intf_mem_outw()
31 static unsigned char intf_mem_inl(const struct si_sm_io *io, in intf_mem_inl() argument
34 return (readl((io->addr)+(offset * io->regspacing)) >> io->regshift) in intf_mem_inl()
[all …]
Dipmi_si_port_io.c6 static unsigned char port_inb(const struct si_sm_io *io, unsigned int offset) in port_inb() argument
8 unsigned int addr = io->addr_data; in port_inb()
10 return inb(addr + (offset * io->regspacing)); in port_inb()
13 static void port_outb(const struct si_sm_io *io, unsigned int offset, in port_outb() argument
16 unsigned int addr = io->addr_data; in port_outb()
18 outb(b, addr + (offset * io->regspacing)); in port_outb()
21 static unsigned char port_inw(const struct si_sm_io *io, unsigned int offset) in port_inw() argument
23 unsigned int addr = io->addr_data; in port_inw()
25 return (inw(addr + (offset * io->regspacing)) >> io->regshift) & 0xff; in port_inw()
28 static void port_outw(const struct si_sm_io *io, unsigned int offset, in port_outw() argument
[all …]
Dipmi_si_platform.c61 struct si_sm_io *io = context; in ipmi_acpi_gpe() local
63 ipmi_si_irq_handler(io->irq, io->irq_handler_data); in ipmi_acpi_gpe()
67 static void acpi_gpe_irq_cleanup(struct si_sm_io *io) in acpi_gpe_irq_cleanup() argument
69 if (!io->irq) in acpi_gpe_irq_cleanup()
72 ipmi_irq_start_cleanup(io); in acpi_gpe_irq_cleanup()
73 acpi_remove_gpe_handler(NULL, io->irq, &ipmi_acpi_gpe); in acpi_gpe_irq_cleanup()
76 static int acpi_gpe_irq_setup(struct si_sm_io *io) in acpi_gpe_irq_setup() argument
80 if (!io->irq) in acpi_gpe_irq_setup()
84 io->irq, in acpi_gpe_irq_setup()
87 io); in acpi_gpe_irq_setup()
[all …]
Dipmi_si_pci.c24 static void ipmi_pci_cleanup(struct si_sm_io *io) in ipmi_pci_cleanup() argument
26 struct pci_dev *pdev = io->addr_source_data; in ipmi_pci_cleanup()
31 static int ipmi_pci_probe_regspacing(struct si_sm_io *io) in ipmi_pci_probe_regspacing() argument
33 if (io->si_type == SI_KCS) { in ipmi_pci_probe_regspacing()
37 io->regsize = DEFAULT_REGSIZE; in ipmi_pci_probe_regspacing()
38 io->regshift = 0; in ipmi_pci_probe_regspacing()
42 io->regspacing = regspacing; in ipmi_pci_probe_regspacing()
43 if (io->io_setup(io)) { in ipmi_pci_probe_regspacing()
44 dev_err(io->dev, "Could not setup I/O space\n"); in ipmi_pci_probe_regspacing()
48 io->outputb(io, 1, 0x10); in ipmi_pci_probe_regspacing()
[all …]
Dipmi_si_intf.c139 struct si_sm_io io; member
420 if ((smi_info->io.irq) && (!smi_info->interrupt_disabled)) { in disable_si_irq()
430 if ((smi_info->io.irq) && (smi_info->interrupt_disabled)) { in enable_si_irq()
505 if (((smi_info->io.irq && !smi_info->interrupt_disabled) || in current_global_enables()
511 smi_info->io.irq && !smi_info->interrupt_disabled && in current_global_enables()
522 u8 irqstate = smi_info->io.inputb(&smi_info->io, IPMI_BT_INTMASK_REG); in check_bt_irq()
530 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, in check_bt_irq()
533 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, 0); in check_bt_irq()
593 dev_warn(smi_info->io.dev, in handle_transaction_done()
685 dev_warn(smi_info->io.dev, in handle_transaction_done()
[all …]
Dipmi_si_parisc.c12 struct si_sm_io io; in ipmi_parisc_probe() local
14 memset(&io, 0, sizeof(io)); in ipmi_parisc_probe()
16 io.si_type = SI_KCS; in ipmi_parisc_probe()
17 io.addr_source = SI_DEVICETREE; in ipmi_parisc_probe()
18 io.addr_space = IPMI_MEM_ADDR_SPACE; in ipmi_parisc_probe()
19 io.addr_data = dev->hpa.start; in ipmi_parisc_probe()
20 io.regsize = 1; in ipmi_parisc_probe()
21 io.regspacing = 1; in ipmi_parisc_probe()
22 io.regshift = 0; in ipmi_parisc_probe()
23 io.irq = 0; /* no interrupt */ in ipmi_parisc_probe()
[all …]
/kernel/linux/linux-5.10/tools/lib/api/
Dio.h13 struct io { struct
28 static inline void io__init(struct io *io, int fd, in io__init() argument
31 io->fd = fd; in io__init()
32 io->buf_len = buf_len; in io__init()
33 io->buf = buf; in io__init()
34 io->end = buf; in io__init()
35 io->data = buf; in io__init()
36 io->eof = false; in io__init()
40 static inline int io__get_char(struct io *io) in io__get_char() argument
42 char *ptr = io->data; in io__get_char()
[all …]
/kernel/linux/linux-5.10/drivers/media/dvb-frontends/cxd2880/
Dcxd2880_tnrdmd_dvbt2.c165 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
172 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
180 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
186 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
193 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
199 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
205 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
211 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
217 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
223 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt2_demod_setting()
[all …]
Dcxd2880_tnrdmd.c212 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
233 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
240 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in p_init1()
258 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
269 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
274 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
280 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
285 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
291 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
308 return tnr_dmd->io->write_reg(tnr_dmd->io, in p_init1()
[all …]
Dcxd2880_tnrdmd_dvbt.c105 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
112 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting()
132 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
138 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting()
147 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in x_tune_dvbt_demod_setting()
153 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
160 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
167 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
175 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
184 ret = cxd2880_io_write_multi_regs(tnr_dmd->io, in x_tune_dvbt_demod_setting()
[all …]
Dcxd2880_tnrdmd_mon.c29 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
35 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
41 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
47 ret = tnr_dmd->io->write_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
55 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
61 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
70 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
82 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
88 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_rf_lvl()
121 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_mon_internal_cpu_status()
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dapi-io.c58 size_t buf_size, struct io *io) in setup_test() argument
63 io->fd = open(path, O_RDONLY); in setup_test()
64 if (io->fd < 0) { in setup_test()
69 io->buf = malloc(buf_size); in setup_test()
70 if (io->buf == NULL) { in setup_test()
72 close(io->fd); in setup_test()
76 io__init(io, io->fd, io->buf, buf_size); in setup_test()
80 static void cleanup_test(char path[PATH_MAX], struct io *io) in cleanup_test() argument
82 free(io->buf); in cleanup_test()
83 close(io->fd); in cleanup_test()
[all …]
/kernel/linux/linux-5.10/drivers/md/bcache/
Dmovinggc.c40 struct moving_io *io = container_of(cl, struct moving_io, cl); in moving_io_destructor() local
42 kfree(io); in moving_io_destructor()
47 struct moving_io *io = container_of(cl, struct moving_io, cl); in write_moving_finish() local
48 struct bio *bio = &io->bio.bio; in write_moving_finish()
52 if (io->op.replace_collision) in write_moving_finish()
53 trace_bcache_gc_copy_collision(&io->w->key); in write_moving_finish()
55 bch_keybuf_del(&io->op.c->moving_gc_keys, io->w); in write_moving_finish()
57 up(&io->op.c->moving_in_flight); in write_moving_finish()
65 struct moving_io *io = container_of(bio->bi_private, in read_moving_endio() local
69 io->op.status = bio->bi_status; in read_moving_endio()
[all …]
/kernel/linux/linux-5.10/drivers/media/radio/
Dradio-zoltrix.c65 static int io[ZOLTRIX_MAX] = { [0] = CONFIG_RADIO_ZOLTRIX_PORT, variable
69 module_param_array(io, int, NULL, 0444);
70 MODULE_PARM_DESC(io, "I/O addresses of the Zoltrix Radio Plus card (0x20c or 0x30c)");
94 outb(0, isa->io); in zoltrix_s_mute_volume()
95 outb(0, isa->io); in zoltrix_s_mute_volume()
96 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_mute_volume()
100 outb(vol - 1, isa->io); in zoltrix_s_mute_volume()
102 inb(isa->io + 2); in zoltrix_s_mute_volume()
126 outb(0, isa->io); in zoltrix_s_frequency()
127 outb(0, isa->io); in zoltrix_s_frequency()
[all …]
Dradio-cadet.c54 static int io = -1; /* default to isapnp activation */ variable
57 module_param(io, int, 0);
58 MODULE_PARM_DESC(io, "I/O address of Cadet card (0x330,0x332,0x334,0x336,0x338,0x33a,0x33c,0x33e)");
69 int io; member
122 outb(7, dev->io); /* Select tuner control */ in cadet_getstereo()
123 if ((inb(dev->io + 1) & 0x40) == 0) in cadet_getstereo()
137 outb(7, dev->io); /* Select tuner control */ in cadet_gettune()
138 curvol = inb(dev->io + 1); /* Save current volume/mute setting */ in cadet_gettune()
139 outb(0x00, dev->io + 1); /* Ensure WRITE-ENABLE is LOW */ in cadet_gettune()
146 fifo = (fifo << 1) | ((inb(dev->io + 1) >> 7) & 0x01); in cadet_gettune()
[all …]
/kernel/liteos_a/testsuites/unittest/libc/io/
Dconfig.gni44 libc_io_include_dirs = [ "$TEST_UNITTEST_DIR/libc/io" ]
46 libc_io_sources_entry = [ "$TEST_UNITTEST_DIR/libc/io/io_test.cpp" ]
49 "$TEST_UNITTEST_DIR/libc/io/smoke/IO_test_005.cpp",
50 "$TEST_UNITTEST_DIR/libc/io/smoke/IO_test_008.cpp",
51 "$TEST_UNITTEST_DIR/libc/io/smoke/IO_test_010.cpp",
52 "$TEST_UNITTEST_DIR/libc/io/smoke/IO_test_013.cpp",
56 "$TEST_UNITTEST_DIR/libc/io/full/IO_test_confstr_001.cpp",
57 "$TEST_UNITTEST_DIR/libc/io/full/IO_test_dcgettext_001.cpp",
58 "$TEST_UNITTEST_DIR/libc/io/full/IO_test_dcgettext_002.cpp",
59 "$TEST_UNITTEST_DIR/libc/io/full/IO_test_dcngettext_001.cpp",
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/rcar/
Drsnd.h262 u32 rsnd_get_adinr_bit(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
263 u32 rsnd_get_dalign(struct rsnd_mod *mod, struct rsnd_dai_stream *io);
264 u32 rsnd_get_busif_shift(struct rsnd_dai_stream *io, struct rsnd_mod *mod);
269 int rsnd_dma_attach(struct rsnd_dai_stream *io,
297 struct dma_chan* (*dma_req)(struct rsnd_dai_stream *io,
300 struct rsnd_dai_stream *io,
303 struct rsnd_dai_stream *io,
306 struct rsnd_dai_stream *io,
309 struct rsnd_dai_stream *io,
312 struct rsnd_dai_stream *io,
[all …]
Dssi.c113 #define rsnd_ssi_is_parent(ssi, io) ((ssi) == rsnd_io_to_mod_ssip(io)) argument
114 #define rsnd_ssi_is_multi_secondary(mod, io) \ argument
115 (rsnd_ssi_multi_secondaries(io) & (1 << rsnd_mod_id(mod)))
116 #define rsnd_ssi_is_run_mods(mod, io) \ argument
117 (rsnd_ssi_run_mods(io) & (1 << rsnd_mod_id(mod)))
122 int rsnd_ssi_use_busif(struct rsnd_dai_stream *io) in rsnd_ssi_use_busif() argument
124 struct rsnd_mod *mod = rsnd_io_to_mod_ssi(io); in rsnd_ssi_use_busif()
133 if (rsnd_io_to_mod_src(io)) in rsnd_ssi_use_busif()
168 static u32 rsnd_ssi_multi_secondaries(struct rsnd_dai_stream *io) in rsnd_ssi_multi_secondaries() argument
180 mod = rsnd_io_to_mod(io, types[i]); in rsnd_ssi_multi_secondaries()
[all …]
Dcore.c133 struct dma_chan *rsnd_mod_dma_req(struct rsnd_dai_stream *io, in rsnd_mod_dma_req() argument
139 return mod->ops->dma_req(io, mod); in rsnd_mod_dma_req()
174 struct rsnd_dai_stream *io, in rsnd_mod_get_status() argument
230 struct rsnd_dai_stream *io)) in rsnd_mod_interrupt() argument
233 struct rsnd_dai_stream *io; in rsnd_mod_interrupt() local
238 io = &rdai->playback; in rsnd_mod_interrupt()
239 if (mod == io->mod[mod->type]) in rsnd_mod_interrupt()
240 callback(mod, io); in rsnd_mod_interrupt()
242 io = &rdai->capture; in rsnd_mod_interrupt()
243 if (mod == io->mod[mod->type]) in rsnd_mod_interrupt()
[all …]
/kernel/linux/linux-5.10/arch/alpha/kernel/
Derr_marvel.c331 marvel_print_po7_err_sum(struct ev7_pal_io_subpacket *io) in marvel_print_po7_err_sum() argument
371 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_SBE) { in marvel_print_po7_err_sum()
374 (io->po7_error_sum & IO7__PO7_ERRSUM__CR_SBE2) in marvel_print_po7_err_sum()
376 marvel_print_po7_crrct_sym(io->po7_crrct_sym); in marvel_print_po7_err_sum()
382 if (io->po7_error_sum & IO7__PO7_ERRSUM__HLT_INT) in marvel_print_po7_err_sum()
384 if (io->po7_error_sum & IO7__PO7_ERRSUM__HP_INT) { in marvel_print_po7_err_sum()
389 if (io->po7_error_sum & IO7__PO7_ERRSUM__CRD_INT) in marvel_print_po7_err_sum()
392 if (io->po7_error_sum & IO7__PO7_ERRSUM__STV_INT) { in marvel_print_po7_err_sum()
396 if (io->po7_error_sum & IO7__PO7_ERRSUM__HRD_INT) { in marvel_print_po7_err_sum()
405 if (!(io->po7_error_sum & IO7__PO7_ERRSUM__ERR_VALID)) in marvel_print_po7_err_sum()
[all …]
/kernel/linux/linux-5.10/drivers/input/gameport/
Dns558.c33 int io; member
48 static int ns558_isa_probe(int io) in ns558_isa_probe() argument
59 if (!request_region(io, 1, "ns558-isa")) in ns558_isa_probe()
67 c = inb(io); in ns558_isa_probe()
68 outb(~c & ~3, io); in ns558_isa_probe()
69 if (~(u = v = inb(io)) & 3) { in ns558_isa_probe()
70 outb(c, io); in ns558_isa_probe()
71 release_region(io, 1); in ns558_isa_probe()
78 for (i = 0; i < 1000; i++) v &= inb(io); in ns558_isa_probe()
81 outb(c, io); in ns558_isa_probe()
[all …]
/kernel/linux/linux-5.10/drivers/md/
Ddm-io.c33 struct io { struct
90 static void store_io_and_region_in_bio(struct bio *bio, struct io *io, in store_io_and_region_in_bio() argument
93 if (unlikely(!IS_ALIGNED((unsigned long)io, DM_IO_MAX_REGIONS))) { in store_io_and_region_in_bio()
94 DMCRIT("Unaligned struct io pointer %p", io); in store_io_and_region_in_bio()
98 bio->bi_private = (void *)((unsigned long)io | region); in store_io_and_region_in_bio()
101 static void retrieve_io_and_region_from_bio(struct bio *bio, struct io **io, in retrieve_io_and_region_from_bio() argument
106 *io = (void *)(val & -(unsigned long)DM_IO_MAX_REGIONS); in retrieve_io_and_region_from_bio()
114 static void complete_io(struct io *io) in complete_io() argument
116 unsigned long error_bits = io->error_bits; in complete_io()
117 io_notify_fn fn = io->callback; in complete_io()
[all …]
/kernel/linux/linux-5.10/sound/soc/sh/
Dfsi.c269 int (*init)(struct fsi_priv *fsi, struct fsi_stream *io);
270 int (*quit)(struct fsi_priv *fsi, struct fsi_stream *io);
271 int (*probe)(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev);
272 int (*transfer)(struct fsi_priv *fsi, struct fsi_stream *io);
273 int (*remove)(struct fsi_priv *fsi, struct fsi_stream *io);
274 int (*start_stop)(struct fsi_priv *fsi, struct fsi_stream *io,
277 #define fsi_stream_handler_call(io, func, args...) \ argument
278 (!(io) ? -ENODEV : \
279 !((io)->handler->func) ? 0 : \
280 (io)->handler->func(args))
[all …]
/kernel/linux/linux-5.10/tools/lib/symbol/
Dkallsyms.c20 static void read_to_eol(struct io *io) in read_to_eol() argument
25 ch = io__get_char(io); in read_to_eol()
35 struct io io; in kallsyms__parse() local
39 io.fd = open(filename, O_RDONLY, 0); in kallsyms__parse()
41 if (io.fd < 0) in kallsyms__parse()
44 io__init(&io, io.fd, bf, sizeof(bf)); in kallsyms__parse()
47 while (!io.eof) { in kallsyms__parse()
54 if (io__get_hex(&io, &start) != ' ') { in kallsyms__parse()
55 read_to_eol(&io); in kallsyms__parse()
58 symbol_type = io__get_char(&io); in kallsyms__parse()
[all …]
/kernel/linux/linux-5.10/drivers/input/serio/
Dambakmi.c27 struct serio *io; member
42 serio_interrupt(kmi->io, readb(KMIDATA), 0); in amba_kmi_int()
50 static int amba_kmi_write(struct serio *io, unsigned char val) in amba_kmi_write() argument
52 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_write()
64 static int amba_kmi_open(struct serio *io) in amba_kmi_open() argument
66 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_open()
96 static void amba_kmi_close(struct serio *io) in amba_kmi_close() argument
98 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_close()
110 struct serio *io; in amba_kmi_probe() local
118 io = kzalloc(sizeof(struct serio), GFP_KERNEL); in amba_kmi_probe()
[all …]

12345678910>>...46