Lines Matching refs:native
37 struct qcom_glink_pipe native; member
47 #define to_smem_pipe(p) container_of(p, struct glink_smem_pipe, native)
67 pipe->native.length = len; in glink_smem_rx_avail()
74 return pipe->native.length - tail + head; in glink_smem_rx_avail()
88 if (tail >= pipe->native.length) in glink_smem_rx_peak()
89 tail -= pipe->native.length; in glink_smem_rx_peak()
91 len = min_t(size_t, count, pipe->native.length - tail); in glink_smem_rx_peak()
108 if (tail >= pipe->native.length) in glink_smem_rx_advance()
109 tail -= pipe->native.length; in glink_smem_rx_advance()
125 avail = pipe->native.length - head + tail; in glink_smem_tx_avail()
143 len = min_t(size_t, count, pipe->native.length - head); in glink_smem_tx_write_one()
151 if (head >= pipe->native.length) in glink_smem_tx_write_one()
152 head -= pipe->native.length; in glink_smem_tx_write_one()
171 if (head >= pipe->native.length) in glink_smem_tx_write()
172 head -= pipe->native.length; in glink_smem_tx_write()
260 &tx_pipe->native.length); in qcom_glink_smem_register()
267 rx_pipe->native.avail = glink_smem_rx_avail; in qcom_glink_smem_register()
268 rx_pipe->native.peak = glink_smem_rx_peak; in qcom_glink_smem_register()
269 rx_pipe->native.advance = glink_smem_rx_advance; 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()
281 &rx_pipe->native, &tx_pipe->native, in qcom_glink_smem_register()