Lines Matching refs:entry

84 	u32 entry;  in c4iw_get_resource()  local
85 entry = c4iw_id_alloc(id_table); in c4iw_get_resource()
86 if (entry == (u32)(-1)) in c4iw_get_resource()
88 return entry; in c4iw_get_resource()
91 void c4iw_put_resource(struct c4iw_id_table *id_table, u32 entry) in c4iw_put_resource() argument
93 PDBG("%s entry 0x%x\n", __func__, entry); in c4iw_put_resource()
94 c4iw_id_free(id_table, entry); in c4iw_put_resource()
99 struct c4iw_qid_list *entry; in c4iw_get_cqid() local
105 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid()
106 entry); in c4iw_get_cqid()
107 list_del(&entry->entry); in c4iw_get_cqid()
108 qid = entry->qid; in c4iw_get_cqid()
109 kfree(entry); in c4iw_get_cqid()
118 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
119 if (!entry) in c4iw_get_cqid()
121 entry->qid = i; in c4iw_get_cqid()
122 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_cqid()
129 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
130 if (!entry) in c4iw_get_cqid()
132 entry->qid = qid; in c4iw_get_cqid()
133 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
135 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
136 if (!entry) in c4iw_get_cqid()
138 entry->qid = i; in c4iw_get_cqid()
139 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
155 struct c4iw_qid_list *entry; in c4iw_put_cqid() local
157 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid()
158 if (!entry) in c4iw_put_cqid()
161 entry->qid = qid; in c4iw_put_cqid()
163 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_put_cqid()
169 struct c4iw_qid_list *entry; in c4iw_get_qpid() local
175 entry = list_entry(uctx->qpids.next, struct c4iw_qid_list, in c4iw_get_qpid()
176 entry); in c4iw_get_qpid()
177 list_del(&entry->entry); in c4iw_get_qpid()
178 qid = entry->qid; in c4iw_get_qpid()
179 kfree(entry); in c4iw_get_qpid()
192 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
193 if (!entry) in c4iw_get_qpid()
195 entry->qid = i; in c4iw_get_qpid()
196 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_qpid()
203 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
204 if (!entry) in c4iw_get_qpid()
206 entry->qid = qid; in c4iw_get_qpid()
207 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
209 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
210 if (!entry) in c4iw_get_qpid()
212 entry->qid = i; in c4iw_get_qpid()
213 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
229 struct c4iw_qid_list *entry; in c4iw_put_qpid() local
231 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
232 if (!entry) in c4iw_put_qpid()
235 entry->qid = qid; in c4iw_put_qpid()
237 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_put_qpid()