Searched refs:gids (Results 1 – 4 of 4) sorted by relevance
264 struct gid_entry *gids; in mlx4_ib_add_gid() local317 gids = kmalloc_array(MLX4_MAX_PORT_GIDS, sizeof(*gids), in mlx4_ib_add_gid()319 if (!gids) { in mlx4_ib_add_gid()325 memcpy(&gids[i].gid, &port_gid_table->gids[i].gid, sizeof(union ib_gid)); in mlx4_ib_add_gid()326 gids[i].gid_type = port_gid_table->gids[i].gid_type; in mlx4_ib_add_gid()340 kfree(gids); in mlx4_ib_add_gid()376 gids = kmalloc_array(MLX4_MAX_PORT_GIDS, sizeof(*gids), in mlx4_ib_del_gid()378 if (!gids) { in mlx4_ib_del_gid()385 gids[i].gid_type = in mlx4_ib_del_gid()392 if (gids) in mlx4_ib_del_gid()[all …]
542 struct gid_entry gids[MLX4_MAX_PORT_GIDS]; member550 struct mlx4_port_gid_table gids[MLX4_MAX_PORTS]; member
3009 port_gid_table = &iboe->gids[port_num - 1]; in fill_gid_by_hw_index()3011 memcpy(gid, &port_gid_table->gids[index].gid, sizeof(*gid)); in fill_gid_by_hw_index()3012 *gid_type = port_gid_table->gids[index].gid_type; in fill_gid_by_hw_index()
1110 int gids; in mlx4_get_base_gid_ix() local1139 gids = MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS; in mlx4_get_base_gid_ix()1141 if (slave_gid <= gids % vfs) in mlx4_get_base_gid_ix()1142 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave_gid - 1); in mlx4_get_base_gid_ix()1144 return MLX4_ROCE_PF_GIDS + (gids % vfs) + in mlx4_get_base_gid_ix()1145 ((gids / vfs) * (slave_gid - 1)); in mlx4_get_base_gid_ix()
Completed in 34 milliseconds