Searched refs:tprops (Results 1 – 2 of 2) sorted by relevance
52 struct ib_port_attr *tprops = NULL; in mthca_update_rate() local55 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in mthca_update_rate()56 if (!tprops) in mthca_update_rate()59 ret = ib_query_port(&dev->ib_dev, port_num, tprops); in mthca_update_rate()66 dev->rate[port_num - 1] = tprops->active_speed * in mthca_update_rate()67 ib_width_enum_to_int(tprops->active_width); in mthca_update_rate()70 kfree(tprops); in mthca_update_rate()
1047 struct ib_port_attr *tprops = NULL; in ib_cache_update() local1065 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in ib_cache_update()1066 if (!tprops) in ib_cache_update()1069 ret = ib_query_port(device, port, tprops); in ib_cache_update()1076 pkey_cache = kmalloc(sizeof *pkey_cache + tprops->pkey_tbl_len * in ib_cache_update()1081 pkey_cache->table_len = tprops->pkey_tbl_len; in ib_cache_update()1084 gid_cache = kmalloc(sizeof(*gid_cache) + tprops->gid_tbl_len * in ib_cache_update()1089 gid_cache->table_len = tprops->gid_tbl_len; in ib_cache_update()1127 device->cache.lmc_cache[port - rdma_start_port(device)] = tprops->lmc; in ib_cache_update()1133 kfree(tprops); in ib_cache_update()[all …]