Lines Matching full:chip
112 * @param: chip, the tpm chip description.
123 * @param: chip, the tpm chip description
128 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_check_locality() local
136 return chip->locality; in st33zp24_i2c_check_locality()
143 * @param: chip, the chip description
148 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_request_locality() local
153 if (st33zp24_i2c_check_locality(dev) == chip->locality) in st33zp24_i2c_request_locality()
154 return chip->locality; in st33zp24_i2c_request_locality()
163 stop = chip->timeout_a; in st33zp24_i2c_request_locality()
166 return chip->locality; in st33zp24_i2c_request_locality()
175 * @param: chip, the tpm chip description
189 * @param: chip, the chip description
194 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_burstcount() local
201 stop = chip->timeout_d; in st33zp24_i2c_get_burstcount()
226 * @param: chip, tpm_chip description.
238 * @param: chip, the tpm chip description
268 * @param: chip, the tpm chip description
275 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv_data() local
280 chip->timeout_c, &status) == 0) { in st33zp24_i2c_recv_data()
297 * @param: chip, tpm_chip description.
304 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv() local
308 if (!chip) in st33zp24_i2c_recv()
345 * @param: chip, tpm_chip description.
352 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_send() local
357 if (!chip) in st33zp24_i2c_send()
370 chip->timeout_b, &status) < 0) { in st33zp24_i2c_send()
434 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_init() local
436 chip->is_open = 1; in st33zp24_i2c_init()
439 chip->timeout_a = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
440 chip->timeout_b = TIS_LONG_TIMEOUT_MS; in st33zp24_i2c_init()
441 chip->timeout_c = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
442 chip->timeout_d = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
444 chip->locality = LOCALITY0; in st33zp24_i2c_init()
456 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_open() local
460 if (chip->is_open) in st33zp24_i2c_open()
465 chip->is_open = 0; in st33zp24_i2c_open()
472 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_close() local
474 if (chip->is_open) { in st33zp24_i2c_close()
476 chip->is_open = 0; in st33zp24_i2c_close()
477 chip->vend_dev = 0; in st33zp24_i2c_close()
485 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_desc() local
490 return snprintf(buf, size, "1.2 TPM (%s, chip type %s device-id 0x%x)", in st33zp24_i2c_get_desc()
491 chip->is_open ? "open" : "closed", in st33zp24_i2c_get_desc()
493 chip->vend_dev >> 16); in st33zp24_i2c_get_desc()
507 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_probe() local
510 chip->timeout_a = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
511 chip->timeout_b = TIS_LONG_TIMEOUT_MS; in st33zp24_i2c_probe()
512 chip->timeout_c = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
513 chip->timeout_d = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
515 chip->locality = LOCALITY0; in st33zp24_i2c_probe()