Lines Matching refs:temp_link

1528   struct ring_elt *temp_link  = NULL;  in allocate_buffer_ring()  local
1564 temp_link = (struct ring_elt *)malloc(sizeof(struct ring_elt)); in allocate_buffer_ring()
1565 if (temp_link == NULL) { in allocate_buffer_ring()
1571 temp_link->completion_ptr = NULL; in allocate_buffer_ring()
1574 first_link = temp_link; in allocate_buffer_ring()
1576 temp_link->buffer_base = (char *)malloc(malloc_size); in allocate_buffer_ring()
1577 if (temp_link->buffer_base == NULL) { in allocate_buffer_ring()
1585 temp_link->buffer_ptr = (char *)(( (long)(temp_link->buffer_base) + in allocate_buffer_ring()
1589 temp_link->buffer_ptr = (char *)(( (ULONG_PTR)(temp_link->buffer_base) + in allocate_buffer_ring()
1593 temp_link->buffer_ptr += offset; in allocate_buffer_ring()
1596 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1614 char *bufptr = temp_link->buffer_ptr; in allocate_buffer_ring()
1626 temp_link->next = prev_link; in allocate_buffer_ring()
1627 prev_link = temp_link; in allocate_buffer_ring()
1630 first_link->next = temp_link; in allocate_buffer_ring()
1695 struct ring_elt *temp_link; in allocate_exs_buffer_ring() local
1772 for (i = 0, temp_link = first_link; i < width; i++, temp_link++) { in allocate_exs_buffer_ring()
1774 temp_link->buffer_base = (char *) mmap_buffer_aligned + (i*malloc_size); in allocate_exs_buffer_ring()
1776 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1777 (((long)temp_link->buffer_base + (long)alignment - 1) & in allocate_exs_buffer_ring()
1780 temp_link->buffer_ptr = (char *) in allocate_exs_buffer_ring()
1781 (((ULONG_PTR)temp_link->buffer_base + (ULONG_PTR)alignment - 1) & in allocate_exs_buffer_ring()
1784 temp_link->buffer_ptr += offset; in allocate_exs_buffer_ring()
1789 i, temp_link->buffer_base, temp_link->buffer_ptr); in allocate_exs_buffer_ring()
1796 if (((bytes_read = (int) fread (temp_link->buffer_ptr, in allocate_exs_buffer_ring()
1808 prev_link->next = temp_link; in allocate_exs_buffer_ring()
1809 prev_link = temp_link; in allocate_exs_buffer_ring()
1839 struct ring_elt *temp_link = NULL; in alloc_sendfile_buf_ring() local
1939 temp_link = (struct ring_elt *) in alloc_sendfile_buf_ring()
1941 if (temp_link == NULL) { in alloc_sendfile_buf_ring()
1951 first_link = temp_link; in alloc_sendfile_buf_ring()
1959 temp_link->fildes = fildes; /* from which file do we send? */ in alloc_sendfile_buf_ring()
1960 temp_link->offset = offset; /* starting at which offset? */ in alloc_sendfile_buf_ring()
1962 temp_link->length = buffer_size; /* how many bytes to send */ in alloc_sendfile_buf_ring()
1963 temp_link->hdtrl = NULL; /* no header or trailer */ in alloc_sendfile_buf_ring()
1964 temp_link->flags = 0; /* no flags */ in alloc_sendfile_buf_ring()
1968 temp_link->next = prev_link; in alloc_sendfile_buf_ring()
1969 prev_link = temp_link; in alloc_sendfile_buf_ring()
1972 first_link->next = temp_link; in alloc_sendfile_buf_ring()