Lines Matching refs:userCount

70 static ssize_t ata_ct_law(const u_char __user *userPtr, size_t userCount,
73 static ssize_t ata_ct_s8(const u_char __user *userPtr, size_t userCount,
76 static ssize_t ata_ct_u8(const u_char __user *userPtr, size_t userCount,
79 static ssize_t ata_ct_s16be(const u_char __user *userPtr, size_t userCount,
82 static ssize_t ata_ct_u16be(const u_char __user *userPtr, size_t userCount,
85 static ssize_t ata_ct_s16le(const u_char __user *userPtr, size_t userCount,
88 static ssize_t ata_ct_u16le(const u_char __user *userPtr, size_t userCount,
91 static ssize_t ata_ctx_law(const u_char __user *userPtr, size_t userCount,
94 static ssize_t ata_ctx_s8(const u_char __user *userPtr, size_t userCount,
97 static ssize_t ata_ctx_u8(const u_char __user *userPtr, size_t userCount,
100 static ssize_t ata_ctx_s16be(const u_char __user *userPtr, size_t userCount,
103 static ssize_t ata_ctx_u16be(const u_char __user *userPtr, size_t userCount,
106 static ssize_t ata_ctx_s16le(const u_char __user *userPtr, size_t userCount,
109 static ssize_t ata_ctx_u16le(const u_char __user *userPtr, size_t userCount,
154 static ssize_t ata_ct_law(const u_char __user *userPtr, size_t userCount, in ata_ct_law() argument
163 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_law()
179 static ssize_t ata_ct_s8(const u_char __user *userPtr, size_t userCount, in ata_ct_s8() argument
186 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_s8()
197 static ssize_t ata_ct_u8(const u_char __user *userPtr, size_t userCount, in ata_ct_u8() argument
205 count = min_t(unsigned long, userCount, frameLeft); in ata_ct_u8()
216 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u8()
232 static ssize_t ata_ct_s16be(const u_char __user *userPtr, size_t userCount, in ata_ct_s16be() argument
240 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_s16be()
254 count = min_t(unsigned long, userCount, frameLeft) & ~3; in ata_ct_s16be()
264 static ssize_t ata_ct_u16be(const u_char __user *userPtr, size_t userCount, in ata_ct_u16be() argument
272 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u16be()
287 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_u16be()
303 static ssize_t ata_ct_s16le(const u_char __user *userPtr, size_t userCount, in ata_ct_s16le() argument
312 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_s16le()
327 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_s16le()
344 static ssize_t ata_ct_u16le(const u_char __user *userPtr, size_t userCount, in ata_ct_u16le() argument
353 count = min_t(unsigned long, userCount, frameLeft)>>1; in ata_ct_u16le()
367 count = min_t(unsigned long, userCount, frameLeft)>>2; in ata_ct_u16le()
384 static ssize_t ata_ctx_law(const u_char __user *userPtr, size_t userCount, in ata_ctx_law() argument
395 used = userCount; in ata_ctx_law()
403 if (!userCount) in ata_ctx_law()
408 userCount--; in ata_ctx_law()
422 if (userCount < 2) in ata_ctx_law()
430 userCount -= 2; in ata_ctx_law()
440 used -= userCount; in ata_ctx_law()
446 static ssize_t ata_ctx_s8(const u_char __user *userPtr, size_t userCount, in ata_ctx_s8() argument
455 used = userCount; in ata_ctx_s8()
462 if (!userCount) in ata_ctx_s8()
466 userCount--; in ata_ctx_s8()
479 if (userCount < 2) in ata_ctx_s8()
484 userCount -= 2; in ata_ctx_s8()
494 used -= userCount; in ata_ctx_s8()
500 static ssize_t ata_ctx_u8(const u_char __user *userPtr, size_t userCount, in ata_ctx_u8() argument
509 used = userCount; in ata_ctx_u8()
516 if (!userCount) in ata_ctx_u8()
521 userCount--; in ata_ctx_u8()
534 if (userCount < 2) in ata_ctx_u8()
540 userCount -= 2; in ata_ctx_u8()
550 used -= userCount; in ata_ctx_u8()
556 static ssize_t ata_ctx_s16be(const u_char __user *userPtr, size_t userCount, in ata_ctx_s16be() argument
565 used = userCount; in ata_ctx_s16be()
572 if (userCount < 2) in ata_ctx_s16be()
577 userCount -= 2; in ata_ctx_s16be()
591 if (userCount < 4) in ata_ctx_s16be()
596 userCount -= 4; in ata_ctx_s16be()
606 used -= userCount; in ata_ctx_s16be()
612 static ssize_t ata_ctx_u16be(const u_char __user *userPtr, size_t userCount, in ata_ctx_u16be() argument
621 used = userCount; in ata_ctx_u16be()
628 if (userCount < 2) in ata_ctx_u16be()
634 userCount -= 2; in ata_ctx_u16be()
648 if (userCount < 4) in ata_ctx_u16be()
654 userCount -= 4; in ata_ctx_u16be()
664 used -= userCount; in ata_ctx_u16be()
670 static ssize_t ata_ctx_s16le(const u_char __user *userPtr, size_t userCount, in ata_ctx_s16le() argument
679 used = userCount; in ata_ctx_s16le()
686 if (userCount < 2) in ata_ctx_s16le()
692 userCount -= 2; in ata_ctx_s16le()
706 if (userCount < 4) in ata_ctx_s16le()
712 userCount -= 4; in ata_ctx_s16le()
722 used -= userCount; in ata_ctx_s16le()
728 static ssize_t ata_ctx_u16le(const u_char __user *userPtr, size_t userCount, in ata_ctx_u16le() argument
737 used = userCount; in ata_ctx_u16le()
744 if (userCount < 2) in ata_ctx_u16le()
750 userCount -= 2; in ata_ctx_u16le()
764 if (userCount < 4) in ata_ctx_u16le()
770 userCount -= 4; in ata_ctx_u16le()
780 used -= userCount; in ata_ctx_u16le()