Lines Matching refs:tx_pipe
189 struct glink_smem_pipe *tx_pipe; in qcom_glink_smem_register() local
220 tx_pipe = devm_kzalloc(dev, sizeof(*tx_pipe), GFP_KERNEL); in qcom_glink_smem_register()
221 if (!rx_pipe || !tx_pipe) { in qcom_glink_smem_register()
247 tx_pipe->tail = &descs[0]; in qcom_glink_smem_register()
248 tx_pipe->head = &descs[1]; in qcom_glink_smem_register()
259 tx_pipe->fifo = qcom_smem_get(remote_pid, SMEM_GLINK_NATIVE_XPRT_FIFO_0, in qcom_glink_smem_register()
260 &tx_pipe->native.length); in qcom_glink_smem_register()
261 if (IS_ERR(tx_pipe->fifo)) { in qcom_glink_smem_register()
263 ret = PTR_ERR(tx_pipe->fifo); in qcom_glink_smem_register()
272 tx_pipe->native.avail = glink_smem_tx_avail; in qcom_glink_smem_register()
273 tx_pipe->native.write = glink_smem_tx_write; in qcom_glink_smem_register()
274 tx_pipe->remote_pid = remote_pid; in qcom_glink_smem_register()
277 *tx_pipe->head = 0; in qcom_glink_smem_register()
281 &rx_pipe->native, &tx_pipe->native, in qcom_glink_smem_register()