Lines Matching refs:rmc
174 sdata->u.mesh.rmc = kmalloc(sizeof(struct mesh_rmc), GFP_KERNEL); in mesh_rmc_init()
175 if (!sdata->u.mesh.rmc) in mesh_rmc_init()
177 sdata->u.mesh.rmc->idx_mask = RMC_BUCKETS - 1; in mesh_rmc_init()
179 INIT_HLIST_HEAD(&sdata->u.mesh.rmc->bucket[i]); in mesh_rmc_init()
185 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_free() local
190 if (!sdata->u.mesh.rmc) in mesh_rmc_free()
194 hlist_for_each_entry_safe(p, n, &rmc->bucket[i], list) { in mesh_rmc_free()
200 kfree(rmc); in mesh_rmc_free()
201 sdata->u.mesh.rmc = NULL; in mesh_rmc_free()
220 struct mesh_rmc *rmc = sdata->u.mesh.rmc; in mesh_rmc_check() local
227 if (!rmc) in mesh_rmc_check()
232 idx = le32_to_cpu(mesh_hdr->seqnum) & rmc->idx_mask; in mesh_rmc_check()
233 hlist_for_each_entry_safe(p, n, &rmc->bucket[idx], list) { in mesh_rmc_check()
251 hlist_add_head(&p->list, &rmc->bucket[idx]); in mesh_rmc_check()