Home
last modified time | relevance | path

Searched refs:idx (Results 101 – 125 of 4158) sorted by relevance

12345678910>>...167

/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_sdlb.c151 if (itr == idx) in sparx5_sdlb_group_get_adjacent()
220 if (itr == idx) { in sparx5_sdlb_group_get_by_index()
263 first = idx; in sparx5_sdlb_group_add()
266 next = idx; in sparx5_sdlb_group_add()
281 __LINE__, idx, group); in sparx5_sdlb_group_del()
289 idx = prev; in sparx5_sdlb_group_del()
294 next = idx; in sparx5_sdlb_group_del()
297 idx = prev; in sparx5_sdlb_group_del()
304 u32 frame_size, u32 idx) in sparx5_sdlb_group_init() argument
310 group = &sdlb_groups[idx]; in sparx5_sdlb_group_init()
[all …]
H A Dsparx5_qos.c103 u32 idx) in sparx5_lg_get_next() argument
128 u32 idx) in sparx5_lg_is_last() argument
130 return idx == sparx5_lg_get_next(sparx5, layer, group, idx); in sparx5_lg_is_last()
223 if (itr == idx) in sparx5_lg_get_adjacent()
279 idx = prev; in sparx5_lg_del()
284 next = idx; in sparx5_lg_del()
287 idx = prev; in sparx5_lg_del()
295 u32 idx) in sparx5_lg_add() argument
300 idx); in sparx5_lg_add()
314 first = idx; in sparx5_lg_add()
[all …]
/openbmc/linux/security/selinux/
H A Dnetnode.c105 unsigned int idx; in sel_netnode_find() local
110 idx = sel_netnode_hashfn_ipv4(*(const __be32 *)addr); in sel_netnode_find()
113 idx = sel_netnode_hashfn_ipv6(addr); in sel_netnode_find()
147 unsigned int idx; in sel_netnode_insert() local
151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
168 list_tail_rcu(&sel_netnode_hash[idx].list), in sel_netnode_insert()
174 sel_netnode_hash[idx].size++; in sel_netnode_insert()
275 unsigned int idx; in sel_netnode_flush() local
279 for (idx = 0; idx < SEL_NETNODE_HASH_SIZE; idx++) { in sel_netnode_flush()
281 &sel_netnode_hash[idx].list, list) { in sel_netnode_flush()
[all …]
/openbmc/linux/drivers/platform/x86/amd/pmf/
H A Dsps.c72 int i, j, idx = 0; in amd_pmf_load_defaults_sps() local
79 config_store.prop[i][j].spl = output.prop[idx].spl; in amd_pmf_load_defaults_sps()
80 config_store.prop[i][j].sppt = output.prop[idx].sppt; in amd_pmf_load_defaults_sps()
82 output.prop[idx].sppt_apu_only; in amd_pmf_load_defaults_sps()
86 output.prop[idx].stt_skin_temp[STT_TEMP_APU]; in amd_pmf_load_defaults_sps()
88 output.prop[idx].stt_skin_temp[STT_TEMP_HS2]; in amd_pmf_load_defaults_sps()
90 idx++; in amd_pmf_load_defaults_sps()
106 config_store.prop[src][idx].sppt_apu_only, NULL); in amd_pmf_update_slider()
108 config_store.prop[src][idx].stt_min, NULL); in amd_pmf_update_slider()
118 &table->prop[src][idx].sppt_apu_only); in amd_pmf_update_slider()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm4x-sysfs.c16 u8 idx; in etm4_set_mode_exclude() local
881 u8 idx; in addr_instdatatype_store() local
906 u8 idx; in addr_single_show() local
927 u8 idx; in addr_single_store() local
954 u8 idx; in addr_range_show() local
983 u8 idx; in addr_range_store() local
1035 u8 idx; in addr_start_show() local
1058 u8 idx; in addr_start_store() local
1090 u8 idx; in addr_stop_show() local
1113 u8 idx; in addr_stop_store() local
[all …]
/openbmc/linux/drivers/mtd/parsers/
H A Dtplink_safeloader.c82 int idx; in mtd_parser_tplink_safeloader_parse() local
97 for (idx = 0, offset = TPLINK_SAFELOADER_DATA_OFFSET; in mtd_parser_tplink_safeloader_parse()
98 idx < TPLINK_SAFELOADER_MAX_PARTS && in mtd_parser_tplink_safeloader_parse()
100 name, &parts[idx].offset, &parts[idx].size, &bytes) == 3; in mtd_parser_tplink_safeloader_parse()
101 idx++, offset += bytes + 1) { in mtd_parser_tplink_safeloader_parse()
102 parts[idx].name = kstrdup(name, GFP_KERNEL); in mtd_parser_tplink_safeloader_parse()
103 if (!parts[idx].name) { in mtd_parser_tplink_safeloader_parse()
109 if (idx == TPLINK_SAFELOADER_MAX_PARTS) in mtd_parser_tplink_safeloader_parse()
116 return idx; in mtd_parser_tplink_safeloader_parse()
119 for (idx -= 1; idx >= 0; idx--) in mtd_parser_tplink_safeloader_parse()
[all …]
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_displayid.c30 base = displayid_get_header(displayid, length, idx); in validate_displayid()
39 if (dispid_length > length - idx) in validate_displayid()
43 csum += displayid[idx + i]; in validate_displayid()
53 int *length, int *idx, in drm_find_displayid_extension() argument
64 *idx = 1; in drm_find_displayid_extension()
70 *length = *idx + sizeof(*base) + base->bytes; in drm_find_displayid_extension()
93 if (iter->idx + sizeof(*block) <= iter->length && in displayid_iter_block()
118 iter->idx += sizeof(*block) + block->num_bytes; in __displayid_iter_next()
131 &iter->idx, in __displayid_iter_next()
143 iter->idx); in __displayid_iter_next()
[all …]
/openbmc/linux/sound/pci/ice1712/
H A Dwtm.c68 int id, idx, change; in stac9460_dac_mute_all() local
77 old = stac9460_get(ice, idx); in stac9460_dac_mute_all()
81 stac9460_put(ice, idx, new); in stac9460_dac_mute_all()
119 int idx, id; in stac9460_dac_mute_get() local
124 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_get()
131 val = stac9460_get(ice, idx); in stac9460_dac_mute_get()
145 int id, idx; in stac9460_dac_mute_put() local
149 idx = STAC946X_MASTER_VOLUME; in stac9460_dac_mute_put()
150 old = stac9460_get(ice, idx); in stac9460_dac_mute_put()
195 int idx, id; in stac9460_dac_vol_get() local
[all …]
/openbmc/linux/arch/xtensa/kernel/
H A Dperf_event.c137 return get_er(XTENSA_PMU_PM(idx)); in xtensa_pmu_read_counter()
142 set_er(v, XTENSA_PMU_PM(idx)); in xtensa_pmu_write_counter()
252 int idx = hwc->idx; in xtensa_pmu_start() local
254 if (WARN_ON_ONCE(idx == -1)) in xtensa_pmu_start()
270 int idx = hwc->idx; in xtensa_pmu_stop() local
273 set_er(0, XTENSA_PMU_PMCTRL(idx)); in xtensa_pmu_stop()
275 XTENSA_PMU_PMSTAT(idx)); in xtensa_pmu_stop()
294 int idx = hwc->idx; in xtensa_pmu_add() local
302 __set_bit(idx, ev->used_mask); in xtensa_pmu_add()
303 hwc->idx = idx; in xtensa_pmu_add()
[all …]
/openbmc/qemu/tcg/
H A Dtcg-op-ldst.c188 orig_oi = oi = make_memop_idx(memop, idx); in tcg_gen_qemu_ld_i32_int()
196 oi = make_memop_idx(memop, idx); in tcg_gen_qemu_ld_i32_int()
241 orig_oi = oi = make_memop_idx(memop, idx); in tcg_gen_qemu_st_i32_int()
257 oi = make_memop_idx(memop, idx); in tcg_gen_qemu_st_i32_int()
309 orig_oi = oi = make_memop_idx(memop, idx); in tcg_gen_qemu_ld_i64_int()
317 oi = make_memop_idx(memop, idx); in tcg_gen_qemu_ld_i64_int()
371 orig_oi = oi = make_memop_idx(memop, idx); in tcg_gen_qemu_st_i64_int()
390 oi = make_memop_idx(memop, idx); in tcg_gen_qemu_st_i64_int()
520 orig_oi = make_memop_idx(memop, idx); in tcg_gen_qemu_ld_i128_int()
636 orig_oi = make_memop_idx(memop, idx); in tcg_gen_qemu_st_i128_int()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_mps.c38 if (mps_entry->idx == idx) { in cxgb4_mps_ref_dec()
54 u16 idx, const u8 *mask) in cxgb4_mps_ref_inc() argument
62 if (mps_entry->idx == idx) { in cxgb4_mps_ref_inc()
74 mps_entry->idx = idx; in cxgb4_mps_ref_inc()
112 if (idx[i] != 0xffff) { in cxgb4_alloc_mac_filt()
148 unsigned int idx, in cxgb4_free_raw_mac_filt() argument
157 mask, idx, lookup_type, in cxgb4_free_raw_mac_filt()
167 unsigned int idx, in cxgb4_alloc_raw_mac_filt() argument
175 mask, idx, lookup_type, in cxgb4_alloc_raw_mac_filt()
183 mask, idx, lookup_type, in cxgb4_alloc_raw_mac_filt()
[all …]
/openbmc/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_config.h146 #define CFG_GET_MAX_TXQS_NIC_IF(cfg, idx) \ argument
147 ((cfg)->nic_if_cfg[idx].max_txqs)
149 ((cfg)->nic_if_cfg[idx].num_txqs)
151 ((cfg)->nic_if_cfg[idx].max_rxqs)
153 ((cfg)->nic_if_cfg[idx].num_rxqs)
155 ((cfg)->nic_if_cfg[idx].num_rx_descs)
157 ((cfg)->nic_if_cfg[idx].num_tx_descs)
159 ((cfg)->nic_if_cfg[idx].rx_buf_size)
161 ((cfg)->nic_if_cfg[idx].base_queue)
162 #define CFG_GET_GMXID_NIC_IF(cfg, idx) \ argument
[all …]
/openbmc/linux/drivers/char/ipmi/
H A Dipmi_si_port_io.c54 int idx; in port_cleanup() local
57 for (idx = 0; idx < io->io_size; idx++) in port_cleanup()
58 release_region(addr + idx * io->regspacing, in port_cleanup()
66 int idx; in ipmi_si_port_setup() local
100 for (idx = 0; idx < io->io_size; idx++) { in ipmi_si_port_setup()
101 if (request_region(addr + idx * io->regspacing, in ipmi_si_port_setup()
104 while (idx--) in ipmi_si_port_setup()
105 release_region(addr + idx * io->regspacing, in ipmi_si_port_setup()
/openbmc/linux/arch/sh/kernel/cpu/sh3/
H A Dclock-sh7712.c24 int idx = (frqcr & 0x0300) >> 8; in master_clk_init() local
26 clk->rate *= multipliers[idx]; in master_clk_init()
36 int idx = frqcr & 0x0007; in module_clk_recalc() local
38 return clk->parent->rate / divisors[idx]; in module_clk_recalc()
48 int idx = (frqcr & 0x0030) >> 4; in cpu_clk_recalc() local
50 return clk->parent->rate / divisors[idx]; in cpu_clk_recalc()
63 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
65 if (idx < ARRAY_SIZE(sh7712_clk_ops)) in arch_init_clk_ops()
66 *ops = sh7712_clk_ops[idx]; in arch_init_clk_ops()
H A Dclock-sh7710.c35 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc() local
36 return clk->parent->rate / md_table[idx]; in module_clk_recalc()
45 int idx = (__raw_readw(FRQCR) & 0x0700) >> 8; in bus_clk_recalc() local
46 return clk->parent->rate / md_table[idx]; in bus_clk_recalc()
55 int idx = (__raw_readw(FRQCR) & 0x0070) >> 4; in cpu_clk_recalc() local
56 return clk->parent->rate / md_table[idx]; in cpu_clk_recalc()
70 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
72 if (idx < ARRAY_SIZE(sh7710_clk_ops)) in arch_init_clk_ops()
73 *ops = sh7710_clk_ops[idx]; in arch_init_clk_ops()
H A Dclock-sh7705.c41 int idx = __raw_readw(FRQCR) & 0x0003; in module_clk_recalc() local
42 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc()
51 int idx = (__raw_readw(FRQCR) & 0x0300) >> 8; in bus_clk_recalc() local
52 return clk->parent->rate / stc_multipliers[idx]; in bus_clk_recalc()
61 int idx = (__raw_readw(FRQCR) & 0x0030) >> 4; in cpu_clk_recalc() local
62 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc()
76 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
78 if (idx < ARRAY_SIZE(sh7705_clk_ops)) in arch_init_clk_ops()
79 *ops = sh7705_clk_ops[idx]; in arch_init_clk_ops()
/openbmc/qemu/hw/rdma/vmw/
H A Dpvrdma_dev_ring.c74 unsigned int idx, offset; in pvrdma_ring_next_elem_read() local
85 idx = head & (ring->max_elems - 1); in pvrdma_ring_next_elem_read()
86 offset = idx * ring->elem_sz; in pvrdma_ring_next_elem_read()
92 uint32_t idx = qatomic_read(&ring->ring_state->cons_head); in pvrdma_ring_read_inc() local
94 idx = (idx + 1) & ((ring->max_elems << 1) - 1); in pvrdma_ring_read_inc()
95 qatomic_set(&ring->ring_state->cons_head, idx); in pvrdma_ring_read_inc()
100 unsigned int idx, offset; in pvrdma_ring_next_elem_write() local
111 idx = tail & (ring->max_elems - 1); in pvrdma_ring_next_elem_write()
112 offset = idx * ring->elem_sz; in pvrdma_ring_next_elem_write()
120 idx = (idx + 1) & ((ring->max_elems << 1) - 1); in pvrdma_ring_write_inc()
[all …]
/openbmc/u-boot/drivers/ram/stm32mp1/
H A Dstm32mp1_ram.c29 int idx; in stm32mp1_ddr_clk_enable() local
31 for (idx = 0; idx < ARRAY_SIZE(clkname); idx++) { in stm32mp1_ddr_clk_enable()
32 ret = clk_get_by_name(priv->dev, clkname[idx], &clk); in stm32mp1_ddr_clk_enable()
38 printf("error for %s : %d\n", clkname[idx], ret); in stm32mp1_ddr_clk_enable()
62 int ret, idx; in stm32mp1_ddr_setup() local
97 for (idx = 0; idx < ARRAY_SIZE(param); idx++) { in stm32mp1_ddr_setup()
98 ret = dev_read_u32_array(dev, param[idx].name, in stm32mp1_ddr_setup()
100 param[idx].offset), in stm32mp1_ddr_setup()
101 param[idx].size); in stm32mp1_ddr_setup()
103 param[idx].name, param[idx].size, ret); in stm32mp1_ddr_setup()
[all …]
/openbmc/linux/include/linux/
H A Dhugetlb_cgroup.h138 extern int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages,
140 extern int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages,
142 extern void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages,
145 extern void hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages,
148 extern void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages,
153 extern void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages,
224 static inline int hugetlb_cgroup_charge_cgroup_rsvd(int idx, in hugetlb_cgroup_charge_cgroup_rsvd() argument
238 hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge_rsvd() argument
249 static inline void hugetlb_cgroup_uncharge_folio_rsvd(int idx, in hugetlb_cgroup_uncharge_folio_rsvd() argument
254 static inline void hugetlb_cgroup_uncharge_cgroup(int idx, in hugetlb_cgroup_uncharge_cgroup() argument
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_qsfp.c276 int idx; in qib_refresh_qsfp_cache() local
342 for (idx = 0; idx < QSFP_VEND_LEN; ++idx) in qib_refresh_qsfp_cache()
353 for (idx = 0; idx < QSFP_VOUI_LEN; ++idx) in qib_refresh_qsfp_cache()
354 cks += cp->oui[idx]; in qib_refresh_qsfp_cache()
359 for (idx = 0; idx < QSFP_PN_LEN; ++idx) in qib_refresh_qsfp_cache()
365 for (idx = 0; idx < QSFP_REV_LEN; ++idx) in qib_refresh_qsfp_cache()
366 cks += cp->rev[idx]; in qib_refresh_qsfp_cache()
371 for (idx = 0; idx < QSFP_ATTEN_LEN; ++idx) in qib_refresh_qsfp_cache()
397 for (idx = 0; idx < QSFP_SN_LEN; ++idx) in qib_refresh_qsfp_cache()
403 for (idx = 0; idx < QSFP_DATE_LEN; ++idx) in qib_refresh_qsfp_cache()
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_dp.c59 tx_ring->idx = idx; in nfp_net_tx_ring_init()
64 tx_ring->qcidx = tx_ring->idx * nn->stride_tx; in nfp_net_tx_ring_init()
81 rx_ring->idx = idx; in nfp_net_rx_ring_init()
399 nn_writeq(nn, NFP_NET_CFG_TXR_WB_ADDR(idx), in nfp_net_tx_ring_hw_cfg_write()
400 nn->dp.txrwb_dma + idx * sizeof(u64)); in nfp_net_tx_ring_hw_cfg_write()
408 nn_writeq(nn, NFP_NET_CFG_RXR_ADDR(idx), 0); in nfp_net_vec_clear_ring_data()
409 nn_writeb(nn, NFP_NET_CFG_RXR_SZ(idx), 0); in nfp_net_vec_clear_ring_data()
410 nn_writeb(nn, NFP_NET_CFG_RXR_VEC(idx), 0); in nfp_net_vec_clear_ring_data()
412 nn_writeq(nn, NFP_NET_CFG_TXR_ADDR(idx), 0); in nfp_net_vec_clear_ring_data()
414 nn_writeb(nn, NFP_NET_CFG_TXR_SZ(idx), 0); in nfp_net_vec_clear_ring_data()
[all …]
/openbmc/linux/arch/sh/kernel/cpu/sh4a/
H A Dclock-sh7780.c33 int idx = (__raw_readl(FRQCR) & 0x0003); in module_clk_recalc() local
34 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc()
43 int idx = ((__raw_readl(FRQCR) >> 16) & 0x0007); in bus_clk_recalc() local
44 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc()
53 int idx = ((__raw_readl(FRQCR) >> 24) & 0x0001); in cpu_clk_recalc() local
54 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc()
68 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
70 if (idx < ARRAY_SIZE(sh7780_clk_ops)) in arch_init_clk_ops()
71 *ops = sh7780_clk_ops[idx]; in arch_init_clk_ops()
76 int idx = ((__raw_readl(FRQCR) >> 20) & 0x0007); in shyway_clk_recalc() local
[all …]
H A Dclock-sh7770.c30 int idx = ((__raw_readl(FRQCR) >> 28) & 0x000f); in module_clk_recalc() local
31 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc()
40 int idx = (__raw_readl(FRQCR) & 0x000f); in bus_clk_recalc() local
41 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc()
50 int idx = ((__raw_readl(FRQCR) >> 24) & 0x000f); in cpu_clk_recalc() local
51 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc()
65 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
67 if (idx < ARRAY_SIZE(sh7770_clk_ops)) in arch_init_clk_ops()
68 *ops = sh7770_clk_ops[idx]; in arch_init_clk_ops()
/openbmc/linux/arch/sh/kernel/cpu/sh4/
H A Dclock-sh4.c37 int idx = (__raw_readw(FRQCR) & 0x0007); in module_clk_recalc() local
38 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc()
47 int idx = (__raw_readw(FRQCR) >> 3) & 0x0007; in bus_clk_recalc() local
48 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc()
57 int idx = (__raw_readw(FRQCR) >> 6) & 0x0007; in cpu_clk_recalc() local
58 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc()
72 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) in arch_init_clk_ops() argument
74 if (idx < ARRAY_SIZE(sh4_clk_ops)) in arch_init_clk_ops()
75 *ops = sh4_clk_ops[idx]; in arch_init_clk_ops()
/openbmc/linux/mm/
H A Dhighmem.c40 #define arch_kmap_local_map_idx(idx, pfn) kmap_local_calc_idx(idx) argument
169 for (i = 0; i < kctrl->idx; i++) { in __kmap_to_page()
171 int idx; in __kmap_to_page() local
467 current->kmap_ctrl.idx += KM_INCR; in kmap_local_idx_push()
469 return current->kmap_ctrl.idx - 1; in kmap_local_idx_push()
496 #define arch_kmap_local_unmap_idx(idx, vaddr) kmap_local_calc_idx(idx) argument
535 return &__kmap_pte[-idx]; in kmap_get_pte()
542 int idx; in __kmap_local_pfn_prot() local
589 int idx; in kunmap_local_indexed() local
644 int idx; in __kmap_local_sched_out() local
[all …]

12345678910>>...167