Lines Matching refs:ifsc
99 struct imxspi_fdt_softc * const ifsc = device_private(self);
100 struct imxspi_softc * const sc = &ifsc->sc_imxspi;
116 ifsc->sc_pin_cs = kmem_alloc(sizeof(struct fdtbus_gpio_pin *) * nslaves, KM_SLEEP);
119 ifsc->sc_pin_cs[i] = fdtbus_gpio_acquire_index(phandle, "cs-gpios", i,
123 ifsc->sc_clk = fdtbus_clock_get_index(phandle, 0);
124 if (ifsc->sc_clk == NULL) {
129 error = clk_enable(ifsc->sc_clk);
135 ifsc->sc_tag.cookie = ifsc;
136 ifsc->sc_tag.spi_cs_enable = imxspi_cs_enable;
137 ifsc->sc_tag.spi_cs_disable = imxspi_cs_disable;
148 sc->sc_freq = clk_get_rate(ifsc->sc_clk);
149 sc->sc_tag = &ifsc->sc_tag;
167 0, imxspi_intr, &ifsc->sc_imxspi, device_xname(self));