Home
last modified time | relevance | path

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

12345678910>>...15

/drivers/staging/lustre/lustre/obdclass/
Dcl_io.c54 #define cl_io_for_each(slice, io) \ argument
55 list_for_each_entry((slice), &io->ci_layers, cis_linkage)
56 #define cl_io_for_each_reverse(slice, io) \ argument
57 list_for_each_entry_reverse((slice), &io->ci_layers, cis_linkage)
64 static inline int cl_io_is_loopable(const struct cl_io *io) in cl_io_is_loopable() argument
66 return cl_io_type_is_valid(io->ci_type) && io->ci_type != CIT_MISC; in cl_io_is_loopable()
81 static int cl_io_invariant(const struct cl_io *io) in cl_io_invariant() argument
85 up = io->ci_parent; in cl_io_invariant()
92 ergo(io->ci_owned_nr > 0, io->ci_state == CIS_IO_GOING || in cl_io_invariant()
93 (io->ci_state == CIS_LOCKED && up)); in cl_io_invariant()
[all …]
/drivers/staging/lustre/lustre/llite/
Dvvp_io.c62 static bool can_populate_pages(const struct lu_env *env, struct cl_io *io, in can_populate_pages() argument
69 switch (io->ci_type) { in can_populate_pages()
77 io->ci_need_restart = 1; in can_populate_pages()
79 io->ci_continue = 0; in can_populate_pages()
119 struct cl_io *io, loff_t start, size_t count, in vvp_prep_size() argument
158 result = cl_glimpse_lock(env, io, inode, obj, 0); in vvp_prep_size()
205 static int vvp_io_one_lock_index(const struct lu_env *env, struct cl_io *io, in vvp_io_one_lock_index() argument
211 struct cl_object *obj = io->ci_obj; in vvp_io_one_lock_index()
231 cl_io_lock_add(env, io, &vio->vui_link); in vvp_io_one_lock_index()
235 static int vvp_io_one_lock(const struct lu_env *env, struct cl_io *io, in vvp_io_one_lock() argument
[all …]
Dglimpse.c80 int cl_glimpse_lock(const struct lu_env *env, struct cl_io *io, in cl_glimpse_lock() argument
118 result = cl_lock_request(env, io, lock); in cl_glimpse_lock()
144 struct cl_io *io; in cl_io_get() local
152 io = vvp_env_thread_io(env); in cl_io_get()
153 io->ci_obj = clob; in cl_io_get()
155 *ioout = io; in cl_io_get()
179 struct cl_io *io = NULL; in cl_glimpse_size0() local
183 result = cl_io_get(inode, &env, &io, &refcheck); in cl_glimpse_size0()
186 io->ci_verify_layout = 1; in cl_glimpse_size0()
187 result = cl_io_init(env, io, CIT_MISC, io->ci_obj); in cl_glimpse_size0()
[all …]
Dllite_mmap.c94 struct cl_io *io; in ll_fault_io_init() local
102 io = vvp_env_thread_io(env); in ll_fault_io_init()
103 io->ci_obj = ll_i2info(inode)->lli_clob; in ll_fault_io_init()
104 LASSERT(io->ci_obj); in ll_fault_io_init()
106 fio = &io->u.ci_fault; in ll_fault_io_init()
123 rc = cl_io_init(env, io, CIT_FAULT, io->ci_obj); in ll_fault_io_init()
128 LASSERT(vio->vui_cl.cis_io == io); in ll_fault_io_init()
131 io->ci_lockreq = CILR_MANDATORY; in ll_fault_io_init()
135 cl_io_fini(env, io); in ll_fault_io_init()
136 if (io->ci_need_restart) in ll_fault_io_init()
[all …]
/drivers/md/bcache/
Dmovinggc.c40 struct moving_io *io = container_of(cl, struct moving_io, cl); in moving_io_destructor() local
41 kfree(io); in moving_io_destructor()
46 struct moving_io *io = container_of(cl, struct moving_io, cl); in write_moving_finish() local
47 struct bio *bio = &io->bio.bio; in write_moving_finish()
51 if (io->op.replace_collision) in write_moving_finish()
52 trace_bcache_gc_copy_collision(&io->w->key); in write_moving_finish()
54 bch_keybuf_del(&io->op.c->moving_gc_keys, io->w); in write_moving_finish()
56 up(&io->op.c->moving_in_flight); in write_moving_finish()
64 struct moving_io *io = container_of(bio->bi_private, in read_moving_endio() local
68 io->op.status = bio->bi_status; in read_moving_endio()
[all …]
Dwriteback.c109 struct dirty_io *io = w->private; in dirty_init() local
110 struct bio *bio = &io->bio; in dirty_init()
114 if (!io->dc->writeback_percent) in dirty_init()
124 struct dirty_io *io = container_of(cl, struct dirty_io, cl); in dirty_io_destructor() local
125 kfree(io); in dirty_io_destructor()
130 struct dirty_io *io = container_of(cl, struct dirty_io, cl); in write_dirty_finish() local
131 struct keybuf_key *w = io->bio.bi_private; in write_dirty_finish()
132 struct cached_dev *dc = io->dc; in write_dirty_finish()
134 bio_free_pages(&io->bio); in write_dirty_finish()
170 struct dirty_io *io = w->private; in dirty_endio() local
[all …]
/drivers/media/radio/
Dradio-zoltrix.c64 static int io[ZOLTRIX_MAX] = { [0] = CONFIG_RADIO_ZOLTRIX_PORT, variable
68 module_param_array(io, int, NULL, 0444);
69 MODULE_PARM_DESC(io, "I/O addresses of the Zoltrix Radio Plus card (0x20c or 0x30c)");
93 outb(0, isa->io); in zoltrix_s_mute_volume()
94 outb(0, isa->io); in zoltrix_s_mute_volume()
95 inb(isa->io + 3); /* Zoltrix needs to be read to confirm */ in zoltrix_s_mute_volume()
99 outb(vol - 1, isa->io); in zoltrix_s_mute_volume()
101 inb(isa->io + 2); in zoltrix_s_mute_volume()
125 outb(0, isa->io); in zoltrix_s_frequency()
126 outb(0, isa->io); in zoltrix_s_frequency()
[all …]
Dradio-cadet.c53 static int io = -1; /* default to isapnp activation */ variable
56 module_param(io, int, 0);
57 MODULE_PARM_DESC(io, "I/O address of Cadet card (0x330,0x332,0x334,0x336,0x338,0x33a,0x33c,0x33e)");
68 int io; member
121 outb(7, dev->io); /* Select tuner control */ in cadet_getstereo()
122 if ((inb(dev->io + 1) & 0x40) == 0) in cadet_getstereo()
136 outb(7, dev->io); /* Select tuner control */ in cadet_gettune()
137 curvol = inb(dev->io + 1); /* Save current volume/mute setting */ in cadet_gettune()
138 outb(0x00, dev->io + 1); /* Ensure WRITE-ENABLE is LOW */ in cadet_gettune()
145 fifo = (fifo << 1) | ((inb(dev->io + 1) >> 7) & 0x01); in cadet_gettune()
[all …]
Dradio-sf16fmi.c39 static int io = -1; variable
42 module_param(io, int, 0);
43 MODULE_PARM_DESC(io, "I/O address of the SF16-FMI/SF16-FMP/SF16-FMD card (0x284 or 0x384)");
51 int io; member
86 outb_p(bits, fmi->io); in fmi_set_pins()
93 outb(0x00, fmi->io); in fmi_mute()
100 outb(0x08, fmi->io); in fmi_unmute()
111 outb(val, fmi->io); in fmi_getsigstr()
112 outb(val | 0x10, fmi->io); in fmi_getsigstr()
114 res = (int)inb(fmi->io + 1); in fmi_getsigstr()
[all …]
Dradio-rtrack2.c38 static int io[RTRACK2_MAX] = { [0] = CONFIG_RADIO_RTRACK2_PORT, variable
42 module_param_array(io, int, NULL, 0444);
43 MODULE_PARM_DESC(io, "I/O addresses of the RadioTrack card (0x20f or 0x30f)");
54 outb_p(1, isa->io); in zero()
55 outb_p(3, isa->io); in zero()
56 outb_p(1, isa->io); in zero()
61 outb_p(5, isa->io); in one()
62 outb_p(7, isa->io); in one()
63 outb_p(5, isa->io); in one()
72 outb_p(0xc8, isa->io); in rtrack2_s_frequency()
[all …]
/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 …]
Draid5-ppl.c208 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/input/gameport/
Dns558.c49 int io; member
64 static int ns558_isa_probe(int io) in ns558_isa_probe() argument
75 if (!request_region(io, 1, "ns558-isa")) in ns558_isa_probe()
83 c = inb(io); in ns558_isa_probe()
84 outb(~c & ~3, io); in ns558_isa_probe()
85 if (~(u = v = inb(io)) & 3) { in ns558_isa_probe()
86 outb(c, io); in ns558_isa_probe()
87 release_region(io, 1); in ns558_isa_probe()
94 for (i = 0; i < 1000; i++) v &= inb(io); in ns558_isa_probe()
97 outb(c, io); in ns558_isa_probe()
[all …]
/drivers/input/serio/
Dambakmi.c31 struct serio *io; member
46 serio_interrupt(kmi->io, readb(KMIDATA), 0); in amba_kmi_int()
54 static int amba_kmi_write(struct serio *io, unsigned char val) in amba_kmi_write() argument
56 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_write()
68 static int amba_kmi_open(struct serio *io) in amba_kmi_open() argument
70 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_open()
100 static void amba_kmi_close(struct serio *io) in amba_kmi_close() argument
102 struct amba_kmi_port *kmi = io->port_data; in amba_kmi_close()
114 struct serio *io; in amba_kmi_probe() local
122 io = kzalloc(sizeof(struct serio), GFP_KERNEL); in amba_kmi_probe()
[all …]
Darc_ps2.c38 struct serio *io; member
73 serio_interrupt(port->io, data, flag); in arc_ps2_check_rx()
76 dev_err(&port->io->dev, "PS/2 hardware stuck\n"); in arc_ps2_check_rx()
90 static int arc_ps2_write(struct serio *io, unsigned char val) in arc_ps2_write() argument
93 struct arc_ps2_port *port = io->port_data; in arc_ps2_write()
107 dev_err(&io->dev, "write timeout\n"); in arc_ps2_write()
111 static int arc_ps2_open(struct serio *io) in arc_ps2_open() argument
113 struct arc_ps2_port *port = io->port_data; in arc_ps2_open()
120 static void arc_ps2_close(struct serio *io) in arc_ps2_close() argument
122 struct arc_ps2_port *port = io->port_data; in arc_ps2_close()
[all …]
Dapbps2.c57 struct serio *io; member
78 serio_interrupt(priv->io, data, rxflags); in apbps2_isr()
86 static int apbps2_write(struct serio *io, unsigned char val) in apbps2_write() argument
88 struct apbps2_priv *priv = io->port_data; in apbps2_write()
106 static int apbps2_open(struct serio *io) in apbps2_open() argument
108 struct apbps2_priv *priv = io->port_data; in apbps2_open()
126 static void apbps2_close(struct serio *io) in apbps2_close() argument
128 struct apbps2_priv *priv = io->port_data; in apbps2_close()
175 priv->io = kzalloc(sizeof(struct serio), GFP_KERNEL); in apbps2_of_probe()
176 if (!priv->io) in apbps2_of_probe()
[all …]
Dat32psif.c98 struct serio *io; member
123 serio_interrupt(psif->io, val, io_flags); in psif_interrupt()
131 static int psif_write(struct serio *io, unsigned char val) in psif_write() argument
133 struct psif *psif = io->port_data; in psif_write()
155 static int psif_open(struct serio *io) in psif_open() argument
157 struct psif *psif = io->port_data; in psif_open()
171 static void psif_close(struct serio *io) in psif_close() argument
173 struct psif *psif = io->port_data; in psif_close()
206 struct serio *io; in psif_probe() local
216 io = kzalloc(sizeof(struct serio), GFP_KERNEL); in psif_probe()
[all …]
/drivers/char/ipmi/
Dipmi_si_intf.c180 struct si_sm_io io; member
607 u8 irqstate = smi_info->io.inputb(&smi_info->io, IPMI_BT_INTMASK_REG); in check_bt_irq()
615 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, in check_bt_irq()
618 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, 0); in check_bt_irq()
1234 smi_info->io.outputb(&smi_info->io, IPMI_BT_INTMASK_REG, in si_bt_irq_handler()
1449 info->io.outputb(&info->io, IPMI_BT_INTMASK_REG, 0); in std_irq_cleanup()
1468 info->io.outputb(&info->io, IPMI_BT_INTMASK_REG, in std_irq_setup()
1489 static unsigned char port_inb(const struct si_sm_io *io, unsigned int offset) in port_inb() argument
1491 unsigned int addr = io->addr_data; in port_inb()
1493 return inb(addr + (offset * io->regspacing)); in port_inb()
[all …]
/drivers/staging/lustre/lustre/lov/
Dlov_io.c68 static void lov_io_sub_inherit(struct cl_io *io, struct lov_io *lio, in lov_io_sub_inherit() argument
74 switch (io->ci_type) { in lov_io_sub_inherit()
76 io->u.ci_setattr.sa_attr = parent->u.ci_setattr.sa_attr; in lov_io_sub_inherit()
77 io->u.ci_setattr.sa_attr_flags = in lov_io_sub_inherit()
79 io->u.ci_setattr.sa_valid = parent->u.ci_setattr.sa_valid; in lov_io_sub_inherit()
80 io->u.ci_setattr.sa_stripe_index = stripe; in lov_io_sub_inherit()
81 io->u.ci_setattr.sa_parent_fid = in lov_io_sub_inherit()
83 if (cl_io_is_trunc(io)) { in lov_io_sub_inherit()
87 io->u.ci_setattr.sa_attr.lvb_size = new_size; in lov_io_sub_inherit()
92 io->u.ci_data_version.dv_data_version = 0; in lov_io_sub_inherit()
[all …]
/drivers/watchdog/
Dwd501p.h23 #define WDT_COUNT0 (io+0)
24 #define WDT_COUNT1 (io+1)
25 #define WDT_COUNT2 (io+2)
26 #define WDT_CR (io+3)
27 #define WDT_SR (io+4) /* Start buzzer on PCI write */
28 #define WDT_RT (io+5) /* Stop buzzer on PCI write */
29 #define WDT_BUZZER (io+6) /* PCI only: rd=disable, wr=enable */
30 #define WDT_DC (io+7)
34 #define WDT_CLOCK (io+12) /* COUNT2: rd=16.67MHz, wr=2.0833MHz */
36 #define WDT_OPTONOTRST (io+13) /* wr=enable, rd=disable */
[all …]
/drivers/rtc/
Drtc-stmp3xxx.c67 void __iomem *io; member
91 writel(timeout, rtc_data->io + STMP3XXX_RTC_WATCHDOG); in stmp3xxx_wdt_set_timeout()
93 rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_SET); in stmp3xxx_wdt_set_timeout()
95 rtc_data->io + STMP3XXX_RTC_PERSISTENT1 + STMP_OFFSET_REG_SET); in stmp3xxx_wdt_set_timeout()
98 rtc_data->io + STMP3XXX_RTC_CTRL + STMP_OFFSET_REG_CLR); in stmp3xxx_wdt_set_timeout()
100 rtc_data->io + STMP3XXX_RTC_PERSISTENT1 + STMP_OFFSET_REG_CLR); in stmp3xxx_wdt_set_timeout()
144 if (!(readl(rtc_data->io + STMP3XXX_RTC_STAT) & in stmp3xxx_wait_time()
149 return (readl(rtc_data->io + STMP3XXX_RTC_STAT) & in stmp3xxx_wait_time()
163 rtc_time_to_tm(readl(rtc_data->io + STMP3XXX_RTC_SECONDS), rtc_tm); in stmp3xxx_rtc_gettime()
171 writel(t, rtc_data->io + STMP3XXX_RTC_SECONDS); in stmp3xxx_rtc_set_mmss()
[all …]
/drivers/net/wan/
Dn2.c120 u16 io; /* IO Base address */ member
135 #define sca_reg(reg, card) (0x8000 | (card)->io | \
153 return inb(card->io + N2_PSR) & PSR_PAGEBITS; in sca_get_page()
159 u8 psr = inb(card->io + N2_PSR); in openwin()
160 outb((psr & ~PSR_PAGEBITS) | page, card->io + N2_PSR); in openwin()
170 int io = card->io; in n2_set_iface() local
171 u8 mcr = inb(io + N2_MCR); in n2_set_iface()
201 outb(mcr, io + N2_MCR); in n2_set_iface()
214 int io = port->card->io; in n2_open() local
215 u8 mcr = inb(io + N2_MCR) | (port->phy_node ? TX422_PORT1:TX422_PORT0); in n2_open()
[all …]
/drivers/media/rc/
Dsir_ir.c35 static int io = 0x3e8; variable
66 return inb(io + offset); in sinp()
71 outb(value, io + offset); in soutp()
139 outb(UART_FCR_CLEAR_RCVR, io + UART_FCR); in sir_timeout()
164 while ((iir = inb(io + UART_IIR) & UART_IIR_ID)) { in sir_interrupt()
172 (void)inb(io + UART_MSR); in sir_interrupt()
176 (void)inb(io + UART_LSR); in sir_interrupt()
183 data = inb(io + UART_RX); in sir_interrupt()
234 lsr = inb(io + UART_LSR); in sir_interrupt()
259 outb(PULSE, io + UART_TX); in send_pulse()
[all …]
/drivers/staging/comedi/drivers/
Dcomedi_8255.c47 int (*io)(struct comedi_device *dev, int dir, int port, int data, member
84 spriv->io(dev, 1, I8255_DATA_A_REG, in subdev_8255_insn()
87 spriv->io(dev, 1, I8255_DATA_B_REG, in subdev_8255_insn()
90 spriv->io(dev, 1, I8255_DATA_C_REG, in subdev_8255_insn()
94 v = spriv->io(dev, 0, I8255_DATA_A_REG, 0, regbase); in subdev_8255_insn()
95 v |= (spriv->io(dev, 0, I8255_DATA_B_REG, 0, regbase) << 8); in subdev_8255_insn()
96 v |= (spriv->io(dev, 0, I8255_DATA_C_REG, 0, regbase) << 16); in subdev_8255_insn()
121 spriv->io(dev, 1, I8255_CTRL_REG, config, regbase); in subdev_8255_do_config()
153 int (*io)(struct comedi_device *dev, in __subdev_8255_init()
165 if (io) in __subdev_8255_init()
[all …]
/drivers/mtd/nand/
Dsharpsl.c34 void __iomem *io; member
80 writeb((readb(sharpsl->io + FLASHCTL) & ~0x17) | bits, sharpsl->io + FLASHCTL); in sharpsl_nand_hwcontrol()
90 return !((readb(sharpsl->io + FLASHCTL) & FLRYBY) == 0); in sharpsl_nand_dev_ready()
96 writeb(0, sharpsl->io + ECCCLRR); in sharpsl_nand_enable_hwecc()
102 ecc_code[0] = ~readb(sharpsl->io + ECCLPUB); in sharpsl_nand_calculate_ecc()
103 ecc_code[1] = ~readb(sharpsl->io + ECCLPLB); in sharpsl_nand_calculate_ecc()
104 ecc_code[2] = (~readb(sharpsl->io + ECCCP) << 2) | 0x03; in sharpsl_nand_calculate_ecc()
105 return readb(sharpsl->io + ECCCNTR) != 0; in sharpsl_nand_calculate_ecc()
138 sharpsl->io = ioremap(r->start, resource_size(r)); in sharpsl_nand_probe()
139 if (!sharpsl->io) { in sharpsl_nand_probe()
[all …]

12345678910>>...15