Lines Matching refs:cnt
52 unsigned int cnt, size; in proc_bus_pci_read() local
73 cnt = nbytes; in proc_bus_pci_read()
75 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read()
78 if ((pos & 1) && cnt) { in proc_bus_pci_read()
84 cnt--; in proc_bus_pci_read()
87 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
93 cnt -= 2; in proc_bus_pci_read()
96 while (cnt >= 4) { in proc_bus_pci_read()
102 cnt -= 4; in proc_bus_pci_read()
105 if (cnt >= 2) { in proc_bus_pci_read()
111 cnt -= 2; in proc_bus_pci_read()
114 if (cnt) { in proc_bus_pci_read()
120 cnt--; in proc_bus_pci_read()
135 int cnt; in proc_bus_pci_write() local
143 cnt = nbytes; in proc_bus_pci_write()
145 if (!access_ok(VERIFY_READ, buf, cnt)) in proc_bus_pci_write()
148 if ((pos & 1) && cnt) { in proc_bus_pci_write()
154 cnt--; in proc_bus_pci_write()
157 if ((pos & 3) && cnt > 2) { in proc_bus_pci_write()
163 cnt -= 2; in proc_bus_pci_write()
166 while (cnt >= 4) { in proc_bus_pci_write()
172 cnt -= 4; in proc_bus_pci_write()
175 if (cnt >= 2) { in proc_bus_pci_write()
181 cnt -= 2; in proc_bus_pci_write()
184 if (cnt) { in proc_bus_pci_write()
190 cnt--; in proc_bus_pci_write()