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

/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/drivers/infiniband/core/
H A Dcache.c211 struct ib_port_attr *tprops = NULL; local
217 tprops = malloc(sizeof *tprops);
218 if (!tprops)
221 ret = ib_query_port(device, port, tprops);
229 + tprops->pkey_tbl_len * sizeof *pkey_cache->table);
233 pkey_cache->table_len = tprops->pkey_tbl_len;
236 sizeof *gid_cache + tprops->gid_tbl_len * sizeof *gid_cache->table);
240 gid_cache->table_len = tprops->gid_tbl_len;
268 device->cache.lmc_cache[port - start_port(device)] = tprops
[all...]
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/drivers/infiniband/hw/mthca/
H A Dmthca_mad.c52 struct ib_port_attr *tprops = NULL; local
55 tprops = kmalloc(sizeof *tprops, GFP_KERNEL);
56 if (!tprops)
59 ret = ib_query_port(&dev->ib_dev, port_num, tprops);
66 dev->rate[port_num - 1] = tprops->active_speed *
67 ib_width_enum_to_int(tprops->active_width);
70 kfree(tprops);

Completed in 30 milliseconds