Searched refs:n_req (Results 1 – 1 of 1) sorted by relevance
266 long int rc, n_read, n_req, read_size; in dtl_file_read() local276 n_req = len / sizeof(struct dtl_entry); in dtl_file_read()289 if (last_idx + n_req > cur_idx) in dtl_file_read()290 n_req = cur_idx - last_idx; in dtl_file_read()292 if (n_req > 0) in dtl_file_read()293 dtl->last_idx = last_idx + n_req; in dtl_file_read()297 if (n_req <= 0) in dtl_file_read()303 if (i + n_req > dtl->buf_entries) { in dtl_file_read()312 n_req -= read_size; in dtl_file_read()318 rc = copy_to_user(buf, &dtl->buf[i], n_req * sizeof(struct dtl_entry)); in dtl_file_read()[all …]