Lines Matching refs:ptr
134 * • ptr == NULL: (initial state)
135 * ◦ __ffs_epfile_read_buffer_free: go to ptr == DROP
137 * ◦ __ffs_epfile_read_data allocates temp buffer: go to ptr == buf
139 * • ptr == DROP:
141 * ◦ __ffs_epfile_read_buffered: go to ptr == NULL
144 * • ptr == buf:
145 * ◦ __ffs_epfile_read_buffer_free: free buf, go to ptr == DROP
146 * ◦ __ffs_epfile_read_buffered: go to ptr == NULL and reading
150 * • ptr == NULL and reading:
151 * ◦ __ffs_epfile_read_buffer_free: go to ptr == DROP and reading
155 * … all data read: free buf, go to ptr == NULL
156 * … otherwise: go to ptr == buf and reading
157 * • ptr == DROP and reading:
161 * ◦ reading finishes: free buf, go to ptr == DROP
338 static ssize_t ffs_ep0_write(struct file *file, const char __user *buf, size_t len, loff_t *ptr)
511 static ssize_t ffs_ep0_read(struct file *file, char __user *buf, size_t len, loff_t *ptr)