Lines Matching defs:pipe
71 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
75 head = readl(pipe->head);
76 tail = readl(pipe->tail);
79 return pipe->native.length - tail + head;
87 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
91 tail = readl(pipe->tail);
93 if (tail >= pipe->native.length)
94 tail -= pipe->native.length;
96 len = min_t(size_t, count, pipe->native.length - tail);
98 __ioread32_copy(data, pipe->fifo + tail,
103 __ioread32_copy(data + len, pipe->fifo,
111 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
114 tail = readl(pipe->tail);
117 if (tail >= pipe->native.length)
118 tail -= pipe->native.length;
120 writel(tail, pipe->tail);
125 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
129 head = readl(pipe->head);
130 tail = readl(pipe->tail);
133 return pipe->native.length - head + tail;
138 static unsigned int glink_rpm_tx_write_one(struct glink_rpm_pipe *pipe,
144 len = min_t(size_t, count, pipe->native.length - head);
146 __iowrite32_copy(pipe->fifo + head, data,
151 __iowrite32_copy(pipe->fifo, data + len,
156 if (head >= pipe->native.length)
157 head -= pipe->native.length;
166 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
185 head = readl(pipe->head);
186 head = glink_rpm_tx_write_one(pipe, head, hdr, hlen);
187 head = glink_rpm_tx_write_one(pipe, head, data, aligned_dlen);
191 head = glink_rpm_tx_write_one(pipe, head, padding, pad);
192 writel(head, pipe->head);
197 struct glink_rpm_pipe *pipe = to_rpm_pipe(glink_pipe);
198 struct glink_rpm *rpm = container_of(pipe, struct glink_rpm, tx_pipe);