Lines Matching defs:buf_size
36 int buf_size; /* actual number of bytes in the buffer */
111 cnf->buf_size = 0; /* buffer is empty */
115 cnf->buf_size = 0; /* buffer is empty */
124 i = cnf->needed_size - cnf->buf_size; /* bytes still missing for write */
130 if (copy_from_user(cnf->pof_buffer + cnf->buf_size, buf, count))
132 cnf->buf_size += count;
134 if (cnf->needed_size == cnf->buf_size) {
135 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */
140 cnf->buf_size = 0; /* buffer is empty again */
151 i = (CONF_LINE_LEN - 1) - cnf->buf_size; /* bytes available in buffer */
157 if (copy_from_user(cnf->conf_line + cnf->buf_size, buf, count))
161 cp = cnf->conf_line + cnf->buf_size;
179 cnf->buf_size = 0; /* buffer is empty after transfer */
185 cnf->buf_size += count; /* add chars to string */
186 if (cnf->buf_size >= CONF_LINE_LEN - 1) {
188 hysdn_addlog(cnf->card, "cnf line too long %d chars pos %d", cnf->buf_size, count);
271 cnf->buf_size = 0; /* nothing buffered */