Home
last modified time | relevance | path

Searched refs:mask (Results 1 – 25 of 317) sorted by relevance

12345678910>>...13

/include/uapi/linux/iio/
Devents.h29 #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
/include/asm-generic/
Dword-at-a-time.h19 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 …]
/include/sound/
Dpcm_params.h26 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument
28 memset(mask, 0, sizeof(*mask)); in snd_mask_none()
31 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument
33 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any()
36 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument
40 if (mask->bits[i]) in snd_mask_empty()
45 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument
49 if (mask->bits[i]) in snd_mask_min()
50 return __ffs(mask->bits[i]) + (i << 5); in snd_mask_min()
55 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument
[all …]
Dhda_regmap.h26 unsigned int mask, unsigned int val);
28 unsigned int mask, unsigned int val);
98 unsigned int verb, unsigned int mask, in snd_hdac_regmap_update() argument
103 return snd_hdac_regmap_update_raw(codec, cmd, mask, val); in snd_hdac_regmap_update()
161 int ch, int dir, int idx, int mask, int val) in snd_hdac_regmap_update_amp() argument
165 return snd_hdac_regmap_update_raw(codec, cmd, mask, val); in snd_hdac_regmap_update_amp()
206 int dir, int idx, int mask, int val) in snd_hdac_regmap_update_amp_stereo() argument
210 return snd_hdac_regmap_update_raw(codec, cmd, mask, val); in snd_hdac_regmap_update_amp_stereo()
/include/asm-generic/bitops/
Dgeneric-non-atomic.h30 unsigned long mask = BIT_MASK(nr); in generic___set_bit() local
33 *p |= mask; in generic___set_bit()
39 unsigned long mask = BIT_MASK(nr); in generic___clear_bit() local
42 *p &= ~mask; in generic___clear_bit()
57 unsigned long mask = BIT_MASK(nr); in generic___change_bit() local
60 *p ^= mask; in generic___change_bit()
75 unsigned long mask = BIT_MASK(nr); in generic___test_and_set_bit() local
79 *p = old | mask; in generic___test_and_set_bit()
80 return (old & mask) != 0; in generic___test_and_set_bit()
95 unsigned long mask = BIT_MASK(nr); in generic___test_and_clear_bit() local
[all …]
Datomic.h39 unsigned long mask = BIT_MASK(nr); in arch_test_and_set_bit() local
42 old = raw_atomic_long_fetch_or(mask, (atomic_long_t *)p); in arch_test_and_set_bit()
43 return !!(old & mask); in arch_test_and_set_bit()
50 unsigned long mask = BIT_MASK(nr); in arch_test_and_clear_bit() local
53 old = raw_atomic_long_fetch_andnot(mask, (atomic_long_t *)p); in arch_test_and_clear_bit()
54 return !!(old & mask); in arch_test_and_clear_bit()
61 unsigned long mask = BIT_MASK(nr); in arch_test_and_change_bit() local
64 old = raw_atomic_long_fetch_xor(mask, (atomic_long_t *)p); in arch_test_and_change_bit()
65 return !!(old & mask); in arch_test_and_change_bit()
Dlock.h22 unsigned long mask = BIT_MASK(nr); in arch_test_and_set_bit_lock() local
25 if (READ_ONCE(*p) & mask) in arch_test_and_set_bit_lock()
28 old = raw_atomic_long_fetch_or_acquire(mask, (atomic_long_t *)p); in arch_test_and_set_bit_lock()
29 return !!(old & mask); in arch_test_and_set_bit_lock()
83 unsigned long mask = BIT_MASK(nr); in arch_clear_bit_unlock_is_negative_byte() local
86 old = raw_atomic_long_fetch_andnot_release(mask, (atomic_long_t *)p); in arch_clear_bit_unlock_is_negative_byte()
/include/linux/
Dfsnotify.h32 static inline int fsnotify_name(__u32 mask, const void *data, int data_type, in fsnotify_name() argument
39 return fsnotify(mask, data, data_type, dir, name, NULL, cookie); in fsnotify_name()
43 __u32 mask) in fsnotify_dirent() argument
45 fsnotify_name(mask, dentry, FSNOTIFY_EVENT_DENTRY, dir, &dentry->d_name, 0); in fsnotify_dirent()
48 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument
54 mask |= FS_ISDIR; in fsnotify_inode()
56 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode()
60 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument
69 mask |= FS_ISDIR; in fsnotify_parent()
80 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent()
[all …]
Dcpumask.h281 #define for_each_cpu(cpu, mask) \ argument
282 for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits)
286 unsigned int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap) in cpumask_next_wrap() argument
299 return cpumask_first(mask); in cpumask_next_wrap()
302 unsigned int __pure cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap);
315 #define for_each_cpu_wrap(cpu, mask, start) \ argument
316 for_each_set_bit_wrap(cpu, cpumask_bits(mask), small_cpumask_bits, start)
379 unsigned int cpumask_any_but(const struct cpumask *mask, unsigned int cpu) in cpumask_any_but() argument
384 for_each_cpu(i, mask) in cpumask_any_but()
873 bool alloc_cpumask_var_node(cpumask_var_t *mask, gfp_t flags, int node);
[all …]
Dvia-core.h99 void viafb_irq_enable(u32 mask);
100 void viafb_irq_disable(u32 mask);
200 static inline void via_write_reg_mask(u16 port, u8 index, u8 data, u8 mask) in via_write_reg_mask() argument
206 outb((data & mask) | (old & ~mask), port + 1); in via_write_reg_mask()
212 static inline void via_write_misc_reg_mask(u8 data, u8 mask) in via_write_misc_reg_mask() argument
215 outb((data & mask) | (old & ~mask), VIA_MISC_REG_WRITE); in via_write_misc_reg_mask()
Dtimecounter.h32 u64 mask; member
59 u64 mask; member
71 u64 cycles, u64 mask, u64 *frac) in cyclecounter_cyc2ns() argument
76 *frac = ns & mask; in cyclecounter_cyc2ns()
Ddevice_cgroup.h17 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
31 if (mask & MAY_WRITE) in devcgroup_inode_permission()
33 if (mask & MAY_READ) in devcgroup_inode_permission()
63 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
Dfsnotify_backend.h156 int (*handle_event)(struct fsnotify_group *group, u32 mask,
160 int (*handle_inode_event)(struct fsnotify_mark *mark, u32 mask,
504 __u32 mask; member
541 extern int fsnotify(__u32 mask, const void *data, int data_type,
544 extern int __fsnotify_parent(struct dentry *dentry, __u32 mask, const void *data,
551 static inline __u32 fsnotify_parent_needed_mask(__u32 mask) in fsnotify_parent_needed_mask() argument
554 if (!(mask & FS_EVENT_ON_CHILD)) in fsnotify_parent_needed_mask()
561 return mask & FS_EVENTS_POSS_TO_PARENT; in fsnotify_parent_needed_mask()
636 static inline bool fsnotify_is_overflow_event(u32 mask) in fsnotify_is_overflow_event() argument
638 return mask & FS_Q_OVERFLOW; in fsnotify_is_overflow_event()
[all …]
Dperf_regs.h20 int perf_reg_validate(u64 mask);
33 static inline int perf_reg_validate(u64 mask) in perf_reg_validate() argument
35 return mask ? -ENOSYS : 0; in perf_reg_validate()
Dsmp.h54 void *info, bool wait, const struct cpumask *mask);
90 static inline void on_each_cpu_mask(const struct cpumask *mask, in on_each_cpu_mask() argument
93 on_each_cpu_cond_mask(NULL, func, info, wait, mask); in on_each_cpu_mask()
157 void smp_call_function_many(const struct cpumask *mask,
160 int smp_call_function_any(const struct cpumask *mask,
207 #define smp_call_function_many(mask, func, info, wait) \ argument
212 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, in smp_call_function_any() argument
/include/linux/ssb/
Dssb_embedded.h12 u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask);
13 u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value);
14 u32 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value);
15 u32 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value);
16 u32 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value);
17 u32 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value);
Dssb_driver_extif.h180 u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask);
181 u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value);
182 u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value);
183 u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value);
184 u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value);
220 static inline u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask) in ssb_extif_gpio_in() argument
225 static inline u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_out() argument
231 static inline u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_outen() argument
237 static inline u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_polarity() argument
243 static inline u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_intmask() argument
/include/crypto/internal/
Dcipher.h57 u32 type, u32 mask) in crypto_alloc_cipher() argument
61 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_alloc_cipher()
63 return __crypto_cipher_cast(crypto_alloc_base(alg_name, type, mask)); in crypto_alloc_cipher()
90 static inline int crypto_has_cipher(const char *alg_name, u32 type, u32 mask) in crypto_has_cipher() argument
94 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_has_cipher()
96 return crypto_has_alg(alg_name, type, mask); in crypto_has_cipher()
187 const char *name, u32 type, u32 mask) in crypto_grab_cipher() argument
191 mask |= CRYPTO_ALG_TYPE_MASK; in crypto_grab_cipher()
192 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_cipher()
210 u32 mask = CRYPTO_ALG_TYPE_MASK; in crypto_spawn_cipher() local
[all …]
/include/linux/pds/
Dpds_intr.h67 u32 mask; member
123 pds_core_intr_mask(struct pds_core_intr __iomem *intr_ctrl, u32 mask) in pds_core_intr_mask() argument
125 iowrite32(mask, &intr_ctrl->mask); in pds_core_intr_mask()
158 pds_core_intr_mask_assert(struct pds_core_intr __iomem *intr_ctrl, u32 mask) in pds_core_intr_mask_assert() argument
160 iowrite32(mask, &intr_ctrl->mask_on_assert); in pds_core_intr_mask_assert()
/include/linux/iio/common/
Dst_sensors.h53 #define ST_SENSORS_LSM_CHANNELS_EXT(device_type, mask, index, mod, \ argument
58 .info_mask_separate = mask, \
73 #define ST_SENSORS_LSM_CHANNELS(device_type, mask, index, mod, \ argument
75 ST_SENSORS_LSM_CHANNELS_EXT(device_type, mask, index, mod, \
93 u8 mask; member
99 u8 mask; member
106 u8 mask; member
118 u8 mask; member
134 u8 mask; member
144 u8 mask; member
[all …]
/include/net/
Ddsfield.h28 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield() argument
34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield()
44 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield() argument
49 *p = (*p & htons((((u16)mask << 4) | 0xf00f))) | htons((u16)value << 4); in ipv6_change_dsfield()
Dflow_offload.h11 void *mask; member
16 struct flow_dissector_key_meta *key, *mask; member
20 struct flow_dissector_key_basic *key, *mask; member
24 struct flow_dissector_key_control *key, *mask; member
28 struct flow_dissector_key_eth_addrs *key, *mask; member
32 struct flow_dissector_key_vlan *key, *mask; member
36 struct flow_dissector_key_arp *key, *mask; member
40 struct flow_dissector_key_ipv4_addrs *key, *mask; member
44 struct flow_dissector_key_ipv6_addrs *key, *mask; member
48 struct flow_dissector_key_ip *key, *mask; member
[all …]
/include/uapi/linux/netfilter/
Dxt_mark.h8 __u32 mark, mask; member
12 __u32 mark, mask; member
/include/linux/soc/renesas/
Dr9a06g032-sysctrl.h6 int r9a06g032_sysctrl_set_dmamux(u32 mask, u32 val);
8 static inline int r9a06g032_sysctrl_set_dmamux(u32 mask, u32 val) { return -ENODEV; } in r9a06g032_sysctrl_set_dmamux() argument
/include/rdma/
Diba.h17 static inline void _iba_set8(u8 *ptr, u32 mask, u32 prep_value) in _iba_set8() argument
19 *ptr = (*ptr & ~mask) | prep_value; in _iba_set8()
27 static inline void _iba_set16(__be16 *ptr, u16 mask, u16 prep_value) in _iba_set16() argument
29 *ptr = cpu_to_be16((be16_to_cpu(*ptr) & ~mask) | prep_value); in _iba_set16()
37 static inline void _iba_set32(__be32 *ptr, u32 mask, u32 prep_value) in _iba_set32() argument
39 *ptr = cpu_to_be32((be32_to_cpu(*ptr) & ~mask) | prep_value); in _iba_set32()
51 static inline void _iba_set64(__be64 *ptr, u64 mask, u64 prep_value) in _iba_set64() argument
53 put_unaligned(cpu_to_be64((_iba_get64(ptr) & ~mask) | prep_value), ptr); in _iba_set64()

12345678910>>...13