Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/linux-4.19.296/drivers/clk/
Dclk-divider.c31 static unsigned int _get_table_maxdiv(const struct clk_div_table *table, in _get_table_maxdiv() argument
37 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
43 static unsigned int _get_table_mindiv(const struct clk_div_table *table) in _get_table_mindiv() argument
48 for (clkt = table; clkt->div; clkt++) in _get_table_mindiv()
54 static unsigned int _get_maxdiv(const struct clk_div_table *table, u8 width, in _get_maxdiv() argument
61 if (table) in _get_maxdiv()
62 return _get_table_maxdiv(table, width); in _get_maxdiv()
66 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
71 for (clkt = table; clkt->div; clkt++) in _get_table_div()
77 static unsigned int _get_div(const struct clk_div_table *table, in _get_div() argument
[all …]
/linux-4.19.296/drivers/clk/ti/
Ddivider.c31 static unsigned int _get_table_maxdiv(const struct clk_div_table *table) in _get_table_maxdiv() argument
36 for (clkt = table; clkt->div; clkt++) in _get_table_maxdiv()
48 if (divider->table) in _get_maxdiv()
49 return _get_table_maxdiv(divider->table); in _get_maxdiv()
53 static unsigned int _get_table_div(const struct clk_div_table *table, in _get_table_div() argument
58 for (clkt = table; clkt->div; clkt++) in _get_table_div()
70 if (divider->table) in _get_div()
71 return _get_table_div(divider->table, val); in _get_div()
75 static unsigned int _get_table_val(const struct clk_div_table *table, in _get_table_val() argument
80 for (clkt = table; clkt->div; clkt++) in _get_table_val()
[all …]
/linux-4.19.296/fs/proc/
Dproc_sysctl.c184 struct ctl_node *node, struct ctl_table *table) in init_header() argument
186 head->ctl_table = table; in init_header()
187 head->ctl_table_arg = table; in init_header()
199 for (entry = table; entry->procname; entry++, node++) in init_header()
446 static int sysctl_perm(struct ctl_table_header *head, struct ctl_table *table, int op) in sysctl_perm() argument
452 mode = root->permissions(head, table); in sysctl_perm()
454 mode = table->mode; in sysctl_perm()
460 struct ctl_table_header *head, struct ctl_table *table) in proc_sys_make_inode() argument
481 ei->sysctl_entry = table; in proc_sys_make_inode()
487 inode->i_mode = table->mode; in proc_sys_make_inode()
[all …]
/linux-4.19.296/include/linux/
Dsysctl.h51 extern int proc_douintvec_minmax(struct ctl_table *table, int write,
62 extern int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int,
168 struct ctl_table *table,
170 int (*permissions)(struct ctl_table_header *head, struct ctl_table *table);
189 const char *path, struct ctl_table *table);
192 const struct ctl_path *path, struct ctl_table *table);
193 struct ctl_table_header *register_sysctl(const char *path, struct ctl_table *table);
194 struct ctl_table_header *register_sysctl_table(struct ctl_table * table);
196 struct ctl_table *table);
198 void unregister_sysctl_table(struct ctl_table_header * table);
[all …]
Ddevcoredump.h37 static inline void _devcd_free_sgtable(struct scatterlist *table) in _devcd_free_sgtable() argument
45 iter = table; in _devcd_free_sgtable()
46 for_each_sg(table, iter, sg_nents(table), i) { in _devcd_free_sgtable()
53 iter = table; in _devcd_free_sgtable()
54 delete_iter = table; /* always points on a head of a table */ in _devcd_free_sgtable()
79 void dev_coredumpsg(struct device *dev, struct scatterlist *table,
98 static inline void dev_coredumpsg(struct device *dev, struct scatterlist *table, in dev_coredumpsg() argument
101 _devcd_free_sgtable(table); in dev_coredumpsg()
Dcpufreq.h585 struct cpufreq_frequency_table **table);
587 struct cpufreq_frequency_table **table);
591 **table) in dev_pm_opp_init_cpufreq_table()
598 **table) in dev_pm_opp_free_cpufreq_table()
609 #define cpufreq_for_each_entry(pos, table) \ argument
610 for (pos = table; pos->frequency != CPUFREQ_TABLE_END; pos++)
620 #define cpufreq_for_each_entry_idx(pos, table, idx) \ argument
621 for (pos = table, idx = 0; pos->frequency != CPUFREQ_TABLE_END; \
631 #define cpufreq_for_each_valid_entry(pos, table) \ argument
632 for (pos = table; pos->frequency != CPUFREQ_TABLE_END; pos++) \
[all …]
/linux-4.19.296/drivers/clk/tegra/
Dcvb.c64 static int build_opp_table(struct device *dev, const struct cvb_table *table, in build_opp_table() argument
67 const struct rail_alignment *align = &table->alignment; in build_opp_table()
70 min_mv = round_voltage(table->min_millivolts, align, UP); in build_opp_table()
71 max_mv = round_voltage(table->max_millivolts, align, DOWN); in build_opp_table()
74 const struct cvb_table_freq_entry *entry = &table->entries[i]; in build_opp_table()
79 dfll_mv = get_cvb_voltage(speedo_value, table->speedo_scale, in build_opp_table()
81 dfll_mv = round_cvb_voltage(dfll_mv, table->voltage_scale, in build_opp_table()
119 const struct cvb_table *table = &tables[i]; in tegra_cvb_add_opp_table() local
121 if (table->speedo_id != -1 && table->speedo_id != speedo_id) in tegra_cvb_add_opp_table()
124 if (table->process_id != -1 && table->process_id != process_id) in tegra_cvb_add_opp_table()
[all …]
/linux-4.19.296/lib/
Dcrc8.c29 void crc8_populate_msb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_msb()
35 table[0] = 0; in crc8_populate_msb()
40 table[i+j] = table[j] ^ t; in crc8_populate_msb()
51 void crc8_populate_lsb(u8 table[CRC8_TABLE_SIZE], u8 polynomial) in crc8_populate_lsb()
56 table[0] = 0; in crc8_populate_lsb()
61 table[i+j] = table[j] ^ t; in crc8_populate_lsb()
74 u8 crc8(const u8 table[CRC8_TABLE_SIZE], u8 *pdata, size_t nbytes, u8 crc) in crc8()
78 crc = table[(crc ^ *pdata++) & 0xff]; in crc8()
Dsg_pool.c79 void sg_free_table_chained(struct sg_table *table, bool first_chunk) in sg_free_table_chained() argument
81 if (first_chunk && table->orig_nents <= SG_CHUNK_SIZE) in sg_free_table_chained()
83 __sg_free_table(table, SG_CHUNK_SIZE, first_chunk, sg_pool_free); in sg_free_table_chained()
98 int sg_alloc_table_chained(struct sg_table *table, int nents, in sg_alloc_table_chained() argument
107 table->nents = table->orig_nents = nents; in sg_alloc_table_chained()
108 sg_init_table(table->sgl, nents); in sg_alloc_table_chained()
113 ret = __sg_alloc_table(table, nents, SG_CHUNK_SIZE, in sg_alloc_table_chained()
116 sg_free_table_chained(table, (bool)first_chunk); in sg_alloc_table_chained()
/linux-4.19.296/fs/squashfs/
Dxattr_id.c77 __le64 *table; in squashfs_read_xattr_id_table() local
108 table = squashfs_read_table(sb, start, len); in squashfs_read_xattr_id_table()
109 if (IS_ERR(table)) in squashfs_read_xattr_id_table()
110 return table; in squashfs_read_xattr_id_table()
122 start = le64_to_cpu(table[n]); in squashfs_read_xattr_id_table()
123 end = le64_to_cpu(table[n + 1]); in squashfs_read_xattr_id_table()
127 kfree(table); in squashfs_read_xattr_id_table()
132 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_xattr_id_table()
135 kfree(table); in squashfs_read_xattr_id_table()
139 if (*xattr_table_start >= le64_to_cpu(table[0])) { in squashfs_read_xattr_id_table()
[all …]
Did.c79 __le64 *table; in squashfs_read_id_index_table() local
97 table = squashfs_read_table(sb, id_table_start, length); in squashfs_read_id_index_table()
98 if (IS_ERR(table)) in squashfs_read_id_index_table()
99 return table; in squashfs_read_id_index_table()
110 start = le64_to_cpu(table[n]); in squashfs_read_id_index_table()
111 end = le64_to_cpu(table[n + 1]); in squashfs_read_id_index_table()
115 kfree(table); in squashfs_read_id_index_table()
120 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_id_index_table()
123 kfree(table); in squashfs_read_id_index_table()
127 return table; in squashfs_read_id_index_table()
Dexport.c134 __le64 *table; in squashfs_read_inode_lookup_table() local
152 table = squashfs_read_table(sb, lookup_table_start, length); in squashfs_read_inode_lookup_table()
153 if (IS_ERR(table)) in squashfs_read_inode_lookup_table()
154 return table; in squashfs_read_inode_lookup_table()
165 start = le64_to_cpu(table[n]); in squashfs_read_inode_lookup_table()
166 end = le64_to_cpu(table[n + 1]); in squashfs_read_inode_lookup_table()
171 kfree(table); in squashfs_read_inode_lookup_table()
176 start = le64_to_cpu(table[indexes - 1]); in squashfs_read_inode_lookup_table()
180 kfree(table); in squashfs_read_inode_lookup_table()
184 return table; in squashfs_read_inode_lookup_table()
Dfragment.c80 __le64 *table; in squashfs_read_fragment_index_table() local
90 table = squashfs_read_table(sb, fragment_table_start, length); in squashfs_read_fragment_index_table()
96 if (!IS_ERR(table) && le64_to_cpu(table[0]) >= fragment_table_start) { in squashfs_read_fragment_index_table()
97 kfree(table); in squashfs_read_fragment_index_table()
101 return table; in squashfs_read_fragment_index_table()
/linux-4.19.296/drivers/clk/hisilicon/
Dclkdivider-hi6220.c42 const struct clk_div_table *table; member
58 return divider_recalc_rate(hw, parent_rate, val, dclk->table, in hi6220_clkdiv_recalc_rate()
67 return divider_round_rate(hw, rate, prate, dclk->table, in hi6220_clkdiv_round_rate()
79 value = divider_get_val(rate, parent_rate, dclk->table, in hi6220_clkdiv_set_rate()
111 struct clk_div_table *table; in hi6220_register_clkdiv() local
124 table = kcalloc(max_div + 1, sizeof(*table), GFP_KERNEL); in hi6220_register_clkdiv()
125 if (!table) { in hi6220_register_clkdiv()
131 table[i].div = min_div + i; in hi6220_register_clkdiv()
132 table[i].val = table[i].div - 1; in hi6220_register_clkdiv()
148 div->table = table; in hi6220_register_clkdiv()
[all …]
/linux-4.19.296/drivers/cpufreq/
Dfreq_table.c23 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() local
25 if (!table) in policy_has_boost_freq()
28 cpufreq_for_each_valid_entry(pos, table) in policy_has_boost_freq()
37 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_cpuinfo() argument
44 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_cpuinfo()
51 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo()
68 struct cpufreq_frequency_table *table) in cpufreq_frequency_table_verify() argument
79 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_verify()
129 struct cpufreq_frequency_table *table = policy->freq_table; in cpufreq_table_index_unsorted() local
146 cpufreq_for_each_valid_entry_idx(pos, table, i) { in cpufreq_table_index_unsorted()
[all …]
Dqoriq-cpufreq.c33 struct cpufreq_frequency_table *table; member
139 struct cpufreq_frequency_table table; in freq_table_sort() local
155 table.driver_data = freq_table[i].driver_data; in freq_table_sort()
156 table.frequency = freq_table[i].frequency; in freq_table_sort()
159 freq_table[ind].driver_data = table.driver_data; in freq_table_sort()
160 freq_table[ind].frequency = table.frequency; in freq_table_sort()
172 struct cpufreq_frequency_table *table; in qoriq_cpufreq_cpu_init() local
198 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
199 if (!table) in qoriq_cpufreq_cpu_init()
206 table[i].frequency = freq / 1000; in qoriq_cpufreq_cpu_init()
[all …]
Dsparc-us3-cpufreq.c24 struct cpufreq_frequency_table table[4]; member
125 struct cpufreq_frequency_table *table = in us3_freq_cpu_init() local
126 &us3_freq_table[cpu].table[0]; in us3_freq_cpu_init()
128 table[0].driver_data = 0; in us3_freq_cpu_init()
129 table[0].frequency = clock_tick / 1; in us3_freq_cpu_init()
130 table[1].driver_data = 1; in us3_freq_cpu_init()
131 table[1].frequency = clock_tick / 2; in us3_freq_cpu_init()
132 table[2].driver_data = 2; in us3_freq_cpu_init()
133 table[2].frequency = clock_tick / 32; in us3_freq_cpu_init()
134 table[3].driver_data = 0; in us3_freq_cpu_init()
[all …]
Dsparc-us2e-cpufreq.c25 struct cpufreq_frequency_table table[6]; member
277 struct cpufreq_frequency_table *table = in us2e_freq_cpu_init() local
278 &us2e_freq_table[cpu].table[0]; in us2e_freq_cpu_init()
280 table[0].driver_data = 0; in us2e_freq_cpu_init()
281 table[0].frequency = clock_tick / 1; in us2e_freq_cpu_init()
282 table[1].driver_data = 1; in us2e_freq_cpu_init()
283 table[1].frequency = clock_tick / 2; in us2e_freq_cpu_init()
284 table[2].driver_data = 2; in us2e_freq_cpu_init()
285 table[2].frequency = clock_tick / 4; in us2e_freq_cpu_init()
286 table[2].driver_data = 3; in us2e_freq_cpu_init()
[all …]
Dtegra186-cpufreq.c51 struct cpufreq_frequency_table *table; member
81 policy->freq_table = cluster->table; in tegra186_cpufreq_init()
115 struct cpufreq_frequency_table *table; in init_vhint_table() local
141 table = ERR_PTR(err); in init_vhint_table()
158 table = devm_kcalloc(&pdev->dev, num_rates + 1, sizeof(*table), in init_vhint_table()
160 if (!table) { in init_vhint_table()
161 table = ERR_PTR(-ENOMEM); in init_vhint_table()
180 point = &table[j++]; in init_vhint_table()
186 table[j].frequency = CPUFREQ_TABLE_END; in init_vhint_table()
191 return table; in init_vhint_table()
[all …]
Dpxa3xx-cpufreq.c93 struct cpufreq_frequency_table *table; in setup_freqs_table() local
96 table = kcalloc(num + 1, sizeof(*table), GFP_KERNEL); in setup_freqs_table()
97 if (table == NULL) in setup_freqs_table()
101 table[i].driver_data = i; in setup_freqs_table()
102 table[i].frequency = freqs[i].cpufreq_mhz * 1000; in setup_freqs_table()
104 table[num].driver_data = i; in setup_freqs_table()
105 table[num].frequency = CPUFREQ_TABLE_END; in setup_freqs_table()
109 pxa3xx_freqs_table = table; in setup_freqs_table()
111 policy->freq_table = table; in setup_freqs_table()
/linux-4.19.296/drivers/clk/actions/
Dowl-pll.c31 static unsigned long _get_table_rate(const struct clk_pll_table *table, in _get_table_rate() argument
36 for (clkt = table; clkt->rate; clkt++) in _get_table_rate()
44 const struct clk_pll_table *table, unsigned long rate) in _get_pll_table() argument
48 for (clkt = table; clkt->rate; clkt++) { in _get_pll_table()
50 table = clkt; in _get_pll_table()
53 table = clkt; in _get_pll_table()
56 return table; in _get_pll_table()
67 if (pll_hw->table) { in owl_pll_round_rate()
68 clkt = _get_pll_table(pll_hw->table, rate); in owl_pll_round_rate()
89 if (pll_hw->table) { in owl_pll_recalc_rate()
[all …]
Dowl-factor.c17 static unsigned int _get_table_maxval(const struct clk_factor_table *table) in _get_table_maxval() argument
22 for (clkt = table; clkt->div; clkt++) in _get_table_maxval()
28 static int _get_table_div_mul(const struct clk_factor_table *table, in _get_table_div_mul() argument
33 for (clkt = table; clkt->div; clkt++) { in _get_table_div_mul()
44 static unsigned int _get_table_val(const struct clk_factor_table *table, in _get_table_val() argument
51 for (clkt = table; clkt->div; clkt++) { in _get_table_val()
62 val = _get_table_maxval(table); in _get_table_val()
71 const struct clk_factor_table *clkt = factor_hw->table; in owl_clk_val_best()
85 for (clkt = factor_hw->table; clkt->div; clkt++) { in owl_clk_val_best()
125 const struct clk_factor_table *clkt = factor_hw->table; in owl_factor_helper_round_rate()
[all …]
/linux-4.19.296/drivers/clk/sunxi-ng/
Dccu_sdm.c40 if (sdm->table[i].rate == rate) in ccu_sdm_helper_enable()
41 writel(sdm->table[i].pattern, in ccu_sdm_helper_enable()
103 if (sdm->table[i].rate == rate) in ccu_sdm_helper_has_rate()
131 if (sdm->table[i].pattern == reg && in ccu_sdm_helper_read_rate()
132 sdm->table[i].m == m && sdm->table[i].n == n) in ccu_sdm_helper_read_rate()
133 return sdm->table[i].rate; in ccu_sdm_helper_read_rate()
150 if (sdm->table[i].rate == rate) { in ccu_sdm_helper_get_factors()
151 *m = sdm->table[i].m; in ccu_sdm_helper_get_factors()
152 *n = sdm->table[i].n; in ccu_sdm_helper_get_factors()
/linux-4.19.296/include/linux/sched/
Dsysctl.h15 extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
45 int sched_proc_update_handler(struct ctl_table *table, int write,
70 extern int sched_rr_handler(struct ctl_table *table, int write,
74 extern int sched_rt_handler(struct ctl_table *table, int write,
78 extern int sysctl_numa_balancing(struct ctl_table *table, int write,
82 extern int sysctl_schedstats(struct ctl_table *table, int write,
/linux-4.19.296/drivers/sh/clk/
Dcpg.c132 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div_recalc() local
135 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div_recalc()
136 table, clk->arch_flags ? &clk->arch_flags : NULL); in sh_clk_div_recalc()
242 struct clk_div_table *table, struct sh_clk_ops *ops) in sh_clk_div_register_ops() argument
246 int nr_divs = table->div_mult_table->nr_divisors; in sh_clk_div_register_ops()
262 clkp->priv = table; in sh_clk_div_register_ops()
296 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div6_set_parent() local
321 clk_rate_table_build(clk, clk->freq_table, table->nr_divisors, in sh_clk_div6_set_parent()
322 table, NULL); in sh_clk_div6_set_parent()
353 struct clk_div_mult_table *table = clk_to_div_mult_table(clk); in sh_clk_div4_set_parent() local
[all …]

12345678910>>...13