Lines Matching defs:buf_size
38 int buf_size; /* actual number of bytes in the buffer */
115 cnf->buf_size = 0; /* buffer is empty */
119 cnf->buf_size = 0; /* buffer is empty */
128 i = cnf->needed_size - cnf->buf_size; /* bytes still missing for write */
134 if (copy_from_user(cnf->pof_buffer + cnf->buf_size, buf, count))
136 cnf->buf_size += count;
138 if (cnf->needed_size == cnf->buf_size) {
139 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */
144 cnf->buf_size = 0; /* buffer is empty again */
155 i = (CONF_LINE_LEN - 1) - cnf->buf_size; /* bytes available in buffer */
161 if (copy_from_user(cnf->conf_line + cnf->buf_size, buf, count))
165 cp = cnf->conf_line + cnf->buf_size;
183 cnf->buf_size = 0; /* buffer is empty after transfer */
189 cnf->buf_size += count; /* add chars to string */
190 if (cnf->buf_size >= CONF_LINE_LEN - 1) {
192 hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count);
278 cnf->buf_size = 0; /* nothing buffered */