Lines Matching refs:ios
115 static int sam_hsmci_set_io(const struct device *dev, struct sdhc_io *ios) in sam_hsmci_set_io() argument
124 LOG_DBG("%s(clock=%d, bus_width=%d, timing=%d, mode=%d)", __func__, ios->clock, in sam_hsmci_set_io()
125 ios->bus_width, ios->timing, ios->bus_mode); in sam_hsmci_set_io()
127 if (ios->clock > 0) { in sam_hsmci_set_io()
128 if (ios->clock > _HSMCI_MAX_FREQ) { in sam_hsmci_set_io()
141 div_val = frequency / ios->clock - 2; in sam_hsmci_set_io()
158 if (ios->bus_width) { in sam_hsmci_set_io()
161 switch (ios->bus_width) { in sam_hsmci_set_io()
173 data->open_drain = (ios->bus_mode == SDHC_BUSMODE_OPENDRAIN); in sam_hsmci_set_io()
175 if (ios->timing) { in sam_hsmci_set_io()
176 switch (ios->timing) { in sam_hsmci_set_io()