Lines Matching refs:l
89 #define TPM_ACCESS(l) (0x0000 | ((l) << 12)) argument
90 #define TPM_INT_ENABLE(l) (0x0008 | ((l) << 12)) argument
91 #define TPM_INT_VECTOR(l) (0x000C | ((l) << 12)) argument
92 #define TPM_INT_STATUS(l) (0x0010 | ((l) << 12)) argument
93 #define TPM_INTF_CAPS(l) (0x0014 | ((l) << 12)) argument
94 #define TPM_STS(l) (0x0018 | ((l) << 12)) argument
95 #define TPM_STS3(l) (0x001b | ((l) << 12)) argument
96 #define TPM_DATA_FIFO(l) (0x0024 | ((l) << 12)) argument
98 #define TPM_DID_VID(l) (0x0F00 | ((l) << 12)) argument
99 #define TPM_RID(l) (0x0F04 | ((l) << 12)) argument
160 static int wait_startup(struct tpm_chip *chip, int l) in wait_startup() argument
164 if (ioread8(chip->vendor.iobase + TPM_ACCESS(l)) & in wait_startup()
172 static int check_locality(struct tpm_chip *chip, int l) in check_locality() argument
174 if ((ioread8(chip->vendor.iobase + TPM_ACCESS(l)) & in check_locality()
177 return chip->vendor.locality = l; in check_locality()
182 static void release_locality(struct tpm_chip *chip, int l, int force) in release_locality() argument
184 if (force || (ioread8(chip->vendor.iobase + TPM_ACCESS(l)) & in release_locality()
188 chip->vendor.iobase + TPM_ACCESS(l)); in release_locality()
191 static int request_locality(struct tpm_chip *chip, int l) in request_locality() argument
196 if (check_locality(chip, l) >= 0) in request_locality()
197 return l; in request_locality()
200 chip->vendor.iobase + TPM_ACCESS(l)); in request_locality()
211 (chip, l) >= 0), in request_locality()
214 return l; in request_locality()
222 if (check_locality(chip, l) >= 0) in request_locality()
223 return l; in request_locality()