Home
last modified time | relevance | path

Searched refs:indices (Results 1 – 25 of 103) sorted by relevance

12345

/Linux-v5.4/net/bridge/
Dbr_ioctl.c20 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument
30 indices[i++] = dev->ifindex; in get_bridge_ifindices()
159 int num, *indices; in old_dev_ioctl() local
169 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
170 if (indices == NULL) in old_dev_ioctl()
173 get_port_ifindices(br, indices, num); in old_dev_ioctl()
174 if (copy_to_user((void __user *)args[1], indices, num*sizeof(int))) in old_dev_ioctl()
176 kfree(indices); in old_dev_ioctl()
313 int *indices; in old_deviceless() local
318 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
[all …]
/Linux-v5.4/mm/
Dtruncate.c60 struct pagevec *pvec, pgoff_t *indices, in truncate_exceptional_pvec_entries() argument
78 lock = !dax && indices[j] < end; in truncate_exceptional_pvec_entries()
84 pgoff_t index = indices[i]; in truncate_exceptional_pvec_entries()
299 pgoff_t indices[PAGEVEC_SIZE]; in truncate_inode_pages_range() local
331 indices)) { in truncate_inode_pages_range()
344 index = indices[i]; in truncate_inode_pages_range()
369 truncate_exceptional_pvec_entries(mapping, &pvec, indices, end); in truncate_inode_pages_range()
417 min(end - index, (pgoff_t)PAGEVEC_SIZE), indices)) { in truncate_inode_pages_range()
425 if (index == start && indices[0] >= end) { in truncate_inode_pages_range()
436 index = indices[i]; in truncate_inode_pages_range()
[all …]
Dshmem.c767 pgoff_t indices[PAGEVEC_SIZE]; in shmem_unlock_mapping() local
780 PAGEVEC_SIZE, pvec.pages, indices); in shmem_unlock_mapping()
783 index = indices[pvec.nr - 1] + 1; in shmem_unlock_mapping()
805 pgoff_t indices[PAGEVEC_SIZE]; in shmem_undo_range() local
818 pvec.pages, indices); in shmem_undo_range()
824 index = indices[i]; in shmem_undo_range()
909 pvec.pages, indices); in shmem_undo_range()
921 index = indices[i]; in shmem_undo_range()
1123 struct page **entries, pgoff_t *indices, in shmem_find_swap_entries() argument
1149 indices[ret] = xas.xa_index; in shmem_find_swap_entries()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_lib.c65 if (fcoe->indices) { in ixgbe_cache_ring_dcb_sriov()
69 reg_idx = (vmdq->offset + vmdq->indices) * queues_per_pool; in ixgbe_cache_ring_dcb_sriov()
77 reg_idx = (vmdq->offset + vmdq->indices) * queues_per_pool; in ixgbe_cache_ring_dcb_sriov()
157 rss_i = adapter->ring_feature[RING_F_RSS].indices; in ixgbe_cache_ring_dcb()
206 if ((reg_idx & ~vmdq->mask) >= rss->indices) { in ixgbe_cache_ring_sriov()
230 if ((reg_idx & rss->mask) >= rss->indices) in ixgbe_cache_ring_sriov()
364 adapter->ring_feature[RING_F_VMDQ].indices = vmdq_i; in ixgbe_set_dcb_sriov_queues()
371 adapter->ring_feature[RING_F_RSS].indices = 1; in ixgbe_set_dcb_sriov_queues()
395 fcoe->indices = fcoe_i; in ixgbe_set_dcb_sriov_queues()
403 fcoe->indices = 1; in ixgbe_set_dcb_sriov_queues()
[all …]
/Linux-v5.4/net/sched/
Dsch_dsmark.c50 u16 indices; member
59 return index <= p->indices && index > 0; in dsmark_valid_index()
177 for (i = 0; i < p->indices; i++) { in dsmark_walk()
303 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
346 u16 indices; in dsmark_init() local
366 indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); in dsmark_init()
368 if (hweight32(indices) != 1) in dsmark_init()
374 if (indices <= DSMARK_EMBEDDED_SZ) in dsmark_init()
377 p->mv = kmalloc_array(indices, sizeof(*p->mv), GFP_KERNEL); in dsmark_init()
382 for (i = 0; i < indices; i++) { in dsmark_init()
[all …]
/Linux-v5.4/lib/
Dbuild_OID_registry45 my @indices = ();
66 push @indices, $total_length;
80 print C_FILE "\t[OID_", $names[$i], "] = ", $indices[$i], ",\n"
/Linux-v5.4/tools/testing/radix-tree/
Didr-test.c155 int indices[] = {4, 7, 9, 15, 65, 128, 1000, 99999, 0}; in idr_get_next_test() local
157 for(i = 0; indices[i]; i++) { in idr_get_next_test()
158 struct item *item = item_create(indices[i], 0); in idr_get_next_test()
159 assert(idr_alloc(&idr, item, indices[i], indices[i+1], in idr_get_next_test()
160 GFP_KERNEL) == indices[i]); in idr_get_next_test()
163 for(i = 0, nextid = 0; indices[i]; i++) { in idr_get_next_test()
165 assert(nextid == indices[i]); in idr_get_next_test()
/Linux-v5.4/arch/arm/boot/dts/
Ddm816x-clocks.dtsi9 clock-indices = <1>, <2>, <3>, <4>, <5>,
25 clock-indices = <1>, <2>, <3>, <4>;
37 clock-indices = <1>, <2>, <3>;
48 clock-indices = <1>, <2>, <3>, <4>, <5>;
Dr7s72100.dtsi413 clock-indices = <R7S72100_CLK_MTU2>;
423 clock-indices = <
435 clock-indices = <R7S72100_CLK_OSTM0 R7S72100_CLK_OSTM1>;
444 clock-indices = <R7S72100_CLK_CEU R7S72100_CLK_RTC>;
453 clock-indices = <R7S72100_CLK_ETHER R7S72100_CLK_USB0 R7S72100_CLK_USB1>;
462 clock-indices = <R7S72100_CLK_MMCIF>;
471 clock-indices = <
483 clock-indices = <
494 clock-indices = <
/Linux-v5.4/arch/mips/kvm/
Dmips.c594 static int kvm_mips_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices) in kvm_mips_copy_reg_indices() argument
599 if (copy_to_user(indices, kvm_mips_get_one_regs, in kvm_mips_copy_reg_indices()
602 indices += ARRAY_SIZE(kvm_mips_get_one_regs); in kvm_mips_copy_reg_indices()
605 if (copy_to_user(indices, kvm_mips_get_one_regs_fpu, in kvm_mips_copy_reg_indices()
608 indices += ARRAY_SIZE(kvm_mips_get_one_regs_fpu); in kvm_mips_copy_reg_indices()
612 if (copy_to_user(indices, &index, sizeof(index))) in kvm_mips_copy_reg_indices()
614 ++indices; in kvm_mips_copy_reg_indices()
621 if (copy_to_user(indices, &index, sizeof(index))) in kvm_mips_copy_reg_indices()
623 ++indices; in kvm_mips_copy_reg_indices()
628 if (copy_to_user(indices, kvm_mips_get_one_regs_msa, in kvm_mips_copy_reg_indices()
[all …]
Dvz.c1718 static int kvm_vz_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices) in kvm_vz_copy_reg_indices() argument
1723 if (copy_to_user(indices, kvm_vz_get_one_regs, in kvm_vz_copy_reg_indices()
1726 indices += ARRAY_SIZE(kvm_vz_get_one_regs); in kvm_vz_copy_reg_indices()
1730 if (copy_to_user(indices, &index, sizeof(index))) in kvm_vz_copy_reg_indices()
1732 ++indices; in kvm_vz_copy_reg_indices()
1736 if (copy_to_user(indices, &index, sizeof(index))) in kvm_vz_copy_reg_indices()
1738 ++indices; in kvm_vz_copy_reg_indices()
1742 if (copy_to_user(indices, &index, sizeof(index))) in kvm_vz_copy_reg_indices()
1744 ++indices; in kvm_vz_copy_reg_indices()
1747 if (copy_to_user(indices, kvm_vz_get_one_regs_contextconfig, in kvm_vz_copy_reg_indices()
[all …]
/Linux-v5.4/drivers/net/dsa/
Dvitesse-vsc73xx-core.c940 u8 indices[6]; in vsc73xx_get_strings() local
953 indices[0] = (val & 0x1f); /* RX counter 0 */ in vsc73xx_get_strings()
954 indices[1] = ((val >> 5) & 0x1f); /* RX counter 1 */ in vsc73xx_get_strings()
955 indices[2] = ((val >> 10) & 0x1f); /* RX counter 2 */ in vsc73xx_get_strings()
956 indices[3] = ((val >> 16) & 0x1f); /* TX counter 0 */ in vsc73xx_get_strings()
957 indices[4] = ((val >> 21) & 0x1f); /* TX counter 1 */ in vsc73xx_get_strings()
958 indices[5] = ((val >> 26) & 0x1f); /* TX counter 2 */ in vsc73xx_get_strings()
973 cnt = vsc73xx_find_counter(vsc, indices[i], false); in vsc73xx_get_strings()
986 cnt = vsc73xx_find_counter(vsc, indices[i], true); in vsc73xx_get_strings()
/Linux-v5.4/Documentation/devicetree/bindings/clock/
Drenesas,cpg-mstp-clocks.txt33 - clock-indices: Indices of the gate clocks into the group (0 to 31)
35 The clocks, clock-output-names and clock-indices properties contain one entry
55 clock-indices = <
/Linux-v5.4/fs/befs/
Dsuper.c51 befs_sb->indices = fsrun_to_cpu(sb, disk_sb->indices); in befs_load_sb()
/Linux-v5.4/drivers/gpu/drm/msm/hdmi/
Dhdmi_i2c.c99 int indices[MAX_TRANSACTIONS]; in msm_hdmi_i2c_xfer() local
134 indices[i] = index; in msm_hdmi_i2c_xfer()
191 HDMI_DDC_DATA_INDEX(indices[i]) | in msm_hdmi_i2c_xfer()
/Linux-v5.4/Documentation/devicetree/bindings/arm/
Darm,scpi.txt55 - clock-indices: The identifying number for the clocks(i.e.clock_id) in the
152 clock-indices = <0>, <1>, <2>;
158 clock-indices = <3>, <4>;
201 1 and 2 as clock-indices. scpi_clk has 2 output clocks namely: pxlclk0
202 and pxlclk1 with 3 and 4 as clock-indices.
/Linux-v5.4/drivers/gpu/drm/mga/
Dmga_state.c911 drm_mga_indices_t *indices = data; in mga_dma_indices() local
915 if (indices->idx < 0 || indices->idx > dma->buf_count) in mga_dma_indices()
918 buf = dma->buflist[indices->idx]; in mga_dma_indices()
921 buf_priv->discard = indices->discard; in mga_dma_indices()
924 if (indices->discard) { in mga_dma_indices()
935 mga_dma_dispatch_indices(dev, buf, indices->start, indices->end); in mga_dma_indices()
/Linux-v5.4/drivers/video/fbdev/core/
Dtileblit.c69 blit.indices = (u32 *) fb_get_buffer_offset(info, &info->pixmap, size); in tile_putcs()
71 blit.indices[i] = (u32)(scr_readw(s++) & charmask); in tile_putcs()
/Linux-v5.4/Documentation/core-api/
Dxarray.rst21 The XArray implementation is efficient when the indices used are densely
23 perform well. The XArray is optimised for small indices, but still has
24 good performance with large indices. If your index can be larger than
57 occupy a range of indices. Once stored to, looking up any index in
103 of indices. If you do this, some of the other operations will behave
106 indices. Storing into one index may result in the entry retrieved by
107 some, but not all of the other indices changing.
436 The XArray has the ability to tie multiple indices together so that
437 operations on one index affect all indices. For example, storing into
442 eg indices 64-127 may be tied together, but 2-6 may not be. This may
[all …]
/Linux-v5.4/Documentation/devicetree/bindings/rtc/
Dmaxim,ds3231.txt13 to specify the clock which they consume. Following indices are allowed:
/Linux-v5.4/Documentation/filesystems/caching/
Dfscache.txt103 (5) Cookies are used to represent indices, files and other objects to the
109 recursive, stack space is limited, and indices can only be children of
110 indices.
130 FS-Cache maintains a virtual indexing tree in which all indices, files, objects
163 (*) The NFS primary index contains per-server indices. Each server index is
169 (*) The AFS primary index contains per-cell indices. Each cell index contains
170 per-logical-volume indices. Each of volume index contains up to three
171 indices for the read-write, read-only and backup mirrors of those volumes.
/Linux-v5.4/arch/arm/include/asm/
Dkvm_host.h228 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices);
273 int kvm_arm_copy_reg_indices(struct kvm_vcpu *vcpu, u64 __user *indices);
/Linux-v5.4/sound/pci/hda/
Dhda_proc.c113 int dir, unsigned int wcaps, int indices) in is_stereo_amps() argument
122 if (indices != 1 || dir != HDA_INPUT || in is_stereo_amps()
135 int dir, unsigned int wcaps, int indices) in print_amp_vals() argument
141 stereo = is_stereo_amps(codec, nid, dir, wcaps, indices); in print_amp_vals()
144 for (i = 0; i < indices; i++) { in print_amp_vals()
/Linux-v5.4/Documentation/devicetree/bindings/reset/
Doxnas,reset.txt18 Reset indices are in dt-bindings include files :
/Linux-v5.4/Documentation/devicetree/bindings/clock/ti/
Dfapll.txt24 clock-indices = <1>, <2>, <3>, <4>, <5>,

12345