Lines Matching full:entry

90 	u32 entry;  in c4iw_get_resource()  local
91 entry = c4iw_id_alloc(id_table); in c4iw_get_resource()
92 if (entry == (u32)(-1)) { in c4iw_get_resource()
95 return entry; in c4iw_get_resource()
98 void c4iw_put_resource(struct c4iw_id_table *id_table, u32 entry) in c4iw_put_resource() argument
100 CTR2(KTR_IW_CXGBE, "%s entry 0x%x", __func__, entry); in c4iw_put_resource()
101 c4iw_id_free(id_table, entry); in c4iw_put_resource()
106 struct c4iw_qid_list *entry; in c4iw_get_cqid() local
112 entry = list_entry(uctx->cqids.next, struct c4iw_qid_list, in c4iw_get_cqid()
113 entry); in c4iw_get_cqid()
114 list_del(&entry->entry); in c4iw_get_cqid()
115 qid = entry->qid; in c4iw_get_cqid()
116 kfree(entry); in c4iw_get_cqid()
125 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
126 if (!entry) in c4iw_get_cqid()
128 entry->qid = i; in c4iw_get_cqid()
129 list_add_tail(&entry->entry, &uctx->cqids); 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 = qid; in c4iw_get_cqid()
140 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
142 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
143 if (!entry) in c4iw_get_cqid()
145 entry->qid = i; in c4iw_get_cqid()
146 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_get_cqid()
162 struct c4iw_qid_list *entry; in c4iw_put_cqid() local
164 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid()
165 if (!entry) in c4iw_put_cqid()
168 entry->qid = qid; in c4iw_put_cqid()
170 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_put_cqid()
176 struct c4iw_qid_list *entry; in c4iw_get_qpid() local
182 entry = list_entry(uctx->qpids.next, struct c4iw_qid_list, in c4iw_get_qpid()
183 entry); in c4iw_get_qpid()
184 list_del(&entry->entry); in c4iw_get_qpid()
185 qid = entry->qid; in c4iw_get_qpid()
186 kfree(entry); in c4iw_get_qpid()
195 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
196 if (!entry) in c4iw_get_qpid()
198 entry->qid = i; in c4iw_get_qpid()
199 list_add_tail(&entry->entry, &uctx->qpids); 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 = qid; in c4iw_get_qpid()
210 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
212 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
213 if (!entry) in c4iw_get_qpid()
215 entry->qid = i; in c4iw_get_qpid()
216 list_add_tail(&entry->entry, &uctx->cqids); in c4iw_get_qpid()
232 struct c4iw_qid_list *entry; in c4iw_put_qpid() local
234 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
235 if (!entry) in c4iw_put_qpid()
238 entry->qid = qid; in c4iw_put_qpid()
240 list_add_tail(&entry->entry, &uctx->qpids); in c4iw_put_qpid()