Lines Matching defs:cnt
108 uint rdflags, char __user *buf, size_t cnt)
116 if (cnt % sizeof(struct ptp_extts_event) != 0)
119 if (cnt > sizeof(event))
120 cnt = sizeof(event);
122 cnt = cnt / sizeof(struct ptp_extts_event);
142 if (cnt > qcnt)
143 cnt = qcnt;
145 for (i = 0; i < cnt; i++) {
152 cnt = cnt * sizeof(struct ptp_extts_event);
156 if (copy_to_user(buf, event, cnt))
159 return cnt;