| /linux/drivers/clk/mmp/ |
| H A D | clk-frac.c | 37 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 D | clk-aux-synth.c | 79 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/sound/soc/codecs/ |
| H A D | tscs42xx.h | 124 /* Field Masks */ 132 /* Register Masks */ 147 /* Field Masks */ 155 /* Register Masks */ 170 /* Field Masks */ 178 /* Register Masks */ 195 /* Field Masks */ 203 /* Register Masks */ 220 /* Field Masks */ 228 /* Register Masks */ [all …]
|
| H A D | cs42l56.h | 60 /* Device ID and Rev ID Masks */ 66 /* Power bit masks */ 78 /* serial port and clk masks */ 96 /* Class H and misc ctl masks */ 112 /* Playback Capture ctl masks */ 130 /* Beep masks */
|
| /linux/lib/ |
| H A D | group_cpus.c | 47 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/include/linux/ |
| H A D | intel_pmt_features.h | 8 /* Common masks */ 24 /* Per Core Performance Telemetry (PCPT) specific masks */ 31 /* Per Core Environmental Telemetry (PCET) specific masks */ 44 /* Per RMID Performance Telemetry specific masks */ 49 /* Accelerator Telemetry specific masks */ 53 /* Uncore Telemetry specific masks */ 59 /* Crash Log specific masks */ 70 /* PeTe Log specific masks */ 78 /* TPMI control specific masks */ 82 /* Tracing specific masks */ [all …]
|
| /linux/drivers/net/ethernet/ezchip/ |
| H A D | nps_enet.h | 35 /* Tx control register masks and shifts */ 43 /* Rx control register masks and shifts */ 53 /* Interrupt enable for data buffer events register masks and shifts */ 59 /* Gbps Eth MAC Configuration 0 register masks and shifts */ 93 /* Gbps Eth MAC Configuration 1 register masks and shifts */ 103 /* Gbps Eth MAC Configuration 2 register masks and shifts */ 119 /* Gbps Eth MAC Configuration 3 register masks and shifts */ 141 /* GE MAC, PCS reset control register masks and shifts */ 147 /* Tx phase sync FIFO control register masks and shifts */
|
| /linux/drivers/virtio/ |
| H A D | virtio_vdpa.c | 277 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 [all...] |
| /linux/arch/arm/mach-s3c/ |
| H A D | wakeup-mask.h | 27 * @masks: The list of masks to use. 28 * @nr_masks: The number of entries pointed to buy @masks. 31 * of interrupts and control bits in @masks. We do this at suspend time 36 const struct samsung_wakeup_mask *masks,
|
| /linux/drivers/media/pci/dt3155/ |
| H A D | dt3155.h | 69 /* CSR1 bit masks */ 88 /* INT_CSR bit masks */ 96 /* IIC_CSR1 bit masks */ 99 /* IIC_CSR2 bit masks */ 105 /* CSR2 bit masks */ 115 /* CSR_EVEN/ODD bit masks */ 120 /* CONFIG bit masks */ 131 /* AD_CMD bit masks */
|
| /linux/drivers/media/i2c/ |
| H A D | adv7393_regs.h | 92 /* Bit masks for Mode Select Register */ 98 /* Bit masks for Mode Register 0 */ 103 /* Bit masks for SD brightness/WSS */ 107 /* Bit masks for soft reset register */ 110 /* Bit masks for HD Mode Register 1 */ 132 /* Bit masks for SD Mode Register 1 */ 143 /* Bit masks for SD Mode Register 2 */ 156 /* Bit masks for HD Mode Register 6 */
|
| H A D | adv7343_regs.h | 84 /* Bit masks for Mode Select Register */ 90 /* Bit masks for Mode Register 0 */ 95 /* Bit masks for DAC output levels */ 98 /* Bit masks for soft reset register */ 101 /* Bit masks for HD Mode Register 1 */ 123 /* Bit masks for SD Mode Register 1 */ 134 /* Bit masks for SD Mode Register 2 */ 147 /* Bit masks for HD Mode Register 6 */
|
| /linux/drivers/usb/misc/ |
| H A D | brcmstb-usb-pinmap.c | 154 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, in parse_pins() 157 dev_err(dev, "Error getting 1st brcm,in-masks for %s\n", in parse_pins() 161 res = of_property_read_u32_index(dn, "brcm,in-masks", index++, in parse_pins() 164 dev_err(dev, "Error getting 2nd brcm,in-masks for %s\n", in parse_pins() 186 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins() 189 dev_err(dev, "Error getting 1st brcm,out-masks for %s\n", in parse_pins() 193 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins() 196 dev_err(dev, "Error getting 2nd brcm,out-masks for %s\n", in parse_pins() 200 res = of_property_read_u32_index(dn, "brcm,out-masks", index++, in parse_pins() 203 dev_err(dev, "Error getting 3rd brcm,out-masks for %s\n", in parse_pins() [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_flex_pipe.c | 143 /* 'dont_care' and 'nvr_mtch' masks cannot overlap */ in ice_gen_key_word() 225 * @upd: array of 8-bit masks that determine what key portion to update 226 * @dc: array of 8-bit masks that make up the don't care mask 227 * @nm: array of 8-bit masks that make up the never match mask 1168 /* Scan the enabled masks on this profile, for the specified idx */ in ice_prof_has_mask_idx() 1169 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() [all …]
|
| /linux/security/landlock/ |
| H A D | ruleset.c | 631 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 D | fs.c | 391 * 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 D | audit.c | 186 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 D | access.h | 23 * entries when we need to get the absolute handled access masks, see 48 /* Ruleset access masks. */ 56 struct access_masks masks; 61 static_assert(sizeof(typeof_member(union access_masks_all, masks)) == 139 /* Checks the subset relation between access masks. */ 50 struct access_masks masks; global() member
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | fsl_usb2_udc.h | 115 /* Frame Index Register Bit Masks */ 117 /* USB CMD Register Bit Masks */ 157 /* USB STS Register Bit Masks */ 172 /* USB INTR Register Bit Masks */ 183 /* Device Address bit masks */ 187 /* endpoint list address bit masks */ 190 /* PORTSCX Register Bit Masks */ 254 /* otgsc Register Bit Masks */ 281 /* USB MODE Register Bit Masks */ 294 /* Endpoint Setup Status bit masks */ [all …]
|
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | brcm,usb-pinmap.yaml | 33 brcm,in-masks: 45 brcm,out-masks: 47 description: Array of enable, value, changed and clear masks, one 66 brcm,in-masks = <0x8000 0x40000 0x10000 0x80000>; 69 brcm,out-masks = <0x20000 0x800000 0x400000 0x200000>;
|
| /linux/drivers/clk/uniphier/ |
| H A D | clk-uniphier-mux.c | 17 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/gpu/drm/amd/display/dc/dio/dcn10/ |
| H A D | dcn10_dio.c | 17 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()
|
| /linux/drivers/net/dsa/microchip/ |
| H A D | ksz8.c | 385 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/sound/ppc/ |
| H A D | awacs.h | 29 /* Audio Bit Masks */ 32 /* Audio Control Reg Bit Masks */ 43 /* Audio Codec Control Reg Bit Masks */ 50 /* Audio Codec Control Address Values / Masks */ 73 /* Address 0 Bit Masks & Macros */ 91 /* Address 1 Bit Masks */ 121 /* Address 2 & 4 Bit Masks & Macros */ 137 /* Audio Codec Status Reg Bit Masks */ 157 /* Clipping Count Reg Bit Masks */ 162 /* DBDMA ChannelStatus Bit Masks */
|
| /linux/block/ |
| H A D | blk-mq-cpumap.c | 61 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()
|