Searched refs:indices (Results 1 - 25 of 46) sorted by relevance

12

/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c15 int first_idx, second_idx, indices[nr_soreuse]; local
58 to_read = (nr_soreuse - 1) * sizeof(*indices);
62 nread = read(iter_fd, indices, onebyone ? sizeof(*indices) : to_read);
63 if (nread <= 0 || nread % sizeof(*indices))
68 first_idx = indices[0];
69 for (i = 0; i < nread / sizeof(*indices); i++)
70 ASSERT_EQ(indices[i], first_idx, "first_idx");
72 ASSERT_EQ(nread, onebyone ? sizeof(*indices) : to_read, "nread");
79 to_read = nr_soreuse * sizeof(*indices);
[all...]
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dget_msr_index_features.c34 kvm_get_feature_msr(feature_list->indices[i]);
/linux-master/net/bridge/
H A Dbr_ioctl.c21 static int get_bridge_ifindices(struct net *net, int *indices, int num) argument
31 indices[i++] = dev->ifindex;
197 int num, *indices; local
207 indices = kcalloc(num, sizeof(int), GFP_KERNEL);
208 if (indices == NULL)
211 get_port_ifindices(br, indices, num);
212 if (copy_to_user(argp, indices, array_size(num, sizeof(int))))
214 kfree(indices);
355 int *indices; local
360 indices
[all...]
/linux-master/mm/
H A Dtruncate.c60 struct folio_batch *fbatch, pgoff_t *indices)
84 pgoff_t index = indices[i];
326 pgoff_t indices[PAGEVEC_SIZE]; local
355 &fbatch, indices)) {
356 truncate_folio_batch_exceptionals(mapping, &fbatch, indices);
395 indices)) {
413 VM_BUG_ON_FOLIO(!folio_contains(folio, indices[i]), folio);
418 truncate_folio_batch_exceptionals(mapping, &fbatch, indices);
491 pgoff_t indices[PAGEVEC_SIZE]; local
499 while (find_lock_entries(mapping, &index, end, &fbatch, indices)) {
59 truncate_folio_batch_exceptionals(struct address_space *mapping, struct folio_batch *fbatch, pgoff_t *indices) argument
612 pgoff_t indices[PAGEVEC_SIZE]; local
[all...]
H A Dshmem.c972 pgoff_t indices[PAGEVEC_SIZE]; local
988 &fbatch, indices)) {
996 indices[i], folio);
1050 indices)) {
1064 if (shmem_free_swap(mapping, indices[i], folio)) {
1066 index = indices[i];
1079 index = indices[i];
1275 pgoff_t *indices, unsigned int type)
1297 indices[folio_batch_count(fbatch)] = xas.xa_index;
1316 struct folio_batch *fbatch, pgoff_t *indices)
1273 shmem_find_swap_entries(struct address_space *mapping, pgoff_t start, struct folio_batch *fbatch, pgoff_t *indices, unsigned int type) argument
1315 shmem_unuse_swap_entries(struct inode *inode, struct folio_batch *fbatch, pgoff_t *indices) argument
1350 pgoff_t indices[PAGEVEC_SIZE]; local
[all...]
/linux-master/lib/
H A Dbuild_OID_registry45 my @indices = ();
66 push @indices, $total_length;
80 print C_FILE "\t[OID_", $names[$i], "] = ", $indices[$i], ",\n"
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_lib.c38 /* If we are greater than indices move to next pool */
49 /* If we are greater than indices move to next pool */
65 if (fcoe->indices) {
69 reg_idx = (vmdq->offset + vmdq->indices) * queues_per_pool;
77 reg_idx = (vmdq->offset + vmdq->indices) * queues_per_pool;
158 rss_i = adapter->ring_feature[RING_F_RSS].indices;
206 /* If we are greater than indices move to next pool */
207 if ((reg_idx & ~vmdq->mask) >= rss->indices) {
230 /* If we are greater than indices move to next pool */
231 if ((reg_idx & rss->mask) >= rss->indices)
[all...]
/linux-master/fs/befs/
H A Dsuper.c51 befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices);
H A Dbefs.h56 befs_inode_addr indices; member in struct:befs_sb_info
H A Dbefs_fs_types.h139 befs_disk_inode_addr indices; member in struct:__anon10021
H A Ddebug.c197 tmp_run = fsrun_to_cpu(sb, sup->indices);
198 befs_debug(sb, " indices %u, %hu, %hu",
/linux-master/tools/testing/radix-tree/
H A Didr-test.c155 int indices[] = {4, 7, 9, 15, 65, 128, 1000, 99999, 0}; local
157 for(i = 0; indices[i]; i++) {
158 struct item *item = item_create(indices[i], 0);
159 assert(idr_alloc(&idr, item, indices[i], indices[i+1],
160 GFP_KERNEL) == indices[i]);
163 for(i = 0, nextid = 0; indices[i]; i++) {
165 assert(nextid == indices[i]);
/linux-master/arch/x86/include/asm/
H A Damd_nb.h28 unsigned indices; member in struct:amd_l3_cache
/linux-master/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_i2c.c99 int indices[MAX_TRANSACTIONS]; local
134 indices[i] = index;
191 HDMI_DDC_DATA_INDEX(indices[i]) |
/linux-master/arch/mips/kvm/
H A Dmips.c599 static int kvm_mips_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices) argument
604 if (copy_to_user(indices, kvm_mips_get_one_regs,
607 indices += ARRAY_SIZE(kvm_mips_get_one_regs);
610 if (copy_to_user(indices, kvm_mips_get_one_regs_fpu,
613 indices += ARRAY_SIZE(kvm_mips_get_one_regs_fpu);
617 if (copy_to_user(indices, &index, sizeof(index)))
619 ++indices;
626 if (copy_to_user(indices, &index, sizeof(index)))
628 ++indices;
633 if (copy_to_user(indices, kvm_mips_get_one_regs_ms
[all...]
H A Dvz.c1806 static int kvm_vz_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices) argument
1811 if (copy_to_user(indices, kvm_vz_get_one_regs,
1814 indices += ARRAY_SIZE(kvm_vz_get_one_regs);
1818 if (copy_to_user(indices, &index, sizeof(index)))
1820 ++indices;
1824 if (copy_to_user(indices, &index, sizeof(index)))
1826 ++indices;
1830 if (copy_to_user(indices, &index, sizeof(index)))
1832 ++indices;
1835 if (copy_to_user(indices, kvm_vz_get_one_regs_contextconfi
[all...]
/linux-master/drivers/net/dsa/
H A Dvitesse-vsc73xx-core.c930 u8 indices[6]; local
944 indices[0] = (val & 0x1f); /* RX counter 0 */
945 indices[1] = ((val >> 5) & 0x1f); /* RX counter 1 */
946 indices[2] = ((val >> 10) & 0x1f); /* RX counter 2 */
947 indices[3] = ((val >> 16) & 0x1f); /* TX counter 0 */
948 indices[4] = ((val >> 21) & 0x1f); /* TX counter 1 */
949 indices[5] = ((val >> 26) & 0x1f); /* TX counter 2 */
961 cnt = vsc73xx_find_counter(vsc, indices[i], false);
969 cnt = vsc73xx_find_counter(vsc, indices[i], true);
/linux-master/drivers/video/fbdev/core/
H A Dtileblit.c69 blit.indices = (u32 *) fb_get_buffer_offset(info, &info->pixmap, size);
71 blit.indices[i] = (u32)(scr_readw(s++) & charmask);
/linux-master/sound/pci/hda/
H A Dhda_proc.c113 int dir, unsigned int wcaps, int indices)
122 if (indices != 1 || dir != HDA_INPUT ||
135 int dir, unsigned int wcaps, int indices)
141 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices);
144 for (i = 0; i < indices; i++) {
112 is_stereo_amps(struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) argument
133 print_amp_vals(struct snd_info_buffer *buffer, struct hda_codec *codec, hda_nid_t nid, int dir, unsigned int wcaps, int indices) argument
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_calendar.c48 u32 indices[SPX5_DSM_CAL_LEN]; member in struct:sparx5_calendar_data
400 data->indices[indices_len] = slot;
409 data->new_slots[kdx] = data->indices[jdx];
/linux-master/arch/x86/kernel/cpu/
H A Dcacheinfo.c341 l3->indices = (max(max3(sc0, sc1, sc2), sc3) << 10) - 1;
408 * cache which indices we disable therefore a simple wbinvd()
438 if (index > nb->l3_cache.indices)
584 if (nb && nb->l3_cache.indices)
600 if (this_leaf->nb && !this_leaf->nb->l3_cache.indices)
/linux-master/drivers/net/ethernet/intel/fm10k/
H A Dfm10k_main.c1491 /* set QoS mask and indices */
1493 f->indices = pcs;
1500 /* set RSS mask and indices */
1503 f->indices = rss_i;
1532 /* record indices and power of 2 mask for RSS */
1533 f->indices = rss_i;
1871 rss_i = interface->ring_feature[RING_F_RSS].indices;
1923 u16 i, rss_i = interface->ring_feature[RING_F_RSS].indices;
H A Dfm10k_ethtool.c980 u16 rss_i = interface->ring_feature[RING_F_RSS].indices;
1043 rss_i = interface->ring_feature[RING_F_RSS].indices;
1135 ch->combined_count = interface->ring_feature[RING_F_RSS].indices;
/linux-master/arch/s390/mm/
H A Dgmap.c140 unsigned long indices[16]; local
150 indices[nr] = iter.index;
155 index = indices[i];
165 unsigned long indices[16]; local
175 indices[nr] = iter.index;
180 index = indices[i];
/linux-master/tools/testing/selftests/kvm/lib/x86_64/
H A Dprocessor.c928 list = malloc(sizeof(*list) + nmsrs.nmsrs * sizeof(list->indices[0]));
969 if (list->indices[i] == msr_index)
1039 state->msrs.entries[i].index = msr_list->indices[i];

Completed in 305 milliseconds

12