Lines Matching defs:tps
29 struct tps6594 *tps = spi_get_drvdata(spi);
37 if (tps->use_crc)
44 if (tps->use_crc && buf[3] != crc8(tps6594_spi_crc_table, buf, 3, CRC8_INIT_VALUE))
55 struct tps6594 *tps = spi_get_drvdata(spi);
63 if (tps->use_crc)
91 struct tps6594 *tps;
94 tps = devm_kzalloc(dev, sizeof(*tps), GFP_KERNEL);
95 if (!tps)
98 spi_set_drvdata(spi, tps);
100 tps->dev = dev;
101 tps->reg = spi_get_chipselect(spi, 0);
102 tps->irq = spi->irq;
104 tps->regmap = devm_regmap_init(dev, NULL, spi, &tps6594_spi_regmap_config);
105 if (IS_ERR(tps->regmap))
106 return dev_err_probe(dev, PTR_ERR(tps->regmap), "Failed to init regmap\n");
111 tps->chip_id = (unsigned long)match->data;
115 return tps6594_device_init(tps, enable_crc);