Lines Matching refs:id_map_entry
44 struct id_map_entry { struct
143 static struct id_map_entry *
150 struct id_map_entry *id_map_entry = in id_map_find_by_sl_id() local
151 rb_entry(node, struct id_map_entry, node); in id_map_find_by_sl_id()
153 if (id_map_entry->sl_cm_id > sl_cm_id) in id_map_find_by_sl_id()
155 else if (id_map_entry->sl_cm_id < sl_cm_id) in id_map_find_by_sl_id()
157 else if (id_map_entry->slave_id > slave_id) in id_map_find_by_sl_id()
159 else if (id_map_entry->slave_id < slave_id) in id_map_find_by_sl_id()
162 return id_map_entry; in id_map_find_by_sl_id()
170 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout()
171 struct id_map_entry *db_ent, *found_ent; in id_map_ent_timeout()
178 db_ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_id); in id_map_ent_timeout()
196 struct id_map_entry *ent, *found_ent; in id_map_find_del()
199 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_cm_id); in id_map_find_del()
210 static void sl_id_map_add(struct ib_device *ibdev, struct id_map_entry *new) in sl_id_map_add()
214 struct id_map_entry *ent; in sl_id_map_add()
230 ent = rb_entry(parent, struct id_map_entry, node); in sl_id_map_add()
242 static struct id_map_entry *
246 struct id_map_entry *ent; in id_map_alloc()
249 ent = kmalloc(sizeof (struct id_map_entry), GFP_KERNEL); in id_map_alloc()
281 static struct id_map_entry *
284 struct id_map_entry *ent; in id_map_get()
293 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, *pv_cm_id); in id_map_get()
299 static void schedule_delayed(struct ib_device *ibdev, struct id_map_entry *id) in schedule_delayed()
318 struct id_map_entry *id; in mlx4_ib_multiplex_cm_handler()
364 struct id_map_entry *id; in mlx4_ib_demux_cm_handler()
422 struct id_map_entry *map, *tmp_map; in mlx4_ib_cm_paravirt_clean()
442 struct id_map_entry *ent = in mlx4_ib_cm_paravirt_clean()
444 struct id_map_entry, node); in mlx4_ib_cm_paravirt_clean()
454 struct id_map_entry *ent = in mlx4_ib_cm_paravirt_clean()
455 rb_entry(nd, struct id_map_entry, node); in mlx4_ib_cm_paravirt_clean()