Lines Matching refs:sw_data

249 	struct sw_cfg_data *sw_data = dev->data;  in sw_output_sequence()  local
269 SW_CLOCK_CYCLE(dev, sw_data->clock_delay); in sw_output_sequence()
282 struct sw_cfg_data *sw_data = dev->data; in sw_input_sequence() local
298 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_input_sequence()
312 struct sw_cfg_data *sw_data = dev->data; in sw_cycle_turnaround() local
315 for (n = sw_data->turnaround; n; n--) { in sw_cycle_turnaround()
316 SW_CLOCK_CYCLE(dev, sw_data->clock_delay); in sw_cycle_turnaround()
324 struct sw_cfg_data *sw_data = dev->data; in sw_transfer() local
344 SW_WRITE_BIT(dev, val, sw_data->clock_delay); in sw_transfer()
352 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_transfer()
354 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_transfer()
356 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_transfer()
366 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_transfer()
372 SW_READ_BIT(dev, bit, sw_data->clock_delay); in sw_transfer()
391 SW_WRITE_BIT(dev, val, sw_data->clock_delay); in sw_transfer()
396 SW_WRITE_BIT(dev, parity, sw_data->clock_delay); in sw_transfer()
403 SW_CLOCK_CYCLE(dev, sw_data->clock_delay); in sw_transfer()
422 if (sw_data->data_phase) { in sw_transfer()
423 for (n = 32U + 1U + sw_data->turnaround; n; n--) { in sw_transfer()
425 SW_CLOCK_CYCLE(dev, sw_data->clock_delay); in sw_transfer()
443 for (n = sw_data->turnaround + 32U + 1U; n; n--) { in sw_transfer()
445 SW_CLOCK_CYCLE(dev, sw_data->clock_delay); in sw_transfer()
529 struct sw_cfg_data *sw_data = dev->data; in sw_set_clock() local
533 sw_data->fast_clock = true; in sw_set_clock()
536 sw_data->fast_clock = false; in sw_set_clock()
547 sw_data->clock_delay = delay; in sw_set_clock()
549 LOG_WRN("cpu_clock %d, delay %d", CPU_CLOCK, sw_data->clock_delay); in sw_set_clock()
557 struct sw_cfg_data *sw_data = dev->data; in sw_configure() local
559 sw_data->turnaround = turnaround; in sw_configure()
560 sw_data->data_phase = data_phase; in sw_configure()
563 sw_data->turnaround, sw_data->data_phase); in sw_configure()
682 struct sw_cfg_data *sw_data = dev->data; in sw_gpio_init() local
691 sw_data->turnaround = 1U; in sw_gpio_init()
692 sw_data->data_phase = false; in sw_gpio_init()
693 sw_data->fast_clock = false; in sw_gpio_init()