Lines Matching refs:index
430 static int __ib_cache_gid_get(struct ib_device *ib_dev, u8 port, int index,
438 if (index < 0 || index >= table->sz)
441 if (table->data_vec[index].props & GID_TABLE_ENTRY_INVALID)
444 memcpy(gid, &table->data_vec[index].gid, sizeof(*gid));
446 memcpy(attr, &table->data_vec[index].attr, sizeof(*attr));
463 u8 *port, u16 *index)
476 if (index)
477 *index = local_index;
493 u16 *index)
503 mask, port, index);
510 u16 *index)
532 if (index)
533 *index = local_index;
544 * ib_find_gid_by_filter - Returns the GID table index where a specified
551 * If the filter function returns true, the corresponding index is returned,
555 * @index: The index into the cached GID table where the GID was found. This
570 u16 *index)
612 if (index)
613 *index = i;
735 pr_warn("ib_cache_gid: can't delete index %d for default gid %pI6\n",
878 int index,
891 res = __ib_cache_gid_get(device, port_num, index, gid, gid_attr);
903 u16 *index)
905 return ib_cache_gid_find(device, gid, gid_type, ndev, port_num, index);
915 void *context, u16 *index)
923 context, index);
929 int index,
943 if (index < 0 || index >= cache->table_len)
946 *pkey = cache->table[index];
957 u16 *index)
972 *index = -1;
977 *index = i;
985 *index = partial_ix;
998 u16 *index)
1012 *index = -1;
1016 *index = i;
1096 pr_warn("ib_query_pkey failed (%d) for %s (index %d)\n",
1107 pr_warn("ib_query_gid failed (%d) for %s (index %d)\n",