Lines Matching refs:cnt
32 unsigned int cnt, size; in proc_bus_pci_read() local
53 cnt = nbytes; in proc_bus_pci_read()
55 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read()
60 if ((pos & 1) && cnt) { in proc_bus_pci_read()
66 cnt--; in proc_bus_pci_read()
69 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
75 cnt -= 2; in proc_bus_pci_read()
78 while (cnt >= 4) { in proc_bus_pci_read()
84 cnt -= 4; in proc_bus_pci_read()
87 if (cnt >= 2) { in proc_bus_pci_read()
93 cnt -= 2; in proc_bus_pci_read()
96 if (cnt) { in proc_bus_pci_read()
102 cnt--; in proc_bus_pci_read()
118 int cnt; in proc_bus_pci_write() local
126 cnt = nbytes; in proc_bus_pci_write()
128 if (!access_ok(VERIFY_READ, buf, cnt)) in proc_bus_pci_write()
133 if ((pos & 1) && cnt) { in proc_bus_pci_write()
139 cnt--; in proc_bus_pci_write()
142 if ((pos & 3) && cnt > 2) { in proc_bus_pci_write()
148 cnt -= 2; in proc_bus_pci_write()
151 while (cnt >= 4) { in proc_bus_pci_write()
157 cnt -= 4; in proc_bus_pci_write()
160 if (cnt >= 2) { in proc_bus_pci_write()
166 cnt -= 2; in proc_bus_pci_write()
169 if (cnt) { in proc_bus_pci_write()
175 cnt--; in proc_bus_pci_write()