Lines Matching refs:devdata
98 const struct orion_spi_dev *devdata; member
143 const struct orion_spi_dev *devdata; in orion_spi_baudrate_set() local
146 devdata = orion_spi->devdata; in orion_spi_baudrate_set()
150 if (devdata->typ == ARMADA_SPI) { in orion_spi_baudrate_set()
227 reg = ((reg & ~devdata->prescale_mask) | prescale); in orion_spi_baudrate_set()
311 if (orion_spi->devdata->is_errata_50mhz_ac) in orion_spi_setup_transfer()
647 const struct orion_spi_dev *devdata; in orion_spi_probe() local
688 devdata = device_get_match_data(&pdev->dev); in orion_spi_probe()
689 devdata = devdata ? devdata : &orion_spi_dev_data; in orion_spi_probe()
690 spi->devdata = devdata; in orion_spi_probe()
722 master->max_speed_hz = min(devdata->max_hz, in orion_spi_probe()
723 DIV_ROUND_UP(tclk_hz, devdata->min_divisor)); in orion_spi_probe()
724 else if (devdata->min_divisor) in orion_spi_probe()
726 DIV_ROUND_UP(tclk_hz, devdata->min_divisor); in orion_spi_probe()
728 master->max_speed_hz = devdata->max_hz; in orion_spi_probe()
729 master->min_speed_hz = DIV_ROUND_UP(tclk_hz, devdata->max_divisor); in orion_spi_probe()