Lines Matching refs:count
81 int count; member
89 buff->count = 0; in file_buff_open()
97 int avail = sizeof(buff->data) - buff->count; in file_buff_write()
101 memcpy( buff->data + buff->count, src, avail ); in file_buff_write()
105 buff->count += avail; in file_buff_write()
106 if (buff->count == FILE_BUFF_SIZE) { in file_buff_write()
107 unix_write( buff->fd, buff->data, buff->count ); in file_buff_write()
108 buff->count = 0; in file_buff_write()
116 if (buff->count > 0) { in file_buff_done()
117 unix_write( buff->fd, buff->data, buff->count ); in file_buff_done()
118 buff->count = 0; in file_buff_done()
303 int timeout = 0, count = 0; in bootchart_init() local
332 count = (timeout*1000 + BOOTCHART_POLLING_MS-1)/BOOTCHART_POLLING_MS; in bootchart_init()
350 return count; in bootchart_init()