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()
88 if (cnt >= 2) { in proc_bus_pci_read()
94 cnt -= 2; in proc_bus_pci_read()
97 if (cnt) { in proc_bus_pci_read()
103 cnt--; in proc_bus_pci_read()
119 int cnt, ret; in proc_bus_pci_write() local
131 cnt = nbytes; in proc_bus_pci_write()
133 if (!access_ok(buf, cnt)) in proc_bus_pci_write()
138 if ((pos & 1) && cnt) { in proc_bus_pci_write()
144 cnt--; in proc_bus_pci_write()
147 if ((pos & 3) && cnt > 2) { in proc_bus_pci_write()
153 cnt -= 2; in proc_bus_pci_write()
156 while (cnt >= 4) { in proc_bus_pci_write()
162 cnt -= 4; in proc_bus_pci_write()
165 if (cnt >= 2) { in proc_bus_pci_write()
171 cnt -= 2; in proc_bus_pci_write()
174 if (cnt) { in proc_bus_pci_write()
180 cnt--; in proc_bus_pci_write()