Searched refs:tprops (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c52 struct ib_port_attr *tprops = NULL; mthca_update_rate() local
55 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); mthca_update_rate()
56 if (!tprops) mthca_update_rate()
59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); mthca_update_rate()
66 dev->rate[port_num - 1] = tprops->active_speed * mthca_update_rate()
67 ib_width_enum_to_int(tprops->active_width); mthca_update_rate()
70 kfree(tprops); mthca_update_rate()
/linux-4.4.14/drivers/infiniband/core/
H A Dcache.c887 struct ib_port_attr *tprops = NULL; ib_cache_update() local
905 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); ib_cache_update()
906 if (!tprops) ib_cache_update()
909 ret = ib_query_port(device, port, tprops); ib_cache_update()
916 pkey_cache = kmalloc(sizeof *pkey_cache + tprops->pkey_tbl_len * ib_cache_update()
921 pkey_cache->table_len = tprops->pkey_tbl_len; ib_cache_update()
924 gid_cache = kmalloc(sizeof(*gid_cache) + tprops->gid_tbl_len * ib_cache_update()
929 gid_cache->table_len = tprops->gid_tbl_len; ib_cache_update()
965 device->cache.lmc_cache[port - rdma_start_port(device)] = tprops->lmc; ib_cache_update()
971 kfree(tprops); ib_cache_update()
977 kfree(tprops); ib_cache_update()

Completed in 129 milliseconds