Home
last modified time | relevance | path

Searched refs:masks (Results 1 – 25 of 165) sorted by relevance

1234567

/linux/drivers/clk/mmp/
H A Dclk-frac.c37 do_div(rate, d->numerator * factor->masks->factor); in clk_factor_determine_rate()
56 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate() local
64 d.numerator = (val >> masks->num_shift) & masks->num_mask; in clk_factor_recalc_rate()
67 d.denominator = (val >> masks->den_shift) & masks->den_mask; in clk_factor_recalc_rate()
72 do_div(rate, d.numerator * factor->masks->factor); in clk_factor_recalc_rate()
82 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_set_rate() local
93 do_div(rate, d->numerator * factor->masks->factor); in clk_factor_set_rate()
104 val &= ~(masks->num_mask << masks->num_shift); in clk_factor_set_rate()
105 val |= (d->numerator & masks->num_mask) << masks->num_shift; in clk_factor_set_rate()
107 val &= ~(masks->den_mask << masks->den_shift); in clk_factor_set_rate()
[all …]
/linux/drivers/clk/spear/
H A Dclk-aux-synth.c79 eqn = (val >> aux->masks->eq_sel_shift) & aux->masks->eq_sel_mask; in clk_aux_recalc_rate()
80 if (eqn == aux->masks->eq1_mask) in clk_aux_recalc_rate()
84 num = (val >> aux->masks->xscale_sel_shift) & in clk_aux_recalc_rate()
85 aux->masks->xscale_sel_mask; in clk_aux_recalc_rate()
88 den *= (val >> aux->masks->yscale_sel_shift) & in clk_aux_recalc_rate()
89 aux->masks->yscale_sel_mask; in clk_aux_recalc_rate()
113 ~(aux->masks->eq_sel_mask << aux->masks->eq_sel_shift); in clk_aux_set_rate()
114 val |= (rtbl[i].eq & aux->masks->eq_sel_mask) << in clk_aux_set_rate()
115 aux->masks->eq_sel_shift; in clk_aux_set_rate()
116 val &= ~(aux->masks->xscale_sel_mask << aux->masks->xscale_sel_shift); in clk_aux_set_rate()
[all …]
/linux/lib/
H A Dgroup_cpus.c47 cpumask_var_t *masks; in alloc_node_to_cpumask() local
50 masks = kzalloc_objs(cpumask_var_t, nr_node_ids); in alloc_node_to_cpumask()
51 if (!masks) in alloc_node_to_cpumask()
55 if (!zalloc_cpumask_var(&masks[node], GFP_KERNEL)) in alloc_node_to_cpumask()
59 return masks; in alloc_node_to_cpumask()
63 free_cpumask_var(masks[node]); in alloc_node_to_cpumask()
64 kfree(masks); in alloc_node_to_cpumask()
68 static void free_node_to_cpumask(cpumask_var_t *masks) in free_node_to_cpumask() argument
73 free_cpumask_var(masks[node]); in free_node_to_cpumask()
74 kfree(masks); in free_node_to_cpumask()
[all …]
/linux/security/landlock/
H A Dfs.c391 * masks case independently, since the !masks-returns-true early-return in in is_nouser_or_private()
418 struct layer_masks *masks, in may_refer()
424 ret = landlock_unmask_layers(domain, id, masks, &rule); in may_refer()
611 static bool is_layer_masks_allowed(const struct layer_masks *masks) in test_scope_to_request_with_exec_some()
613 for (size_t i = 0; i < ARRAY_SIZE(masks->layers); i++) { in test_scope_to_request_with_exec_some()
614 if (masks->layers[i].access) in test_scope_to_request_with_exec_some()
621 * Removes @masks accesses that are not requested. in test_scope_to_request_without_access()
626 struct layer_masks *masks) in test_scope_to_request_without_access()
630 if (WARN_ON_ONCE(!masks)) in test_scope_to_request_without_access()
565 is_layer_masks_allowed(const struct layer_access_masks * masks) is_layer_masks_allowed() argument
576 scope_to_request(const access_mask_t access_request,struct layer_access_masks * masks) scope_to_request() argument
596 struct layer_access_masks masks = {}; test_scope_to_request_with_exec_none() local
607 struct layer_access_masks masks = { test_scope_to_request_with_exec_some() local
622 struct layer_access_masks masks = { test_scope_to_request_without_access() local
639 is_eacces(const struct layer_access_masks * masks,const access_mask_t access_request) is_eacces() argument
661 const struct layer_access_masks masks = {}; test_is_eacces_with_none() local
671 const struct layer_access_masks masks = { test_is_eacces_with_refer() local
683 const struct layer_access_masks masks = { test_is_eacces_with_write() local
949 const struct access_masks masks = { current_check_access_path() local
[all...]
H A Daudit.c186 get_denied_layer(const struct landlock_ruleset * const domain,access_mask_t * const access_request,const struct layer_access_masks * masks) get_denied_layer() argument
207 const struct layer_access_masks masks = { test_get_denied_layer() local
H A Druleset.c631 landlock_unmask_layers(const struct landlock_rule * const rule,struct layer_access_masks * masks) landlock_unmask_layers() argument
683 landlock_init_layer_masks(const struct landlock_ruleset * const domain,const access_mask_t access_request,struct layer_access_masks * const masks,const enum landlock_key_type key_type) landlock_init_layer_masks() argument
H A Druleset.h
H A Ddomain.c129 * landlock_unmask_layers - Remove the access rights in @masks which are in landlock_init_hierarchy_log()
133 * (per-layer) unfulfilled access rights @masks so that all the access rights in landlock_init_hierarchy_log()
138 * @masks: A matrix of unfulfilled access rights for each layer. in get_layer_deny_mask()
143 * remaining unfulfilled access rights and masks has no leftover set bits). in get_layer_deny_mask()
147 struct layer_masks *masks, in get_layer_deny_mask()
152 if (!masks) in get_layer_deny_mask()
173 * progressively clearing bits in @masks. The overall access decision in test_get_layer_deny_mask()
174 * is per-layer: access is granted iff masks->layers[l].access == 0 for in test_get_layer_deny_mask()
185 masks->layers[layer->level - 1].access &= ~layer->access; in landlock_get_deny_masks()
190 masks in landlock_get_deny_masks()
186 landlock_get_deny_masks(const access_mask_t all_existing_optional_access,const access_mask_t optional_access,const struct layer_access_masks * const masks) landlock_get_deny_masks() argument
[all...]
/linux/block/
H A Dblk-mq-cpumap.c61 const struct cpumask *masks; in blk_mq_map_queues() local
64 masks = group_cpus_evenly(qmap->nr_queues, &nr_masks); in blk_mq_map_queues()
65 if (!masks) { in blk_mq_map_queues()
72 for_each_cpu(cpu, &masks[queue % nr_masks]) in blk_mq_map_queues()
75 kfree(masks); in blk_mq_map_queues()
/linux/drivers/virtio/
H A Dvirtio_vdpa.c277 struct cpumask *masks = NULL; in create_affinity_masks() local
290 masks = kzalloc_objs(*masks, nvecs); in create_affinity_masks()
291 if (!masks) in create_affinity_masks()
296 cpumask_setall(&masks[curvec]); in create_affinity_masks()
305 kfree(masks); in create_affinity_masks()
310 cpumask_copy(&masks[curvec + j], &result[j]); in create_affinity_masks()
323 cpumask_setall(&masks[curvec]); in create_affinity_masks()
325 return masks; in create_affinity_masks()
336 struct cpumask *masks; in virtio_vdpa_find_vqs() local
342 masks = create_affinity_masks(nvqs, desc); in virtio_vdpa_find_vqs()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dio/dcn10/
H A Ddcn10_dio.c17 dio10->shifts->field_name, dio10->masks->field_name
39 const struct dcn_dio_mask *masks) in dcn10_dio_construct() argument
46 dio10->masks = masks; in dcn10_dio_construct()
H A Ddcn10_dio.h32 const struct dcn_dio_mask *masks; member
40 const struct dcn_dio_mask *masks);
/linux/drivers/clk/uniphier/
H A Dclk-uniphier-mux.c17 const unsigned int *masks; member
27 return regmap_write_bits(mux->regmap, mux->reg, mux->masks[index], in uniphier_clk_mux_set_parent()
44 if ((mux->masks[i] & val) == mux->vals[i]) in uniphier_clk_mux_get_parent()
77 mux->masks = data->masks; in uniphier_clk_register_mux()
/linux/drivers/net/dsa/microchip/
H A Dksz8.c385 const u32 *masks; in ksz8_r_mib_cnt() local
392 masks = dev->info->masks; in ksz8_r_mib_cnt()
407 if (check & masks[MIB_COUNTER_VALID]) { in ksz8_r_mib_cnt()
409 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8_r_mib_cnt()
421 const u32 *masks; in ksz8795_r_mib_pkt() local
428 masks = dev->info->masks; in ksz8795_r_mib_pkt()
445 if (check & masks[MIB_COUNTER_VALID]) { in ksz8795_r_mib_pkt()
454 if (check & masks[MIB_COUNTER_OVERFLOW]) { in ksz8795_r_mib_pkt()
460 if (check & masks[MIB_COUNTER_OVERFLOW]) in ksz8795_r_mib_pkt()
610 const u32 *masks; in ksz8_valid_dyn_entry() local
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_flex_pipe.c1169 for (i = hw->blk[blk].masks.first; i < hw->blk[blk].masks.first + in ice_prof_has_mask_idx()
1170 hw->blk[blk].masks.count; i++) in ice_prof_has_mask_idx()
1172 if (hw->blk[blk].masks.masks[i].in_use && in ice_prof_has_mask_idx()
1173 hw->blk[blk].masks.masks[i].idx == idx) { in ice_prof_has_mask_idx()
1175 if (hw->blk[blk].masks.masks[i].mask == mask) in ice_prof_has_mask_idx()
1199 ice_prof_has_mask(struct ice_hw *hw, enum ice_block blk, u8 prof, u16 *masks) in ice_prof_has_mask() argument
1205 if (!ice_prof_has_mask_idx(hw, blk, prof, i, masks[i])) in ice_prof_has_mask()
1222 struct ice_fv_word *fv, u16 *masks, bool symm, in ice_find_prof_id_with_mask() argument
1244 if (masks && !ice_prof_has_mask(hw, blk, i, masks)) in ice_find_prof_id_with_mask()
1473 mutex_init(&hw->blk[blk].masks.lock); in ice_init_prof_masks()
[all …]
/linux/scripts/
H A Dgfp-translate81 static const char *masks[] = {
104 (i < ___GFP_LAST_BIT && masks[i]) ?
105 masks[i] : "*** INVALID ***",
/linux/drivers/gpu/drm/amd/display/dc/hubbub/dcn301/
H A Ddcn301_hubbub.c38 hubbub1->shifts->field_name, hubbub1->masks->field_name
48 hubbub1->shifts->field_name, hubbub1->masks->field_name
80 hubbub3->masks = hubbub_mask; in hubbub301_construct()
/linux/net/openvswitch/
H A Dflow_table.c221 new = kzalloc(struct_size(new, masks, size) + in tbl_mask_array_alloc()
227 struct_size(new, masks, size)); in tbl_mask_array_alloc()
257 if (ovsl_dereference(old->masks[i])) in tbl_mask_array_realloc()
258 new->masks[new->count++] = old->masks[i]; in tbl_mask_array_realloc()
288 BUG_ON(ovsl_dereference(ma->masks[ma_count])); in tbl_mask_array_add_mask()
290 rcu_assign_pointer(ma->masks[ma_count], new); in tbl_mask_array_add_mask()
304 if (mask == ovsl_dereference(ma->masks[i])) in tbl_mask_array_del_mask()
314 rcu_assign_pointer(ma->masks[i], ma->masks[ma_coun in tbl_mask_array_del_mask()
[all...]
/linux/arch/loongarch/mm/
H A Dpageattr.c20 struct pageattr_masks *masks = walk->private; in set_pageattr_masks() local
22 new_val &= ~(pgprot_val(masks->clear_mask)); in set_pageattr_masks()
23 new_val |= (pgprot_val(masks->set_mask)); in set_pageattr_masks()
112 struct pageattr_masks masks = { in __set_memory() local
121 ret = walk_kernel_page_table_range(start, end, &pageattr_ops, NULL, &masks); in __set_memory()
/linux/drivers/clk/starfive/
H A Dclk-starfive-jh7110-pll.c103 } masks; member
122 .masks = { \
285 ret->dacpd = (val & info->masks.dacpd) >> info->shifts.dacpd; in jh7110_pll_regvals_get()
286 ret->dsmpd = (val & info->masks.dsmpd) >> info->shifts.dsmpd; in jh7110_pll_regvals_get()
289 ret->fbdiv = (val & info->masks.fbdiv) >> info->shifts.fbdiv; in jh7110_pll_regvals_get()
379 regmap_update_bits(priv->regmap, info->offsets.pd, info->masks.dacpd, in jh7110_pll_set_rate()
381 regmap_update_bits(priv->regmap, info->offsets.pd, info->masks.dsmpd, in jh7110_pll_set_rate()
385 regmap_update_bits(priv->regmap, info->offsets.fbdiv, info->masks.fbdiv, in jh7110_pll_set_rate()
/linux/drivers/gpu/drm/amd/display/dc/hubbub/dcn201/
H A Ddcn201_hubbub.c41 hubbub1->shifts->field_name, hubbub1->masks->field_name
51 hubbub1->shifts->field_name, hubbub1->masks->field_name
103 hubbub->masks = hubbub_mask; in hubbub201_construct()
/linux/tools/perf/trace/beauty/
H A Dprctl.c65 const u8 masks[] = { in syscall_arg__scnprintf_prctl_option() local
78 if (option < ARRAY_SIZE(masks)) in syscall_arg__scnprintf_prctl_option()
79 arg->mask |= masks[option]; in syscall_arg__scnprintf_prctl_option()
/linux/drivers/pci/msi/
H A Dmsi.c295 struct irq_affinity_desc *masks) in msi_setup_msi_desc() argument
316 desc.affinity = masks; in msi_setup_msi_desc()
349 static int __msi_capability_init(struct pci_dev *dev, int nvec, struct irq_affinity_desc *masks) in __msi_capability_init() argument
351 int ret = msi_setup_msi_desc(dev, nvec, masks); in __msi_capability_init()
415 struct irq_affinity_desc *masks __free(kfree) = in msi_capability_init()
419 return __msi_capability_init(dev, nvec, masks); in msi_capability_init()
633 int nvec, struct irq_affinity_desc *masks) in msix_setup_msi_descs() argument
641 for (i = 0, curmsk = masks; i < nvec; i++, curmsk++) { in msix_setup_msi_descs()
643 desc.affinity = masks ? curmsk : NULL; in msix_setup_msi_descs()
679 int nvec, struct irq_affinity_desc *masks) in __msix_setup_interrupts() argument
[all …]
/linux/kernel/sched/
H A Dtopology.c2317 struct cpumask ***masks; in sched_init_numa() local
2359 masks = kzalloc(sizeof(void *) * nr_levels, GFP_KERNEL); in sched_init_numa()
2360 if (!masks) in sched_init_numa()
2368 masks[i] = kzalloc(nr_node_ids * sizeof(void *), GFP_KERNEL); in sched_init_numa()
2369 if (!masks[i]) in sched_init_numa()
2379 masks[i][j] = mask; in sched_init_numa()
2395 rcu_assign_pointer(sched_domains_numa_masks, masks); in sched_init_numa()
2436 struct cpumask ***masks; in sched_reset_numa() local
2448 masks = sched_domains_numa_masks; in sched_reset_numa()
2450 if (distances || masks) { in sched_reset_numa()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_i2c_hw.h302 const struct dce_i2c_mask *masks; member
311 const struct dce_i2c_mask *masks);
319 const struct dce_i2c_mask *masks);
327 const struct dce_i2c_mask *masks);
335 const struct dce_i2c_mask *masks);
343 const struct dce_i2c_mask *masks);

1234567