/include/asm-generic/ |
D | word-at-a-time.h | 18 unsigned long mask = (val & c->low_bits) + c->low_bits; in prep_zero_mask() local 19 return ~(mask | rhs); in prep_zero_mask() 22 #define create_zero_mask(mask) (mask) argument 24 static inline long find_zero(unsigned long mask) in find_zero() argument 28 if (mask >> 32) in find_zero() 29 mask >>= 32; in find_zero() 33 if (mask >> 16) in find_zero() 34 mask >>= 16; in find_zero() 37 return (mask >> 8) ? byte : byte + 1; in find_zero() 48 #define zero_bytemask(mask) (~1ul << __fls(mask)) argument [all …]
|
/include/sound/ |
D | pcm_params.h | 71 static inline void snd_mask_none(struct snd_mask *mask) in snd_mask_none() argument 73 memset(mask, 0, sizeof(*mask)); in snd_mask_none() 76 static inline void snd_mask_any(struct snd_mask *mask) in snd_mask_any() argument 78 memset(mask, 0xff, SNDRV_MASK_SIZE * sizeof(u_int32_t)); in snd_mask_any() 81 static inline int snd_mask_empty(const struct snd_mask *mask) in snd_mask_empty() argument 85 if (mask->bits[i]) in snd_mask_empty() 90 static inline unsigned int snd_mask_min(const struct snd_mask *mask) in snd_mask_min() argument 94 if (mask->bits[i]) in snd_mask_min() 95 return ffs(mask->bits[i]) - 1 + (i << 5); in snd_mask_min() 100 static inline unsigned int snd_mask_max(const struct snd_mask *mask) in snd_mask_max() argument [all …]
|
/include/linux/iio/ |
D | events.h | 73 #define IIO_EVENT_CODE_EXTRACT_TYPE(mask) ((mask >> 56) & 0xFF) argument 75 #define IIO_EVENT_CODE_EXTRACT_DIR(mask) ((mask >> 48) & 0x7F) argument 77 #define IIO_EVENT_CODE_EXTRACT_CHAN_TYPE(mask) ((mask >> 32) & 0xFF) argument 81 #define IIO_EVENT_CODE_EXTRACT_CHAN(mask) ((__s16)(mask & 0xFFFF)) argument 82 #define IIO_EVENT_CODE_EXTRACT_CHAN2(mask) ((__s16)(((mask) >> 16) & 0xFFFF)) argument 84 #define IIO_EVENT_CODE_EXTRACT_MODIFIER(mask) ((mask >> 40) & 0xFF) argument 85 #define IIO_EVENT_CODE_EXTRACT_DIFF(mask) (((mask) >> 55) & 0x1) argument
|
/include/asm-generic/bitops/ |
D | non-atomic.h | 17 unsigned long mask = BIT_MASK(nr); in __set_bit() local 20 *p |= mask; in __set_bit() 25 unsigned long mask = BIT_MASK(nr); in __clear_bit() local 28 *p &= ~mask; in __clear_bit() 42 unsigned long mask = BIT_MASK(nr); in __change_bit() local 45 *p ^= mask; in __change_bit() 59 unsigned long mask = BIT_MASK(nr); in __test_and_set_bit() local 63 *p = old | mask; in __test_and_set_bit() 64 return (old & mask) != 0; in __test_and_set_bit() 78 unsigned long mask = BIT_MASK(nr); in __test_and_clear_bit() local [all …]
|
D | atomic.h | 67 unsigned long mask = BIT_MASK(nr); in set_bit() local 72 *p |= mask; in set_bit() 88 unsigned long mask = BIT_MASK(nr); in clear_bit() local 93 *p &= ~mask; in clear_bit() 109 unsigned long mask = BIT_MASK(nr); in change_bit() local 114 *p ^= mask; in change_bit() 129 unsigned long mask = BIT_MASK(nr); in test_and_set_bit() local 136 *p = old | mask; in test_and_set_bit() 139 return (old & mask) != 0; in test_and_set_bit() 153 unsigned long mask = BIT_MASK(nr); in test_and_clear_bit() local [all …]
|
/include/linux/ |
D | fsnotify.h | 29 static inline int fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) in fsnotify_parent() argument 34 return __fsnotify_parent(path, dentry, mask); in fsnotify_parent() 38 static inline int fsnotify_perm(struct file *file, int mask) in fsnotify_perm() argument 47 if (!(mask & (MAY_READ | MAY_OPEN))) in fsnotify_perm() 49 if (mask & MAY_OPEN) in fsnotify_perm() 51 else if (mask & MAY_READ) in fsnotify_perm() 138 __u32 mask = FS_DELETE; in fsnotify_nameremove() local 141 mask |= FS_ISDIR; in fsnotify_nameremove() 143 fsnotify_parent(NULL, dentry, mask); in fsnotify_nameremove() 183 __u32 mask = (FS_CREATE | FS_ISDIR); in fsnotify_mkdir() local [all …]
|
D | ioprio.h | 14 #define IOPRIO_PRIO_CLASS(mask) ((mask) >> IOPRIO_CLASS_SHIFT) argument 15 #define IOPRIO_PRIO_DATA(mask) ((mask) & IOPRIO_PRIO_MASK) argument 18 #define ioprio_valid(mask) (IOPRIO_PRIO_CLASS((mask)) != IOPRIO_CLASS_NONE) argument
|
D | device_cgroup.h | 4 extern int __devcgroup_inode_permission(struct inode *inode, int mask); 6 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument 12 return __devcgroup_inode_permission(inode, mask); in devcgroup_inode_permission() 15 static inline int devcgroup_inode_permission(struct inode *inode, int mask) in devcgroup_inode_permission() argument
|
D | cpumask.h | 147 static inline unsigned int cpumask_any_but(const struct cpumask *mask, in cpumask_any_but() argument 158 #define for_each_cpu(cpu, mask) \ argument 159 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 160 #define for_each_cpu_not(cpu, mask) \ argument 161 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) 162 #define for_each_cpu_and(cpu, mask, and) \ argument 163 for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask, (void)and) 207 int cpumask_any_but(const struct cpumask *mask, unsigned int cpu); 217 #define for_each_cpu(cpu, mask) \ argument 219 (cpu) = cpumask_next((cpu), (mask)), \ [all …]
|
D | perf_regs.h | 7 int perf_reg_validate(u64 mask); 15 static inline int perf_reg_validate(u64 mask) in perf_reg_validate() argument 17 return mask ? -ENOSYS : 0; in perf_reg_validate()
|
D | via-core.h | 116 void viafb_irq_enable(u32 mask); 117 void viafb_irq_disable(u32 mask); 217 static inline void via_write_reg_mask(u16 port, u8 index, u8 data, u8 mask) in via_write_reg_mask() argument 223 outb((data & mask) | (old & ~mask), port + 1); in via_write_reg_mask() 229 static inline void via_write_misc_reg_mask(u8 data, u8 mask) in via_write_misc_reg_mask() argument 232 outb((data & mask) | (old & ~mask), VIA_MISC_REG_WRITE); in via_write_misc_reg_mask()
|
D | smp.h | 39 void on_each_cpu_mask(const struct cpumask *mask, smp_call_func_t func, 96 void smp_call_function_many(const struct cpumask *mask, 99 int smp_call_function_any(const struct cpumask *mask, 140 #define smp_call_function_many(mask, func, info, wait) \ argument 145 smp_call_function_any(const struct cpumask *mask, smp_call_func_t func, in smp_call_function_any() argument
|
D | netfilter_bridge.h | 41 if (skb->nf_bridge->mask & BRNF_8021Q) in nf_bridge_update_protocol() 43 else if (skb->nf_bridge->mask & BRNF_PPPoE) in nf_bridge_update_protocol() 72 skb->nf_bridge->mask & (BRNF_BRIDGED | BRNF_BRIDGED_DNAT)) in nf_bridge_maybe_copy_header() 79 if (unlikely(skb->nf_bridge->mask & BRNF_PPPoE)) in nf_bridge_mtu_reduction() 91 nf_bridge->mask ^= BRNF_BRIDGED_DNAT; in br_nf_pre_routing_finish_bridge_slow()
|
D | signal.h | 173 static inline void sigaddsetmask(sigset_t *set, unsigned long mask) in sigaddsetmask() argument 175 set->sig[0] |= mask; in sigaddsetmask() 178 static inline void sigdelsetmask(sigset_t *set, unsigned long mask) in sigdelsetmask() argument 180 set->sig[0] &= ~mask; in sigdelsetmask() 183 static inline int sigtestsetmask(sigset_t *set, unsigned long mask) in sigtestsetmask() argument 185 return (set->sig[0] & mask) != 0; in sigtestsetmask() 188 static inline void siginitset(sigset_t *set, unsigned long mask) in siginitset() argument 190 set->sig[0] = mask; in siginitset() 200 static inline void siginitsetinv(sigset_t *set, unsigned long mask) in siginitsetinv() argument 202 set->sig[0] = ~mask; in siginitsetinv() [all …]
|
D | dma-mapping.h | 57 int (*dma_supported)(struct device *dev, u64 mask); 58 int (*set_dma_mask)(struct device *dev, u64 mask); 95 int dma_set_coherent_mask(struct device *dev, u64 mask); 97 static inline int dma_set_coherent_mask(struct device *dev, u64 mask) in dma_set_coherent_mask() argument 99 if (!dma_supported(dev, mask)) in dma_set_coherent_mask() 101 dev->coherent_dma_mask = mask; in dma_set_coherent_mask() 112 static inline int dma_set_mask_and_coherent(struct device *dev, u64 mask) in dma_set_mask_and_coherent() argument 114 int rc = dma_set_mask(dev, mask); in dma_set_mask_and_coherent() 116 dma_set_coherent_mask(dev, mask); in dma_set_mask_and_coherent() 124 static inline int dma_coerce_mask_and_coherent(struct device *dev, u64 mask) in dma_coerce_mask_and_coherent() argument [all …]
|
D | parport_pc.h | 128 unsigned char mask, in __parport_pc_frob_control() argument 136 mask, val, ctr, ((ctr & ~mask) ^ val) & priv->ctr_writable); in __parport_pc_frob_control() 138 ctr = (ctr & ~mask) ^ val; in __parport_pc_frob_control() 184 unsigned char mask, in parport_pc_frob_control() argument 193 if (mask & 0x20) { in parport_pc_frob_control() 204 mask &= wm; in parport_pc_frob_control() 207 return __parport_pc_frob_control (p, mask, val); in parport_pc_frob_control()
|
/include/linux/netfilter/ipset/ |
D | ip_set_bitmap.h | 19 u32 mask = 0xFFFFFFFE; in range_to_mask() local 22 while (--(*bits) > 0 && mask && (to & mask) != from) in range_to_mask() 23 mask <<= 1; in range_to_mask() 25 return mask; in range_to_mask()
|
/include/linux/ssb/ |
D | ssb_embedded.h | 11 u32 ssb_gpio_in(struct ssb_bus *bus, u32 mask); 12 u32 ssb_gpio_out(struct ssb_bus *bus, u32 mask, u32 value); 13 u32 ssb_gpio_outen(struct ssb_bus *bus, u32 mask, u32 value); 14 u32 ssb_gpio_control(struct ssb_bus *bus, u32 mask, u32 value); 15 u32 ssb_gpio_intmask(struct ssb_bus *bus, u32 mask, u32 value); 16 u32 ssb_gpio_polarity(struct ssb_bus *bus, u32 mask, u32 value);
|
D | ssb_driver_extif.h | 181 u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask); 182 u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, u32 value); 183 u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, u32 value); 184 u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, u32 value); 185 u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, u32 value); 221 static inline u32 ssb_extif_gpio_in(struct ssb_extif *extif, u32 mask) in ssb_extif_gpio_in() argument 226 static inline u32 ssb_extif_gpio_out(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_out() argument 232 static inline u32 ssb_extif_gpio_outen(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_outen() argument 238 static inline u32 ssb_extif_gpio_polarity(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_polarity() argument 244 static inline u32 ssb_extif_gpio_intmask(struct ssb_extif *extif, u32 mask, in ssb_extif_gpio_intmask() argument
|
/include/uapi/linux/ |
D | kernel.h | 10 #define __ALIGN_KERNEL_MASK(x, mask) (((x) + (mask)) & ~(mask)) argument
|
/include/net/ |
D | dsfield.h | 27 static inline void ipv4_change_dsfield(struct iphdr *iph,__u8 mask, in ipv4_change_dsfield() argument 33 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 43 static inline void ipv6_change_dsfield(struct ipv6hdr *ipv6h,__u8 mask, in ipv6_change_dsfield() argument 48 *p = (*p & htons((((u16)mask << 4) | 0xf00f))) | htons((u16)value << 4); in ipv6_change_dsfield()
|
/include/uapi/linux/netfilter/ |
D | xt_mark.h | 7 __u32 mark, mask; member 11 __u32 mark, mask; member
|
/include/crypto/ |
D | algapi.h | 25 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask); 27 int (*init)(struct crypto_tfm *tfm, u32 type, u32 mask); 31 struct crypto_alg *(*lookup)(const char *name, u32 type, u32 mask); 65 u32 mask; member 143 struct crypto_instance *inst, u32 mask); 150 u32 mask); 164 u32 type, u32 mask); 167 u32 type, u32 mask) in crypto_attr_alg() argument 169 return crypto_attr_alg2(rta, NULL, type, mask); in crypto_attr_alg() 262 u32 mask = CRYPTO_ALG_TYPE_MASK; in crypto_spawn_blkcipher() local [all …]
|
D | cryptd.h | 31 u32 type, u32 mask); 47 u32 type, u32 mask); 63 u32 type, u32 mask);
|
/include/trace/events/ |
D | ipi.h | 20 TP_PROTO(const struct cpumask *mask, const char *reason), 22 TP_ARGS(mask, reason), 30 __assign_bitmask(target_cpus, cpumask_bits(mask), nr_cpumask_bits);
|