Lines Matching refs:master
23 struct spi_master *master; in octeon_spi_probe() local
27 master = spi_alloc_master(&pdev->dev, sizeof(struct octeon_spi)); in octeon_spi_probe()
28 if (!master) in octeon_spi_probe()
30 p = spi_master_get_devdata(master); in octeon_spi_probe()
31 platform_set_drvdata(pdev, master); in octeon_spi_probe()
48 master->num_chipselect = 4; in octeon_spi_probe()
49 master->mode_bits = SPI_CPHA | in octeon_spi_probe()
55 master->transfer_one_message = octeon_spi_transfer_one_message; in octeon_spi_probe()
56 master->bits_per_word_mask = SPI_BPW_MASK(8); in octeon_spi_probe()
57 master->max_speed_hz = OCTEON_SPI_MAX_CLOCK_HZ; in octeon_spi_probe()
59 master->dev.of_node = pdev->dev.of_node; in octeon_spi_probe()
60 err = devm_spi_register_master(&pdev->dev, master); in octeon_spi_probe()
70 spi_master_put(master); in octeon_spi_probe()
76 struct spi_master *master = platform_get_drvdata(pdev); in octeon_spi_remove() local
77 struct octeon_spi *p = spi_master_get_devdata(master); in octeon_spi_remove()