/linux-master/drivers/clk/ |
H A D | clk-scpi.c | 64 int idx; local 68 for (idx = 0; idx < clk->info->count; idx++, opp++) { 85 int idx = clk->scpi_ops->dvfs_get_idx(clk->id); local 88 if (idx < 0) 91 opp = clk->info->opps + idx; 105 int idx, max_opp = clk->info->count; local 108 for (idx = 0; idx < max_op 179 unsigned int idx = clkspec->args[0], count; local 193 int idx, count, err; local [all...] |
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_qos.c | 103 u32 idx) 108 value = spx5_rd(sparx5, HSCH_SE_CONNECT(idx)); 128 u32 idx) 130 return idx == sparx5_lg_get_next(sparx5, layer, group, idx); 134 u32 idx) 136 return idx == sparx5_lg_get_first(sparx5, layer, group); 165 u32 idx, u32 *group) 179 if (itr == idx) { 211 u32 idx, u3 102 sparx5_lg_get_next(struct sparx5 *sparx5, u32 layer, u32 group, u32 idx) argument 127 sparx5_lg_is_last(struct sparx5 *sparx5, u32 layer, u32 group, u32 idx) argument 133 sparx5_lg_is_first(struct sparx5 *sparx5, u32 layer, u32 group, u32 idx) argument 164 sparx5_lg_get_group_by_index(struct sparx5 *sparx5, u32 layer, u32 idx, u32 *group) argument 210 sparx5_lg_get_adjacent(struct sparx5 *sparx5, u32 layer, u32 group, u32 idx, u32 *prev, u32 *next, u32 *first) argument 236 sparx5_lg_conf_set(struct sparx5 *sparx5, u32 layer, u32 group, u32 se_first, u32 idx, u32 idx_next, bool empty) argument 266 sparx5_lg_del(struct sparx5 *sparx5, u32 layer, u32 group, u32 idx) argument 294 sparx5_lg_add(struct sparx5 *sparx5, u32 layer, u32 new_group, u32 idx) argument 325 sparx5_shaper_conf_set(struct sparx5_port *port, const struct sparx5_shaper *sh, u32 layer, u32 idx, u32 group) argument 489 sparx5_tc_tbf_add(struct sparx5_port *port, struct tc_tbf_qopt_offload_replace_params *params, u32 layer, u32 idx) argument 525 sparx5_tc_tbf_del(struct sparx5_port *port, u32 layer, u32 idx) argument [all...] |
H A D | sparx5_vcap_impl.c | 732 int size, idx; local 752 for (idx = 0; idx < size; ++idx) 753 if (known_etypes[idx] == etype) 769 int idx, jdx, lookup; local 804 for (idx = 0; idx < kslist->cnt; ++idx) 806 if (kslist->keysets[idx] 925 int idx; local 966 int idx; local 1026 int idx; local 1067 int idx; local 1138 int idx; local 1173 int idx; local 1228 int idx; local 1263 int idx; local 1991 int idx, cores; local 2049 int err = 0, idx; local [all...] |
/linux-master/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-std.c | 109 unsigned int idx; local 111 for (idx = 0; idx < arrSize; idx++) { 112 p = arrPtr + idx; 269 unsigned int idx; local 270 for (idx = 0; idx < ARRAY_SIZE(generic_standards); idx++) { 271 if (generic_standards[idx] 281 int idx; local 309 unsigned int idx,bcnt,idx2; local [all...] |
/linux-master/drivers/input/misc/ |
H A D | ad714x.c | 213 static void ad714x_button_state_machine(struct ad714x_chip *ad714x, int idx) argument 215 struct ad714x_button_plat *hw = &ad714x->hw->button[idx]; 216 struct ad714x_button_drv *sw = &ad714x->sw->button[idx]; 222 dev_dbg(ad714x->dev, "button %d touched\n", idx); 232 dev_dbg(ad714x->dev, "button %d released\n", idx); 248 static void ad714x_slider_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 250 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; 266 static void ad714x_slider_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 268 struct ad714x_slider_plat *hw = &ad714x->hw->slider[idx]; 269 struct ad714x_slider_drv *sw = &ad714x->sw->slider[idx]; 291 ad714x_slider_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 313 ad714x_slider_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 324 ad714x_slider_use_com_int(struct ad714x_chip *ad714x, int idx) argument 331 ad714x_slider_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 338 ad714x_slider_state_machine(struct ad714x_chip *ad714x, int idx) argument 407 ad714x_wheel_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 420 ad714x_wheel_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 449 ad714x_wheel_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 480 ad714x_wheel_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 496 ad714x_wheel_use_com_int(struct ad714x_chip *ad714x, int idx) argument 503 ad714x_wheel_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 510 ad714x_wheel_state_machine(struct ad714x_chip *ad714x, int idx) argument 574 touchpad_cal_sensor_val(struct ad714x_chip *ad714x, int idx) argument 594 touchpad_cal_highest_stage(struct ad714x_chip *ad714x, int idx) argument 615 touchpad_check_second_peak(struct ad714x_chip *ad714x, int idx) argument 654 touchpad_cal_abs_pos(struct ad714x_chip *ad714x, int idx) argument 668 touchpad_cal_flt_pos(struct ad714x_chip *ad714x, int idx) argument 699 touchpad_check_endpoint(struct ad714x_chip *ad714x, int idx) argument 776 touchpad_use_com_int(struct ad714x_chip *ad714x, int idx) argument 783 touchpad_use_thr_int(struct ad714x_chip *ad714x, int idx) argument 791 ad714x_touchpad_state_machine(struct ad714x_chip *ad714x, int idx) argument [all...] |
/linux-master/arch/arm/mach-omap2/ |
H A D | prm2xxx_3xxx.h | 53 static inline u32 omap2_prm_read_mod_reg(s16 module, u16 idx) argument 55 return readl_relaxed(prm_base.va + module + idx); 58 static inline void omap2_prm_write_mod_reg(u32 val, s16 module, u16 idx) argument 60 writel_relaxed(val, prm_base.va + module + idx); 65 s16 idx) 69 v = omap2_prm_read_mod_reg(module, idx); 72 omap2_prm_write_mod_reg(v, module, idx); 78 static inline u32 omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) argument 82 v = omap2_prm_read_mod_reg(domain, idx); 89 static inline u32 omap2_prm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) argument 64 omap2_prm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module, s16 idx) argument 94 omap2_prm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx) argument [all...] |
/linux-master/arch/mips/sibyte/common/ |
H A D | cfe.c | 83 unsigned int idx; local 99 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; 100 idx++) { 153 int idx; local 158 for (idx = 0; idx < sizeof(rdarg)-1; idx++) { 159 if (!str[idx] || (str[idx] [all...] |
/linux-master/drivers/reset/sti/ |
H A D | reset-syscfg.c | 51 unsigned long idx, int assert) 58 if (idx >= rcdev->nr_resets) 61 ch = &rst->channels[idx]; 80 unsigned long idx) 82 return syscfg_reset_program_hw(rcdev, idx, true); 86 unsigned long idx) 88 return syscfg_reset_program_hw(rcdev, idx, false); 92 unsigned long idx) 96 err = syscfg_reset_assert(rcdev, idx); 100 return syscfg_reset_deassert(rcdev, idx); 50 syscfg_reset_program_hw(struct reset_controller_dev *rcdev, unsigned long idx, int assert) argument 79 syscfg_reset_assert(struct reset_controller_dev *rcdev, unsigned long idx) argument 85 syscfg_reset_deassert(struct reset_controller_dev *rcdev, unsigned long idx) argument 91 syscfg_reset_dev(struct reset_controller_dev *rcdev, unsigned long idx) argument 103 syscfg_reset_status(struct reset_controller_dev *rcdev, unsigned long idx) argument [all...] |
/linux-master/drivers/staging/media/atomisp/pci/mmu/ |
H A D | isp_mmu.c | 60 static unsigned int atomisp_get_pte(phys_addr_t pt, unsigned int idx) argument 64 return *(pt_virt + idx); 68 unsigned int idx, unsigned int pte) 71 *(pt_virt + idx) = pte; 149 "\tL1 PT: virt = %p, phys = 0x%llx, idx = %d\n" 150 "\tL2 PT: virt = %p, phys = 0x%llx, idx = %d\n" 167 "\tL1 PT: virt = %p, phys = 0x%llx, idx = %d\n" 168 "\tL2 PT: virt = %p, phys = 0x%llx, idx = %d\n" 182 "\tL1 PT: virt = %p, phys = 0x%llx, idx = %d\n" 204 unsigned int idx; local 67 atomisp_set_pte(phys_addr_t pt, unsigned int idx, unsigned int pte) argument 250 unsigned int idx; local 368 unsigned int idx; local 406 unsigned int idx; local 541 unsigned int idx; local [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | fixmap.h | 75 * higher than 1). Use set_fixmap(idx,phys) to associate 159 void __native_set_fixmap(enum fixed_addresses idx, pte_t pte); 160 void native_set_fixmap(unsigned /* enum fixed_addresses */ idx, 164 static inline void __set_fixmap(enum fixed_addresses idx, argument 167 native_set_fixmap(idx, phys, flags); 193 #define __late_set_fixmap(idx, phys, flags) __set_fixmap(idx, phys, flags) 194 #define __late_clear_fixmap(idx) __set_fixmap(idx, 0, __pgprot(0)) 196 void __early_set_fixmap(enum fixed_addresses idx, [all...] |
/linux-master/drivers/md/ |
H A D | dm-io-rewind.c | 16 int idx; local 25 idx = iter->bi_idx - 1; 27 while (idx >= 0 && bytes && bytes > bv[idx].bv_len) { 28 bytes -= bv[idx].bv_len; 29 idx--; 32 if (WARN_ONCE(idx < 0 && bytes, 40 iter->bi_idx = idx; 41 iter->bi_bvec_done = bv[idx].bv_len - bytes;
|
/linux-master/arch/sh/kernel/cpu/sh2/ |
H A D | clock-sh7619.c | 34 int idx = (__raw_readw(FREQCR) & 0x0007); local 35 return clk->parent->rate / pfc_divisors[idx]; 62 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) argument 72 if (idx < ARRAY_SIZE(sh7619_clk_ops)) 73 *ops = sh7619_clk_ops[idx];
|
/linux-master/drivers/clk/uniphier/ |
H A D | clk-uniphier-mio.c | 25 .idx = -1, \ 63 #define UNIPHIER_MIO_CLK_USB2(idx, ch) \ 64 UNIPHIER_CLK_GATE("usb2" #ch, (idx), "usb2", 0x20 + 0x200 * (ch), 28) 66 #define UNIPHIER_MIO_CLK_USB2_PHY(idx, ch) \ 67 UNIPHIER_CLK_GATE("usb2" #ch "-phy", (idx), "usb2", 0x20 + 0x200 * (ch), 29)
|
/linux-master/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | rammap.h | 9 u32 nvbios_rammapEe(struct nvkm_bios *, int idx, 13 u32 nvbios_rammapEp(struct nvkm_bios *, int idx, 19 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx, 21 u32 nvbios_rammapSp_from_perf(struct nvkm_bios *bios, u32 data, u8 size, int idx, 24 u8 ever, u8 ehdr, u8 ecnt, u8 elen, int idx,
|
/linux-master/arch/x86/pci/ |
H A D | i386.c | 72 pcibios_save_fw_addr(struct pci_dev *dev, int idx, resource_size_t fw_addr) argument 89 map->fw_addr[idx] = fw_addr; 95 map->fw_addr[idx] = fw_addr; 99 resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx) argument 111 fw_addr = map->fw_addr[idx]; 211 int idx; local 214 for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) { 215 r = &dev->resource[idx]; 251 int idx, disabled, i; local [all...] |
/linux-master/include/linux/ |
H A D | cpuidle.h | 186 extern void cpuidle_driver_state_disabled(struct cpuidle_driver *drv, int idx, 224 int idx, bool disable) { } 308 idx, \ 314 if (!idx) { \ 316 return idx; \ 331 __ret ? -1 : idx; \ 334 #define CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx) \ 335 __CPU_PM_CPU_IDLE_ENTER(low_level_idle_enter, idx, idx, 0, 0) 337 #define CPU_PM_CPU_IDLE_ENTER_RETENTION(low_level_idle_enter, idx) \ 223 cpuidle_driver_state_disabled(struct cpuidle_driver *drv, int idx, bool disable) argument [all...] |
/linux-master/drivers/net/can/dev/ |
H A D | skb.c | 48 unsigned int idx, unsigned int frame_len) 52 if (idx >= priv->echo_skb_max) { 54 __func__, idx, priv->echo_skb_max); 67 if (!priv->echo_skb[idx]) { 85 priv->echo_skb[idx] = skb; 88 netdev_err(dev, "%s: BUG! echo_skb %d is occupied!\n", __func__, idx); 98 __can_get_echo_skb(struct net_device *dev, unsigned int idx, argument 103 if (idx >= priv->echo_skb_max) { 105 __func__, idx, priv->echo_skb_max); 109 if (priv->echo_skb[idx]) { 47 can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, unsigned int idx, unsigned int frame_len) argument 146 can_get_echo_skb(struct net_device *dev, unsigned int idx, unsigned int *frame_len_ptr) argument 170 can_free_echo_skb(struct net_device *dev, unsigned int idx, unsigned int *frame_len_ptr) argument [all...] |
/linux-master/drivers/net/ethernet/ibm/emac/ |
H A D | rgmii.c | 36 #define RGMII_FER_MASK(idx) (0x7 << ((idx) * 4)) 37 #define RGMII_FER_RTBI(idx) (0x4 << ((idx) * 4)) 38 #define RGMII_FER_RGMII(idx) (0x5 << ((idx) * 4)) 39 #define RGMII_FER_TBI(idx) (0x6 << ((idx) * 4)) 40 #define RGMII_FER_GMII(idx) (0x7 << ((idx) * [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | xsk_xdp_progs.c | 16 static unsigned int idx; variable 27 if (idx++ % 2) 66 idx = ((unsigned int)(eth->h_dest[5])) / 2; 67 if (idx > MAX_SOCKETS) 70 return bpf_redirect_map(&xsk, idx, XDP_DROP);
|
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | papr_platform_attributes.c | 236 int ret, idx, i, max_esi_attrs = CURR_MAX_ESI_ATTRS; local 315 for (idx = 0; idx < num_attrs; idx++) { 316 papr_groups[idx].pg.attrs = kcalloc(KOBJ_MAX_ATTRS + 1, 317 sizeof(*papr_groups[idx].pg.attrs), 319 if (!papr_groups[idx].pg.attrs) 322 papr_groups[idx].pg.name = kasprintf(GFP_KERNEL, "%lld", 323 be64_to_cpu(esi_attrs[idx].id)); 324 if (papr_groups[idx] [all...] |
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
H A D | gk104.c | 145 read_clk(struct gk104_clk *clk, int idx) argument 148 u32 sctl = nvkm_rd32(device, 0x137250 + (idx * 4)); 151 if (idx < 7) { 153 if (ssel & (1 << idx)) { 154 sclk = read_pll(clk, 0x137000 + (idx * 0x20)); 157 sclk = read_div(clk, idx, 0x137160, 0x1371d0); 161 u32 ssrc = nvkm_rd32(device, 0x137160 + (idx * 0x04)); 163 sclk = read_div(clk, idx, 0x137160, 0x1371d0); 172 sclk = read_div(clk, idx, 0x137160, 0x1371d0); 223 calc_div(struct gk104_clk *clk, int idx, u3 argument 234 calc_src(struct gk104_clk *clk, int idx, u32 freq, u32 *dsrc, u32 *ddiv) argument 263 calc_pll(struct gk104_clk *clk, int idx, u32 freq, u32 *coef) argument 287 calc_clk(struct gk104_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) argument 357 gk104_clk_prog_0(struct gk104_clk *clk, int idx) argument 368 gk104_clk_prog_1_0(struct gk104_clk *clk, int idx) argument 379 gk104_clk_prog_1_1(struct gk104_clk *clk, int idx) argument 386 gk104_clk_prog_2(struct gk104_clk *clk, int idx) argument 411 gk104_clk_prog_3(struct gk104_clk *clk, int idx) argument 422 gk104_clk_prog_4_0(struct gk104_clk *clk, int idx) argument 437 gk104_clk_prog_4_1(struct gk104_clk *clk, int idx) argument [all...] |
/linux-master/fs/bcachefs/ |
H A D | journal.h | 126 return j->buf + j->reservations.idx; 146 static inline int journal_state_count(union journal_res_state s, int idx) argument 148 switch (idx) { 159 s->buf0_count += s->idx == 0; 160 s->buf1_count += s->idx == 1; 161 s->buf2_count += s->idx == 2; 162 s->buf3_count += s->idx == 3; 196 return vstruct_idx(j->buf[res->idx].data, res->offset); 253 static inline union journal_res_state journal_state_buf_put(struct journal *j, unsigned idx) argument 258 .buf0_count = idx 270 __bch2_journal_buf_put(struct journal *j, unsigned idx, u64 seq) argument 279 bch2_journal_buf_put(struct journal *j, unsigned idx, u64 seq) argument [all...] |
/linux-master/drivers/perf/ |
H A D | qcom_l3_pmu.c | 196 int idx = event->hw.idx; local 202 gang |= GANG_EN(idx + 1); 207 writel_relaxed(0, l3pmu->regs + L3_HML3_PM_EVCNTR(idx + 1)); 208 writel_relaxed(0, l3pmu->regs + L3_HML3_PM_EVCNTR(idx)); 214 writel_relaxed(EVSEL(0), l3pmu->regs + L3_HML3_PM_EVTYPE(idx + 1)); 215 writel_relaxed(EVSEL(evsel), l3pmu->regs + L3_HML3_PM_EVTYPE(idx)); 218 writel_relaxed(PMCNT_RESET, l3pmu->regs + L3_HML3_PM_CNTCTL(idx + 1)); 219 writel_relaxed(PMCNTENSET(idx + 1), l3pmu->regs + L3_M_BC_CNTENSET); 220 writel_relaxed(PMCNT_RESET, l3pmu->regs + L3_HML3_PM_CNTCTL(idx)); 228 int idx = event->hw.idx; local 242 int idx = event->hw.idx; local 277 int idx = event->hw.idx; local 303 int idx = event->hw.idx; local 319 int idx = event->hw.idx; local 393 int idx; local 552 int idx; local [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | tx-gen2.c | 36 int i, cmd_pos, idx; local 72 idx = -EINVAL; 84 idx = -EINVAL; 95 idx = -EINVAL; 111 idx = -EINVAL; 117 idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); 126 idx = -ENOSPC; 130 out_cmd = txq->entries[idx].cmd; 131 out_meta = &txq->entries[idx].meta; 194 cmd_size, txq->write_ptr, idx, tran [all...] |
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_syncmap.c | 154 unsigned int idx; local 188 idx = __sync_leaf_idx(p, id); 189 if (!(p->bitmap & BIT(idx))) 192 return seqno_later(__sync_seqno(p)[idx], seqno); 213 unsigned int idx = __sync_leaf_idx(p, id); local 215 p->bitmap |= BIT(idx); 216 __sync_seqno(p)[idx] = seqno; 220 unsigned int idx, 223 p->bitmap |= BIT(idx); 224 __sync_child(p)[idx] 219 __sync_set_child(struct i915_syncmap *p, unsigned int idx, struct i915_syncmap *child) argument 230 unsigned int idx; local [all...] |