Lines Matching full: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()
89 return entry; in c4iw_get_resource()
92 void c4iw_put_resource(struct c4iw_id_table *id_table, u32 entry) in c4iw_put_resource() argument
94 CTR2(KTR_IW_CXGBE, "%s entry 0x%x", __func__, entry); in c4iw_put_resource()
95 c4iw_id_free(id_table, entry); in c4iw_put_resource()
100 struct c4iw_qid_list *entry; in c4iw_get_cqid() local
106 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid()
107 entry); in c4iw_get_cqid()
108 list_del(&entry->entry); in c4iw_get_cqid()
109 qid = entry->qid; in c4iw_get_cqid()
110 kfree(entry); in c4iw_get_cqid()
119 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
120 if (!entry) in c4iw_get_cqid()
122 entry->qid = i; in c4iw_get_cqid()
123 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_cqid()
130 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
131 if (!entry) in c4iw_get_cqid()
133 entry->qid = qid; in c4iw_get_cqid()
134 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
136 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
137 if (!entry) in c4iw_get_cqid()
139 entry->qid = i; in c4iw_get_cqid()
140 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
156 struct c4iw_qid_list *entry; in c4iw_put_cqid() local
158 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid()
159 if (!entry) in c4iw_put_cqid()
162 entry->qid = qid; in c4iw_put_cqid()
164 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_put_cqid()
170 struct c4iw_qid_list *entry; in c4iw_get_qpid() local
176 entry = list_entry(uctx->qpids.next, struct c4iw_qid_list, in c4iw_get_qpid()
177 entry); in c4iw_get_qpid()
178 list_del(&entry->entry); in c4iw_get_qpid()
179 qid = entry->qid; in c4iw_get_qpid()
180 kfree(entry); in c4iw_get_qpid()
189 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
190 if (!entry) in c4iw_get_qpid()
192 entry->qid = i; in c4iw_get_qpid()
193 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_qpid()
200 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
201 if (!entry) in c4iw_get_qpid()
203 entry->qid = qid; in c4iw_get_qpid()
204 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
206 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
207 if (!entry) in c4iw_get_qpid()
209 entry->qid = i; in c4iw_get_qpid()
210 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
226 struct c4iw_qid_list *entry; in c4iw_put_qpid() local
228 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
229 if (!entry) in c4iw_put_qpid()
232 entry->qid = qid; in c4iw_put_qpid()
234 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_put_qpid()