• Home
  • Raw
  • Download

Lines Matching refs:count

104 	    const char *buf, size_t count)  in state_store()  argument
128 count = rc; in state_store()
129 return count; in state_store()
161 const char *buf, size_t count) in heartbeat_enable_store() argument
179 ret = count; in heartbeat_enable_store()
204 const char *buf, size_t count) in cmdline_store() argument
214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); in cmdline_store()
216 count = -ENOMEM; in cmdline_store()
220 strncpy(cdev->cmdline, buf, count); in cmdline_store()
222 if (cdev->cmdline[count - 1] == '\n') in cmdline_store()
223 cdev->cmdline[count - 1] = '\0'; in cmdline_store()
225 cdev->cmdline[count] = '\0'; in cmdline_store()
228 return count; in cmdline_store()
250 const char *buf, size_t count) in firmware_store() argument
260 cdev->firmware = kmalloc(count + 1, GFP_KERNEL); in firmware_store()
262 count = -ENOMEM; in firmware_store()
265 strncpy(cdev->firmware, buf, count); in firmware_store()
267 if (cdev->firmware[count - 1] == '\n') in firmware_store()
268 cdev->firmware[count - 1] = '\0'; in firmware_store()
270 cdev->firmware[count] = '\0'; in firmware_store()
273 return count; in firmware_store()
295 const char *buf, size_t count) in ramdisk_store() argument
305 cdev->ramdisk = kmalloc(count + 1, GFP_KERNEL); in ramdisk_store()
307 count = -ENOMEM; in ramdisk_store()
311 strncpy(cdev->ramdisk, buf, count); in ramdisk_store()
313 if (cdev->ramdisk[count - 1] == '\n') in ramdisk_store()
314 cdev->ramdisk[count - 1] = '\0'; in ramdisk_store()
316 cdev->ramdisk[count] = '\0'; in ramdisk_store()
319 return count; in ramdisk_store()
341 const char *buf, size_t count) in bootmode_store() argument
354 cdev->bootmode = kmalloc(count + 1, GFP_KERNEL); in bootmode_store()
356 count = -ENOMEM; in bootmode_store()
360 strncpy(cdev->bootmode, buf, count); in bootmode_store()
362 if (cdev->bootmode[count - 1] == '\n') in bootmode_store()
363 cdev->bootmode[count - 1] = '\0'; in bootmode_store()
365 cdev->bootmode[count] = '\0'; in bootmode_store()
368 return count; in bootmode_store()
386 const char *buf, size_t count) in log_buf_addr_store() argument
400 ret = count; in log_buf_addr_store()
420 const char *buf, size_t count) in log_buf_len_store() argument
434 ret = count; in log_buf_len_store()