Lines Matching refs:count
64 static ssize_t pci_read(struct dfs_file *file, void *buf, size_t count, off_t *ppos) in pci_read() argument
67 size_t res = count; in pci_read()
74 if ((pos & 1) && count) in pci_read()
83 --count; in pci_read()
86 if ((pos & 3) && count > 2) in pci_read()
97 count -= 2; in pci_read()
100 while (count >= 4) in pci_read()
111 count -= 4; in pci_read()
114 if (count >= 2) in pci_read()
125 count -= 2; in pci_read()
128 if (count) in pci_read()
145 static ssize_t pci_write(struct dfs_file *file, const void *buf, size_t count, off_t *ppos) in pci_write() argument
148 size_t res = count; in pci_write()
155 if ((pos & 1) && count) in pci_write()
164 --count; in pci_write()
167 if ((pos & 3) && count > 2) in pci_write()
176 count -= 2; in pci_write()
179 while (count >= 4) in pci_write()
188 count -= 4; in pci_write()
191 if (count >= 2) in pci_write()
200 count -= 2; in pci_write()
203 if (count) in pci_write()