Lines Matching refs:userCount

71 static ssize_t ata_ct_law(const u_char __user *userPtr, size_t userCount,
74 static ssize_t ata_ct_s8(const u_char __user *userPtr, size_t userCount,
77 static ssize_t ata_ct_u8(const u_char __user *userPtr, size_t userCount,
80 static ssize_t ata_ct_s16be(const u_char __user *userPtr, size_t userCount,
83 static ssize_t ata_ct_u16be(const u_char __user *userPtr, size_t userCount,
86 static ssize_t ata_ct_s16le(const u_char __user *userPtr, size_t userCount,
89 static ssize_t ata_ct_u16le(const u_char __user *userPtr, size_t userCount,
92 static ssize_t ata_ctx_law(const u_char __user *userPtr, size_t userCount,
95 static ssize_t ata_ctx_s8(const u_char __user *userPtr, size_t userCount,
98 static ssize_t ata_ctx_u8(const u_char __user *userPtr, size_t userCount,
101 static ssize_t ata_ctx_s16be(const u_char __user *userPtr, size_t userCount,
104 static ssize_t ata_ctx_u16be(const u_char __user *userPtr, size_t userCount,
107 static ssize_t ata_ctx_s16le(const u_char __user *userPtr, size_t userCount,
110 static ssize_t ata_ctx_u16le(const u_char __user *userPtr, size_t userCount,
155 static ssize_t ata_ct_law(const u_char __user *userPtr, size_t userCount, in ata_ct_law() argument
164 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_law()
180 static ssize_t ata_ct_s8(const u_char __user *userPtr, size_t userCount, in ata_ct_s8() argument
187 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_s8()
198 static ssize_t ata_ct_u8(const u_char __user *userPtr, size_t userCount, in ata_ct_u8() argument
206 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_u8()
217 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u8()
233 static ssize_t ata_ct_s16be(const u_char __user *userPtr, size_t userCount, in ata_ct_s16be() argument
241 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_s16be()
255 count = min_t(unsigned long, userCount, frameLeft) & ~3; in ata_ct_s16be()
265 static ssize_t ata_ct_u16be(const u_char __user *userPtr, size_t userCount, in ata_ct_u16be() argument
273 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u16be()
288 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_u16be()
304 static ssize_t ata_ct_s16le(const u_char __user *userPtr, size_t userCount, in ata_ct_s16le() argument
313 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_s16le()
328 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_s16le()
345 static ssize_t ata_ct_u16le(const u_char __user *userPtr, size_t userCount, in ata_ct_u16le() argument
354 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u16le()
368 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_u16le()
385 static ssize_t ata_ctx_law(const u_char __user *userPtr, size_t userCount, in ata_ctx_law() argument
396 used = userCount; in ata_ctx_law()
404 if (!userCount) in ata_ctx_law()
409 userCount--; in ata_ctx_law()
423 if (userCount < 2) in ata_ctx_law()
431 userCount -= 2; in ata_ctx_law()
441 used -= userCount; in ata_ctx_law()
447 static ssize_t ata_ctx_s8(const u_char __user *userPtr, size_t userCount, in ata_ctx_s8() argument
456 used = userCount; in ata_ctx_s8()
463 if (!userCount) in ata_ctx_s8()
467 userCount--; in ata_ctx_s8()
480 if (userCount < 2) in ata_ctx_s8()
485 userCount -= 2; in ata_ctx_s8()
495 used -= userCount; in ata_ctx_s8()
501 static ssize_t ata_ctx_u8(const u_char __user *userPtr, size_t userCount, in ata_ctx_u8() argument
510 used = userCount; in ata_ctx_u8()
517 if (!userCount) in ata_ctx_u8()
522 userCount--; in ata_ctx_u8()
535 if (userCount < 2) in ata_ctx_u8()
541 userCount -= 2; in ata_ctx_u8()
551 used -= userCount; in ata_ctx_u8()
557 static ssize_t ata_ctx_s16be(const u_char __user *userPtr, size_t userCount, in ata_ctx_s16be() argument
566 used = userCount; in ata_ctx_s16be()
573 if (userCount < 2) in ata_ctx_s16be()
578 userCount -= 2; in ata_ctx_s16be()
592 if (userCount < 4) in ata_ctx_s16be()
597 userCount -= 4; in ata_ctx_s16be()
607 used -= userCount; in ata_ctx_s16be()
613 static ssize_t ata_ctx_u16be(const u_char __user *userPtr, size_t userCount, in ata_ctx_u16be() argument
622 used = userCount; in ata_ctx_u16be()
629 if (userCount < 2) in ata_ctx_u16be()
635 userCount -= 2; in ata_ctx_u16be()
649 if (userCount < 4) in ata_ctx_u16be()
655 userCount -= 4; in ata_ctx_u16be()
665 used -= userCount; in ata_ctx_u16be()
671 static ssize_t ata_ctx_s16le(const u_char __user *userPtr, size_t userCount, in ata_ctx_s16le() argument
680 used = userCount; in ata_ctx_s16le()
687 if (userCount < 2) in ata_ctx_s16le()
693 userCount -= 2; in ata_ctx_s16le()
707 if (userCount < 4) in ata_ctx_s16le()
713 userCount -= 4; in ata_ctx_s16le()
723 used -= userCount; in ata_ctx_s16le()
729 static ssize_t ata_ctx_u16le(const u_char __user *userPtr, size_t userCount, in ata_ctx_u16le() argument
738 used = userCount; in ata_ctx_u16le()
745 if (userCount < 2) in ata_ctx_u16le()
751 userCount -= 2; in ata_ctx_u16le()
765 if (userCount < 4) in ata_ctx_u16le()
771 userCount -= 4; in ata_ctx_u16le()
781 used -= userCount; in ata_ctx_u16le()