Home
last modified time | relevance | path

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

12

/linux-4.19.296/drivers/clk/mmp/
Dclk-frac.c37 (factor->ftbl[i].num * factor->masks->factor)) * 10000; in clk_factor_round_rate()
55 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_recalc_rate() local
61 num = (val >> masks->num_shift) & masks->num_mask; in clk_factor_recalc_rate()
64 den = (val >> masks->den_shift) & masks->den_mask; in clk_factor_recalc_rate()
70 (num * factor->masks->factor)) * 10000; in clk_factor_recalc_rate()
78 struct mmp_clk_factor_masks *masks = factor->masks; in clk_factor_set_rate() local
87 (factor->ftbl[i].num * factor->masks->factor)) * 10000; in clk_factor_set_rate()
99 val &= ~(masks->num_mask << masks->num_shift); in clk_factor_set_rate()
100 val |= (factor->ftbl[i].num & masks->num_mask) << masks->num_shift; in clk_factor_set_rate()
102 val &= ~(masks->den_mask << masks->den_shift); in clk_factor_set_rate()
[all …]
Dclk.h29 struct mmp_clk_factor_masks *masks; member
37 void __iomem *base, struct mmp_clk_factor_masks *masks,
/linux-4.19.296/drivers/clk/spear/
Dclk-aux-synth.c80 eqn = (val >> aux->masks->eq_sel_shift) & aux->masks->eq_sel_mask; in clk_aux_recalc_rate()
81 if (eqn == aux->masks->eq1_mask) in clk_aux_recalc_rate()
85 num = (val >> aux->masks->xscale_sel_shift) & in clk_aux_recalc_rate()
86 aux->masks->xscale_sel_mask; in clk_aux_recalc_rate()
89 den *= (val >> aux->masks->yscale_sel_shift) & in clk_aux_recalc_rate()
90 aux->masks->yscale_sel_mask; in clk_aux_recalc_rate()
114 ~(aux->masks->eq_sel_mask << aux->masks->eq_sel_shift); in clk_aux_set_rate()
115 val |= (rtbl[i].eq & aux->masks->eq_sel_mask) << in clk_aux_set_rate()
116 aux->masks->eq_sel_shift; in clk_aux_set_rate()
117 val &= ~(aux->masks->xscale_sel_mask << aux->masks->xscale_sel_shift); in clk_aux_set_rate()
[all …]
Dclk.h52 const struct aux_clk_masks *masks; member
115 const struct aux_clk_masks *masks, struct aux_rate_tbl *rtbl,
/linux-4.19.296/drivers/clk/uniphier/
Dclk-uniphier-mux.c26 const unsigned int *masks; member
36 return regmap_write_bits(mux->regmap, mux->reg, mux->masks[index], in uniphier_clk_mux_set_parent()
53 if ((mux->masks[i] & val) == mux->vals[i]) in uniphier_clk_mux_get_parent()
86 mux->masks = data->masks; in uniphier_clk_register_mux()
Dclk-uniphier-mio.c48 .masks = { \
Dclk-uniphier.h61 unsigned int masks[UNIPHIER_CLK_MUX_MAX_PARENTS]; member
/linux-4.19.296/drivers/s390/char/
Dsclp.h103 u8 masks[4 * 1021]; /* variable length */ member
114 static inline sccb_mask_t sccb_get_mask(u8 *masks, size_t len, int i) in sccb_get_mask() argument
118 memcpy(&res, masks + i * len, min(sizeof(res), len)); in sccb_get_mask()
122 static inline void sccb_set_mask(u8 *masks, size_t len, int i, sccb_mask_t val) in sccb_set_mask() argument
124 memset(masks + i * len, 0, len); in sccb_set_mask()
125 memcpy(masks + i * len, &val, min(sizeof(val), len)); in sccb_set_mask()
132 sccb_get_mask(__sccb->masks, __sccb->mask_length, i); \
143 sccb_set_mask(__sccb->masks, __sccb->mask_length, i, val); \
/linux-4.19.296/drivers/char/agp/
Dintel-agp.c461 .masks = intel_generic_masks,
488 .masks = intel_generic_masks,
515 .masks = intel_generic_masks,
542 .masks = intel_generic_masks,
569 .masks = intel_generic_masks,
596 .masks = intel_generic_masks,
623 .masks = intel_generic_masks,
650 .masks = intel_generic_masks,
677 .masks = intel_generic_masks,
Dali-agp.c213 .masks = NULL,
237 .masks = NULL,
Dvia-agp.c183 .masks = NULL,
210 .masks = NULL,
Dalpha-agp.c128 .masks = NULL,
Di460-agp.c552 return bridge->driver->masks[0].mask in i460_mask_memory()
566 .masks = i460_masks,
Duninorth-agp.c519 .masks = NULL,
547 .masks = NULL,
Dagp.h104 const struct gatt_mask *masks; member
Dparisc-agp.c224 .masks = parisc_agp_masks,
Dsis-agp.c133 .masks = NULL,
Defficeon-agp.c324 .masks = efficeon_generic_masks,
Dnvidia-agp.c320 .masks = nvidia_generic_masks,
Dgeneric.c1323 if (bridge->driver->masks) in agp_generic_mask_memory()
1324 return addr | bridge->driver->masks[0].mask; in agp_generic_mask_memory()
Dati-agp.c432 .masks = ati_generic_masks,
Dhp-agp.c428 .masks = hp_zx1_masks,
/linux-4.19.296/drivers/pci/
Dmsi.c558 struct cpumask *masks = NULL; in msi_setup_entry() local
563 masks = irq_create_affinity_masks(nvec, affd); in msi_setup_entry()
567 entry = alloc_msi_entry(&dev->dev, nvec, masks); in msi_setup_entry()
594 kfree(masks); in msi_setup_entry()
699 struct cpumask *curmsk, *masks = NULL; in msix_setup_entries() local
705 masks = irq_create_affinity_masks(nvec, affd); in msix_setup_entries()
707 for (i = 0, curmsk = masks; i < nvec; i++) { in msix_setup_entries()
734 if (masks) in msix_setup_entries()
739 kfree(masks); in msix_setup_entries()
/linux-4.19.296/include/sound/
Dpcm.h246 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - member
258 return &constrs->masks[var - SNDRV_PCM_HW_PARAM_FIRST_MASK]; in constrs_mask()
910 return &params->masks[var - SNDRV_PCM_HW_PARAM_FIRST_MASK]; in hw_param_mask()
922 return &params->masks[var - SNDRV_PCM_HW_PARAM_FIRST_MASK]; in hw_param_mask_c()
/linux-4.19.296/drivers/iio/adc/
Dmax1363.c1452 unsigned long *masks; in max1363_alloc_scan_masks() local
1455 masks = devm_kzalloc(&indio_dev->dev, in max1363_alloc_scan_masks()
1460 if (!masks) in max1363_alloc_scan_masks()
1464 bitmap_copy(masks + BITS_TO_LONGS(MAX1363_MAX_CHANNELS)*i, in max1363_alloc_scan_masks()
1468 indio_dev->available_scan_masks = masks; in max1363_alloc_scan_masks()

12