/drivers/scsi/elx/efct/ |
D | efct_scsi.c | 15 #define scsi_io_printf(io, fmt, ...) \ argument 16 efc_log_debug(io->efct, "[%s]" SCSI_IOFMT fmt, \ 17 io->node->display_name, io->instance_index,\ 18 io->init_task_tag, io->tgt_task_tag, io->hw_tag, ##__VA_ARGS__) 23 #define scsi_io_trace(io, fmt, ...) \ argument 25 if (EFCT_LOG_ENABLE_SCSI_TRACE(io->efct)) \ 26 scsi_io_printf(io, fmt, ##__VA_ARGS__); \ 34 struct efct_io *io; in efct_scsi_io_alloc() local 43 io = efct_io_pool_io_alloc(efct->xport->io_pool); in efct_scsi_io_alloc() 44 if (!io) { in efct_scsi_io_alloc() [all …]
|
D | efct_io.c | 25 struct efct_io *io; in efct_io_pool_create() local 38 io = kzalloc(sizeof(*io), GFP_KERNEL); in efct_io_pool_create() 39 if (!io) in efct_io_pool_create() 43 io_pool->ios[i] = io; in efct_io_pool_create() 44 io->tag = i; in efct_io_pool_create() 45 io->instance_index = i; in efct_io_pool_create() 48 io->rspbuf.size = SCSI_RSP_BUF_LENGTH; in efct_io_pool_create() 49 io->rspbuf.virt = dma_alloc_coherent(&efct->pci->dev, in efct_io_pool_create() 50 io->rspbuf.size, in efct_io_pool_create() 51 &io->rspbuf.phys, GFP_DMA); in efct_io_pool_create() [all …]
|
D | efct_hw.c | 327 efct_hw_init_free_io(struct efct_hw_io *io) in efct_hw_init_free_io() argument 333 io->done = NULL; in efct_hw_init_free_io() 334 io->abort_done = NULL; in efct_hw_init_free_io() 335 io->status_saved = false; in efct_hw_init_free_io() 336 io->abort_in_progress = false; in efct_hw_init_free_io() 337 io->type = 0xFFFF; in efct_hw_init_free_io() 338 io->wq = NULL; in efct_hw_init_free_io() 353 efct_hw_io_restore_sgl(struct efct_hw *hw, struct efct_hw_io *io) in efct_hw_io_restore_sgl() argument 356 io->sgl = &io->def_sgl; in efct_hw_io_restore_sgl() 357 io->sgl_count = io->def_sgl_count; in efct_hw_io_restore_sgl() [all …]
|
/drivers/char/ipmi/ |
D | ipmi_si_mem_io.c | 6 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 …]
|
D | ipmi_si_platform.c | 60 struct si_sm_io *io = context; in ipmi_acpi_gpe() local 62 ipmi_si_irq_handler(io->irq, io->irq_handler_data); in ipmi_acpi_gpe() 66 static void acpi_gpe_irq_cleanup(struct si_sm_io *io) in acpi_gpe_irq_cleanup() argument 68 if (!io->irq) in acpi_gpe_irq_cleanup() 71 ipmi_irq_start_cleanup(io); in acpi_gpe_irq_cleanup() 72 acpi_remove_gpe_handler(NULL, io->irq, &ipmi_acpi_gpe); in acpi_gpe_irq_cleanup() 75 static int acpi_gpe_irq_setup(struct si_sm_io *io) in acpi_gpe_irq_setup() argument 79 if (!io->irq) in acpi_gpe_irq_setup() 83 io->irq, in acpi_gpe_irq_setup() 86 io); in acpi_gpe_irq_setup() [all …]
|
D | ipmi_si_port_io.c | 6 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 …]
|
D | ipmi_si_pci.c | 24 static int ipmi_pci_probe_regspacing(struct si_sm_io *io) in ipmi_pci_probe_regspacing() argument 26 if (io->si_type == SI_KCS) { in ipmi_pci_probe_regspacing() 30 io->regsize = DEFAULT_REGSIZE; in ipmi_pci_probe_regspacing() 31 io->regshift = 0; in ipmi_pci_probe_regspacing() 35 io->regspacing = regspacing; in ipmi_pci_probe_regspacing() 36 if (io->io_setup(io)) { in ipmi_pci_probe_regspacing() 37 dev_err(io->dev, "Could not setup I/O space\n"); in ipmi_pci_probe_regspacing() 41 io->outputb(io, 1, 0x10); in ipmi_pci_probe_regspacing() 43 status = io->inputb(io, 1); in ipmi_pci_probe_regspacing() 44 io->io_cleanup(io); in ipmi_pci_probe_regspacing() [all …]
|
D | ipmi_si_intf.c | 140 struct si_sm_io io; member 421 if ((smi_info->io.irq) && (!smi_info->interrupt_disabled)) { in disable_si_irq() 431 if ((smi_info->io.irq) && (smi_info->interrupt_disabled)) { in enable_si_irq() 506 if (((smi_info->io.irq && !smi_info->interrupt_disabled) || in current_global_enables() 512 smi_info->io.irq && !smi_info->interrupt_disabled && in current_global_enables() 523 u8 irqstate = smi_info->io.inputb(&smi_info->io, IPMI_BT_INTMASK_REG); in check_bt_irq() 531 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, in check_bt_irq() 534 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, 0); in check_bt_irq() 594 dev_warn_ratelimited(smi_info->io.dev, in handle_transaction_done() 686 dev_warn_ratelimited(smi_info->io.dev, in handle_transaction_done() [all …]
|
D | ipmi_si_parisc.c | 12 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 …]
|
/drivers/media/dvb-frontends/cxd2880/ |
D | cxd2880_tnrdmd_dvbt2.c | 165 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 …]
|
D | cxd2880_tnrdmd.c | 212 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 …]
|
D | cxd2880_tnrdmd_dvbt.c | 105 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 …]
|
D | cxd2880_tnrdmd_mon.c | 29 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 …]
|
D | cxd2880_tnrdmd_dvbt2_mon.c | 40 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 46 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_sync_stat() 118 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() 126 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_carrier_offset() 237 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_pre() 245 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_l1_pre() 408 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_version() 416 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_version() 478 ret = tnr_dmd->io->write_reg(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_ofdm() 486 ret = tnr_dmd->io->read_regs(tnr_dmd->io, in cxd2880_tnrdmd_dvbt2_mon_ofdm() [all …]
|
/drivers/md/bcache/ |
D | movinggc.c | 40 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 …]
|
/drivers/media/radio/ |
D | radio-zoltrix.c | 65 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 …]
|
D | radio-cadet.c | 54 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 …]
|
D | radio-sf16fmi.c | 40 static int io = -1; variable 43 module_param(io, int, 0); 44 MODULE_PARM_DESC(io, "I/O address of the SF16-FMI/SF16-FMP/SF16-FMD card (0x284 or 0x384)"); 52 int io; member 87 outb_p(bits, fmi->io); in fmi_set_pins() 94 outb(0x00, fmi->io); in fmi_mute() 101 outb(0x08, fmi->io); in fmi_unmute() 112 outb(val, fmi->io); in fmi_getsigstr() 113 outb(val | 0x10, fmi->io); in fmi_getsigstr() 115 res = (int)inb(fmi->io + 1); in fmi_getsigstr() [all …]
|
D | radio-rtrack2.c | 39 static int io[RTRACK2_MAX] = { [0] = CONFIG_RADIO_RTRACK2_PORT, variable 43 module_param_array(io, int, NULL, 0444); 44 MODULE_PARM_DESC(io, "I/O addresses of the RadioTrack card (0x20f or 0x30f)"); 55 outb_p(1, isa->io); in zero() 56 outb_p(3, isa->io); in zero() 57 outb_p(1, isa->io); in zero() 62 outb_p(5, isa->io); in one() 63 outb_p(7, isa->io); in one() 64 outb_p(5, isa->io); in one() 73 outb_p(0xc8, isa->io); in rtrack2_s_frequency() [all …]
|
/drivers/md/ |
D | dm-io.c | 33 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 …]
|
D | raid5-ppl.c | 208 struct ppl_io_unit *io; in ppl_io_pool_alloc() local 210 io = kmem_cache_alloc(kc, gfp_mask); in ppl_io_pool_alloc() 211 if (!io) in ppl_io_pool_alloc() 214 io->header_page = alloc_page(gfp_mask); in ppl_io_pool_alloc() 215 if (!io->header_page) { in ppl_io_pool_alloc() 216 kmem_cache_free(kc, io); in ppl_io_pool_alloc() 220 return io; in ppl_io_pool_alloc() 226 struct ppl_io_unit *io = element; in ppl_io_pool_free() local 228 __free_page(io->header_page); in ppl_io_pool_free() 229 kmem_cache_free(kc, io); in ppl_io_pool_free() [all …]
|
/drivers/scsi/elx/libefc/ |
D | efc_els.c | 68 els->io.req.size = reqlen; in efc_els_io_alloc_size() 69 els->io.req.virt = dma_alloc_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size() 70 &els->io.req.phys, GFP_DMA); in efc_els_io_alloc_size() 71 if (!els->io.req.virt) { in efc_els_io_alloc_size() 76 els->io.rsp.size = rsplen; in efc_els_io_alloc_size() 77 els->io.rsp.virt = dma_alloc_coherent(&efc->pci->dev, els->io.rsp.size, in efc_els_io_alloc_size() 78 &els->io.rsp.phys, GFP_DMA); in efc_els_io_alloc_size() 79 if (!els->io.rsp.virt) { in efc_els_io_alloc_size() 80 dma_free_coherent(&efc->pci->dev, els->io.req.size, in efc_els_io_alloc_size() 81 els->io.req.virt, els->io.req.phys); in efc_els_io_alloc_size() [all …]
|
/drivers/input/gameport/ |
D | ns558.c | 33 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 …]
|
/drivers/input/serio/ |
D | ambakmi.c | 27 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 …]
|
D | arc_ps2.c | 35 struct serio *io; member 70 serio_interrupt(port->io, data, flag); in arc_ps2_check_rx() 73 dev_err(&port->io->dev, "PS/2 hardware stuck\n"); in arc_ps2_check_rx() 87 static int arc_ps2_write(struct serio *io, unsigned char val) in arc_ps2_write() argument 90 struct arc_ps2_port *port = io->port_data; in arc_ps2_write() 104 dev_err(&io->dev, "write timeout\n"); in arc_ps2_write() 108 static int arc_ps2_open(struct serio *io) in arc_ps2_open() argument 110 struct arc_ps2_port *port = io->port_data; in arc_ps2_open() 117 static void arc_ps2_close(struct serio *io) in arc_ps2_close() argument 119 struct arc_ps2_port *port = io->port_data; in arc_ps2_close() [all …]
|