Lines Matching refs:rmt

14230 	struct rsm_map_table *rmt;  in alloc_rsm_map_table()  local
14233 rmt = kmalloc(sizeof(*rmt), GFP_KERNEL); in alloc_rsm_map_table()
14234 if (rmt) { in alloc_rsm_map_table()
14235 memset(rmt->map, rxcontext, sizeof(rmt->map)); in alloc_rsm_map_table()
14236 rmt->used = 0; in alloc_rsm_map_table()
14239 return rmt; in alloc_rsm_map_table()
14247 struct rsm_map_table *rmt) in complete_rsm_map_table() argument
14251 if (rmt) { in complete_rsm_map_table()
14254 write_csr(dd, RCV_RSM_MAP_TABLE + (8 * i), rmt->map[i]); in complete_rsm_map_table()
14359 static void init_qos(struct hfi1_devdata *dd, struct rsm_map_table *rmt) in init_qos() argument
14366 if (!rmt) in init_qos()
14375 if (rmt->used + rmt_entries >= NUM_MAP_ENTRIES) in init_qos()
14387 idx = rmt->used + ((qpn << n) ^ i); in init_qos()
14391 reg = rmt->map[regidx]; in init_qos()
14395 rmt->map[regidx] = reg; in init_qos()
14402 rrd.offset = rmt->used; in init_qos()
14419 rmt->used += rmt_entries; in init_qos()
14430 struct rsm_map_table *rmt) in init_fecn_handling() argument
14447 if (rmt->used + total_cnt >= NUM_MAP_ENTRIES) { in init_fecn_handling()
14462 offset = (u8)(NUM_MAP_ENTRIES + rmt->used - start); in init_fecn_handling()
14464 for (i = start, idx = rmt->used; i < dd->num_rcv_contexts; in init_fecn_handling()
14469 reg = rmt->map[regidx]; in init_fecn_handling()
14472 rmt->map[regidx] = reg; in init_fecn_handling()
14500 rmt->used += total_cnt; in init_fecn_handling()
14639 struct rsm_map_table *rmt; in init_rxe() local
14645 rmt = alloc_rsm_map_table(dd); in init_rxe()
14646 if (!rmt) in init_rxe()
14650 init_qos(dd, rmt); in init_rxe()
14651 init_fecn_handling(dd, rmt); in init_rxe()
14652 complete_rsm_map_table(dd, rmt); in init_rxe()
14654 hfi1_netdev_set_free_rmt_idx(dd, rmt->used); in init_rxe()
14655 kfree(rmt); in init_rxe()