Home
last modified time | relevance | path

Searched refs:ios (Results 1 – 77 of 77) sorted by relevance

/linux-4.1.27/fs/exofs/
Dore.c124 static u8 *_ios_cred(struct ore_io_state *ios, unsigned index) in _ios_cred() argument
126 return ios->oc->comps[index & ios->oc->single_comp].cred; in _ios_cred()
129 static struct osd_obj_id *_ios_obj(struct ore_io_state *ios, unsigned index) in _ios_obj() argument
131 return &ios->oc->comps[index & ios->oc->single_comp].obj; in _ios_obj()
134 static struct osd_dev *_ios_od(struct ore_io_state *ios, unsigned index) in _ios_od() argument
137 ios->oc->first_dev, ios->oc->numdevs, index, in _ios_od()
138 ios->oc->ods); in _ios_od()
140 return ore_comp_dev(ios->oc, index); in _ios_od()
148 struct ore_io_state *ios; in _ore_get_io_state() local
152 struct ore_io_state ios; in _ore_get_io_state() member
[all …]
Dore_raid.c319 static int _alloc_read_4_write(struct ore_io_state *ios) in _alloc_read_4_write() argument
321 struct ore_layout *layout = ios->layout; in _alloc_read_4_write()
326 unsigned sgs_per_dev = ios->sp2d->pages_in_unit + 2; in _alloc_read_4_write()
328 ret = _ore_get_io_state(layout, ios->oc, in _alloc_read_4_write()
330 sgs_per_dev, 0, &ios->ios_read_4_write); in _alloc_read_4_write()
337 static int _add_to_r4w(struct ore_io_state *ios, struct ore_striping_info *si, in _add_to_r4w() argument
344 (ios->layout->group_width * ios->layout->mirrors_p1)); in _add_to_r4w()
348 if (!ios->ios_read_4_write) { in _add_to_r4w()
349 int ret = _alloc_read_4_write(ios); in _add_to_r4w()
355 read_ios = ios->ios_read_4_write; in _add_to_r4w()
[all …]
Dinode.c53 struct ore_io_state *ios; member
75 pcol->ios = NULL; in _pcol_init()
94 pcol->ios = NULL; in _pcol_reset()
131 if (pcol->ios) { in pcol_free()
132 ore_put_io_state(pcol->ios); in pcol_free()
133 pcol->ios = NULL; in pcol_free()
200 int ret = ore_check_io(pcol->ios, NULL); in __readpages_done()
243 static void readpages_done(struct ore_io_state *ios, void *p) in readpages_done() argument
268 static int _maybe_not_all_in_one_io(struct ore_io_state *ios, in _maybe_not_all_in_one_io() argument
272 BUG_ON(pcol_src->nr_pages < ios->nr_pages); in _maybe_not_all_in_one_io()
[all …]
Dore_raid.h35 int _ore_post_alloc_raid_stuff(struct ore_io_state *ios);
36 void _ore_free_raid_stuff(struct ore_io_state *ios);
40 int _ore_add_parity_unit(struct ore_io_state *ios, struct ore_striping_info *si,
58 int _ore_add_stripe_unit(struct ore_io_state *ios, unsigned *cur_pg,
61 int _ore_read_mirror(struct ore_io_state *ios, unsigned cur_comp);
62 int ore_io_execute(struct ore_io_state *ios);
Dsuper.c271 struct ore_io_state *ios; in __sbi_read_stats() local
274 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in __sbi_read_stats()
280 ios->in_attr = attrs; in __sbi_read_stats()
281 ios->in_attr_len = ARRAY_SIZE(attrs); in __sbi_read_stats()
283 ret = ore_read(ios); in __sbi_read_stats()
289 ret = extract_attr_from_ios(ios, &attrs[0]); in __sbi_read_stats()
310 ore_put_io_state(ios); in __sbi_read_stats()
314 static void stats_done(struct ore_io_state *ios, void *p) in stats_done() argument
316 ore_put_io_state(ios); in stats_done()
326 struct ore_io_state *ios; in exofs_sbi_write_stats() local
[all …]
/linux-4.1.27/drivers/mmc/core/
Ddebugfs.c56 struct mmc_ios *ios = &host->ios; in mmc_ios_show() local
59 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show()
62 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show()
63 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show()
65 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show()
66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show()
67 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show()
68 vdd_str[ios->vdd + 1]); in mmc_ios_show()
72 switch (ios->bus_mode) { in mmc_ios_show()
83 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
[all …]
Dcore.c993 struct mmc_ios *ios = &host->ios; in mmc_set_ios() local
997 mmc_hostname(host), ios->clock, ios->bus_mode, in mmc_set_ios()
998 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
999 ios->bus_width, ios->timing); in mmc_set_ios()
1001 if (ios->clock > 0) in mmc_set_ios()
1003 host->ops->set_ios(host, ios); in mmc_set_ios()
1012 host->ios.chip_select = mode; in mmc_set_chip_select()
1028 host->ios.clock = hz; in __mmc_set_clock()
1048 host->clk_old = host->ios.clock; in mmc_gate_clock()
1049 host->ios.clock = 0; in mmc_gate_clock()
[all …]
Dmmc.c783 switch (1 << host->ios.vdd) { in __mmc_select_powerclass()
785 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass()
787 else if (host->ios.clock <= MMC_HIGH_52_MAX_DTR) in __mmc_select_powerclass()
791 else if (host->ios.clock <= MMC_HS200_MAX_DTR) in __mmc_select_powerclass()
803 if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) in __mmc_select_powerclass()
805 else if (host->ios.clock <= MMC_HIGH_52_MAX_DTR) in __mmc_select_powerclass()
809 else if (host->ios.clock <= MMC_HS200_MAX_DTR) in __mmc_select_powerclass()
848 bus_width = host->ios.bus_width; in mmc_select_powerclass()
987 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
1055 host->ios.bus_width == MMC_BUS_WIDTH_8)) in mmc_select_hs400()
[all …]
Dmmc_ops.c586 struct mmc_ios *ios = &host->ios; in mmc_send_tuning() local
592 if (ios->bus_width == MMC_BUS_WIDTH_8) { in mmc_send_tuning()
596 } else if (ios->bus_width == MMC_BUS_WIDTH_4) { in mmc_send_tuning()
Dsd.c534 voltage = 1 << host->ios.vdd; in sd_get_host_max_current()
664 (card->host->ios.timing == MMC_TIMING_UHS_SDR50 || in mmc_sd_init_uhs_card()
665 card->host->ios.timing == MMC_TIMING_UHS_DDR50 || in mmc_sd_init_uhs_card()
666 card->host->ios.timing == MMC_TIMING_UHS_SDR104)) { in mmc_sd_init_uhs_card()
676 if (err && card->host->ios.timing == MMC_TIMING_UHS_DDR50) { in mmc_sd_init_uhs_card()
Dhost.c97 unsigned long freq = host->ios.clock; in mmc_host_clk_gate_delayed()
234 freq = host->ios.clock; in mmc_host_clk_rate()
Dsdio.c569 ((card->host->ios.timing == MMC_TIMING_UHS_SDR50) || in mmc_sdio_init_uhs_card()
570 (card->host->ios.timing == MMC_TIMING_UHS_SDR104))) in mmc_sdio_init_uhs_card()
/linux-4.1.27/include/scsi/
Dosd_ore.h109 typedef void (*ore_io_done_fn)(struct ore_io_state *ios, void *private);
180 struct ore_io_state **ios);
182 struct ore_io_state **ios);
183 void ore_put_io_state(struct ore_io_state *ios);
185 typedef void (*ore_on_dev_error)(struct ore_io_state *ios, struct ore_dev *od,
188 int ore_check_io(struct ore_io_state *ios, ore_on_dev_error rep);
190 int ore_create(struct ore_io_state *ios);
191 int ore_remove(struct ore_io_state *ios);
192 int ore_write(struct ore_io_state *ios);
193 int ore_read(struct ore_io_state *ios);
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dvvp_io.c105 const struct cl_io_slice *ios) in vvp_io_fault_iter_init() argument
107 struct vvp_io *vio = cl2vvp_io(env, ios); in vvp_io_fault_iter_init()
108 struct inode *inode = ccc_object_inode(ios->cis_obj); in vvp_io_fault_iter_init()
111 file_inode(cl2ccc_io(env, ios)->cui_fd->fd_file)); in vvp_io_fault_iter_init()
116 static void vvp_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in vvp_io_fini() argument
118 struct cl_io *io = ios->cis_io; in vvp_io_fini()
120 struct ccc_io *cio = cl2ccc_io(env, ios); in vvp_io_fini()
178 const struct cl_io_slice *ios) in vvp_io_fault_fini() argument
180 struct cl_io *io = ios->cis_io; in vvp_io_fault_fini()
190 vvp_io_fini(env, ios); in vvp_io_fault_fini()
[all …]
/linux-4.1.27/fs/nfs/objlayout/
Dobjio_osd.c82 struct ore_io_state *ios; member
300 struct ore_io_state *ios; in objio_alloc_io_state() local
315 offset, count, &ios); in objio_alloc_io_state()
321 ios->pages = pages; in objio_alloc_io_state()
322 ios->pgbase = pgbase; in objio_alloc_io_state()
323 ios->private = aos; in objio_alloc_io_state()
324 BUG_ON(ios->nr_pages > (pgbase + count + PAGE_SIZE - 1) >> PAGE_SHIFT); in objio_alloc_io_state()
327 aos->objios.ios = ios; in objio_alloc_io_state()
336 ore_put_io_state(objios->ios); in objio_free_result()
370 static void __on_dev_error(struct ore_io_state *ios, in __on_dev_error() argument
[all …]
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_sdio.c178 host->ios.vdd = bit; in rsi_reset_card()
179 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card()
180 host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; in rsi_reset_card()
181 host->ios.power_mode = MMC_POWER_UP; in rsi_reset_card()
182 host->ios.bus_width = MMC_BUS_WIDTH_1; in rsi_reset_card()
183 host->ios.timing = MMC_TIMING_LEGACY; in rsi_reset_card()
184 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
192 host->ios.clock = host->f_min; in rsi_reset_card()
193 host->ios.power_mode = MMC_POWER_ON; in rsi_reset_card()
194 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_io.c353 static void lov_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in lov_io_fini() argument
355 struct lov_io *lio = cl2lov_io(env, ios); in lov_io_fini()
356 struct lov_object *lov = cl2lov(ios->cis_obj); in lov_io_fini()
380 const struct cl_io_slice *ios) in lov_io_iter_init() argument
382 struct lov_io *lio = cl2lov_io(env, ios); in lov_io_iter_init()
398 if (ios->cis_io->ci_type == CIT_READ || in lov_io_iter_init()
399 ios->cis_io->ci_type == CIT_WRITE || in lov_io_iter_init()
400 ios->cis_io->ci_type == CIT_FAULT) in lov_io_iter_init()
427 const struct cl_io_slice *ios) in lov_io_rw_iter_init() argument
429 struct lov_io *lio = cl2lov_io(env, ios); in lov_io_rw_iter_init()
[all …]
Dlov_cl_internal.h806 const struct cl_io_slice *ios) in cl2lov_io() argument
810 lio = container_of(ios, struct lov_io, lis_cl); in cl2lov_io()
/linux-4.1.27/drivers/mmc/host/
Ddw_mmc-rockchip.c34 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument
40 if (ios->clock == 0) in dw_mci_rk3288_set_ios()
53 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios()
54 ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_rk3288_set_ios()
55 cclkin = 2 * ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
57 cclkin = ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
61 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_rk3288_set_ios()
Ddw_mmc-k3.c21 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_k3_set_ios() argument
25 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
27 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios()
Dbfin_sdh.c356 static void sdh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdh_set_ios() argument
370 switch (ios->bus_width) { in sdh_set_ios()
396 host->power_mode = ios->power_mode; in sdh_set_ios()
398 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) { in sdh_set_ios()
405 if (ios->power_mode != MMC_POWER_OFF) in sdh_set_ios()
413 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) in sdh_set_ios()
419 if (ios->power_mode != MMC_POWER_OFF) in sdh_set_ios()
428 if (ios->power_mode == MMC_POWER_ON && ios->clock) { in sdh_set_ios()
430 clk_div = (get_sclk() / ios->clock - 1) / 2; in sdh_set_ios()
440 if (ios->power_mode == MMC_POWER_ON) in sdh_set_ios()
[all …]
Dsdhci.c228 static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios);
249 sdhci_set_ios(host->mmc, &host->mmc->ios); in sdhci_init()
1497 static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) in sdhci_do_set_ios() argument
1508 ios->power_mode == MMC_POWER_OFF) in sdhci_do_set_ios()
1517 if (ios->power_mode == MMC_POWER_OFF) { in sdhci_do_set_ios()
1523 (ios->power_mode == MMC_POWER_UP) && in sdhci_do_set_ios()
1527 if (!ios->clock || ios->clock != host->clock) { in sdhci_do_set_ios()
1528 host->ops->set_clock(host, ios->clock); in sdhci_do_set_ios()
1529 host->clock = ios->clock; in sdhci_do_set_ios()
1544 sdhci_set_power(host, ios->power_mode, ios->vdd); in sdhci_do_set_ios()
[all …]
Domap_hsmmc.c513 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios) in calc_divisor() argument
517 if (ios->clock) { in calc_divisor()
518 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
528 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
533 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock); in omap_hsmmc_set_clock()
539 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
561 (ios->timing != MMC_TIMING_MMC_DDR52) && in omap_hsmmc_set_clock()
562 (ios->timing != MMC_TIMING_UHS_DDR50) && in omap_hsmmc_set_clock()
578 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_width() local
582 if (ios->timing == MMC_TIMING_MMC_DDR52 || in omap_hsmmc_set_bus_width()
[all …]
Dmmci.c361 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_set_clkreg()
363 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_set_clkreg()
366 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_set_clkreg()
367 host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) in mmci_set_clkreg()
840 if (host->mmc->ios.timing == MMC_TIMING_UHS_DDR50 || in mmci_start_data()
841 host->mmc->ios.timing == MMC_TIMING_MMC_DDR52) in mmci_start_data()
1313 static void mmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmci_set_ios() argument
1324 host->plat->ios_handler(mmc_dev(mmc), ios)) in mmci_set_ios()
1327 switch (ios->power_mode) { in mmci_set_ios()
1340 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in mmci_set_ios()
[all …]
Dmvsdio.c603 static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mvsd_set_ios() argument
609 if (ios->power_mode == MMC_POWER_UP) in mvsd_set_ios()
612 if (ios->clock == 0) { in mvsd_set_ios()
617 } else if (ios->clock != host->clock) { in mvsd_set_ios()
618 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios()
622 host->clock = ios->clock; in mvsd_set_ios()
625 ios->clock, host->base_clock / (m+1), m); in mvsd_set_ios()
636 if (ios->bus_mode == MMC_BUSMODE_PUSHPULL) in mvsd_set_ios()
639 if (ios->bus_width == MMC_BUS_WIDTH_4) in mvsd_set_ios()
650 if (ios->timing == MMC_TIMING_MMC_HS || in mvsd_set_ios()
[all …]
Dpxamci.c468 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() argument
472 if (ios->clock) { in pxamci_set_ios()
474 unsigned int clk = rate / ios->clock; in pxamci_set_ios()
479 if (ios->clock == 26000000) { in pxamci_set_ios()
492 if (rate / clk > ios->clock) in pxamci_set_ios()
508 if (host->power_mode != ios->power_mode) { in pxamci_set_ios()
511 host->power_mode = ios->power_mode; in pxamci_set_ios()
513 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios()
525 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios()
529 if (ios->bus_width == MMC_BUS_WIDTH_4) in pxamci_set_ios()
Dtifm_sd.c797 static void tifm_sd_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tifm_sd_ios() argument
808 ios->clock, ios->vdd, ios->bus_mode, ios->chip_select, in tifm_sd_ios()
809 ios->power_mode, ios->bus_width); in tifm_sd_ios()
811 if (ios->bus_width == MMC_BUS_WIDTH_4) { in tifm_sd_ios()
820 if (ios->clock) { in tifm_sd_ios()
821 clk_div1 = 20000000 / ios->clock; in tifm_sd_ios()
825 clk_div2 = 24000000 / ios->clock; in tifm_sd_ios()
829 if ((20000000 / clk_div1) > ios->clock) in tifm_sd_ios()
831 if ((24000000 / clk_div2) > ios->clock) in tifm_sd_ios()
855 host->open_drain = (ios->bus_mode == MMC_BUSMODE_OPENDRAIN); in tifm_sd_ios()
Dtoshsd.c81 static void __toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in __toshsd_set_ios() argument
85 if (ios->clock) { in __toshsd_set_ios()
89 while (ios->clock < HCLK / div) in __toshsd_set_ios()
108 switch (ios->power_mode) { in __toshsd_set_ios()
125 switch (ios->bus_width) { in __toshsd_set_ios()
360 __toshsd_set_ios(host->mmc, &host->mmc->ios); in toshsd_irq()
527 static void toshsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in toshsd_set_ios() argument
533 __toshsd_set_ios(mmc, ios); in toshsd_set_ios()
Domap.c1125 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_calc_divisor() argument
1132 if (ios->clock == 0) in mmc_omap_calc_divisor()
1135 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor()
1139 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor()
1147 if (ios->bus_width == MMC_BUS_WIDTH_4) in mmc_omap_calc_divisor()
1153 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_set_ios() argument
1162 dsor = mmc_omap_calc_divisor(mmc, ios); in mmc_omap_set_ios()
1164 if (ios->vdd != slot->vdd) in mmc_omap_set_ios()
1165 slot->vdd = ios->vdd; in mmc_omap_set_ios()
1168 switch (ios->power_mode) { in mmc_omap_set_ios()
[all …]
Ddavinci_mmc.c683 static void calculate_clk_divider(struct mmc_host *mmc, struct mmc_ios *ios) in calculate_clk_divider() argument
689 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) { in calculate_clk_divider()
709 mmc_push_pull_freq = calculate_freq_for_card(host, ios->clock); in calculate_clk_divider()
729 static void mmc_davinci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_davinci_set_ios() argument
737 ios->clock, ios->bus_mode, ios->power_mode, in mmc_davinci_set_ios()
738 ios->vdd); in mmc_davinci_set_ios()
740 switch (ios->power_mode) { in mmc_davinci_set_ios()
751 switch (ios->bus_width) { in mmc_davinci_set_ios()
782 calculate_clk_divider(mmc, ios); in mmc_davinci_set_ios()
784 host->bus_mode = ios->bus_mode; in mmc_davinci_set_ios()
[all …]
Dusdhi6rol0.c719 static void usdhi6_clk_set(struct usdhi6_host *host, struct mmc_ios *ios) in usdhi6_clk_set() argument
721 unsigned long rate = ios->clock; in usdhi6_clk_set()
742 if (ios->timing != MMC_TIMING_UHS_DDR50) { in usdhi6_clk_set()
786 static void usdhi6_set_power(struct usdhi6_host *host, struct mmc_ios *ios) in usdhi6_set_power() argument
793 ios->power_mode ? ios->vdd : 0); in usdhi6_set_power()
810 static void usdhi6_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in usdhi6_set_ios() argument
817 ios->clock, ios->vdd, ios->power_mode, ios->bus_width, ios->timing); in usdhi6_set_ios()
819 switch (ios->power_mode) { in usdhi6_set_ios()
821 usdhi6_set_power(host, ios); in usdhi6_set_ios()
833 usdhi6_set_power(host, ios); in usdhi6_set_ios()
[all …]
Dtmio_mmc_pio.c763 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) { in tmio_mmc_start_data()
917 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tmio_mmc_set_ios() argument
933 ios->clock, ios->power_mode); in tmio_mmc_set_ios()
951 switch (ios->power_mode) { in tmio_mmc_set_ios()
957 tmio_mmc_set_clock(host, ios->clock); in tmio_mmc_set_ios()
958 tmio_mmc_power_on(host, ios->vdd); in tmio_mmc_set_ios()
960 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
963 tmio_mmc_set_clock(host, ios->clock); in tmio_mmc_set_ios()
965 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
975 ios->clock, ios->power_mode); in tmio_mmc_set_ios()
[all …]
Dmmc_spi.c1181 static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_spi_set_ios() argument
1185 if (host->power_mode != ios->power_mode) { in mmc_spi_set_ios()
1191 mmc_powerstring(ios->power_mode), in mmc_spi_set_ios()
1192 ios->vdd, in mmc_spi_set_ios()
1199 switch (ios->power_mode) { in mmc_spi_set_ios()
1203 ios->vdd); in mmc_spi_set_ios()
1204 if (ios->power_mode == MMC_POWER_UP) in mmc_spi_set_ios()
1210 if (ios->power_mode == MMC_POWER_ON) in mmc_spi_set_ios()
1222 if (canpower && ios->power_mode == MMC_POWER_OFF) { in mmc_spi_set_ios()
1256 host->power_mode = ios->power_mode; in mmc_spi_set_ios()
[all …]
Ddw_mmc-exynos.c283 static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_exynos_set_ios() argument
286 unsigned int wanted = ios->clock; in dw_mci_exynos_set_ios()
287 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios()
299 if (ios->bus_width == MMC_BUS_WIDTH_8) in dw_mci_exynos_set_ios()
481 struct mmc_ios *ios) in dw_mci_exynos_prepare_hs400_tuning() argument
486 dw_mci_exynos_adjust_clock(host, (ios->clock) << 1); in dw_mci_exynos_prepare_hs400_tuning()
Dsunxi-mmc.c629 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument
634 rate = clk_round_rate(host->clk_mmc, ios->clock); in sunxi_mmc_clk_set_rate()
636 ios->clock, rate); in sunxi_mmc_clk_set_rate()
663 if (ios->timing == MMC_TIMING_UHS_DDR50) { in sunxi_mmc_clk_set_rate()
686 static void sunxi_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sunxi_mmc_set_ios() argument
692 switch (ios->power_mode) { in sunxi_mmc_set_ios()
697 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in sunxi_mmc_set_ios()
714 switch (ios->bus_width) { in sunxi_mmc_set_ios()
728 if (ios->timing == MMC_TIMING_UHS_DDR50) in sunxi_mmc_set_ios()
735 if (ios->clock && ios->power_mode) { in sunxi_mmc_set_ios()
[all …]
Drtsx_pci_sdmmc.c1050 static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_set_ios() argument
1065 sd_set_bus_width(host, ios->bus_width); in sdmmc_set_ios()
1066 sd_set_power_mode(host, ios->power_mode); in sdmmc_set_ios()
1067 sd_set_timing(host, ios->timing); in sdmmc_set_ios()
1072 switch (ios->timing) { in sdmmc_set_ios()
1089 host->initial_mode = (ios->clock <= 1000000) ? true : false; in sdmmc_set_ios()
1091 host->clock = ios->clock; in sdmmc_set_ios()
1092 rtsx_pci_switch_clock(pcr, ios->clock, host->ssc_depth, in sdmmc_set_ios()
1221 static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_switch_voltage() argument
1229 __func__, ios->signal_voltage); in sdmmc_switch_voltage()
[all …]
Ds3cmci.c1210 static void s3cmci_set_clk(struct s3cmci_host *host, struct mmc_ios *ios) in s3cmci_set_clk() argument
1218 if (host->real_rate <= ios->clock) in s3cmci_set_clk()
1229 if (ios->clock == 0) in s3cmci_set_clk()
1233 static void s3cmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in s3cmci_set_ios() argument
1242 switch (ios->power_mode) { in s3cmci_set_ios()
1250 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios()
1265 host->pdata->set_power(ios->power_mode, ios->vdd); in s3cmci_set_ios()
1270 s3cmci_set_clk(host, ios); in s3cmci_set_ios()
1273 if (ios->clock) in s3cmci_set_ios()
1280 if ((ios->power_mode == MMC_POWER_ON) || in s3cmci_set_ios()
[all …]
Dvia-sdmmc.c719 static void via_sdc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in via_sdc_set_ios() argument
735 if (ios->bus_width == MMC_BUS_WIDTH_1) in via_sdc_set_ios()
740 if (ios->power_mode == MMC_POWER_OFF) in via_sdc_set_ios()
745 if (ios->timing == MMC_TIMING_SD_HS) in via_sdc_set_ios()
753 if (ios->clock >= 48000000) in via_sdc_set_ios()
755 else if (ios->clock >= 33000000) in via_sdc_set_ios()
757 else if (ios->clock >= 24000000) in via_sdc_set_ios()
759 else if (ios->clock >= 16000000) in via_sdc_set_ios()
761 else if (ios->clock >= 12000000) in via_sdc_set_ios()
763 else if (ios->clock >= 8000000) in via_sdc_set_ios()
[all …]
Dsh_mmcif.c988 static void sh_mmcif_set_power(struct sh_mmcif_host *host, struct mmc_ios *ios) in sh_mmcif_set_power() argument
995 ios->power_mode ? ios->vdd : 0); in sh_mmcif_set_power()
998 static void sh_mmcif_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sh_mmcif_set_ios() argument
1013 if (ios->power_mode == MMC_POWER_UP) { in sh_mmcif_set_ios()
1019 sh_mmcif_set_power(host, ios); in sh_mmcif_set_ios()
1020 } else if (ios->power_mode == MMC_POWER_OFF || !ios->clock) { in sh_mmcif_set_ios()
1023 if (ios->power_mode == MMC_POWER_OFF) { in sh_mmcif_set_ios()
1033 if (ios->power_mode == MMC_POWER_OFF) in sh_mmcif_set_ios()
1034 sh_mmcif_set_power(host, ios); in sh_mmcif_set_ios()
1040 if (ios->clock) { in sh_mmcif_set_ios()
[all …]
Dmoxart-mmc.c493 static void moxart_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in moxart_set_ios() argument
502 if (ios->clock) { in moxart_set_ios()
504 if (ios->clock >= host->sysclk / (2 * (div + 1))) in moxart_set_ios()
514 if (ios->power_mode == MMC_POWER_OFF) { in moxart_set_ios()
518 if (ios->vdd < MIN_POWER) in moxart_set_ios()
521 power = ios->vdd - MIN_POWER; in moxart_set_ios()
527 switch (ios->bus_width) { in moxart_set_ios()
Dushc.c375 static void ushc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in ushc_set_ios() argument
379 ushc_set_power(ushc, ios->power_mode); in ushc_set_ios()
380 ushc_set_bus_width(ushc, 1 << ios->bus_width); in ushc_set_ios()
381 ushc_set_bus_freq(ushc, ios->clock, ios->timing == MMC_TIMING_SD_HS); in ushc_set_ios()
Dmxcmmc.c849 static void mxcmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxcmci_set_ios() argument
858 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios()
875 if (ios->bus_width == MMC_BUS_WIDTH_4) in mxcmci_set_ios()
880 if (host->power_mode != ios->power_mode) { in mxcmci_set_ios()
881 host->power_mode = ios->power_mode; in mxcmci_set_ios()
882 mxcmci_set_power(host, ios->vdd); in mxcmci_set_ios()
884 if (ios->power_mode == MMC_POWER_ON) in mxcmci_set_ios()
888 if (ios->clock) { in mxcmci_set_ios()
889 mxcmci_set_clk_rate(host, ios->clock); in mxcmci_set_ios()
895 host->clock = ios->clock; in mxcmci_set_ios()
Drtsx_usb_sdmmc.c1133 static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_set_ios() argument
1146 sd_set_power_mode(host, ios->power_mode); in sdmmc_set_ios()
1147 sd_set_bus_width(host, ios->bus_width); in sdmmc_set_ios()
1148 sd_set_timing(host, ios->timing, &host->ddr_mode); in sdmmc_set_ios()
1153 switch (ios->timing) { in sdmmc_set_ios()
1169 host->initial_mode = (ios->clock <= 1000000) ? true : false; in sdmmc_set_ios()
1170 host->clock = ios->clock; in sdmmc_set_ios()
1179 static int sdmmc_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in sdmmc_switch_voltage() argument
1186 __func__, ios->signal_voltage); in sdmmc_switch_voltage()
1191 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_120) in sdmmc_switch_voltage()
[all …]
Dsdricoh_cs.c355 static void sdricoh_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdricoh_set_ios() argument
360 if (ios->power_mode == MMC_POWER_ON) { in sdricoh_set_ios()
363 if (ios->bus_width == MMC_BUS_WIDTH_4) { in sdricoh_set_ios()
370 } else if (ios->power_mode == MMC_POWER_UP) { in sdricoh_set_ios()
Dwbsd.c850 static void wbsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wbsd_set_ios() argument
861 if (ios->power_mode == MMC_POWER_OFF) in wbsd_set_ios()
864 if (ios->clock >= 24000000) in wbsd_set_ios()
866 else if (ios->clock >= 16000000) in wbsd_set_ios()
868 else if (ios->clock >= 12000000) in wbsd_set_ios()
885 if (ios->power_mode != MMC_POWER_OFF) { in wbsd_set_ios()
897 if (ios->chip_select == MMC_CS_HIGH) { in wbsd_set_ios()
898 BUG_ON(ios->bus_width != MMC_BUS_WIDTH_1); in wbsd_set_ios()
918 host->bus_width = ios->bus_width; in wbsd_set_ios()
Dsdhci-msm.c352 struct mmc_ios ios = host->mmc->ios; in sdhci_msm_execute_tuning() local
359 !((ios.timing == MMC_TIMING_MMC_HS200) || in sdhci_msm_execute_tuning()
360 (ios.timing == MMC_TIMING_UHS_SDR104))) in sdhci_msm_execute_tuning()
Dau1xmmc.c754 static void au1xmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in au1xmmc_set_ios() argument
759 if (ios->power_mode == MMC_POWER_OFF) in au1xmmc_set_ios()
761 else if (ios->power_mode == MMC_POWER_ON) { in au1xmmc_set_ios()
765 if (ios->clock && ios->clock != host->clock) { in au1xmmc_set_ios()
766 au1xmmc_set_clock(host, ios->clock); in au1xmmc_set_ios()
767 host->clock = ios->clock; in au1xmmc_set_ios()
771 switch (ios->bus_width) { in au1xmmc_set_ios()
Dcb710-mmc.c561 static void cb710_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in cb710_mmc_set_ios() argument
567 cb710_mmc_select_clock_divider(mmc, ios->clock); in cb710_mmc_set_ios()
569 if (ios->power_mode != reader->last_power_mode) in cb710_mmc_set_ios()
570 switch (ios->power_mode) { in cb710_mmc_set_ios()
595 cb710_mmc_enable_4bit_data(slot, ios->bus_width != MMC_BUS_WIDTH_1); in cb710_mmc_set_ios()
Dmxs-mmc.c499 static void mxs_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mxs_mmc_set_ios() argument
503 if (ios->bus_width == MMC_BUS_WIDTH_8) in mxs_mmc_set_ios()
505 else if (ios->bus_width == MMC_BUS_WIDTH_4) in mxs_mmc_set_ios()
510 if (ios->clock) in mxs_mmc_set_ios()
511 mxs_ssp_set_clk_rate(&host->ssp, ios->clock); in mxs_mmc_set_ios()
Ddw_mmc.h285 void (*set_ios)(struct dw_mci *host, struct mmc_ios *ios);
289 struct mmc_ios *ios);
Dwmt-sdmmc.c673 static void wmt_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in wmt_mci_set_ios() argument
680 if (ios->power_mode == MMC_POWER_UP) { in wmt_mci_set_ios()
685 if (ios->power_mode == MMC_POWER_OFF) in wmt_mci_set_ios()
688 if (ios->clock != 0) in wmt_mci_set_ios()
689 clk_set_rate(priv->clk_sdmmc, ios->clock); in wmt_mci_set_ios()
697 switch (ios->bus_width) { in wmt_mci_set_ios()
Ddw_mmc.c1150 static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in dw_mci_set_ios() argument
1157 switch (ios->bus_width) { in dw_mci_set_ios()
1172 if (ios->timing == MMC_TIMING_MMC_DDR52 || in dw_mci_set_ios()
1173 ios->timing == MMC_TIMING_MMC_HS400) in dw_mci_set_ios()
1179 slot->host->timing = ios->timing; in dw_mci_set_ios()
1185 slot->clock = ios->clock; in dw_mci_set_ios()
1188 drv_data->set_ios(slot->host, ios); in dw_mci_set_ios()
1190 switch (ios->power_mode) { in dw_mci_set_ios()
1194 ios->vdd); in dw_mci_set_ios()
1250 if (slot->host->state == STATE_WAITING_CMD11_DONE && ios->clock != 0) in dw_mci_set_ios()
[all …]
Dvub300.c1972 struct mmc_ios *ios) in __set_clock_speed() argument
1977 if (ios->clock >= 48000000) in __set_clock_speed()
1979 else if (ios->clock >= 24000000) in __set_clock_speed()
1981 else if (ios->clock >= 20000000) in __set_clock_speed()
1983 else if (ios->clock >= 15000000) in __set_clock_speed()
1985 else if (ios->clock >= 200000) in __set_clock_speed()
2011 static void vub300_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in vub300_mmc_set_ios() argument
2018 if ((ios->power_mode == MMC_POWER_OFF) && vub300->card_powered) { in vub300_mmc_set_ios()
2026 } else if ((ios->power_mode == MMC_POWER_UP) && !vub300->card_powered) { in vub300_mmc_set_ios()
2033 } else if (ios->power_mode == MMC_POWER_ON) { in vub300_mmc_set_ios()
[all …]
Djz4740_mmc.c859 static void jz4740_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in jz4740_mmc_set_ios() argument
862 if (ios->clock) in jz4740_mmc_set_ios()
863 jz4740_mmc_set_clock_rate(host, ios->clock); in jz4740_mmc_set_ios()
865 switch (ios->power_mode) { in jz4740_mmc_set_ios()
884 switch (ios->bus_width) { in jz4740_mmc_set_ios()
Dandroid-goldfish.c432 static void goldfish_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in goldfish_mmc_set_ios() argument
436 host->bus_mode = ios->bus_mode; in goldfish_mmc_set_ios()
Datmel-mci.c686 if (mmc->ios.bus_mode == MMC_BUSMODE_OPENDRAIN) in atmci_prepare_command()
1287 static void atmci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in atmci_set_ios() argument
1296 switch (ios->bus_width) { in atmci_set_ios()
1305 if (ios->clock) { in atmci_set_ios()
1321 slot->clock = ios->clock; in atmci_set_ios()
1365 if (ios->timing == MMC_TIMING_SD_HS) in atmci_set_ios()
1401 switch (ios->power_mode) { in atmci_set_ios()
1409 mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in atmci_set_ios()
/linux-4.1.27/include/linux/mmc/
Dhost.h115 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
124 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
133 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
315 struct mmc_ios ios; /* current io bus settings */ member
485 return host->ios.clock; in mmc_host_clk_rate()
491 return card->host->ios.timing == MMC_TIMING_SD_HS || in mmc_card_hs()
492 card->host->ios.timing == MMC_TIMING_MMC_HS; in mmc_card_hs()
497 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && in mmc_card_uhs()
498 card->host->ios.timing <= MMC_TIMING_UHS_DDR50; in mmc_card_uhs()
503 return card->host->ios.timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
[all …]
/linux-4.1.27/drivers/md/
Ddm-stats.c26 unsigned long long ios[2]; member
483 p->ios[idx] += 1; in dm_stat_for_entry()
585 shared->tmp.ios[READ] += ACCESS_ONCE(p->ios[READ]); in __dm_stat_init_temporary_percpu_totals()
586 shared->tmp.ios[WRITE] += ACCESS_ONCE(p->ios[WRITE]); in __dm_stat_init_temporary_percpu_totals()
613 p->ios[READ] -= shared->tmp.ios[READ]; in __dm_stat_clear()
614 p->ios[WRITE] -= shared->tmp.ios[WRITE]; in __dm_stat_clear()
712 shared->tmp.ios[READ], in dm_stats_print()
716 shared->tmp.ios[WRITE], in dm_stats_print()
Dmd.c297 part_stat_inc(cpu, &mddev->gendisk->part0, ios[rw]); in md_make_request()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
Dosc_io.c100 const struct cl_io_slice *ios, in osc_io_submit() argument
123 osc = cl2osc(ios->cis_obj); in osc_io_submit()
128 brw_flags = osc_io_srvlock(cl2osc_io(env, ios)) ? OBD_BRW_SRVLOCK : 0; in osc_io_submit()
257 const struct cl_io_slice *ios, in osc_io_prepare_write() argument
263 struct osc_io *oio = cl2osc_io(env, ios); in osc_io_prepare_write()
283 const struct cl_io_slice *ios, in osc_io_commit_write() argument
287 struct osc_io *oio = cl2osc_io(env, ios); in osc_io_commit_write()
312 const struct cl_io_slice *ios) in osc_io_fault_start() argument
317 io = ios->cis_io; in osc_io_fault_start()
327 osc_page_touch_at(env, ios->cis_obj, in osc_io_fault_start()
/linux-4.1.27/drivers/staging/lustre/lustre/lclient/
Dlcommon_cl.c693 void ccc_io_fini(const struct lu_env *env, const struct cl_io_slice *ios) in ccc_io_fini() argument
695 struct cl_io *io = ios->cis_io; in ccc_io_fini()
750 void ccc_io_end(const struct lu_env *env, const struct cl_io_slice *ios) in ccc_io_end() argument
752 CLOBINVRNT(env, ios->cis_io->ci_obj, in ccc_io_end()
753 ccc_object_invariant(ios->cis_io->ci_obj)); in ccc_io_end()
757 const struct cl_io_slice *ios, in ccc_io_advance() argument
760 struct ccc_io *cio = cl2ccc_io(env, ios); in ccc_io_advance()
761 struct cl_io *io = ios->cis_io; in ccc_io_advance()
762 struct cl_object *obj = ios->cis_io->ci_obj; in ccc_io_advance()
/linux-4.1.27/arch/arm/mach-lpc32xx/
Dphy3250.c191 static int mmc_handle_ios(struct device *dev, struct mmc_ios *ios) in mmc_handle_ios() argument
194 if (ios->power_mode == MMC_POWER_OFF) in mmc_handle_ios()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlclient.h339 void ccc_io_fini(const struct lu_env *env, const struct cl_io_slice *ios);
346 void ccc_io_end(const struct lu_env *env, const struct cl_io_slice *ios);
347 void ccc_io_advance(const struct lu_env *env, const struct cl_io_slice *ios,
/linux-4.1.27/arch/alpha/kernel/
Dio.c592 const u16 __iomem *ios = (const u16 __iomem *) s; in scr_memcpyw() local
604 u16 tmp = __raw_readw(ios++); in scr_memcpyw()
609 memcpy_fromio(d, ios, count); in scr_memcpyw()
/linux-4.1.27/block/
Dpartition-generic.c125 part_stat_read(p, ios[READ]), in part_stat_show()
129 part_stat_read(p, ios[WRITE]), in part_stat_show()
Dgenhd.c1172 part_stat_read(hd, ios[READ]), in diskstats_show()
1176 part_stat_read(hd, ios[WRITE]), in diskstats_show()
Dbio.c1713 part_stat_inc(cpu, part, ios[rw]); in generic_start_io_acct()
Dblk-core.c2172 part_stat_inc(cpu, part, ios[rw]); in blk_account_io_done()
/linux-4.1.27/Documentation/device-mapper/
Dcache-policies.txt22 trying to see when the io scheduler has let the ios run.
/linux-4.1.27/include/linux/
Dgenhd.h83 unsigned long ios[2]; member
/linux-4.1.27/drivers/usb/gadget/udc/
Dmv_udc_core.c452 unsigned char zlt = 0, ios = 0, mult = 0; in mv_ep_enable() local
495 ios = 1; in mv_ep_enable()
517 | (ios ? EP_QUEUE_HEAD_IOS : 0); in mv_ep_enable()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_io.c689 cl_io_slice_page(const struct cl_io_slice *ios, struct cl_page *page) in cl_io_slice_page() argument
693 slice = cl_page_at(page, ios->cis_obj->co_lu.lo_dev->ld_type); in cl_io_slice_page()
/linux-4.1.27/drivers/staging/iio/meter/
Dmeter.h174 IIO_DEVICE_ATTR(ios, _mode, _show, _store, _addr)
/linux-4.1.27/Documentation/x86/x86_64/
Dboot-options.txt109 reboot=b[ios] | t[riple] | k[bd] | a[cpi] | e[fi] [, [w]arm | [c]old]
/linux-4.1.27/drivers/net/wireless/libertas/
Dif_sdio.c881 (host->ios.bus_width == MMC_BUS_WIDTH_1)) { in if_sdio_power_on()
/linux-4.1.27/Documentation/
Dbcache.txt349 Each error is decayed by the half life (in # ios). If the decaying count
Dkernel-parameters.txt3215 [[,]b[ios] | a[cpi] | k[bd] | t[riple] | e[fi] | p[ci]] \