Lines Matching refs:sm_ah
92 struct ib_sa_sm_ah *sm_ah; member
113 struct ib_sa_sm_ah *sm_ah; member
1147 struct ib_sa_sm_ah *sm_ah = container_of(kref, struct ib_sa_sm_ah, ref); in free_sm_ah() local
1149 rdma_destroy_ah(sm_ah->ah, 0); in free_sm_ah()
1150 kfree(sm_ah); in free_sm_ah()
1214 src_path_mask = port->sm_ah ? port->sm_ah->src_path_mask : 0x7f; in get_src_path_mask()
1301 if (!query->port->sm_ah) { in alloc_mad()
1305 kref_get(&query->port->sm_ah->ref); in alloc_mad()
1306 query->sm_ah = query->port->sm_ah; in alloc_mad()
1313 if ((rdma_query_ah(query->sm_ah->ah, &ah_attr) < 0) || in alloc_mad()
1315 kref_put(&query->sm_ah->ref, free_sm_ah); in alloc_mad()
1319 query->sm_ah->pkey_index, in alloc_mad()
1326 kref_put(&query->sm_ah->ref, free_sm_ah); in alloc_mad()
1330 query->mad_buf->ah = query->sm_ah->ah; in alloc_mad()
1338 kref_put(&query->sm_ah->ref, free_sm_ah); in free_mad()
2280 if (port->sm_ah) in update_sm_ah()
2281 kref_put(&port->sm_ah->ref, free_sm_ah); in update_sm_ah()
2282 port->sm_ah = new_ah; in update_sm_ah()
2305 if (port->sm_ah) in ib_sa_event()
2306 kref_put(&port->sm_ah->ref, free_sm_ah); in ib_sa_event()
2307 port->sm_ah = NULL; in ib_sa_event()
2349 sa_dev->port[i].sm_ah = NULL; in ib_sa_add_one()
2416 if (sa_dev->port[i].sm_ah) in ib_sa_remove_one()
2417 kref_put(&sa_dev->port[i].sm_ah->ref, free_sm_ah); in ib_sa_remove_one()