Lines Matching refs:chip
130 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_check_locality() local
138 return chip->locality; in st33zp24_i2c_check_locality()
150 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_request_locality() local
155 if (st33zp24_i2c_check_locality(dev) == chip->locality) in st33zp24_i2c_request_locality()
156 return chip->locality; in st33zp24_i2c_request_locality()
165 stop = chip->timeout_a; in st33zp24_i2c_request_locality()
168 return chip->locality; in st33zp24_i2c_request_locality()
196 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_burstcount() local
203 stop = chip->timeout_d; in st33zp24_i2c_get_burstcount()
277 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv_data() local
282 chip->timeout_c, &status) == 0) { in st33zp24_i2c_recv_data()
306 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_recv() local
310 if (!chip) in st33zp24_i2c_recv()
354 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_send() local
359 if (!chip) in st33zp24_i2c_send()
372 chip->timeout_b, &status) < 0) { in st33zp24_i2c_send()
436 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_init() local
438 chip->is_open = 1; in st33zp24_i2c_init()
441 chip->timeout_a = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
442 chip->timeout_b = TIS_LONG_TIMEOUT_MS; in st33zp24_i2c_init()
443 chip->timeout_c = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
444 chip->timeout_d = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_init()
446 chip->locality = LOCALITY0; in st33zp24_i2c_init()
458 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_open() local
462 if (chip->is_open) in st33zp24_i2c_open()
467 chip->is_open = 0; in st33zp24_i2c_open()
474 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_close() local
476 if (chip->is_open) { in st33zp24_i2c_close()
478 chip->is_open = 0; in st33zp24_i2c_close()
479 chip->vend_dev = 0; in st33zp24_i2c_close()
487 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_get_desc() local
493 chip->is_open ? "open" : "closed", in st33zp24_i2c_get_desc()
495 chip->vend_dev >> 16); in st33zp24_i2c_get_desc()
509 struct tpm_chip *chip = dev_get_priv(dev); in st33zp24_i2c_probe() local
512 chip->timeout_a = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
513 chip->timeout_b = TIS_LONG_TIMEOUT_MS; in st33zp24_i2c_probe()
514 chip->timeout_c = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
515 chip->timeout_d = TIS_SHORT_TIMEOUT_MS; in st33zp24_i2c_probe()
517 chip->locality = LOCALITY0; in st33zp24_i2c_probe()