Searched refs:idx (Results 101 - 125 of 3979) sorted by relevance

1234567891011>>

/linux-master/kernel/bpf/
H A Dmprog.c80 /* The bpf_mprog_{replace,delete}() operate on exact idx position with the
82 * case of front idx is -1, in case of back idx is bpf_mprog_total(entry).
86 * idx + before:
88 * Insert P4 before P3: idx for old array is 1, idx for new array is 2,
89 * hence we adjust target idx for the new array, so that memmove copies
90 * P1 and P2 to the new entry, and we insert P4 into idx 2. Inserting
91 * before P1 would have old idx -1 and new idx
108 bpf_mprog_replace(struct bpf_mprog_entry *entry, struct bpf_mprog_entry **entry_new, struct bpf_tuple *ntuple, int idx) argument
127 bpf_mprog_insert(struct bpf_mprog_entry *entry, struct bpf_mprog_entry **entry_new, struct bpf_tuple *ntuple, int idx, u32 flags) argument
151 bpf_mprog_delete(struct bpf_mprog_entry *entry, struct bpf_mprog_entry **entry_new, struct bpf_tuple *dtuple, int idx) argument
238 int ret, idx = -ERANGE, tidx; local
297 bpf_mprog_fetch(struct bpf_mprog_entry *entry, struct bpf_tuple *tuple, int idx) argument
337 int ret, idx = -ERANGE, tidx; local
[all...]
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dcstep.h12 u32 nvbios_cstepEe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
13 u32 nvbios_cstepEp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
24 u32 nvbios_cstepXe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
25 u32 nvbios_cstepXp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
H A DM0209.h16 u32 nvbios_M0209Ee(struct nvkm_bios *, int idx,
18 u32 nvbios_M0209Ep(struct nvkm_bios *, int idx,
25 u32 nvbios_M0209Se(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr);
26 u32 nvbios_M0209Sp(struct nvkm_bios *, int ent, int idx, u8 *ver, u8 *hdr,
H A DP0260.h11 u32 nvbios_P0260Ee(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
12 u32 nvbios_P0260Ep(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
19 u32 nvbios_P0260Xe(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr);
20 u32 nvbios_P0260Xp(struct nvkm_bios *, int idx, u8 *ver, u8 *hdr,
/linux-master/drivers/staging/media/atomisp/pci/camera/pipe/interface/
H A Dia_css_pipe_util.h37 unsigned int idx,
/linux-master/arch/mips/kernel/
H A Dperf_regs.c40 u64 perf_reg_value(struct pt_regs *regs, int idx) argument
44 switch (idx) {
49 v = regs->regs[idx - PERF_REG_MIPS_R1 + 1];
52 v = regs->regs[idx - PERF_REG_MIPS_R28 + 28];
/linux-master/arch/loongarch/kernel/
H A Dperf_regs.c37 u64 perf_reg_value(struct pt_regs *regs, int idx) argument
39 if (WARN_ON_ONCE((u32)idx >= PERF_REG_LOONGARCH_MAX))
42 if ((u32)idx == PERF_REG_LOONGARCH_PC)
45 return regs->regs[idx];
/linux-master/drivers/gpio/
H A Dgpiolib-swnode.h10 const char *con_id, unsigned int idx,
/linux-master/sound/soc/intel/avs/
H A Dutils.c49 int idx; local
53 idx = avs_module_entry_index(adev, uuid);
54 if (idx >= 0)
55 memcpy(entry, &adev->mods_info->entries[idx], sizeof(*entry));
58 return (idx < 0) ? idx : 0;
63 int idx; local
67 idx = avs_module_id_entry_index(adev, module_id);
68 if (idx >= 0)
69 memcpy(entry, &adev->mods_info->entries[idx], sizeo
87 int idx; local
196 int ret, idx, max_id; local
215 int idx; local
[all...]
/linux-master/arch/parisc/mm/
H A Dfixmap.c13 void notrace set_fixmap(enum fixed_addresses idx, phys_addr_t phys) argument
15 unsigned long vaddr = __fix_to_virt(idx);
27 void notrace clear_fixmap(enum fixed_addresses idx) argument
29 unsigned long vaddr = __fix_to_virt(idx);
/linux-master/include/linux/
H A Dhugetlb_cgroup.h127 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
129 extern int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages,
131 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages,
134 extern void hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages,
137 extern void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages,
139 extern void hugetlb_cgroup_uncharge_folio_rsvd(int idx, unsigned long nr_pages,
142 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages,
144 extern void hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages,
207 static inline int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, argument
213 static inline int hugetlb_cgroup_charge_cgroup_rsvd(int idx, argument
220 hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, struct folio *folio) argument
227 hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, struct folio *folio) argument
233 hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, struct folio *folio) argument
238 hugetlb_cgroup_uncharge_folio_rsvd(int idx, unsigned long nr_pages, struct folio *folio) argument
243 hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg) argument
250 hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg) argument
[all...]
/linux-master/drivers/infiniband/hw/irdma/
H A Duda.c90 u8 idx = 0; /* index in the array */ local
95 for (idx = 0; idx < IRDMA_MAX_MGS_PER_CTX; idx++) {
96 entry_info = &info->mg_ctx_info[idx];
196 u32 idx; local
201 for (idx = 0; idx < IRDMA_MAX_MGS_PER_CTX; idx++) {
202 if (ctx->mg_ctx_info[idx]
237 u32 idx; local
[all...]
/linux-master/drivers/char/ipmi/
H A Dipmi_si_mem_io.c61 int idx; local
63 for (idx = 0; idx < num; idx++)
64 release_mem_region(addr + idx * io->regspacing,
79 int mapsize, idx; local
119 for (idx = 0; idx < io->io_size; idx++) {
120 if (request_mem_region(addr + idx * i
[all...]
/linux-master/drivers/gpu/drm/armada/
H A Darmada_510.c24 int idx; local
39 idx = 0;
41 idx = 1;
43 idx = 2;
45 idx = 3;
53 v->clks[idx] = clk;
107 int ret, idx; local
109 idx = armada_crtc_select_clock(dcrtc, &res, &armada510_clocking,
112 if (idx < 0)
113 return idx;
[all...]
/linux-master/arch/powerpc/include/asm/
H A Dperf_event.h17 static inline unsigned long get_pmcs_ext_regs(int idx) { return 0; } argument
44 extern unsigned long get_pmcs_ext_regs(int idx);
H A Dfixmap.h38 * highger than 1) use fixmap_set(idx,phys) to associate
93 static inline void __set_fixmap(enum fixed_addresses idx, argument
98 if (__builtin_constant_p(idx))
99 BUILD_BUG_ON(idx >= __end_of_fixed_addresses);
100 else if (WARN_ON(idx >= __end_of_fixed_addresses))
103 map_kernel_page(__fix_to_virt(idx), phys, flags);
105 unmap_kernel_page(__fix_to_virt(idx));
/linux-master/drivers/scsi/pm8001/
H A Dpm8001_ctl.h63 static inline u32 pm8001_ctl_aap1_memmap(u8 *ptr, int idx, int off) argument
65 return *(u32 *)(ptr + idx * 32 + off);
/linux-master/arch/parisc/include/asm/
H A Dfixmap.h59 void set_fixmap(enum fixed_addresses idx, phys_addr_t phys);
60 void clear_fixmap(enum fixed_addresses idx);
/linux-master/mm/
H A Dhugetlb_cgroup.c33 __hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx, argument
37 return &h_cg->rsvd_hugepage[idx];
38 return &h_cg->hugepage[idx];
42 hugetlb_cgroup_counter_from_cgroup(struct hugetlb_cgroup *h_cg, int idx) argument
44 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, false);
48 hugetlb_cgroup_counter_from_cgroup_rsvd(struct hugetlb_cgroup *h_cg, int idx) argument
50 return __hugetlb_cgroup_counter_from_cgroup(h_cg, idx, true);
91 int idx; local
93 for (idx = 0; idx < HUGE_MAX_HSTAT
187 hugetlb_cgroup_move_parent(int idx, struct hugetlb_cgroup *h_cg, struct page *page) argument
242 hugetlb_event(struct hugetlb_cgroup *hugetlb, int idx, enum hugetlb_memory_event event) argument
255 __hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup **ptr, bool rsvd) argument
292 hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup **ptr) argument
298 hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages, struct hugetlb_cgroup **ptr) argument
305 __hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, struct folio *folio, bool rsvd) argument
326 hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, struct folio *folio) argument
333 hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, struct folio *folio) argument
343 __hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, struct folio *folio, bool rsvd) argument
375 hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, struct folio *folio) argument
381 hugetlb_cgroup_uncharge_folio_rsvd(int idx, unsigned long nr_pages, struct folio *folio) argument
387 __hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg, bool rsvd) argument
402 hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg) argument
408 hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages, struct hugetlb_cgroup *h_cg) argument
462 int idx = MEMFILE_IDX(cft->private); local
545 int idx; local
589 int ret, idx; local
678 int idx; local
705 __hugetlb_cgroup_file_dfl_init(int idx) argument
776 __hugetlb_cgroup_file_legacy_init(int idx) argument
853 __hugetlb_cgroup_file_init(int idx) argument
[all...]
/linux-master/arch/x86/events/intel/
H A Duncore_nhmex.c249 if (hwc->idx == UNCORE_PMC_IDX_FIXED)
371 reg1->idx = 0;
383 if (reg1->idx != EXTRA_REG_NONE) {
456 reg1->idx = 0;
468 if (reg1->idx != EXTRA_REG_NONE) {
553 static bool nhmex_mbox_get_shared_reg(struct intel_uncore_box *box, int idx, u64 config) argument
560 if (idx < EXTRA_REG_NHMEX_M_ZDP_CTL_FVC) {
561 er = &box->shared_regs[idx];
577 idx -= EXTRA_REG_NHMEX_M_ZDP_CTL_FVC;
578 if (WARN_ON_ONCE(idx >
614 nhmex_mbox_put_shared_reg(struct intel_uncore_box *box, int idx) argument
633 u64 idx, orig_idx = __BITS_VALUE(reg1->idx, 0, 8); local
644 config <<= 3 * idx; local
647 config >>= 3 * idx; local
673 int i, idx[2], alloc = 0; local
819 nhmex_mbox_shared_reg_config(struct intel_uncore_box *box, int idx) argument
840 int idx; local
985 int idx, er_idx; local
1066 int idx, er_idx; local
1091 int idx; local
1116 int idx, port; local
[all...]
/linux-master/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_sdlb.c138 u32 idx, u32 *prev, u32 *next,
151 if (itr == idx)
206 int sparx5_sdlb_group_get_by_index(struct sparx5 *sparx5, u32 idx, u32 *group) argument
220 if (itr == idx) {
234 static int sparx5_sdlb_group_link(struct sparx5 *sparx5, u32 group, u32 idx, argument
246 sparx5, ANA_AC_SDLB_XLB_NEXT(idx));
258 int sparx5_sdlb_group_add(struct sparx5 *sparx5, u32 group, u32 idx) argument
263 first = idx;
266 next = idx;
270 return sparx5_sdlb_group_link(sparx5, group, idx, firs
137 sparx5_sdlb_group_get_adjacent(struct sparx5 *sparx5, u32 group, u32 idx, u32 *prev, u32 *next, u32 *first) argument
273 sparx5_sdlb_group_del(struct sparx5 *sparx5, u32 group, u32 idx) argument
303 sparx5_sdlb_group_init(struct sparx5 *sparx5, u64 max_rate, u32 min_burst, u32 frame_size, u32 idx) argument
[all...]
/linux-master/drivers/mailbox/
H A Drockchip-mailbox.c35 int idx; member in struct:rockchip_mbox_chan
68 chans->idx, msg->cmd);
70 mb->chans[chans->idx].msg = msg;
72 writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx));
74 MAILBOX_A2B_DAT(chans->idx));
98 mb->chans[chans->idx].msg = NULL;
109 int idx; local
113 for (idx = 0; idx < mb->mbox.num_chans; idx
127 int idx; local
[all...]
/linux-master/arch/m68k/kernel/
H A Dpcibios.c49 int idx; local
54 for (idx = 0; idx < 6; idx++) {
56 if (!(mask & (1 << idx)))
59 r = dev->resource + idx;
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_reg.c41 int idx; local
62 for (idx = 0; idx < map->num_ranges; idx++) {
63 if (reg >= map->range[idx].start &&
64 reg < map->range[idx].end)
/linux-master/drivers/net/wireless/intel/iwlwifi/tests/
H A Ddevinfo.c23 int idx; local
25 for (idx = 0; idx < iwl_dev_info_table_size; idx++) {
26 const struct iwl_dev_info *di = &iwl_dev_info_table[idx];
39 idx, (int)(ret - iwl_dev_info_table));

Completed in 251 milliseconds

1234567891011>>