Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 4898) sorted by relevance

12345678910>>...196

/kernel/linux/linux-5.10/Documentation/
Dindex.rst39 admin-guide/index
40 kbuild/index
50 firmware-guide/index
51 devicetree/index
62 userspace-api/index
77 process/index
78 dev-tools/index
79 doc-guide/index
80 kernel-hacking/index
81 trace/index
[all …]
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dtag_check.c14 __simple_checks(struct radix_tree_root *tree, unsigned long index, int tag) in __simple_checks() argument
19 item_check_absent(tree, index); in __simple_checks()
20 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks()
22 item_insert(tree, index); in __simple_checks()
23 assert(item_tag_get(tree, index, tag) == 0); in __simple_checks()
24 item_tag_set(tree, index, tag); in __simple_checks()
25 ret = item_tag_get(tree, index, tag); in __simple_checks()
29 ret = item_tag_get(tree, index, !tag); in __simple_checks()
31 ret = item_delete(tree, index); in __simple_checks()
33 item_insert(tree, index); in __simple_checks()
[all …]
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/
Dcvmx-helper-sgmii.c52 static int __cvmx_helper_sgmii_hardware_init_one_time(int interface, int index) in __cvmx_helper_sgmii_hardware_init_one_time() argument
60 gmxx_prtx_cfg.u64 = cvmx_read_csr(CVMX_GMXX_PRTX_CFG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
62 cvmx_write_csr(CVMX_GMXX_PRTX_CFG(index, interface), gmxx_prtx_cfg.u64); in __cvmx_helper_sgmii_hardware_init_one_time()
70 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
72 cvmx_read_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
82 cvmx_write_csr(CVMX_PCSX_LINKX_TIMER_COUNT_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
98 cvmx_read_csr(CVMX_PCSX_ANX_ADV_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
103 cvmx_write_csr(CVMX_PCSX_ANX_ADV_REG(index, interface), in __cvmx_helper_sgmii_hardware_init_one_time()
108 cvmx_read_csr(CVMX_PCSX_MISCX_CTL_REG(index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
114 (index, interface)); in __cvmx_helper_sgmii_hardware_init_one_time()
[all …]
/kernel/linux/linux-5.10/arch/m68k/sun3x/
Ddvma.c44 #define dvma_entry_paddr(index) (iommu_pte[index] & IOMMU_ADDR_MASK) argument
45 #define dvma_entry_vaddr(index,paddr) ((index << DVMA_PAGE_SHIFT) | \ argument
48 #define dvma_entry_set(index,addr) (iommu_pte[index] = \
52 #define dvma_entry_set(index,addr) (iommu_pte[index] = \ argument
56 #define dvma_entry_clr(index) (iommu_pte[index] = IOMMU_DT_INVALID) argument
66 unsigned long index; in dvma_print() local
68 index = dvma_addr >> DVMA_PAGE_SHIFT; in dvma_print()
70 pr_info("idx %lx dvma_addr %08lx paddr %08lx\n", index, dvma_addr, in dvma_print()
71 dvma_entry_paddr(index)); in dvma_print()
149 unsigned long end, index; in dvma_map_iommu() local
[all …]
/kernel/linux/linux-5.10/drivers/hwmon/
Dw83795.c118 #define IN_LSB_REG(index, type) \ argument
119 (((type) == 1) ? W83795_REG_IN_HL_LSB[(index)] \
120 : (W83795_REG_IN_HL_LSB[(index)] + 1))
150 #define W83795_REG_FAN(index) (0x2E + (index)) argument
151 #define W83795_REG_FAN_MIN_HL(index) (0xB6 + (index)) argument
152 #define W83795_REG_FAN_MIN_LSB(index) (0xC4 + (index) / 2) argument
153 #define W83795_REG_FAN_MIN_LSB_SHIFT(index) \ argument
154 (((index) & 1) ? 4 : 0)
160 #define W83795_REG_ALARM(index) (0x41 + (index)) argument
162 #define W83795_REG_BEEP(index) (0x50 + (index)) argument
[all …]
Dw83793.c116 #define W83793_REG_BEEP(index) (0x53 + (index)) argument
117 #define W83793_REG_ALARM(index) (0x4b + (index)) argument
146 #define W83793_REG_FAN(index) (0x23 + 2 * (index)) /* High byte */ argument
147 #define W83793_REG_FAN_MIN(index) (0x90 + 2 * (index)) /* High byte */ argument
159 #define W83793_REG_PWM(index, nr) (((nr) == 0 ? 0xb3 : \ argument
160 (nr) == 1 ? 0x220 : 0x218) + (index))
163 #define W83793_REG_TEMP_FAN_MAP(index) (0x201 + (index)) argument
164 #define W83793_REG_TEMP_TOL(index) (0x208 + (index)) argument
165 #define W83793_REG_TEMP_CRUISE(index) (0x210 + (index)) argument
166 #define W83793_REG_PWM_STOP_TIME(index) (0x228 + (index)) argument
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_set.c29 match_set(ip_set_id_t index, const struct sk_buff *skb, in match_set() argument
33 if (ip_set_test(index, skb, par, opt)) in match_set()
62 return match_set(info->match_set.index, skb, par, &opt, in set_match_v0()
86 ip_set_id_t index; in set_match_v0_checkentry() local
88 index = ip_set_nfnl_get_byindex(par->net, info->match_set.index); in set_match_v0_checkentry()
90 if (index == IPSET_INVALID_ID) { in set_match_v0_checkentry()
92 info->match_set.index); in set_match_v0_checkentry()
97 ip_set_nfnl_put(par->net, info->match_set.index); in set_match_v0_checkentry()
112 ip_set_nfnl_put(par->net, info->match_set.index); in set_match_v0_destroy()
129 return match_set(info->match_set.index, skb, par, &opt, in set_match_v1()
[all …]
/kernel/liteos_m/testsuites/sample/kernel/sem/
Dit_los_sem_041.c41 UINT32 index; in TaskF02() local
43 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF02()
44 ret = LOS_SemPost(g_usSemID3[index]); in TaskF02()
48 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF02()
49 ret = LOS_SemPend(g_usSemID3[index], LOS_WAIT_FOREVER); in TaskF02()
59 UINT32 index; in TaskF01() local
61 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF01()
62 ret = LOS_SemPend(g_usSemID3[index], LOS_WAIT_FOREVER); in TaskF01()
66 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF01()
67 ret = LOS_SemPost(g_usSemID3[index]); in TaskF01()
[all …]
DIt_los_sem_040.c43 UINT32 index; in TaskF02() local
45 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF02()
47 ret = LOS_SemPend(g_usSemID3[index], 0x2); in TaskF02()
59 UINT32 index; in TaskF01() local
61 for (index = 0; index < g_actMuxUsedcnt; index++) { in TaskF01()
63 ret = LOS_SemPend(g_usSemID3[index], 0x2); in TaskF01()
75 UINT32 index; in Testcase() local
100 for (index = 0; index < g_actMuxUsedcnt; index++) { in Testcase()
101 ret = LOS_SemCreate(0, &g_usSemID3[index]); in Testcase()
114 for (index = 0; index < g_actMuxUsedcnt; index++) { in Testcase()
[all …]
/kernel/linux/linux-5.10/arch/m68k/coldfire/
Dintc-5272.c40 unsigned char index; member
45 /*MCF_IRQ_SPURIOUS*/ { .icr = 0, .index = 0, .ack = 0, },
46 /*MCF_IRQ_EINT1*/ { .icr = MCFSIM_ICR1, .index = 28, .ack = 1, },
47 /*MCF_IRQ_EINT2*/ { .icr = MCFSIM_ICR1, .index = 24, .ack = 1, },
48 /*MCF_IRQ_EINT3*/ { .icr = MCFSIM_ICR1, .index = 20, .ack = 1, },
49 /*MCF_IRQ_EINT4*/ { .icr = MCFSIM_ICR1, .index = 16, .ack = 1, },
50 /*MCF_IRQ_TIMER1*/ { .icr = MCFSIM_ICR1, .index = 12, .ack = 0, },
51 /*MCF_IRQ_TIMER2*/ { .icr = MCFSIM_ICR1, .index = 8, .ack = 0, },
52 /*MCF_IRQ_TIMER3*/ { .icr = MCFSIM_ICR1, .index = 4, .ack = 0, },
53 /*MCF_IRQ_TIMER4*/ { .icr = MCFSIM_ICR1, .index = 0, .ack = 0, },
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/
Dindex.rst17 driver-model/index
21 early-userspace/index
22 pm/index
32 iio/index
34 usb/index
36 pci/index
41 i3c/index
52 mei/index
53 mtd/index
54 mmc/index
[all …]
/kernel/liteos_a/arch/arm/arm/src/pmu/
Darmv7_pmu.c59 STATIC INLINE UINT32 Armv7PmuCntOverflowed(UINT32 pmnc, UINT32 index) in Armv7PmuCntOverflowed() argument
61 return pmnc & ARMV7_CNT2BIT(ARMV7_IDX2CNT(index)); in Armv7PmuCntOverflowed()
64 STATIC INLINE UINT32 Armv7CntValid(UINT32 index) in Armv7CntValid() argument
66 return index <= ARMV7_IDX_COUNTER_LAST; in Armv7CntValid()
69 STATIC INLINE VOID Armv7PmuSelCnt(UINT32 index) in Armv7PmuSelCnt() argument
71 UINT32 counter = ARMV7_IDX2CNT(index); in Armv7PmuSelCnt()
76 STATIC INLINE VOID Armv7PmuSetCntPeriod(UINT32 index, UINT32 period) in Armv7PmuSetCntPeriod() argument
78 if (!Armv7CntValid(index)) { in Armv7PmuSetCntPeriod()
79 PRINT_ERR("CPU writing wrong counter %u\n", index); in Armv7PmuSetCntPeriod()
80 } else if (index == ARMV7_IDX_CYCLE_COUNTER) { in Armv7PmuSetCntPeriod()
[all …]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Ddsmthdat.c20 u32 index, struct acpi_walk_state *walk_state);
24 u32 index,
31 u32 index, struct acpi_walk_state *walk_state);
104 u32 index; in acpi_ds_method_data_delete_all() local
110 for (index = 0; index < ACPI_METHOD_NUM_LOCALS; index++) { in acpi_ds_method_data_delete_all()
111 if (walk_state->local_variables[index].object) { in acpi_ds_method_data_delete_all()
113 index, in acpi_ds_method_data_delete_all()
114 walk_state->local_variables[index]. in acpi_ds_method_data_delete_all()
120 local_variables[index]); in acpi_ds_method_data_delete_all()
126 for (index = 0; index < ACPI_METHOD_NUM_ARGS; index++) { in acpi_ds_method_data_delete_all()
[all …]
/kernel/liteos_m/testsuites/sample/kernel/hwi/
Dit_los_hwi_033.c39 int index; in HwiF01() local
40 for (index = OS_USER_HWI_MIN; index < OS_HWI_MAX_USED_NUM; index++) { in HwiF01()
41 TestHwiClear(index); in HwiF01()
51 UINT32 index; in Testcase() local
60 for (index = 0; index < OS_HWI_MAX_USED_NUM; index++) { in Testcase()
62 if ((index != 3) && (index != 4) && (index != 32) && (index != 35) && (index != 36)) { in Testcase()
63 … ret = LOS_HwiCreate(HWI_NUM_TEST1 + index, hwiPrio, mode, (HWI_PROC_FUNC)HwiF01, &irqParam); in Testcase()
67 for (index = OS_USER_HWI_MIN; index < OS_HWI_MAX_USED_NUM; index++) { in Testcase()
68 TestHwiDelete(HWI_NUM_TEST1 + index); in Testcase()
/kernel/linux/linux-5.10/drivers/staging/octeon/
Dethernet-spi.c20 static void cvm_oct_spxx_int_pr(union cvmx_spxx_int_reg spx_int_reg, int index) in cvm_oct_spxx_int_pr() argument
23 pr_err("SPI%d: SRX Spi4 interface down\n", index); in cvm_oct_spxx_int_pr()
25 pr_err("SPI%d: SRX Spi4 Calendar table parity error\n", index); in cvm_oct_spxx_int_pr()
28 index); in cvm_oct_spxx_int_pr()
30 pr_err("SPI%d: SRX Spi4 DIP4 error\n", index); in cvm_oct_spxx_int_pr()
33 index); in cvm_oct_spxx_int_pr()
36 index); in cvm_oct_spxx_int_pr()
39 index); in cvm_oct_spxx_int_pr()
42 index); in cvm_oct_spxx_int_pr()
44 pr_err("SPI%d: SRX Spi4 async FIFO overflow\n", index); in cvm_oct_spxx_int_pr()
[all …]
/kernel/liteos_a/apps/perf/src/
Doption.c37 static int ParseOption(char **argv, int *index, PerfOption *opts) in ParseOption() argument
43 if (strcmp(argv[*index], opts->name) == 0) { in ParseOption()
46 *opts->value = strtoul(argv[++(*index)], NULL, 0); in ParseOption()
49 *opts->str = argv[++(*index)]; in ParseOption()
52 str = argv[++(*index)]; in ParseOption()
74 int index = 0; in ParseOptions() local
76 while ((index < argc) && (argv[index] != NULL) && (*argv[index] == '-')) { in ParseOptions()
77 if (ParseOption(argv, &index, opts) != 0) { in ParseOptions()
80 index++; in ParseOptions()
83 if ((index < argc) && (argv[index] != NULL)) { in ParseOptions()
[all …]
/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_64.c93 U32 index; in OsCpupTask() local
99 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupTask()
105 if (g_tskCbArray[index].taskStatus == OS_TSK_UNUSED) { in OsCpupTask()
109 cpup[maxNum].id = g_tskCbArray[index].taskPid; in OsCpupTask()
110 cpup[maxNum].usage = g_cpup[index].usage; in OsCpupTask()
135 U32 index; in OsCpupAllTaskTimeGet() local
138 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupAllTaskTimeGet()
139 allTime += g_cpup[index].allTime; in OsCpupAllTaskTimeGet()
150 U32 index; in OsCpupTimeClear() local
152 for (index = 0; index < (OS_MAX_TCB_NUM - 1); index++) { in OsCpupTimeClear()
[all …]
/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.h150 static inline int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument
152 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock()
155 static inline void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument
157 bit_spin_lock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_lock()
160 static inline void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument
162 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_unlock()
165 static inline unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() argument
167 return zram->table[index].handle; in zram_get_handle()
170 static inline void zram_set_handle(struct zram *zram, u32 index, unsigned long handle) in zram_set_handle() argument
172 zram->table[index].handle = handle; in zram_set_handle()
[all …]
/kernel/linux/linux-5.10/drivers/extcon/
Dextcon.c285 static bool is_extcon_attached(struct extcon_dev *edev, unsigned int index) in is_extcon_attached() argument
287 return !!(edev->state & BIT(index)); in is_extcon_attached()
290 static bool is_extcon_changed(struct extcon_dev *edev, int index, in is_extcon_changed() argument
293 int state = !!(edev->state & BIT(index)); in is_extcon_changed()
311 unsigned int id, int index,unsigned int prop) in is_extcon_property_capability() argument
321 cable = &edev->cables[index]; in is_extcon_property_capability()
343 static void init_property(struct extcon_dev *edev, unsigned int id, int index) in init_property() argument
346 struct extcon_cable *cable = &edev->cables[index]; in init_property()
426 int index; in extcon_sync() local
433 index = find_cable_index_by_id(edev, id); in extcon_sync()
[all …]
/kernel/linux/linux-5.10/Documentation/translations/zh_CN/admin-guide/
Dindex.rst3 :Original: :doc:`../../../admin-guide/index`
21 sysctl/index
27 hw-vuln/index
41 kdump/index
42 perf/index
62 acpi/index
63 aoe/index
64 auxdisplay/index
68 blockdev/index
72 cgroup-v1/index
[all …]
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dgroup_writeback.c26 static u16 zram_get_memcg_id(struct zram *zram, u32 index) in zram_get_memcg_id() argument
28 return (zram->table[index].flags & ZRAM_GRPID_MASK) >> ZRAM_SIZE_SHIFT; in zram_get_memcg_id()
31 static void zram_set_memcg_id(struct zram *zram, u32 index, u16 gid) in zram_set_memcg_id() argument
33 unsigned long old = zram->table[index].flags & (~ZRAM_GRPID_MASK); in zram_set_memcg_id()
35 zram->table[index].flags = old | ((u64)gid << ZRAM_SIZE_SHIFT); in zram_set_memcg_id()
39 static bool obj_can_wb(struct zram *zram, u32 index, u16 gid) in obj_can_wb() argument
42 if (zram_get_memcg_id(zram, index) != gid) { in obj_can_wb()
44 index, zram_get_memcg_id(zram, index), gid); in obj_can_wb()
47 if (!zgrp_obj_is_isolated(zram->zgrp, index)) { in obj_can_wb()
48 pr_debug("obj %u is not isolated.\n", index); in obj_can_wb()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/xmon/
Dspu-dis.c46 const struct spu_opcode *index; in get_index_for_opcode() local
54 if ((index = spu_disassemble_table[opcode & 0x780]) != 0 in get_index_for_opcode()
55 && index->insn_type == RRR) in get_index_for_opcode()
56 return index; in get_index_for_opcode()
58 if ((index = spu_disassemble_table[opcode & 0x7f0]) != 0 in get_index_for_opcode()
59 && (index->insn_type == RI18 || index->insn_type == LBT)) in get_index_for_opcode()
60 return index; in get_index_for_opcode()
62 if ((index = spu_disassemble_table[opcode & 0x7f8]) != 0 in get_index_for_opcode()
63 && index->insn_type == RI10) in get_index_for_opcode()
64 return index; in get_index_for_opcode()
[all …]
/kernel/liteos_a/testsuites/unittest/process/basic/pthread/smoke/
Dpthread_test_006.cpp90 int index = 0; in Testcase() local
109 ret = pthread_create(&newPthread[index], &a, ThreadFuncTest0, &threadParam[0]); in Testcase()
113 index = 1; in Testcase()
114 while (index < (testCount - 1)) { in Testcase()
115 threadParam[index] = index; in Testcase()
116 ret = pthread_create(&newPthread[index], &a, ThreadFuncTest1, &threadParam[index]); in Testcase()
118 g_threadTest[index] = 0; in Testcase()
119 index++; in Testcase()
124 threadParam[index] = index; in Testcase()
125 ret = pthread_create(&newPthread[index], &a, ThreadFuncTest2, &threadParam[index]); in Testcase()
[all …]
/kernel/linux/linux-5.10/arch/ia64/include/uapi/asm/
Dintel_intrin.h82 #define __ia64_set_dbr(index, val) \ argument
83 __setIndReg(_IA64_REG_INDR_DBR, index, val)
84 #define ia64_set_ibr(index, val) \ argument
85 __setIndReg(_IA64_REG_INDR_IBR, index, val)
86 #define ia64_set_pkr(index, val) \ argument
87 __setIndReg(_IA64_REG_INDR_PKR, index, val)
88 #define ia64_set_pmc(index, val) \ argument
89 __setIndReg(_IA64_REG_INDR_PMC, index, val)
90 #define ia64_set_pmd(index, val) \ argument
91 __setIndReg(_IA64_REG_INDR_PMD, index, val)
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
Drcar_du_plane.c105 if (plane->group->index != 0) in rcar_du_plane_hwalloc()
111 fixed = plane->group->index == 0 ? 1 : 0; in rcar_du_plane_hwalloc()
147 unsigned int index; in rcar_du_atomic_check_planes() local
154 plane->group->index, plane - plane->group->planes); in rcar_du_atomic_check_planes()
164 index = plane - plane->group->planes; in rcar_du_atomic_check_planes()
165 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes()
177 groups |= 1 << plane->group->index; in rcar_du_atomic_check_planes()
180 index = plane - plane->group->planes; in rcar_du_atomic_check_planes()
181 group_freed_planes[plane->group->index] |= 1 << index; in rcar_du_atomic_check_planes()
199 unsigned int index = ffs(groups) - 1; in rcar_du_atomic_check_planes() local
[all …]

12345678910>>...196