Lines Matching refs:cnt
33 unsigned int cnt, size; in proc_bus_pci_read() local
54 cnt = nbytes; in proc_bus_pci_read()
56 if (!access_ok(buf, cnt)) in proc_bus_pci_read()
61 if ((pos & 1) && cnt) { in proc_bus_pci_read()
67 cnt--; in proc_bus_pci_read()
70 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
76 cnt -= 2; in proc_bus_pci_read()
79 while (cnt >= 4) { in proc_bus_pci_read()
85 cnt -= 4; in proc_bus_pci_read()
89 if (cnt >= 2) { in proc_bus_pci_read()
95 cnt -= 2; in proc_bus_pci_read()
98 if (cnt) { in proc_bus_pci_read()
118 int cnt, ret; in proc_bus_pci_write() local
130 cnt = nbytes; in proc_bus_pci_write()
132 if (!access_ok(buf, cnt)) in proc_bus_pci_write()
137 if ((pos & 1) && cnt) { in proc_bus_pci_write()
143 cnt--; in proc_bus_pci_write()
146 if ((pos & 3) && cnt > 2) { in proc_bus_pci_write()
152 cnt -= 2; in proc_bus_pci_write()
155 while (cnt >= 4) { in proc_bus_pci_write()
161 cnt -= 4; in proc_bus_pci_write()
164 if (cnt >= 2) { in proc_bus_pci_write()
170 cnt -= 2; in proc_bus_pci_write()
173 if (cnt) { in proc_bus_pci_write()