Lines Matching refs:pdata

41 	const struct cw1200_platform_data_spi *pdata;  member
285 static int cw1200_spi_off(const struct cw1200_platform_data_spi *pdata) in cw1200_spi_off() argument
287 if (pdata->reset) { in cw1200_spi_off()
288 gpio_set_value(pdata->reset, 0); in cw1200_spi_off()
290 gpio_free(pdata->reset); in cw1200_spi_off()
293 if (pdata->power_ctrl) in cw1200_spi_off()
294 pdata->power_ctrl(pdata, false); in cw1200_spi_off()
295 if (pdata->clk_ctrl) in cw1200_spi_off()
296 pdata->clk_ctrl(pdata, false); in cw1200_spi_off()
301 static int cw1200_spi_on(const struct cw1200_platform_data_spi *pdata) in cw1200_spi_on() argument
304 if (pdata->reset) { in cw1200_spi_on()
305 gpio_request(pdata->reset, "cw1200_wlan_reset"); in cw1200_spi_on()
306 gpio_direction_output(pdata->reset, 0); in cw1200_spi_on()
308 if (pdata->powerup) { in cw1200_spi_on()
309 gpio_request(pdata->powerup, "cw1200_wlan_powerup"); in cw1200_spi_on()
310 gpio_direction_output(pdata->powerup, 0); in cw1200_spi_on()
312 if (pdata->reset || pdata->powerup) in cw1200_spi_on()
316 if (pdata->power_ctrl) { in cw1200_spi_on()
317 if (pdata->power_ctrl(pdata, true)) { in cw1200_spi_on()
324 if (pdata->clk_ctrl) { in cw1200_spi_on()
325 if (pdata->clk_ctrl(pdata, true)) { in cw1200_spi_on()
333 if (pdata->powerup) { in cw1200_spi_on()
334 gpio_set_value(pdata->powerup, 1); in cw1200_spi_on()
338 if (pdata->reset) { in cw1200_spi_on()
339 gpio_set_value(pdata->reset, 1); in cw1200_spi_on()
407 self->pdata = plat_data; in cw1200_spi_probe()
419 self->pdata->ref_clk, in cw1200_spi_probe()
420 self->pdata->macaddr, in cw1200_spi_probe()
421 self->pdata->sdd_file, in cw1200_spi_probe()
422 self->pdata->have_5ghz); in cw1200_spi_probe()