Lines Matching refs:temp_link
1219 struct ring_elt *temp_link = NULL; in allocate_buffer_ring() local
1254 temp_link = (struct ring_elt *)malloc(sizeof(struct ring_elt)); in allocate_buffer_ring()
1255 if (temp_link == NULL) { in allocate_buffer_ring()
1261 first_link = temp_link; in allocate_buffer_ring()
1263 temp_link->buffer_base = (char *)malloc(malloc_size); in allocate_buffer_ring()
1264 if (temp_link == NULL) { in allocate_buffer_ring()
1270 temp_link->buffer_ptr = (char *)(( (long)(temp_link->buffer_base) + in allocate_buffer_ring()
1274 temp_link->buffer_ptr = (char *)(( (ULONG_PTR)(temp_link->buffer_base) + in allocate_buffer_ring()
1278 temp_link->buffer_ptr += offset; in allocate_buffer_ring()
1281 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1299 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1311 temp_link->next = prev_link; in allocate_buffer_ring()
1312 prev_link = temp_link; in allocate_buffer_ring()
1315 first_link->next = temp_link; in allocate_buffer_ring()
1380 struct ring_elt *temp_link; in allocate_exs_buffer_ring() local
1455 for (i = 0, temp_link = first_link; i < width; i++, temp_link++) { in allocate_exs_buffer_ring()
1457 temp_link->buffer_base = (char *) mmap_buffer_aligned + (i*malloc_size); in allocate_exs_buffer_ring()
1459 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1460 (((long)temp_link->buffer_base + (long)alignment - 1) & in allocate_exs_buffer_ring()
1463 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1464 (((ULONG_PTR)temp_link->buffer_base + (ULONG_PTR)alignment - 1) & in allocate_exs_buffer_ring()
1467 temp_link->buffer_ptr += offset; in allocate_exs_buffer_ring()
1472 i, temp_link->buffer_base, temp_link->buffer_ptr); in allocate_exs_buffer_ring()
1479 if (((bytes_read = (int) fread (temp_link->buffer_ptr, in allocate_exs_buffer_ring()
1491 prev_link->next = temp_link; in allocate_exs_buffer_ring()
1492 prev_link = temp_link; in allocate_exs_buffer_ring()
1522 struct sendfile_ring_elt *temp_link = NULL; in alloc_sendfile_buf_ring() local
1627 temp_link = (struct sendfile_ring_elt *) in alloc_sendfile_buf_ring()
1629 if (temp_link == NULL) { in alloc_sendfile_buf_ring()
1637 first_link = temp_link; in alloc_sendfile_buf_ring()
1645 temp_link->fildes = fildes; /* from which file do we send? */ in alloc_sendfile_buf_ring()
1646 temp_link->offset = offset; /* starting at which offset? */ in alloc_sendfile_buf_ring()
1648 temp_link->length = buffer_size; /* how many bytes to send */ in alloc_sendfile_buf_ring()
1649 temp_link->hdtrl = NULL; /* no header or trailer */ in alloc_sendfile_buf_ring()
1650 temp_link->flags = 0; /* no flags */ in alloc_sendfile_buf_ring()
1654 temp_link->next = prev_link; in alloc_sendfile_buf_ring()
1655 prev_link = temp_link; in alloc_sendfile_buf_ring()
1658 first_link->next = temp_link; in alloc_sendfile_buf_ring()