Lines Matching refs:xp
570 const struct bcm_qspi_parms *xp) in bcm_qspi_hw_set_parms() argument
574 if (xp->speed_hz) in bcm_qspi_hw_set_parms()
575 spbr = qspi->base_clk / (2 * xp->speed_hz); in bcm_qspi_hw_set_parms()
587 if (xp->bits_per_word != 16) in bcm_qspi_hw_set_parms()
588 spcr |= xp->bits_per_word << 2; in bcm_qspi_hw_set_parms()
589 spcr |= xp->mode & 3; in bcm_qspi_hw_set_parms()
610 qspi->last_parms = *xp; in bcm_qspi_hw_set_parms()
617 struct bcm_qspi_parms xp; in bcm_qspi_update_parms() local
619 xp.speed_hz = trans->speed_hz; in bcm_qspi_update_parms()
620 xp.bits_per_word = trans->bits_per_word; in bcm_qspi_update_parms()
621 xp.mode = spi->mode; in bcm_qspi_update_parms()
623 bcm_qspi_hw_set_parms(qspi, &xp); in bcm_qspi_update_parms()
628 struct bcm_qspi_parms *xp; in bcm_qspi_setup() local
633 xp = spi_get_ctldata(spi); in bcm_qspi_setup()
634 if (!xp) { in bcm_qspi_setup()
635 xp = kzalloc(sizeof(*xp), GFP_KERNEL); in bcm_qspi_setup()
636 if (!xp) in bcm_qspi_setup()
638 spi_set_ctldata(spi, xp); in bcm_qspi_setup()
640 xp->speed_hz = spi->max_speed_hz; in bcm_qspi_setup()
641 xp->mode = spi->mode; in bcm_qspi_setup()
644 xp->bits_per_word = spi->bits_per_word; in bcm_qspi_setup()
646 xp->bits_per_word = 8; in bcm_qspi_setup()
1068 struct bcm_qspi_parms *xp = spi_get_ctldata(spi); in bcm_qspi_cleanup() local
1070 kfree(xp); in bcm_qspi_cleanup()