Lines Matching refs:count

92 char *strncpy(char *dest, const char *src, size_t count)
96 while (count) {
100 count--;
107 ssize_t sized_strscpy(char *dest, const char *src, size_t count)
110 size_t max = count;
113 if (count == 0 || WARN_ON_ONCE(count > INT_MAX))
152 count -= sizeof(unsigned long);
156 while (count) {
164 count--;
214 char *strncat(char *dest, const char *src, size_t count)
218 if (count) {
222 if (--count == 0) {
234 size_t strlcat(char *dest, const char *src, size_t count)
241 BUG_ON(dsize >= count);
244 count -= dsize;
245 if (len >= count)
246 len = count-1;
282 * @count: The maximum number of bytes to compare
284 int strncmp(const char *cs, const char *ct, size_t count)
288 while (count) {
295 count--;
343 * @count: The number of characters to be searched
349 char *strnchrnul(const char *s, size_t count, int c)
351 while (count-- && *s && *s != (char)c)
378 * @count: The number of characters to be searched
384 char *strnchr(const char *s, size_t count, int c)
386 while (count--) {
410 size_t strnlen(const char *s, size_t count)
414 for (sc = s; count-- && *sc != '\0'; ++sc)
512 * @count: The size of the area.
516 void *memset(void *s, int c, size_t count)
520 while (count--)
532 * @count: The number of values to store
535 * of a byte. Remember that @count is the number of uint16_ts to
538 void *memset16(uint16_t *s, uint16_t v, size_t count)
542 while (count--)
554 * @count: The number of values to store
557 * of a byte. Remember that @count is the number of uint32_ts to
560 void *memset32(uint32_t *s, uint32_t v, size_t count)
564 while (count--)
576 * @count: The number of values to store
579 * of a byte. Remember that @count is the number of uint64_ts to
582 void *memset64(uint64_t *s, uint64_t v, size_t count)
586 while (count--)
598 * @count: The size of the area.
603 void *memcpy(void *dest, const void *src, size_t count)
608 while (count--)
620 * @count: The size of the area.
624 void *memmove(void *dest, const void *src, size_t count)
632 while (count--)
636 tmp += count;
638 s += count;
639 while (count--)
652 * @count: The size of the area.
655 __visible int memcmp(const void *cs, const void *ct, size_t count)
661 if (count >= sizeof(unsigned long)) {
669 count -= sizeof(unsigned long);
670 } while (count >= sizeof(unsigned long));
675 for (su1 = cs, su2 = ct; 0 < count; ++su1, ++su2, count--)