/linux-4.19.296/include/sound/ |
D | pcm_params.h | 46 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument 48 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 51 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument 53 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any() 56 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument 60 if (mask->bits[i]) in snd_mask_empty() 65 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument 69 if (mask->bits[i]) in snd_mask_min() 70 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min() 75 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument [all …]
|
/linux-4.19.296/include/asm-generic/ |
D | word-at-a-time.h | 19 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 20 return ~(mask | rhs); in prep_zero_mask() 23 #define create_zero_mask(mask) (mask) argument 25 static inline long find_zero(unsigned long mask) in find_zero() argument 29 if (mask >> 32) in find_zero() 30 mask >>= 32; in find_zero() 34 if (mask >> 16) in find_zero() 35 mask >>= 16; in find_zero() 38 return (mask >> 8) ? byte : byte + 1; in find_zero() 49 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument [all …]
|
/linux-4.19.296/include/linux/ |
D | fsnotify.h | 21 static inline int fsnotify_parent(const struct path *path, struct dentry *dentry, __u32 mask) in fsnotify_parent() argument 26 return __fsnotify_parent(path, dentry, mask); in fsnotify_parent() 30 static inline int fsnotify_perm(struct file *file, int mask) in fsnotify_perm() argument 39 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm() 41 if (mask & MAY_OPEN) in fsnotify_perm() 43 else if (mask & MAY_READ) in fsnotify_perm() 118 __u32 mask = FS_DELETE; in fsnotify_nameremove() local 121 mask |= FS_ISDIR; in fsnotify_nameremove() 123 fsnotify_parent(NULL, dentry, mask); in fsnotify_nameremove() 163 __u32 mask = (FS_CREATE | FS_ISDIR); in fsnotify_mkdir() local [all …]
|
D | cpumask.h | 162 static inline unsigned int cpumask_next_wrap(int n, const struct cpumask *mask, in cpumask_next_wrap() argument 170 static inline unsigned int cpumask_any_but(const struct cpumask *mask, in cpumask_any_but() argument 181 #define for_each_cpu(cpu, mask) \ argument 182 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 183 #define for_each_cpu_not(cpu, mask) \ argument 184 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 185 #define for_each_cpu_wrap(cpu, mask, start) \ argument 186 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)(start)) 187 #define for_each_cpu_and(cpu, mask, and) \ argument 188 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)and) [all …]
|
/linux-4.19.296/fs/ocfs2/cluster/ |
D | masklog.h | 134 #define __mlog_test_u64(mask, bits) \ argument 135 ( (u32)(mask & 0xffffffff) & bits.words[0] || \ 136 ((u64)(mask) >> 32) & bits.words[1] ) 137 #define __mlog_set_u64(mask, bits) do { \ argument 138 bits.words[0] |= (u32)(mask & 0xffffffff); \ 139 bits.words[1] |= (u64)(mask) >> 32; \ 141 #define __mlog_clear_u64(mask, bits) do { \ argument 142 bits.words[0] &= ~((u32)(mask & 0xffffffff)); \ 143 bits.words[1] &= ~((u64)(mask) >> 32); \ 145 #define MLOG_BITS_RHS(mask) { \ argument [all …]
|
D | masklog.c | 36 static ssize_t mlog_mask_show(u64 mask, char *buf) in mlog_mask_show() argument 40 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show() 42 else if (__mlog_test_u64(mask, mlog_not_bits)) in mlog_mask_show() 50 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) in mlog_mask_store() argument 53 __mlog_set_u64(mask, mlog_and_bits); in mlog_mask_store() 54 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 56 __mlog_set_u64(mask, mlog_not_bits); in mlog_mask_store() 57 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() 59 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store() 60 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store() [all …]
|
/linux-4.19.296/include/uapi/linux/iio/ |
D | events.h | 29 #define IIO_EVENT_CODE_EXTRACT_TYPE(mask) ((mask >> 56) & 0xFF) argument 31 #define IIO_EVENT_CODE_EXTRACT_DIR(mask) ((mask >> 48) & 0x7F) argument 33 #define IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(mask) ((mask >> 32) & 0xFF) argument 37 #define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16)(mask & 0xFFFF)) argument 38 #define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16)(((mask) >> 16) & 0xFFFF)) argument 40 #define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF) argument 41 #define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1) argument
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-vr41xx.c | 239 u16 mask; in vr41xx_set_irq_trigger() local 242 mask = 1 << pin; in vr41xx_set_irq_trigger() 244 giu_set(GIUINTTYPL, mask); in vr41xx_set_irq_trigger() 246 giu_set(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 248 giu_clear(GIUINTHTSELL, mask); in vr41xx_set_irq_trigger() 252 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 253 giu_clear(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 256 giu_clear(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() 257 giu_set(GIUREDGEINHL, mask); in vr41xx_set_irq_trigger() 260 giu_set(GIUFEDGEINHL, mask); in vr41xx_set_irq_trigger() [all …]
|
D | gpio-ath79.c | 58 struct ath79_gpio_ctrl *ctrl, unsigned reg, u32 mask, u32 bits) in ath79_gpio_update_bits() argument 63 new_val = (old_val & ~mask) | (bits & mask); in ath79_gpio_update_bits() 74 u32 mask = BIT(irqd_to_hwirq(data)); in ath79_gpio_irq_unmask() local 78 ath79_gpio_update_bits(ctrl, AR71XX_GPIO_REG_INT_MASK, mask, mask); in ath79_gpio_irq_unmask() 85 u32 mask = BIT(irqd_to_hwirq(data)); in ath79_gpio_irq_mask() local 89 ath79_gpio_update_bits(ctrl, AR71XX_GPIO_REG_INT_MASK, mask, 0); in ath79_gpio_irq_mask() 96 u32 mask = BIT(irqd_to_hwirq(data)); in ath79_gpio_irq_enable() local 100 ath79_gpio_update_bits(ctrl, AR71XX_GPIO_REG_INT_ENABLE, mask, mask); in ath79_gpio_irq_enable() 101 ath79_gpio_update_bits(ctrl, AR71XX_GPIO_REG_INT_MASK, mask, mask); in ath79_gpio_irq_enable() 108 u32 mask = BIT(irqd_to_hwirq(data)); in ath79_gpio_irq_disable() local [all …]
|
/linux-4.19.296/drivers/memory/tegra/ |
D | tegra30.c | 32 .mask = 0xff, 46 .mask = 0xff, 60 .mask = 0xff, 74 .mask = 0xff, 88 .mask = 0xff, 102 .mask = 0xff, 116 .mask = 0xff, 130 .mask = 0xff, 144 .mask = 0xff, 158 .mask = 0xff, [all …]
|
D | tegra210.c | 29 .mask = 0xff, 43 .mask = 0xff, 57 .mask = 0xff, 71 .mask = 0xff, 85 .mask = 0xff, 99 .mask = 0xff, 113 .mask = 0xff, 127 .mask = 0xff, 141 .mask = 0xff, 155 .mask = 0xff, [all …]
|
D | tegra114.c | 32 .mask = 0xff, 46 .mask = 0xff, 60 .mask = 0xff, 74 .mask = 0xff, 88 .mask = 0xff, 102 .mask = 0xff, 116 .mask = 0xff, 130 .mask = 0xff, 144 .mask = 0xff, 158 .mask = 0xff, [all …]
|
D | tegra124.c | 74 .mask = 0xff, 88 .mask = 0xff, 102 .mask = 0xff, 116 .mask = 0xff, 130 .mask = 0xff, 144 .mask = 0xff, 158 .mask = 0xff, 172 .mask = 0xff, 186 .mask = 0xff, 200 .mask = 0xff, [all …]
|
/linux-4.19.296/drivers/iio/accel/ |
D | st_accel_core.c | 110 .mask = 0xf0, 124 .mask = 0xf0, 129 .mask = ST_SENSORS_DEFAULT_AXIS_MASK, 133 .mask = 0x30, 159 .mask = 0x80, 164 .mask = 0x10, 170 .mask = 0x07, 192 .mask = 0x18, 202 .mask = 0xe0, 208 .mask = ST_SENSORS_DEFAULT_AXIS_MASK, [all …]
|
/linux-4.19.296/lib/ |
D | cpumask.c | 52 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but() argument 57 for_each_cpu(i, mask) in cpumask_any_but() 76 int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap) in cpumask_next_wrap() argument 81 next = cpumask_next(n, mask); in cpumask_next_wrap() 112 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in alloc_cpumask_var_node() argument 114 *mask = kmalloc_node(cpumask_size(), flags, node); in alloc_cpumask_var_node() 117 if (!*mask) { in alloc_cpumask_var_node() 123 return *mask != NULL; in alloc_cpumask_var_node() 127 bool zalloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node) in zalloc_cpumask_var_node() argument 129 return alloc_cpumask_var_node(mask, flags | __GFP_ZERO, node); in zalloc_cpumask_var_node() [all …]
|
/linux-4.19.296/include/asm-generic/bitops/ |
D | non-atomic.h | 18 unsigned long mask = BIT_MASK(nr); in __set_bit() local 21 *p |= mask; in __set_bit() 26 unsigned long mask = BIT_MASK(nr); in __clear_bit() local 29 *p &= ~mask; in __clear_bit() 43 unsigned long mask = BIT_MASK(nr); in __change_bit() local 46 *p ^= mask; in __change_bit() 60 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit() local 64 *p = old | mask; in __test_and_set_bit() 65 return (old & mask) != 0; in __test_and_set_bit() 79 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit() local [all …]
|
/linux-4.19.296/fs/hfs/ |
D | bitmap.c | 32 u32 mask, start, len, n; in hfs_find_set_zero_bits() local 48 mask = (1U << 31) >> i; in hfs_find_set_zero_bits() 49 for (; i < 32; mask >>= 1, i++) { in hfs_find_set_zero_bits() 50 if (!(n & mask)) in hfs_find_set_zero_bits() 60 mask = 1 << 31; in hfs_find_set_zero_bits() 61 for (i = 0; i < 32; mask >>= 1, i++) { in hfs_find_set_zero_bits() 62 if (!(n & mask)) in hfs_find_set_zero_bits() 76 n |= mask; in hfs_find_set_zero_bits() 79 mask >>= 1; in hfs_find_set_zero_bits() 80 if (!--len || n & mask) in hfs_find_set_zero_bits() [all …]
|
/linux-4.19.296/drivers/iio/gyro/ |
D | st_gyro_core.c | 70 .mask = 0xc0, 80 .mask = 0x08, 86 .mask = ST_SENSORS_DEFAULT_AXIS_MASK, 90 .mask = 0x30, 111 .mask = 0x80, 116 .mask = 0x08, 125 .mask = 0x07, 148 .mask = 0xc0, 158 .mask = 0x08, 164 .mask = ST_SENSORS_DEFAULT_AXIS_MASK, [all …]
|
/linux-4.19.296/drivers/bus/ |
D | da8xx-mstpri.c | 59 int mask; member 66 .mask = 0x0000000f, 71 .mask = 0x000000f0, 76 .mask = 0x000f0000, 81 .mask = 0x00f00000, 86 .mask = 0x0000000f, 91 .mask = 0x000000f0, 96 .mask = 0x00000f00, 101 .mask = 0x0000f000, 106 .mask = 0x000f0000, [all …]
|
/linux-4.19.296/fs/nfsd/ |
D | nfs4acl.c | 68 int mask = NFS4_ANYONE_MODE; in mask_from_posix() local 71 mask |= NFS4_OWNER_MODE; in mask_from_posix() 73 mask |= NFS4_READ_MODE; in mask_from_posix() 75 mask |= NFS4_WRITE_MODE; in mask_from_posix() 77 mask |= NFS4_ACE_DELETE_CHILD; in mask_from_posix() 79 mask |= NFS4_EXECUTE_MODE; in mask_from_posix() 80 return mask; in mask_from_posix() 86 u32 mask = 0; in deny_mask_from_posix() local 89 mask |= NFS4_READ_MODE; in deny_mask_from_posix() 91 mask |= NFS4_WRITE_MODE; in deny_mask_from_posix() [all …]
|
/linux-4.19.296/crypto/ |
D | api.c | 61 u32 mask) in __crypto_alg_lookup() argument 72 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup() 77 ((struct crypto_larval *)q)->mask != mask) in __crypto_alg_lookup() 110 struct crypto_larval *crypto_larval_alloc(const char *name, u32 type, u32 mask) in crypto_larval_alloc() argument 118 larval->mask = mask; in crypto_larval_alloc() 131 u32 mask) in crypto_larval_add() argument 136 larval = crypto_larval_alloc(name, type, mask); in crypto_larval_add() 143 alg = __crypto_alg_lookup(name, type, mask); in crypto_larval_add() 197 u32 mask) in crypto_alg_lookup() argument 202 if (!((type | mask) & CRYPTO_ALG_TESTED)) in crypto_alg_lookup() [all …]
|
/linux-4.19.296/drivers/clk/sprd/ |
D | pll.c | 71 u32 shift, mask, index, refin_id = 3; in pll_get_refin() local 77 mask = pmask(pll, PLL_REFIN); in pll_get_refin() 78 refin_id = (sprd_pll_read(pll, index) & mask) >> shift; in pll_get_refin() 101 u32 i, mask, regs_num = pll->regs_num; in _sprd_pll_recalc_rate() local 130 mask = pmask(pll, PLL_KINT); in _sprd_pll_recalc_rate() 135 ((mask >> __ffs(mask)) + 1)) * in _sprd_pll_recalc_rate() 143 #define SPRD_PLL_WRITE_CHECK(pll, i, mask, val) \ argument 144 (((sprd_pll_read(pll, i) & mask) == val) ? 0 : (-EFAULT)) 152 u32 mask, shift, width, ibias_val, index; in _sprd_pll_set_rate() local 163 mask = pmask(pll, PLL_PREDIV); in _sprd_pll_set_rate() [all …]
|
/linux-4.19.296/fs/hfsplus/ |
D | bitmap.c | 26 u32 mask, start, len, n; in hfsplus_block_allocate() local 55 mask = (1U << 31) >> i; in hfsplus_block_allocate() 56 for (; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 57 if (!(n & mask)) in hfsplus_block_allocate() 69 mask = 1 << 31; in hfsplus_block_allocate() 70 for (i = 0; i < 32; mask >>= 1, i++) { in hfsplus_block_allocate() 71 if (!(n & mask)) in hfsplus_block_allocate() 106 n |= mask; in hfsplus_block_allocate() 109 mask >>= 1; in hfsplus_block_allocate() 110 if (!--len || n & mask) in hfsplus_block_allocate() [all …]
|
/linux-4.19.296/drivers/edac/ |
D | edac_pci.h | 100 u8 mask) in pci_write_bits8() argument 102 if (mask != 0xff) { in pci_write_bits8() 106 value &= mask; in pci_write_bits8() 107 buf &= ~mask; in pci_write_bits8() 116 u16 value, u16 mask) in pci_write_bits16() argument 118 if (mask != 0xffff) { in pci_write_bits16() 122 value &= mask; in pci_write_bits16() 123 buf &= ~mask; in pci_write_bits16() 140 u32 value, u32 mask) in pci_write_bits32() argument 142 if (mask != 0xffffffff) { in pci_write_bits32() [all …]
|
/linux-4.19.296/drivers/clk/ti/ |
D | mux.c | 43 val &= mux->mask; in ti_clk_mux_get_parent() 82 val = mux->mask << (mux->shift + 16); in ti_clk_mux_set_parent() 85 val &= ~(mux->mask << mux->shift); in ti_clk_mux_set_parent() 103 struct clk_omap_reg *reg, u8 shift, u32 mask, in _register_mux() argument 124 mux->mask = mask; in _register_mux() 144 u32 mask; in ti_clk_register_mux() local 149 mask = mux->num_parents; in ti_clk_register_mux() 151 mask--; in ti_clk_register_mux() 153 mask = (1 << fls(mask)) - 1; in ti_clk_register_mux() 165 flags, ®, mux->bit_shift, mask, -EINVAL, in ti_clk_register_mux() [all …]
|