Home
last modified time | relevance | path

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

1234

/Linux-v4.19/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
174 if (numdevs > (INT_MAX - sizeof(*ios)) / in _ore_get_io_state()
[all …]
Dore_raid.c354 static int _alloc_read_4_write(struct ore_io_state *ios) in _alloc_read_4_write() argument
356 struct ore_layout *layout = ios->layout; in _alloc_read_4_write()
361 unsigned sgs_per_dev = ios->sp2d->pages_in_unit + 2; in _alloc_read_4_write()
363 ret = _ore_get_io_state(layout, ios->oc, in _alloc_read_4_write()
365 sgs_per_dev, 0, &ios->ios_read_4_write); in _alloc_read_4_write()
372 static int _add_to_r4w(struct ore_io_state *ios, struct ore_striping_info *si, in _add_to_r4w() argument
379 (ios->layout->group_width * ios->layout->mirrors_p1)); in _add_to_r4w()
383 if (!ios->ios_read_4_write) { in _add_to_r4w()
384 int ret = _alloc_read_4_write(ios); in _add_to_r4w()
390 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.c275 struct ore_io_state *ios; in __sbi_read_stats() local
278 ret = ore_get_io_state(&sbi->layout, &sbi->oc, &ios); in __sbi_read_stats()
284 ios->in_attr = attrs; in __sbi_read_stats()
285 ios->in_attr_len = ARRAY_SIZE(attrs); in __sbi_read_stats()
287 ret = ore_read(ios); in __sbi_read_stats()
293 ret = extract_attr_from_ios(ios, &attrs[0]); in __sbi_read_stats()
314 ore_put_io_state(ios); in __sbi_read_stats()
318 static void stats_done(struct ore_io_state *ios, void *p) in stats_done() argument
320 ore_put_io_state(ios); in stats_done()
330 struct ore_io_state *ios; in exofs_sbi_write_stats() local
[all …]
/Linux-v4.19/drivers/mmc/core/
Ddebugfs.c58 struct mmc_ios *ios = &host->ios; in mmc_ios_show() local
61 seq_printf(s, "clock:\t\t%u Hz\n", ios->clock); in mmc_ios_show()
64 seq_printf(s, "vdd:\t\t%u ", ios->vdd); in mmc_ios_show()
65 if ((1 << ios->vdd) & MMC_VDD_165_195) in mmc_ios_show()
67 else if (ios->vdd < (ARRAY_SIZE(vdd_str) - 1) in mmc_ios_show()
68 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show()
69 seq_printf(s, "(%s ~ %s V)\n", vdd_str[ios->vdd], in mmc_ios_show()
70 vdd_str[ios->vdd + 1]); in mmc_ios_show()
74 switch (ios->bus_mode) { in mmc_ios_show()
85 seq_printf(s, "bus mode:\t%u (%s)\n", ios->bus_mode, str); in mmc_ios_show()
[all …]
Dcore.c702 if (card->host->ios.clock) in mmc_set_data_timeout()
704 (card->host->ios.clock / 1000); in mmc_set_data_timeout()
928 struct mmc_ios *ios = &host->ios; in mmc_set_ios() local
932 mmc_hostname(host), ios->clock, ios->bus_mode, in mmc_set_ios()
933 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
934 1 << ios->bus_width, ios->timing); in mmc_set_ios()
936 host->ops->set_ios(host, ios); in mmc_set_ios()
944 host->ios.chip_select = mode; in mmc_set_chip_select()
959 host->ios.clock = hz; in mmc_set_clock()
996 host->ios.bus_mode = mode; in mmc_set_bus_mode()
[all …]
Dhost.h65 return card->host->ios.timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
70 return card->host->ios.timing == MMC_TIMING_MMC_DDR52; in mmc_card_ddr52()
75 return card->host->ios.timing == MMC_TIMING_MMC_HS400; in mmc_card_hs400()
80 return card->host->ios.enhanced_strobe; in mmc_card_hs400es()
/Linux-v4.19/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-v4.19/drivers/mmc/host/
Ddw_mmc-k3.c106 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_k3_set_ios() argument
110 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
112 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios()
145 static int dw_mci_hi6220_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in dw_mci_hi6220_switch_voltage() argument
159 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in dw_mci_hi6220_switch_voltage()
164 } else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { in dw_mci_hi6220_switch_voltage()
192 static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi6220_set_ios() argument
197 clock = (ios->clock <= 25000000) ? 25000000 : ios->clock; in dw_mci_hi6220_set_ios()
301 static void dw_mci_hi3660_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3660_set_ios() argument
308 if (!ios->clock || ios->clock == priv->cur_speed) in dw_mci_hi3660_set_ios()
[all …]
Ddw_mmc-hi3798cv200.c26 static void dw_mci_hi3798cv200_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3798cv200_set_ios() argument
32 if (ios->timing == MMC_TIMING_MMC_DDR52 || in dw_mci_hi3798cv200_set_ios()
33 ios->timing == MMC_TIMING_UHS_DDR50) in dw_mci_hi3798cv200_set_ios()
40 if (ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_hi3798cv200_set_ios()
47 if (ios->timing == MMC_TIMING_MMC_HS400) in dw_mci_hi3798cv200_set_ios()
53 if (ios->timing == MMC_TIMING_MMC_HS || in dw_mci_hi3798cv200_set_ios()
54 ios->timing == MMC_TIMING_LEGACY) in dw_mci_hi3798cv200_set_ios()
56 else if (ios->timing == MMC_TIMING_MMC_HS200) in dw_mci_hi3798cv200_set_ios()
Ddw_mmc-rockchip.c31 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument
38 if (ios->clock == 0) in dw_mci_rk3288_set_ios()
50 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios()
51 ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_rk3288_set_ios()
52 cclkin = 2 * ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
54 cclkin = ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
58 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_rk3288_set_ios()
108 switch (ios->timing) { in dw_mci_rk3288_set_ios()
115 if (ios->bus_width == MMC_BUS_WIDTH_8) in dw_mci_rk3288_set_ios()
Dsdhci-pci-arasan.c250 if (arasan_host->chg_clk == host->mmc->ios.clock) in arasan_select_phy_clock()
253 arasan_host->chg_clk = host->mmc->ios.clock; in arasan_select_phy_clock()
254 if (host->mmc->ios.clock == 200000000) in arasan_select_phy_clock()
256 else if (host->mmc->ios.clock == 100000000) in arasan_select_phy_clock()
258 else if (host->mmc->ios.clock == 50000000) in arasan_select_phy_clock()
267 switch (host->mmc->ios.timing) { in arasan_select_phy_clock()
280 host->mmc->ios.drv_type, 0x0, in arasan_select_phy_clock()
290 host->mmc->ios.drv_type, 0xa, in arasan_select_phy_clock()
Dsunxi-mmc.c719 struct mmc_ios *ios, u32 rate) in sunxi_mmc_clk_set_phase() argument
737 if (ios->timing != MMC_TIMING_UHS_DDR50 && in sunxi_mmc_clk_set_phase()
738 ios->timing != MMC_TIMING_MMC_DDR52) { in sunxi_mmc_clk_set_phase()
740 } else if (ios->bus_width == MMC_BUS_WIDTH_8) { in sunxi_mmc_clk_set_phase()
757 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument
761 u32 rval, clock = ios->clock, div = 1; in sunxi_mmc_clk_set_rate()
771 if (!ios->clock) in sunxi_mmc_clk_set_rate()
783 if (ios->timing == MMC_TIMING_MMC_DDR52 && in sunxi_mmc_clk_set_rate()
785 ios->bus_width == MMC_BUS_WIDTH_8)) { in sunxi_mmc_clk_set_rate()
833 ret = sunxi_mmc_clk_set_phase(host, ios, rate); in sunxi_mmc_clk_set_rate()
[all …]
Dsdhci.c262 mmc->ops->set_ios(mmc, &mmc->ios); in sdhci_init()
746 struct mmc_ios *ios = &mmc->ios; in sdhci_calc_sw_timeout() local
747 unsigned char bus_width = 1 << ios->bus_width; in sdhci_calc_sw_timeout()
1718 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_set_ios() argument
1723 if (ios->power_mode == MMC_POWER_UNDEFINED) in sdhci_set_ios()
1728 ios->power_mode == MMC_POWER_OFF) in sdhci_set_ios()
1737 if (ios->power_mode == MMC_POWER_OFF) { in sdhci_set_ios()
1743 (ios->power_mode == MMC_POWER_UP) && in sdhci_set_ios()
1747 if (!ios->clock || ios->clock != host->clock) { in sdhci_set_ios()
1748 host->ops->set_clock(host, ios->clock); in sdhci_set_ios()
[all …]
Dmeson-gx-mmc.c379 static bool meson_mmc_timing_is_ddr(struct mmc_ios *ios) in meson_mmc_timing_is_ddr() argument
381 if (ios->timing == MMC_TIMING_MMC_DDR52 || in meson_mmc_timing_is_ddr()
382 ios->timing == MMC_TIMING_UHS_DDR50 || in meson_mmc_timing_is_ddr()
383 ios->timing == MMC_TIMING_MMC_HS400) in meson_mmc_timing_is_ddr()
425 static int meson_mmc_clk_set(struct meson_host *host, struct mmc_ios *ios) in meson_mmc_clk_set() argument
428 unsigned long rate = ios->clock; in meson_mmc_clk_set()
433 if (meson_mmc_timing_is_ddr(ios)) in meson_mmc_clk_set()
466 if (meson_mmc_timing_is_ddr(ios)) in meson_mmc_clk_set()
470 if (ios->clock != mmc->actual_clock) in meson_mmc_clk_set()
471 dev_dbg(host->dev, "requested rate was %u\n", ios->clock); in meson_mmc_clk_set()
[all …]
Dsdhci-xenon.c259 static void xenon_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in xenon_set_ios() argument
273 if ((ios->timing == MMC_TIMING_MMC_HS400) || in xenon_set_ios()
274 (ios->timing == MMC_TIMING_MMC_HS200) || in xenon_set_ios()
275 (ios->timing == MMC_TIMING_MMC_HS)) { in xenon_set_ios()
287 sdhci_set_ios(mmc, ios); in xenon_set_ios()
288 xenon_phy_adj(host, ios); in xenon_set_ios()
295 struct mmc_ios *ios) in xenon_start_signal_voltage_switch() argument
311 xenon_soc_pad_ctrl(host, ios->signal_voltage); in xenon_start_signal_voltage_switch()
321 return sdhci_start_signal_voltage_switch(mmc, ios); in xenon_start_signal_voltage_switch()
Dsdhci-omap.c289 struct mmc_ios *ios = &mmc->ios; in sdhci_omap_execute_tuning() local
303 if (ios->clock <= 52000000) in sdhci_omap_execute_tuning()
307 if (ios->timing == MMC_TIMING_UHS_SDR50 && !(reg & CAPA2_TSDR50)) in sdhci_omap_execute_tuning()
420 struct mmc_ios *ios) in sdhci_omap_start_signal_voltage_switch() argument
434 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in sdhci_omap_start_signal_voltage_switch()
439 sdhci_omap_conf_bus_power(omap_host, ios->signal_voltage); in sdhci_omap_start_signal_voltage_switch()
446 } else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { in sdhci_omap_start_signal_voltage_switch()
451 sdhci_omap_conf_bus_power(omap_host, ios->signal_voltage); in sdhci_omap_start_signal_voltage_switch()
523 static void sdhci_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sdhci_omap_set_ios() argument
532 sdhci_omap_set_bus_mode(omap_host, ios->bus_mode); in sdhci_omap_set_ios()
[all …]
Dsdhci-msm.c308 struct mmc_ios ios = host->mmc->ios; in msm_get_clock_rate_for_bus_mode() local
315 if (ios.timing == MMC_TIMING_UHS_DDR50 || in msm_get_clock_rate_for_bus_mode()
316 ios.timing == MMC_TIMING_MMC_DDR52 || in msm_get_clock_rate_for_bus_mode()
317 ios.timing == MMC_TIMING_MMC_HS400 || in msm_get_clock_rate_for_bus_mode()
328 struct mmc_ios curr_ios = host->mmc->ios; in msm_set_clock_rate_for_bus_mode()
745 struct mmc_ios ios = host->mmc->ios; in msm_hc_select_hs400() local
761 if ((msm_host->tuning_done || ios.enhanced_strobe) && in msm_hc_select_hs400()
814 struct mmc_ios ios = host->mmc->ios; in sdhci_msm_hc_select_mode() local
816 if (ios.timing == MMC_TIMING_MMC_HS400 || in sdhci_msm_hc_select_mode()
946 if (mmc->ios.enhanced_strobe) { in sdhci_msm_cm_dll_sdc4_calibration()
[all …]
Domap_hsmmc.c247 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply() local
250 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in omap_hsmmc_enable_supply()
579 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios) in calc_divisor() argument
583 if (ios->clock) { in calc_divisor()
584 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
594 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
599 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock); in omap_hsmmc_set_clock()
605 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
627 (ios->timing != MMC_TIMING_MMC_DDR52) && in omap_hsmmc_set_clock()
628 (ios->timing != MMC_TIMING_UHS_DDR50) && in omap_hsmmc_set_clock()
[all …]
Dtmio_mmc_core.c206 if (host->mmc->ios.timing == MMC_TIMING_MMC_HS400 && in tmio_mmc_set_clock()
222 if (!(host->mmc->ios.timing == MMC_TIMING_MMC_HS400)) in tmio_mmc_set_clock()
760 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 || in tmio_mmc_start_data()
761 host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) { in tmio_mmc_start_data()
1010 static void tmio_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in tmio_mmc_set_ios() argument
1024 ios->clock, ios->power_mode); in tmio_mmc_set_ios()
1043 switch (ios->power_mode) { in tmio_mmc_set_ios()
1049 tmio_mmc_power_on(host, ios->vdd); in tmio_mmc_set_ios()
1050 tmio_mmc_set_clock(host, ios->clock); in tmio_mmc_set_ios()
1051 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
[all …]
Dmvsdio.c601 static void mvsd_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mvsd_set_ios() argument
607 if (ios->power_mode == MMC_POWER_UP) in mvsd_set_ios()
610 if (ios->clock == 0) { in mvsd_set_ios()
615 } else if (ios->clock != host->clock) { in mvsd_set_ios()
616 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios()
620 host->clock = ios->clock; in mvsd_set_ios()
623 ios->clock, host->base_clock / (m+1), m); in mvsd_set_ios()
634 if (ios->bus_mode == MMC_BUSMODE_PUSHPULL) in mvsd_set_ios()
637 if (ios->bus_width == MMC_BUS_WIDTH_4) in mvsd_set_ios()
648 if (ios->timing == MMC_TIMING_MMC_HS || in mvsd_set_ios()
[all …]
/Linux-v4.19/include/linux/mmc/
Dhost.h113 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
139 int (*start_signal_voltage_switch)(struct mmc_host *host, struct mmc_ios *ios);
148 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
158 struct mmc_ios *ios);
387 struct mmc_ios ios; /* current io bus settings */ member
506 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
521 struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument
548 return card->host->ios.timing == MMC_TIMING_SD_HS || in mmc_card_hs()
549 card->host->ios.timing == MMC_TIMING_MMC_HS; in mmc_card_hs()
555 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && in mmc_card_uhs()
[all …]
/Linux-v4.19/drivers/net/wireless/rsi/
Drsi_91x_sdio.c192 host->ios.chip_select = MMC_CS_DONTCARE; in rsi_reset_card()
193 host->ios.bus_mode = MMC_BUSMODE_OPENDRAIN; in rsi_reset_card()
194 host->ios.power_mode = MMC_POWER_UP; in rsi_reset_card()
195 host->ios.bus_width = MMC_BUS_WIDTH_1; in rsi_reset_card()
196 host->ios.timing = MMC_TIMING_LEGACY; in rsi_reset_card()
197 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
205 host->ios.clock = host->f_min; in rsi_reset_card()
206 host->ios.power_mode = MMC_POWER_ON; in rsi_reset_card()
207 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
216 host->ios.chip_select = MMC_CS_HIGH; in rsi_reset_card()
[all …]
/Linux-v4.19/drivers/staging/greybus/
Dsdio.c586 static void gb_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in gb_mmc_set_ios() argument
599 request.clock = cpu_to_le32(ios->clock); in gb_mmc_set_ios()
601 if (ios->vdd) in gb_mmc_set_ios()
602 vdd = 1 << (ios->vdd - GB_SDIO_VDD_SHIFT); in gb_mmc_set_ios()
605 request.bus_mode = (ios->bus_mode == MMC_BUSMODE_OPENDRAIN ? in gb_mmc_set_ios()
609 switch (ios->power_mode) { in gb_mmc_set_ios()
626 switch (ios->bus_width) { in gb_mmc_set_ios()
640 switch (ios->timing) { in gb_mmc_set_ios()
678 switch (ios->signal_voltage) { in gb_mmc_set_ios()
692 switch (ios->drv_type) { in gb_mmc_set_ios()
[all …]

1234