Lines Matching defs:ptl
139 int ssh_ptl_init(struct ssh_ptl *ptl, struct serdev_device *serdev,
142 void ssh_ptl_destroy(struct ssh_ptl *ptl);
146 * @ptl: The packet transport layer.
151 static inline struct device *ssh_ptl_get_device(struct ssh_ptl *ptl)
153 return ptl->serdev ? &ptl->serdev->dev : NULL;
156 int ssh_ptl_tx_start(struct ssh_ptl *ptl);
157 int ssh_ptl_tx_stop(struct ssh_ptl *ptl);
158 int ssh_ptl_rx_start(struct ssh_ptl *ptl);
159 int ssh_ptl_rx_stop(struct ssh_ptl *ptl);
160 void ssh_ptl_shutdown(struct ssh_ptl *ptl);
162 int ssh_ptl_submit(struct ssh_ptl *ptl, struct ssh_packet *p);
165 ssize_t ssh_ptl_rx_rcvbuf(struct ssh_ptl *ptl, const u8 *buf, size_t n);
170 * @ptl: The packet transport layer.
176 static inline void ssh_ptl_tx_wakeup_transfer(struct ssh_ptl *ptl)
178 if (test_bit(SSH_PTL_SF_SHUTDOWN_BIT, &ptl->state))
181 complete(&ptl->tx.thread_cplt_tx);