Home
last modified time | relevance | path

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

/drivers/infiniband/hw/mthca/
Dmthca_mad.c52 struct ib_port_attr *tprops = NULL; in mthca_update_rate() local
55 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()
67 dev->rate[port_num - 1] = tprops->active_speed * in mthca_update_rate()
68 ib_width_enum_to_int(tprops->active_width); in mthca_update_rate()
71 kfree(tprops); in mthca_update_rate()
/drivers/infiniband/core/
Dcache.c1478 struct ib_port_attr *tprops = NULL; in ib_cache_update() local
1486 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in ib_cache_update()
1487 if (!tprops) in ib_cache_update()
1490 ret = ib_query_port(device, port, tprops); in ib_cache_update()
1498 tprops->gid_tbl_len); in ib_cache_update()
1503 if (tprops->pkey_tbl_len) { in ib_cache_update()
1505 tprops->pkey_tbl_len), in ib_cache_update()
1512 pkey_cache->table_len = tprops->pkey_tbl_len; in ib_cache_update()
1531 device->port_data[port].cache.lmc = tprops->lmc; in ib_cache_update()
1532 device->port_data[port].cache.port_state = tprops->state; in ib_cache_update()
[all …]