Home
last modified time | relevance | path

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

12345678910>>...183

/Linux-v5.4/Documentation/
Dindex.rst37 admin-guide/index
38 kbuild/index
48 firmware-guide/index
59 userspace-api/index
60 ioctl/index
75 process/index
76 dev-tools/index
77 doc-guide/index
78 kernel-hacking/index
79 trace/index
[all …]
/Linux-v5.4/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 …]
Dtest.c12 item_tag_set(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_set() argument
14 return radix_tree_tag_set(root, index, tag); in item_tag_set()
18 item_tag_clear(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_clear() argument
20 return radix_tree_tag_clear(root, index, tag); in item_tag_clear()
23 int item_tag_get(struct radix_tree_root *root, unsigned long index, int tag) in item_tag_get() argument
25 return radix_tree_tag_get(root, index, tag); in item_tag_get()
28 struct item *item_create(unsigned long index, unsigned int order) in item_create() argument
32 ret->index = index; in item_create()
37 int item_insert(struct radix_tree_root *root, unsigned long index) in item_insert() argument
39 struct item *item = item_create(index, 0); in item_insert()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/arch/m68k/sun3x/
Ddvma.c45 #define dvma_entry_paddr(index) (iommu_pte[index] & IOMMU_ADDR_MASK) argument
46 #define dvma_entry_vaddr(index,paddr) ((index << DVMA_PAGE_SHIFT) | \ argument
49 #define dvma_entry_set(index,addr) (iommu_pte[index] = \
53 #define dvma_entry_set(index,addr) (iommu_pte[index] = \ argument
57 #define dvma_entry_clr(index) (iommu_pte[index] = IOMMU_DT_INVALID) argument
67 unsigned long index; in dvma_print() local
69 index = dvma_addr >> DVMA_PAGE_SHIFT; in dvma_print()
71 pr_info("idx %lx dvma_addr %08lx paddr %08lx\n", index, dvma_addr, in dvma_print()
72 dvma_entry_paddr(index)); in dvma_print()
146 unsigned long end, index; in dvma_map_iommu() local
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/Documentation/driver-api/
Dindex.rst17 driver-model/index
20 early-userspace/index
21 pm/index
32 iio/index
34 usb/index
36 pci/index
40 i3c/index
49 mei/index
50 mtd/index
51 mmc/index
[all …]
/Linux-v5.4/drivers/gpu/drm/amd/display/modules/stats/
Dstats.c86 unsigned int index; member
166 core_stats->index = 1; in mod_stats_create()
204 unsigned int index = 0; in mod_stats_dump() local
239 } else if (time_index < core_stats->index && in mod_stats_dump()
276 unsigned int index = 0; in mod_stats_reset_data() local
289 core_stats->index = 1; in mod_stats_reset_data()
302 unsigned int index = 0; in mod_stats_update_event() local
314 index = core_stats->event_index; in mod_stats_update_event()
320 memcpy(&events[index].event_string, event_string, copy_length); in mod_stats_update_event()
321 events[index].event_string[copy_length - 1] = '\0'; in mod_stats_update_event()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/drivers/extcon/
Dextcon.c275 static bool is_extcon_attached(struct extcon_dev *edev, unsigned int index) in is_extcon_attached() argument
277 return !!(edev->state & BIT(index)); in is_extcon_attached()
280 static bool is_extcon_changed(struct extcon_dev *edev, int index, in is_extcon_changed() argument
283 int state = !!(edev->state & BIT(index)); in is_extcon_changed()
301 unsigned int id, int index,unsigned int prop) in is_extcon_property_capability() argument
311 cable = &edev->cables[index]; in is_extcon_property_capability()
333 static void init_property(struct extcon_dev *edev, unsigned int id, int index) in init_property() argument
336 struct extcon_cable *cable = &edev->cables[index]; in init_property()
416 int index; in extcon_sync() local
423 index = find_cable_index_by_id(edev, id); in extcon_sync()
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/arch/powerpc/kernel/
Dlegacy_serial.c81 int index; in add_legacy_port() local
98 index = want_index; in add_legacy_port()
100 index = legacy_serial_count; in add_legacy_port()
106 if (index >= MAX_LEGACY_SERIAL_PORTS) in add_legacy_port()
108 if (index >= legacy_serial_count) in add_legacy_port()
109 legacy_serial_count = index + 1; in add_legacy_port()
112 if (legacy_serial_infos[index].np != NULL) { in add_legacy_port()
116 index, legacy_serial_count); in add_legacy_port()
118 legacy_serial_ports[index]; in add_legacy_port()
120 legacy_serial_infos[index]; in add_legacy_port()
[all …]
/Linux-v5.4/drivers/platform/x86/
Dintel_telemetry_debugfs.c68 if (evtlog[index].telem_evtid == (EVTID)) { \
77 if (evtlog[index].telem_evtid == (EVTID)) { \
78 (CTR) = evtlog[index].telem_evtlog; \
342 int index, idx, ret, err = 0; in telem_pss_states_show() local
358 for (index = 0; index < ret; index++) { in telem_pss_states_show()
360 name[index], evtlog[index].telem_evtlog); in telem_pss_states_show()
363 if (evtlog[index].telem_evtid == conf->pss_idle_id) { in telem_pss_states_show()
365 (evtlog[index].telem_evtlog >> in telem_pss_states_show()
372 pss_idle, evtlog[index].telem_evtlog, in telem_pss_states_show()
378 evtlog[index].telem_evtlog, in telem_pss_states_show()
[all …]
/Linux-v5.4/include/linux/
Dscx200_gpio.h2 u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear);
11 #define __SCx200_GPIO_BANK unsigned bank = index>>5
14 #define __SCx200_GPIO_INDEX index &= 31
20 static inline int scx200_gpio_get(unsigned index) { in scx200_gpio_get() argument
25 return (inl(ioaddr) & (1<<index)) ? 1 : 0; in scx200_gpio_get()
32 static inline int scx200_gpio_current(unsigned index) { in scx200_gpio_current() argument
36 return (scx200_gpio_shadow[bank] & (1<<index)) ? 1 : 0; in scx200_gpio_current()
41 static inline void scx200_gpio_set_high(unsigned index) { in scx200_gpio_set_high() argument
46 set_bit(index, shadow); /* __set_bit()? */ in scx200_gpio_set_high()
52 static inline void scx200_gpio_set_low(unsigned index) { in scx200_gpio_set_low() argument
[all …]
/Linux-v5.4/include/trace/events/
Dhwmon.h12 TP_PROTO(int index, const char *attr_name, long val),
14 TP_ARGS(index, attr_name, val),
17 __field(int, index)
23 __entry->index = index;
29 __entry->index, __get_str(attr_name), __entry->val)
34 TP_PROTO(int index, const char *attr_name, long val),
36 TP_ARGS(index, attr_name, val)
41 TP_PROTO(int index, const char *attr_name, long val),
43 TP_ARGS(index, attr_name, val)
48 TP_PROTO(int index, const char *attr_name, const char *s),
[all …]
/Linux-v5.4/arch/mips/cavium-octeon/crypto/
Docteon-crypto.h31 #define write_octeon_64bit_hash_dword(value, index) \ argument
34 "dmtc2 %[rt],0x0048+" STR(index) \
42 #define read_octeon_64bit_hash_dword(index) \ argument
47 "dmfc2 %[rt],0x0048+" STR(index) \
57 #define write_octeon_64bit_block_dword(value, index) \ argument
60 "dmtc2 %[rt],0x0040+" STR(index) \
105 #define write_octeon_64bit_hash_sha512(value, index) \ argument
108 "dmtc2 %[rt],0x0250+" STR(index) \
116 #define read_octeon_64bit_hash_sha512(index) \ argument
121 "dmfc2 %[rt],0x0250+" STR(index) \
[all …]
/Linux-v5.4/mm/
Dtruncate.c35 pgoff_t index, void *entry) in __clear_shadow_entry() argument
37 XA_STATE(xas, &mapping->i_pages, index); in __clear_shadow_entry()
46 static void clear_shadow_entry(struct address_space *mapping, pgoff_t index, in clear_shadow_entry() argument
50 __clear_shadow_entry(mapping, index, entry); in clear_shadow_entry()
84 pgoff_t index = indices[i]; in truncate_exceptional_pvec_entries() local
91 if (index >= end) in truncate_exceptional_pvec_entries()
95 dax_delete_mapping_entry(mapping, index); in truncate_exceptional_pvec_entries()
99 __clear_shadow_entry(mapping, index, page); in truncate_exceptional_pvec_entries()
112 pgoff_t index, void *entry) in invalidate_exceptional_entry() argument
117 clear_shadow_entry(mapping, index, entry); in invalidate_exceptional_entry()
[all …]
/Linux-v5.4/drivers/firmware/tegra/
Dbpmp-tegra210.c37 static u32 bpmp_channel_status(struct tegra_bpmp *bpmp, unsigned int index) in bpmp_channel_status() argument
41 return __raw_readl(priv->arb_sema + STA_OFFSET) & CH_MASK(index); in bpmp_channel_status()
46 unsigned int index = channel->index; in tegra210_bpmp_is_response_ready() local
48 return bpmp_channel_status(channel->bpmp, index) == MA_ACKD(index); in tegra210_bpmp_is_response_ready()
53 unsigned int index = channel->index; in tegra210_bpmp_is_request_ready() local
55 return bpmp_channel_status(channel->bpmp, index) == SL_SIGL(index); in tegra210_bpmp_is_request_ready()
61 unsigned int index = channel->index; in tegra210_bpmp_is_request_channel_free() local
63 return bpmp_channel_status(channel->bpmp, index) == MA_FREE(index); in tegra210_bpmp_is_request_channel_free()
69 unsigned int index = channel->index; in tegra210_bpmp_is_response_channel_free() local
71 return bpmp_channel_status(channel->bpmp, index) == SL_QUED(index); in tegra210_bpmp_is_response_channel_free()
[all …]
/Linux-v5.4/drivers/block/zram/
Dzram_drv.c54 static void zram_free_page(struct zram *zram, size_t index);
56 u32 index, int offset, struct bio *bio);
59 static int zram_slot_trylock(struct zram *zram, u32 index) in zram_slot_trylock() argument
61 return bit_spin_trylock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_trylock()
64 static void zram_slot_lock(struct zram *zram, u32 index) in zram_slot_lock() argument
66 bit_spin_lock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_lock()
69 static void zram_slot_unlock(struct zram *zram, u32 index) in zram_slot_unlock() argument
71 bit_spin_unlock(ZRAM_LOCK, &zram->table[index].flags); in zram_slot_unlock()
84 static unsigned long zram_get_handle(struct zram *zram, u32 index) in zram_get_handle() argument
86 return zram->table[index].handle; in zram_get_handle()
[all …]

12345678910>>...183