Lines Matching defs:count
18 * One last word: there's one path we can always count on: the primary path.
99 ssize_t (*store)(struct pdcspath_entry *entry, const char *buf, size_t count);
151 /* addr, devpath and count must be word aligned */
201 /* addr, devpath and count must be word aligned */
252 * @count: The number of bytes to be read.
264 pdcspath_hwpath_write(struct pdcspath_entry *entry, const char *buf, size_t count)
272 if (!entry || !buf || !count)
276 count = min_t(size_t, count, sizeof(in)-1);
277 strncpy(in, buf, count);
278 in[count] = '\0';
331 return count;
371 * @count: The number of bytes to be read.
380 pdcspath_layer_write(struct pdcspath_entry *entry, const char *buf, size_t count)
386 if (!entry || !buf || !count)
390 count = min_t(size_t, count, sizeof(in)-1);
391 strncpy(in, buf, count);
392 in[count] = '\0';
425 return count;
452 * @count: The size of the buffer.
456 const char *buf, size_t count)
466 ret = pdcs_attr->store(entry, buf, count);
577 * pdcs_timer_read - Stable Storage timer count output (in seconds).
734 * @count: The number of bytes to be read.
743 size_t count, int knob)
753 if (!buf || !count)
757 count = min_t(size_t, count, sizeof(in)-1);
758 strncpy(in, buf, count);
759 in[count] = '\0';
797 return count;
807 * @count: The number of bytes to be read.
815 const char *buf, size_t count)
817 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOBOOT);
823 * @count: The number of bytes to be read.
831 const char *buf, size_t count)
833 return pdcs_auto_write(kobj, attr, buf, count, PF_AUTOSEARCH);
839 * @count: The number of bytes to be read.
847 const char *buf, size_t count)
854 if (!buf || !count)
860 if (count > 16)
865 memcpy(in, buf, count);
870 return count;
876 * @count: The number of bytes to be read.
884 const char *buf, size_t count)
893 if (!buf || !count)
904 if (count > size)
909 for (i=0; i<count; i+=4) {
911 memcpy(in, buf+i, (count-i < 4) ? count-i : 4);
917 return count;