Searched refs:tprops (Results 1 – 3 of 3) sorted by relevance
255 struct ib_port_attr *tprops = NULL; in ib_cache_update() local261 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in ib_cache_update()262 if (!tprops) in ib_cache_update()265 ret = ib_query_port(device, port, tprops); in ib_cache_update()272 pkey_cache = kmalloc(sizeof *pkey_cache + tprops->pkey_tbl_len * in ib_cache_update()277 pkey_cache->table_len = tprops->pkey_tbl_len; in ib_cache_update()279 gid_cache = kmalloc(sizeof *gid_cache + tprops->gid_tbl_len * in ib_cache_update()284 gid_cache->table_len = tprops->gid_tbl_len; in ib_cache_update()312 device->cache.lmc_cache[port - start_port(device)] = tprops->lmc; in ib_cache_update()318 kfree(tprops); in ib_cache_update()[all …]
227 struct ib_port_attr *tprops = NULL; in read_port_table_lengths() local231 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in read_port_table_lengths()232 if (!tprops) in read_port_table_lengths()246 tprops); in read_port_table_lengths()249 device->pkey_tbl_len[port_index] = tprops->pkey_tbl_len; in read_port_table_lengths()250 device->gid_tbl_len[port_index] = tprops->gid_tbl_len; in read_port_table_lengths()260 kfree(tprops); in read_port_table_lengths()
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()