/linux-master/arch/sh/kernel/cpu/sh2a/ |
H A D | clock-sh7203.c | 38 int idx = (__raw_readw(FREQCR) & 0x0007); local 39 return clk->parent->rate / pfc_divisors[idx]; 48 int idx = (__raw_readw(FREQCR) & 0x0007); local 49 return clk->parent->rate / pfc_divisors[idx-2]; 67 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) argument 76 if (idx < ARRAY_SIZE(sh7203_clk_ops)) 77 *ops = sh7203_clk_ops[idx];
|
H A D | clock-sh7206.c | 35 int idx = (__raw_readw(FREQCR) & 0x0007); local 36 return clk->parent->rate / pfc_divisors[idx]; 54 int idx = (__raw_readw(FREQCR) & 0x0007); local 55 return clk->parent->rate / ifc_divisors[idx]; 69 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) argument 78 if (idx < ARRAY_SIZE(sh7206_clk_ops)) 79 *ops = sh7206_clk_ops[idx];
|
/linux-master/drivers/crypto/ccree/ |
H A D | cc_sram_mgr.c | 81 unsigned int idx = *seq_len; local 83 for (i = 0; i < nelement; i++, idx++) { 84 hw_desc_init(&seq[idx]); 85 set_din_const(&seq[idx], src[i], sizeof(u32)); 86 set_dout_sram(&seq[idx], dst + (i * sizeof(u32)), sizeof(u32)); 87 set_flow_mode(&seq[idx], BYPASS); 90 *seq_len = idx;
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_pool.c | 15 u32 sparx5_pool_idx_to_id(u32 idx) argument 17 return ++idx; 55 int sparx5_pool_get_with_idx(struct sparx5_pool_entry *pool, int size, u32 idx, argument 66 if (e_itr->idx == idx && e_itr->ref_cnt > 0) { 76 e_itr->idx = idx;
|
/linux-master/arch/sh/mm/ |
H A D | kmap.c | 31 enum fixed_addresses idx; local 39 idx = FIX_CMAP_END - 43 vaddr = __fix_to_virt(idx); 45 BUG_ON(!pte_none(*(kmap_coherent_pte - idx))); 46 set_pte(kmap_coherent_pte - idx, mk_pte(page, PAGE_KERNEL)); 55 enum fixed_addresses idx = __virt_to_fix(vaddr); local 60 pte_clear(&init_mm, vaddr, kmap_coherent_pte - idx);
|
/linux-master/drivers/gpu/drm/xe/display/ |
H A D | xe_dsb_buffer.c | 18 void intel_dsb_buffer_write(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val) argument 20 iosys_map_wr(&dsb_buf->vma->bo->vmap, idx * 4, u32, val); 23 u32 intel_dsb_buffer_read(struct intel_dsb_buffer *dsb_buf, u32 idx) argument 25 return iosys_map_rd(&dsb_buf->vma->bo->vmap, idx * 4, u32); 28 void intel_dsb_buffer_memset(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val, size_t size) argument 30 WARN_ON(idx > (dsb_buf->buf_size - size) / sizeof(*dsb_buf->cmd_buf)); 32 iosys_map_memset(&dsb_buf->vma->bo->vmap, idx * 4, val, size);
|
/linux-master/arch/sh/kernel/cpu/sh4a/ |
H A D | clock-sh7763.c | 33 int idx = ((__raw_readl(FRQCR) >> 4) & 0x07); local 34 return clk->parent->rate / p0fc_divisors[idx]; 43 int idx = ((__raw_readl(FRQCR) >> 16) & 0x07); local 44 return clk->parent->rate / bfc_divisors[idx]; 62 void __init arch_init_clk_ops(struct sh_clk_ops **ops, int idx) argument 64 if (idx < ARRAY_SIZE(sh7763_clk_ops)) 65 *ops = sh7763_clk_ops[idx]; 70 int idx = ((__raw_readl(FRQCR) >> 20) & 0x07); local 71 return clk->parent->rate / cfc_divisors[idx];
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_ringbuffer.c | 252 ssize_t dvb_ringbuffer_pkt_read_user(struct dvb_ringbuffer *rbuf, size_t idx, argument 259 pktlen = rbuf->data[idx] << 8; 260 pktlen |= rbuf->data[(idx + 1) % rbuf->size]; 264 idx = (idx + DVB_RINGBUFFER_PKTHDRSIZE + offset) % rbuf->size; 266 split = ((idx + len) > rbuf->size) ? rbuf->size - idx : 0; 268 if (copy_to_user(buf, rbuf->data+idx, split)) 272 idx = 0; 274 if (copy_to_user(buf, rbuf->data+idx, tod 280 dvb_ringbuffer_pkt_read(struct dvb_ringbuffer *rbuf, size_t idx, int offset, u8* buf, size_t len) argument 305 dvb_ringbuffer_pkt_dispose(struct dvb_ringbuffer *rbuf, size_t idx) argument 324 dvb_ringbuffer_pkt_next(struct dvb_ringbuffer *rbuf, size_t idx, size_t* pktlen) argument [all...] |
/linux-master/drivers/crypto/caam/ |
H A D | key_gen.h | 20 u32 idx; local 22 idx = (hash & OP_ALG_ALGSEL_SUBMASK) >> OP_ALG_ALGSEL_SHIFT; 24 return (u32)(mdpadlen[idx] * 2);
|
/linux-master/drivers/char/ipmi/ |
H A D | ipmi_si_port_io.c | 54 int idx; local 57 for (idx = 0; idx < io->io_size; idx++) 58 release_region(addr + idx * io->regspacing, 66 int idx; local 100 for (idx = 0; idx < io->io_size; idx++) { 101 if (request_region(addr + idx * i [all...] |
/linux-master/include/net/ |
H A D | netprio_cgroup.h | 25 u32 idx; local 29 idx = css->id; 31 return idx;
|
/linux-master/drivers/staging/media/atomisp/pci/camera/pipe/src/ |
H A D | pipe_util.c | 45 unsigned int idx, 48 assert(idx < IA_CSS_BINARY_MAX_OUTPUT_PORTS); 50 frames[idx] = frame; 43 ia_css_pipe_util_set_output_frames( struct ia_css_frame *frames[], unsigned int idx, struct ia_css_frame *frame) argument
|
/linux-master/arch/csky/mm/ |
H A D | tlb.c | 80 int idx; local 85 idx = read_mmu_index(); 86 if (idx >= 0) 120 int idx; local 125 idx = read_mmu_index(); 126 if (idx >= 0) 151 int oldpid, idx; local 158 idx = read_mmu_index(); 159 if (idx >= 0) 182 int oldpid, idx; local [all...] |
/linux-master/tools/lib/perf/include/perf/ |
H A D | threadmap.h | 13 LIBPERF_API void perf_thread_map__set_pid(struct perf_thread_map *map, int idx, pid_t pid); 14 LIBPERF_API char *perf_thread_map__comm(struct perf_thread_map *map, int idx); 16 LIBPERF_API pid_t perf_thread_map__pid(struct perf_thread_map *map, int idx);
|
/linux-master/include/linux/ |
H A D | rbtree_latch.h | 70 __lt_from_rb(struct rb_node *node, int idx) argument 72 return container_of(node, struct latch_tree_node, node[idx]); 76 __lt_insert(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx, argument 79 struct rb_root *root = <r->tree[idx]; 81 struct rb_node *node = <n->node[idx]; 87 ltp = __lt_from_rb(parent, idx); 100 __lt_erase(struct latch_tree_node *ltn, struct latch_tree_root *ltr, int idx) argument 102 rb_erase(<n->node[idx], <r->tree[idx]); 106 __lt_find(void *key, struct latch_tree_root *ltr, int idx, argument [all...] |
/linux-master/tools/perf/trace/beauty/ |
H A D | x86_arch_prctl.sh | 10 idx=$1 14 printf "#define x86_arch_prctl_codes_%d_offset %s\n" $idx $first_entry 15 printf "static const char *x86_arch_prctl_codes_%d[] = {\n" $idx
|
/linux-master/drivers/gpu/drm/i915/display/ |
H A D | intel_dsb_buffer.h | 21 void intel_dsb_buffer_write(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val); 22 u32 intel_dsb_buffer_read(struct intel_dsb_buffer *dsb_buf, u32 idx); 23 void intel_dsb_buffer_memset(struct intel_dsb_buffer *dsb_buf, u32 idx, u32 val, size_t size);
|
/linux-master/drivers/clk/baikal-t1/ |
H A D | clk-ccu-pll.c | 89 int idx; local 91 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { 92 if (pll_info[idx].id == clk_id) 93 return data->plls[idx]; 150 int idx, ret; local 152 for (idx = 0; idx < CCU_PLL_NUM; ++idx) { 197 int idx; local [all...] |
/linux-master/tools/perf/scripts/perl/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | Core.pm | 39 foreach my $idx (sort {$a <=> $b} keys %trace_flags) { 40 if (!$value && !$idx) { 45 if ($idx && ($value & $idx) == $idx) { 49 $string .= "$trace_flags{$idx}"; 51 $value &= ~$idx; 69 foreach my $idx (sort {$a <=> $b} keys %{$flag_fields{$event_name}{$field_name}{"values"}}) { 70 if (!$value && !$idx) { 71 $string .= "$flag_fields{$event_name}{$field_name}{'values'}{$idx}"; [all...] |
/linux-master/security/selinux/ |
H A D | netnode.c | 105 unsigned int idx; local 110 idx = sel_netnode_hashfn_ipv4(*(const __be32 *)addr); 113 idx = sel_netnode_hashfn_ipv6(addr); 120 list_for_each_entry_rcu(node, &sel_netnode_hash[idx].list, list) 147 unsigned int idx; local 151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); 154 idx = sel_netnode_hashfn_ipv6(&node->nsec.addr.ipv6); 163 list_add_rcu(&node->list, &sel_netnode_hash[idx].list); 164 if (sel_netnode_hash[idx].size == SEL_NETNODE_HASH_BKT_LIMIT) { 168 list_tail_rcu(&sel_netnode_hash[idx] 275 unsigned int idx; local [all...] |
/linux-master/drivers/thermal/ |
H A D | db8500_thermal.c | 81 unsigned int idx, 87 th->cur_index = idx; 101 unsigned int idx = th->cur_index; local 104 if (idx == 0) 108 if (idx == 1) { 112 next_high = db8500_thermal_points[idx - 1]; 113 next_low = db8500_thermal_points[idx - 2]; 115 idx -= 1; 117 db8500_thermal_update_config(th, idx, next_low, next_high); 129 unsigned int idx local 80 db8500_thermal_update_config(struct db8500_thermal_zone *th, unsigned int idx, unsigned long next_low, unsigned long next_high) argument [all...] |
/linux-master/drivers/net/wireless/mediatek/mt7601u/ |
H A D | main.c | 49 unsigned int idx = 0; local 50 unsigned int wcid = GROUP_WCID(idx); 55 * - shift vif idx 57 mvif->idx = idx; 65 mvif->group_wcid.idx = wcid; 76 unsigned int wcid = mvif->group_wcid.idx; 189 int i, idx = 0; local 192 idx = ffs(~dev->wcid_mask[i]); 193 if (!idx) 216 int idx = 0; local 245 int idx = msta->wcid.idx; local 300 int idx = key->keyidx; local [all...] |
/linux-master/drivers/cpuidle/governors/ |
H A D | teo.c | 387 int idx0 = 0, idx = -1; local 407 idx = 0; 412 idx = 0; 429 if ((!idx && !(drv->states[0].flags & CPUIDLE_FLAG_POLLING) && 431 idx = 0; 435 idx = 1; 456 if (idx < 0) 459 idx = i; 471 if (idx < 0) { 472 idx [all...] |
/linux-master/drivers/media/pci/pt3/ |
H A D | pt3_dma.c | 16 static u32 get_dma_base(int idx) argument 20 i = (idx == 1 || idx == 2) ? 3 - idx : idx; 61 static u8 *next_unit(struct pt3_adapter *adap, int *idx, int *ofs) argument 66 (*idx)++; 67 if (*idx == adap->num_bufs) 68 *idx = 0; 70 return &adap->buffer[*idx] 75 int idx, ofs; local 107 int idx, ofs; local 150 int idx, ofs; local [all...] |
/linux-master/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | irq.c | 173 unsigned int idx; local 180 for (idx = 0; idx < IRQ_N_CHANNEL[ID]; idx++) { 181 if (irq_status & (1U << idx)) 184 if (idx == IRQ_N_CHANNEL[ID]) 188 if (irq_status != (1U << idx)) 192 _HRT_IRQ_CONTROLLER_CLEAR_REG_IDX, 1U << idx); 197 *irq_id = (unsigned int)idx; 324 unsigned int idx; local [all...] |