Lines Matching refs:head
40 struct sp_chunk **head)
55 new_head->head = 0;
67 *head = new_head;
89 __be16 *c2_alloc_mqsp(struct c2_dev *c2dev, struct sp_chunk *head,
94 while (head) {
95 mqsp = head->head;
97 head->head = head->shared_ptr[mqsp];
99 } else if (head->next == NULL) {
100 if (c2_alloc_mqsp_chunk(c2dev, gfp_mask, &head->next) ==
102 head = head->next;
103 mqsp = head->head;
104 head->head = head->shared_ptr[mqsp];
109 head = head->next;
111 if (head) {
112 *dma_addr = head->dma_addr +
113 ((unsigned long) &(head->shared_ptr[mqsp]) -
114 (unsigned long) head);
116 &(head->shared_ptr[mqsp]), (unsigned long long) *dma_addr);
117 return (__force __be16 *) &(head->shared_ptr[mqsp]);
124 struct sp_chunk *head;
128 head = (struct sp_chunk *) ((unsigned long) mqsp & PAGE_MASK);
130 /* Link head to new mqsp */
131 *mqsp = (__force __be16) head->head;
137 /* Point this index at the head */
138 head->shared_ptr[idx] = head->head;
140 /* Point head at this index */
141 head->head = idx;