/include/linux/ |
A D | log2.h | 22 int __ilog2_u32(u32 n) in __ilog2_u32() 30 int __ilog2_u64(u64 n) in __ilog2_u64() 45 bool is_power_of_2(unsigned long n) in is_power_of_2() 77 #define const_ilog2(n) \ argument 156 #define ilog2(n) \ argument 174 #define roundup_pow_of_two(n) \ argument 191 #define rounddown_pow_of_two(n) \ argument 199 int __order_base_2(unsigned long n) in __order_base_2() 217 #define order_base_2(n) \ argument 226 int __bits_per(unsigned long n) in __bits_per() [all …]
|
A D | wordpart.h | 14 #define upper_32_bits(n) ((u32)(((n) >> 16) >> 16)) argument 20 #define lower_32_bits(n) ((u32)((n) & 0xffffffff)) argument 26 #define upper_16_bits(n) ((u16)((n) >> 16)) argument 32 #define lower_16_bits(n) ((u16)((n) & 0xffff)) argument 52 # define aligned_byte_mask(n) ((1UL << 8*(n))-1) argument 54 # define aligned_byte_mask(n) (~0xffUL << (BITS_PER_LONG - 8 - 8*(n))) argument
|
A D | list_bl.h | 64 struct hlist_bl_node *n) in hlist_bl_set_first() 77 static inline void hlist_bl_add_head(struct hlist_bl_node *n, in hlist_bl_add_head() 89 static inline void hlist_bl_add_before(struct hlist_bl_node *n, in hlist_bl_add_before() 104 static inline void hlist_bl_add_behind(struct hlist_bl_node *n, in hlist_bl_add_behind() 115 static inline void __hlist_bl_del(struct hlist_bl_node *n) in __hlist_bl_del() 131 static inline void hlist_bl_del(struct hlist_bl_node *n) in hlist_bl_del() 138 static inline void hlist_bl_del_init(struct hlist_bl_node *n) in hlist_bl_del_init() 183 #define hlist_bl_for_each_entry_safe(tpos, pos, n, head, member) \ argument
|
A D | rculist_nulls.h | 33 static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_init_rcu() 74 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() 99 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() 130 static inline void hlist_nulls_add_tail_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_tail_rcu() 149 static inline void hlist_nulls_add_fake(struct hlist_nulls_node *n) in hlist_nulls_add_fake()
|
A D | instrumented.h | 110 instrument_copy_to_user(void __user *to, const void *from, unsigned long n) in instrument_copy_to_user() 127 instrument_copy_from_user_before(const void *to, const void __user *from, unsigned long n) in instrument_copy_from_user_before() 145 unsigned long n, unsigned long left) in instrument_copy_from_user_after() 160 unsigned long n) in instrument_memcpy_before() 179 unsigned long n, in instrument_memcpy_after()
|
A D | uaccess.h | 90 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() 102 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() 130 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() 140 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() 159 _inline_copy_from_user(void *to, const void __user *from, unsigned long n) in _inline_copy_from_user() 190 _inline_copy_to_user(void __user *to, const void *from, unsigned long n) in _inline_copy_to_user() 205 copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() 217 copy_to_user(void __user *to, const void *from, unsigned long n) in copy_to_user() 327 unsigned long n) in __copy_from_user_inatomic_nocache()
|
A D | rculist_bl.h | 12 struct hlist_bl_node *n) in hlist_bl_set_first_rcu() 46 static inline void hlist_bl_del_rcu(struct hlist_bl_node *n) in hlist_bl_del_rcu() 71 static inline void hlist_bl_add_head_rcu(struct hlist_bl_node *n, in hlist_bl_add_head_rcu()
|
A D | list.h | 723 #define list_for_each_safe(pos, n, head) \ argument 734 #define list_for_each_prev_safe(pos, n, head) \ argument 856 #define list_for_each_entry_safe(pos, n, head, member) \ argument 921 #define list_safe_reset_next(pos, n, member) \ argument 975 static inline void __hlist_del(struct hlist_node *n) in __hlist_del() 992 static inline void hlist_del(struct hlist_node *n) in hlist_del() 1005 static inline void hlist_del_init(struct hlist_node *n) in hlist_del_init() 1036 static inline void hlist_add_before(struct hlist_node *n, in hlist_add_before() 1050 static inline void hlist_add_behind(struct hlist_node *n, in hlist_add_behind() 1069 static inline void hlist_add_fake(struct hlist_node *n) in hlist_add_fake() [all …]
|
A D | rio_regs.h | 224 #define RIO_PORT_N_MNT_REQ_CSR(n, m) (0x40 + (n) * (0x20 * (m))) argument 236 #define RIO_PORT_N_CTL2_CSR(n, m) (0x54 + (n) * (0x20 * (m))) argument 246 #define RIO_PORT_N_CTL_CSR(n, m) (0x5c + (n) * (0x20 * (m))) argument 267 #define RIO_DEV_PORT_N_MNT_REQ_CSR(d, n) \ argument 270 #define RIO_DEV_PORT_N_MNT_RSP_CSR(d, n) \ argument 273 #define RIO_DEV_PORT_N_ACK_STS_CSR(d, n) \ argument 276 #define RIO_DEV_PORT_N_CTL2_CSR(d, n) \ argument 279 #define RIO_DEV_PORT_N_ERR_STS_CSR(d, n) \ argument 282 #define RIO_DEV_PORT_N_CTL_CSR(d, n) \ argument 285 #define RIO_DEV_PORT_N_OB_ACK_CSR(d, n) \ argument [all …]
|
A D | kfifo.h | 530 #define kfifo_in(fifo, buf, n) \ argument 552 #define kfifo_in_spinlocked(fifo, buf, n, lock) \ argument 573 #define kfifo_in_spinlocked_noirqsave(fifo, buf, n, lock) \ argument 583 #define kfifo_in_locked(fifo, buf, n, lock) \ argument 598 #define kfifo_out(fifo, buf, n) \ argument 622 #define kfifo_out_spinlocked(fifo, buf, n, lock) \ argument 645 #define kfifo_out_spinlocked_noirqsave(fifo, buf, n, lock) \ argument 657 #define kfifo_out_locked(fifo, buf, n, lock) \ argument 831 #define kfifo_out_peek(fifo, buf, n) \ argument 861 #define kfifo_out_linear(fifo, tail, n) \ argument [all …]
|
A D | ioport.h | 341 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name), 0) argument 343 #define __request_mem_region(start,n,name, excl) __request_region(&iomem_resource, (start), (n), (n… argument 344 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) argument 345 #define request_mem_region_muxed(start, n, name) \ argument 347 #define request_mem_region_exclusive(start,n,name) \ argument 357 #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) argument 358 #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) argument 376 #define devm_request_region(dev,start,n,name) \ argument 378 #define devm_request_mem_region(dev,start,n,name) \ argument 385 #define devm_release_region(dev, start, n) \ argument [all …]
|
A D | rcu_notifier.h | 27 static inline int rcu_stall_chain_notifier_register(struct notifier_block *n) { return -EEXIST; } in rcu_stall_chain_notifier_register() 28 static inline int rcu_stall_chain_notifier_unregister(struct notifier_block *n) { return -ENOENT; } in rcu_stall_chain_notifier_unregister()
|
A D | skb_array.h | 107 struct sk_buff **array, int n) in skb_array_consume_batched() 118 struct sk_buff **array, int n) in skb_array_consume_batched_irq() 129 struct sk_buff **array, int n) in skb_array_consume_batched_any() 141 struct sk_buff **array, int n) in skb_array_consume_batched_bh() 192 struct sk_buff **skbs, int n) in skb_array_unconsume()
|
A D | torture.h | 117 #define torture_create_kthread(n, arg, tp) \ argument 120 #define torture_create_kthread_cb(n, arg, tp, cbf) \ argument 123 #define torture_stop_kthread(n, tp) \ argument
|
A D | string.h | 32 void *memdup_array_user(const void __user *src, size_t n, size_t size) in memdup_array_user() 52 void *vmemdup_array_user(const void __user *src, size_t n, size_t size) in vmemdup_array_user() 236 __kernel_size_t n) in memset_l() 244 static inline void *memset_p(void **p, void *v, __kernel_size_t n) in memset_p() 294 static inline bool mem_is_zero(const void *s, size_t n) in mem_is_zero()
|
/include/media/ |
A D | cec-notifier.h | 120 static inline void cec_notifier_conn_unregister(struct cec_notifier *n) in cec_notifier_conn_unregister() 132 static inline void cec_notifier_cec_adap_unregister(struct cec_notifier *n, in cec_notifier_cec_adap_unregister() 137 static inline void cec_notifier_set_phys_addr(struct cec_notifier *n, u16 pa) in cec_notifier_set_phys_addr() 141 static inline void cec_notifier_set_phys_addr_from_edid(struct cec_notifier *n, in cec_notifier_set_phys_addr_from_edid() 161 static inline void cec_notifier_phys_addr_invalidate(struct cec_notifier *n) in cec_notifier_phys_addr_invalidate()
|
A D | mipi-csi2.h | 16 #define MIPI_CSI2_DT_GENERIC_SHORT(n) (0x08 + (n)) /* 0..7 */ argument 22 #define MIPI_CSI2_DT_GENERIC_LONG(n) (0x13 + (n) - 1) /* 1..4 */ argument 45 #define MIPI_CSI2_DT_USER_DEFINED(n) (0x30 + (n)) /* 0..7 */ argument
|
/include/linux/soundwire/ |
A D | sdw_registers.h | 241 #define SDW_DPN_INT(n) (0x0 + SDW_DPN_SIZE * (n)) argument 242 #define SDW_DPN_INTMASK(n) (0x1 + SDW_DPN_SIZE * (n)) argument 243 #define SDW_DPN_PORTCTRL(n) (0x2 + SDW_DPN_SIZE * (n)) argument 244 #define SDW_DPN_BLOCKCTRL1(n) (0x3 + SDW_DPN_SIZE * (n)) argument 245 #define SDW_DPN_PREPARESTATUS(n) (0x4 + SDW_DPN_SIZE * (n)) argument 246 #define SDW_DPN_PREPARECTRL(n) (0x5 + SDW_DPN_SIZE * (n)) argument 267 #define SDW_DPN_CHANNELEN_B0(n) (0x20 + SDW_DPN_SIZE * (n)) argument 285 #define SDW_DPN_HCTRL_B0(n) (0x26 + SDW_DPN_SIZE * (n)) argument 286 #define SDW_DPN_HCTRL_B1(n) (0x36 + SDW_DPN_SIZE * (n)) argument 291 #define SDW_DPN_LANECTRL_B0(n) (0x28 + SDW_DPN_SIZE * (n)) argument [all …]
|
/include/asm-generic/ |
A D | div64.h | 45 # define do_div(n,base) ({ \ argument 65 #define __div64_const32(n, ___b) \ argument 142 uint64_t __arch_xprod_64(const uint64_t m, uint64_t n, bool bias) in __arch_xprod_64() 180 # define do_div(n,base) ({ \ argument
|
A D | uaccess.h | 82 raw_copy_from_user(void *to, const void __user * from, unsigned long n) in raw_copy_from_user() 89 raw_copy_to_user(void __user *to, const void *from, unsigned long n) in raw_copy_to_user() 212 __clear_user(void __user *to, unsigned long n) in __clear_user() 220 clear_user(void __user *to, unsigned long n) in clear_user()
|
/include/linux/mfd/ |
A D | da8xx-cfgchip.h | 14 #define CFGCHIP(n) ((n) * 4) argument 18 #define CFGCHIP0_EDMA30TC1DBS(n) ((n) << 2) argument 23 #define CFGCHIP0_EDMA30TC0DBS(n) ((n) << 0) argument 30 #define CFGCHIP1_CAP2SRC(n) ((n) << 27) argument 47 #define CFGCHIP1_CAP1SRC(n) ((n) << 22) argument 64 #define CFGCHIP1_CAP0SRC(n) ((n) << 17) argument 83 #define CFGCHIP0_EDMA31TC0DBS(n) ((n) << 13) argument 89 #define CFGCHIP1_AMUTESEL0(n) ((n) << 0) argument 105 #define CFGCHIP2_OTGMODE(n) ((n) << 13) argument 120 #define CFGCHIP2_REFFREQ(n) ((n) << 0) argument
|
A D | mxs-lradc.h | 53 #define LRADC_CTRL1_LRADC_IRQ_EN(n) (1 << ((n) + 16)) argument 58 #define LRADC_CTRL1_LRADC_IRQ(n) BIT(n) argument 70 #define LRADC_CH(n) (0x50 + (0x10 * (n))) argument 79 #define LRADC_DELAY(n) (0xd0 + (0x10 * (n))) argument 103 #define LRADC_CTRL4_LRADCSELECT_MASK(n) (0xf << ((n) * 4)) argument 104 #define LRADC_CTRL4_LRADCSELECT_OFFSET(n) ((n) * 4) argument 105 #define LRADC_CTRL4_LRADCSELECT(n, x) \ argument
|
/include/soc/qcom/ |
A D | rpmh.h | 28 const struct tcs_cmd *cmd, u32 n) in rpmh_write() 33 const struct tcs_cmd *cmd, u32 n) in rpmh_write_async() 38 const struct tcs_cmd *cmd, u32 *n) in rpmh_write_batch()
|
/include/uapi/linux/usb/ |
A D | video.h | 236 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument 238 #define UVC_HEADER_DESCRIPTOR(n) \ argument 241 #define DECLARE_UVC_HEADER_DESCRIPTOR(n) \ argument 311 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) \ argument 405 #define UVC_INPUT_HEADER_DESCRIPTOR(n, p) \ argument 440 #define UVC_OUTPUT_HEADER_DESCRIPTOR(n, p) \ argument 525 #define UVC_FRAME_UNCOMPRESSED(n) \ argument 581 #define UVC_FRAME_MJPEG(n) \ argument 584 #define DECLARE_UVC_FRAME_MJPEG(n) \ argument 639 #define UVC_FRAME_FRAMEBASED(n) \ argument [all …]
|
/include/linux/clk/ |
A D | at91_pmc.h | 92 #define AT91_PMC_MUL_GET(n) ((n) >> 16 & 0x7ff) argument 94 #define AT91_PMC3_MUL_GET(n) ((n) >> 18 & 0x7f) argument 186 #define AT91_PMC_SMDDIV(n) (((n) << 8) & AT91_PMC_SMD_DIV) argument 188 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ argument 216 #define AT91_PMC_FSTT(n) BIT(n) argument 260 #define AT91_PMC_AUDIO_PLL_ND(n) ((n) << AT91_PMC_AUDIO_PLL_ND_OFFSET) argument 263 #define AT91_PMC_AUDIO_PLL_QDPMC(n) ((n) << AT91_PMC_AUDIO_PLL_QDPMC_OFFSET) argument 269 #define AT91_PMC_AUDIO_PLL_QDPAD(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_OFFSET) argument 272 #define AT91_PMC_AUDIO_PLL_QDPAD_DIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_DIV_OFFSET) argument 276 #define AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV_OFFSET) argument
|