Lines Matching defs:phy

95  * @param: phy_id, the phy description
105 struct st33zp24_spi_phy *phy = phy_id;
106 struct spi_device *dev = phy->spi_device;
108 .tx_buf = phy->tx_buf,
109 .rx_buf = phy->rx_buf,
113 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0;
114 phy->tx_buf[total_length++] = tpm_register;
117 phy->tx_buf[total_length++] = tpm_size >> 8;
118 phy->tx_buf[total_length++] = tpm_size;
121 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size);
124 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency);
126 spi_xfer.len = total_length + phy->latency;
130 ret = phy->rx_buf[total_length + phy->latency - 1];
138 * @param: phy_id, the phy description
148 struct st33zp24_spi_phy *phy = phy_id;
149 struct spi_device *dev = phy->spi_device;
151 .tx_buf = phy->tx_buf,
152 .rx_buf = phy->rx_buf,
156 phy->tx_buf[total_length++] = LOCALITY0;
157 phy->tx_buf[total_length++] = tpm_register;
159 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE,
160 phy->latency + tpm_size);
162 spi_xfer.len = total_length + phy->latency + tpm_size;
167 ret = phy->rx_buf[total_length + phy->latency - 1];
169 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency,
179 * @param: phy_id, the phy description
198 struct st33zp24_spi_phy *phy = phy_id;
203 phy->latency = latency;
232 struct st33zp24_spi_phy *phy = tpm_dev->phy_id;
245 phy->io_lpcpd = -1;
254 phy->io_lpcpd = desc_to_gpio(gpiod_lpcpd);
263 struct st33zp24_spi_phy *phy = tpm_dev->phy_id;
279 phy->io_lpcpd = -1;
294 phy->io_lpcpd = gpio;
303 struct st33zp24_spi_phy *phy = tpm_dev->phy_id;
314 phy->io_lpcpd = pdata->io_lpcpd;
340 struct st33zp24_spi_phy *phy;
349 phy = devm_kzalloc(&dev->dev, sizeof(struct st33zp24_spi_phy),
351 if (!phy)
354 phy->spi_device = dev;
371 phy->latency = st33zp24_spi_evaluate_latency(phy);
372 if (phy->latency <= 0)
375 return st33zp24_probe(phy, &spi_phy_ops, &dev->dev, dev->irq,
376 phy->io_lpcpd);