| /OK3568_Linux_fs/kernel/include/asm-generic/ |
| H A D | atomic.h | 169 #define atomic_read(v) READ_ONCE((v)->counter) argument 179 #define atomic_set(v, i) WRITE_ONCE(((v)->counter), (i)) argument 183 static inline void atomic_add(int i, atomic_t *v) in atomic_add() 188 static inline void atomic_sub(int i, atomic_t *v) in atomic_sub() 193 #define atomic_xchg(ptr, v) (xchg(&(ptr)->counter, (v))) argument 194 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), (old), (new))) argument
|
| /OK3568_Linux_fs/kernel/arch/c6x/include/asm/ |
| H A D | unaligned.h | 82 #define put_unaligned_le32(v, p) put_unaligned32(__swab32(v), (p)) argument 83 #define put_unaligned_le64(v, p) put_unaligned64(__swab64(v), (p)) argument 84 #define put_unaligned_be32(v, p) put_unaligned32((v), (p)) argument 85 #define put_unaligned_be64(v, p) put_unaligned64((v), (p)) argument 95 #define put_unaligned_le32(v, p) put_unaligned32((v), (p)) argument 96 #define put_unaligned_le64(v, p) put_unaligned64((v), (p)) argument 97 #define put_unaligned_be32(v, p) put_unaligned32(__swab32(v), (p)) argument 98 #define put_unaligned_be64(v, p) put_unaligned64(__swab64(v), (p)) argument
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | bootflag.c | 23 static int __init parity(u8 v) in parity() 36 static void __init sbf_write(u8 v) in sbf_write() 57 u8 v; in sbf_read() local 69 static int __init sbf_value_valid(u8 v) in sbf_value_valid() 81 u8 v; in sbf_init() local
|
| /OK3568_Linux_fs/kernel/arch/powerpc/boot/ |
| H A D | addnote.c | 68 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument 70 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument 71 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ argument 78 #define PUT_16LE(off, v) (buf[off] = (v) & 0xff, \ argument 80 #define PUT_32LE(off, v) (PUT_16LE((off), (v)), PUT_16LE((off) + 2, (v) >> 16L)) argument 81 #define PUT_64LE(off, v) (PUT_32LE((off), (v)), PUT_32LE((off) + 4, (v) >> 32L)) argument 86 #define PUT_16(off, v) (e_data == ELFDATA2MSB ? PUT_16BE(off, v) : \ argument 88 #define PUT_32(off, v) (e_data == ELFDATA2MSB ? PUT_32BE(off, v) : \ argument 90 #define PUT_64(off, v) (e_data == ELFDATA2MSB ? PUT_64BE(off, v) : \ argument
|
| /OK3568_Linux_fs/kernel/arch/arc/include/asm/ |
| H A D | setup.h | 30 #define IS_AVAIL1(v, s) ((v) ? s : "") argument 31 #define IS_DISABLED_RUN(v) ((v) ? "" : "(disabled) ") argument 32 #define IS_USED_RUN(v) ((v) ? "" : "(not used) ") argument 34 #define IS_AVAIL2(v, s, cfg) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_USED_CFG(cfg)) argument 35 #define IS_AVAIL3(v, v2, s) IS_AVAIL1(v, s), IS_AVAIL1(v, IS_DISABLED_RUN(v2)) argument
|
| /OK3568_Linux_fs/kernel/arch/microblaze/include/asm/ |
| H A D | io.h | 43 #define out_be32(a, v) __raw_writel((v), (void __iomem __force *)(a)) argument 44 #define out_be16(a, v) __raw_writew((v), (a)) argument 49 #define writel_be(v, a) out_be32((__force unsigned *)a, v) argument 53 #define out_le32(a, v) __raw_writel(__cpu_to_le32(v), (a)) argument 54 #define out_le16(a, v) __raw_writew(__cpu_to_le16(v), (a)) argument 60 #define out_8(a, v) __raw_writeb((v), (a)) argument
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | atomic64.c | 36 static inline raw_spinlock_t *lock_addr(const atomic64_t *v) in lock_addr() 45 s64 atomic64_read(const atomic64_t *v) in atomic64_read() 58 void atomic64_set(atomic64_t *v, s64 i) in atomic64_set() 133 s64 atomic64_dec_if_positive(atomic64_t *v) in atomic64_dec_if_positive() 148 s64 atomic64_cmpxchg(atomic64_t *v, s64 o, s64 n) in atomic64_cmpxchg() 163 s64 atomic64_xchg(atomic64_t *v, s64 new) in atomic64_xchg() 177 s64 atomic64_fetch_add_unless(atomic64_t *v, s64 a, s64 u) in atomic64_fetch_add_unless()
|
| /OK3568_Linux_fs/kernel/net/core/ |
| H A D | net-procfs.c | 66 static void *dev_seq_next(struct seq_file *seq, void *v, loff_t *pos) in dev_seq_next() 72 static void dev_seq_stop(struct seq_file *seq, void *v) in dev_seq_stop() 106 static int dev_seq_show(struct seq_file *seq, void *v) in dev_seq_show() 143 static void *softnet_seq_next(struct seq_file *seq, void *v, loff_t *pos) in softnet_seq_next() 149 static void softnet_seq_stop(struct seq_file *seq, void *v) in softnet_seq_stop() 153 static int softnet_seq_show(struct seq_file *seq, void *v) in softnet_seq_show() 236 static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos) in ptype_seq_next() 283 static void ptype_seq_stop(struct seq_file *seq, void *v) in ptype_seq_stop() 289 static int ptype_seq_show(struct seq_file *seq, void *v) in ptype_seq_show() 358 static int dev_mc_seq_show(struct seq_file *seq, void *v) in dev_mc_seq_show()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intersil/hostap/ |
| H A D | hostap_pci.c | 56 static inline void hfa384x_outb_debug(struct net_device *dev, int a, u8 v) in hfa384x_outb_debug() 79 u8 v; in hfa384x_inb_debug() local 92 static inline void hfa384x_outw_debug(struct net_device *dev, int a, u16 v) in hfa384x_outw_debug() 115 u16 v; in hfa384x_inw_debug() local 128 #define HFA384X_OUTB(v,a) hfa384x_outb_debug(dev, (a), (v)) argument 130 #define HFA384X_OUTW(v,a) hfa384x_outw_debug(dev, (a), (v)) argument 132 #define HFA384X_OUTW_DATA(v,a) hfa384x_outw_debug(dev, (a), le16_to_cpu((v))) argument 137 static inline void hfa384x_outb(struct net_device *dev, int a, u8 v) in hfa384x_outb() 155 static inline void hfa384x_outw(struct net_device *dev, int a, u16 v) in hfa384x_outw() 173 #define HFA384X_OUTB(v,a) hfa384x_outb(dev, (a), (v)) argument [all …]
|
| /OK3568_Linux_fs/kernel/arch/s390/include/asm/ |
| H A D | archrandom.h | 24 static inline bool __must_check arch_get_random_long(unsigned long *v) in arch_get_random_long() 29 static inline bool __must_check arch_get_random_int(unsigned int *v) in arch_get_random_int() 34 static inline bool __must_check arch_get_random_seed_long(unsigned long *v) in arch_get_random_seed_long() 45 static inline bool __must_check arch_get_random_seed_int(unsigned int *v) in arch_get_random_seed_int()
|
| /OK3568_Linux_fs/kernel/arch/x86/boot/ |
| H A D | boot.h | 39 static inline void outb(u8 v, u16 port) in outb() 45 u8 v; in inb() local 50 static inline void outw(u16 v, u16 port) in outw() 56 u16 v; in inw() local 61 static inline void outl(u32 v, u16 port) in outl() 67 u32 v; in inl() local 113 u8 v; in rdfs8() local 119 u16 v; in rdfs16() local 125 u32 v; in rdfs32() local 130 static inline void wrfs8(u8 v, addr_t addr) in wrfs8() [all …]
|
| /OK3568_Linux_fs/kernel/arch/mips/alchemy/common/ |
| H A D | clock.c | 275 unsigned long v = (alchemy_rdsys(AU1000_SYS_POWERCTRL) & 3) + 2; in alchemy_clk_setup_sysbus() local 304 unsigned long v; in alchemy_clk_setup_mem() local 345 unsigned long v = alchemy_rdsmem(AU1000_MEM_STCFG0); in alchemy_clk_setup_lrclk() local 494 unsigned long v, flags; in alchemy_clk_fgv1_en() local 508 unsigned long v = alchemy_rdsys(c->reg) >> (c->shift + 1); in alchemy_clk_fgv1_isen() local 516 unsigned long v, flags; in alchemy_clk_fgv1_dis() local 528 unsigned long v, flags; in alchemy_clk_fgv1_setp() local 553 unsigned long div, v, flags, ret; in alchemy_clk_fgv1_setr() local 573 unsigned long v = alchemy_rdsys(c->reg) >> (c->shift + 2); in alchemy_clk_fgv1_recalc() local 599 unsigned long v = alchemy_rdsys(c->reg); in __alchemy_clk_fgv2_en() local [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/net/fm/ |
| H A D | memac_phy.c | 17 #define memac_out_32(a, v) out_le32(a, v) argument 18 #define memac_clrbits_32(a, v) clrbits_le32(a, v) argument 19 #define memac_setbits_32(a, v) setbits_le32(a, v) argument 21 #define memac_out_32(a, v) out_be32(a, v) argument 22 #define memac_clrbits_32(a, v) clrbits_be32(a, v) argument 23 #define memac_setbits_32(a, v) setbits_be32(a, v) argument
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | page_ref.h | 41 static inline void __page_ref_set(struct page *page, int v) in __page_ref_set() 44 static inline void __page_ref_mod(struct page *page, int v) in __page_ref_mod() 47 static inline void __page_ref_mod_and_test(struct page *page, int v, int ret) in __page_ref_mod_and_test() 50 static inline void __page_ref_mod_and_return(struct page *page, int v, int ret) in __page_ref_mod_and_return() 53 static inline void __page_ref_mod_unless(struct page *page, int v, int u) in __page_ref_mod_unless() 56 static inline void __page_ref_freeze(struct page *page, int v, int ret) in __page_ref_freeze() 59 static inline void __page_ref_unfreeze(struct page *page, int v) in __page_ref_unfreeze() 75 static inline void set_page_count(struct page *page, int v) in set_page_count()
|
| /OK3568_Linux_fs/kernel/net/sctp/ |
| H A D | proc.c | 59 static int sctp_snmp_seq_show(struct seq_file *seq, void *v) in sctp_snmp_seq_show() 146 static void sctp_eps_seq_stop(struct seq_file *seq, void *v) in sctp_eps_seq_stop() 151 static void *sctp_eps_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_eps_seq_next() 161 static int sctp_eps_seq_show(struct seq_file *seq, void *v) in sctp_eps_seq_show() 214 static void sctp_transport_seq_stop(struct seq_file *seq, void *v) in sctp_transport_seq_stop() 227 static void *sctp_transport_seq_next(struct seq_file *seq, void *v, loff_t *pos) in sctp_transport_seq_next() 243 static int sctp_assocs_seq_show(struct seq_file *seq, void *v) in sctp_assocs_seq_show() 302 static int sctp_remaddr_seq_show(struct seq_file *seq, void *v) in sctp_remaddr_seq_show()
|
| /OK3568_Linux_fs/external/security/rk_tee_user/v2/export-ta_arm32/host_include/ |
| H A D | arm32_user_sysreg.h | 15 uint32_t v; in read_cntfrq() local 23 static inline __noprof void write_cntfrq(uint32_t v) in write_cntfrq() 31 uint64_t v; in read_cntpct() local 39 static inline __noprof void write_cntpct(uint64_t v) in write_cntpct()
|
| /OK3568_Linux_fs/kernel/arch/sh/include/asm/ |
| H A D | io.h | 29 #define __raw_writeb(v,a) (__chk_io_ptr(a), *(volatile u8 __force *)(a) = (v)) argument 30 #define __raw_writew(v,a) (__chk_io_ptr(a), *(volatile u16 __force *)(a) = (v)) argument 31 #define __raw_writel(v,a) (__chk_io_ptr(a), *(volatile u32 __force *)(a) = (v)) argument 32 #define __raw_writeq(v,a) (__chk_io_ptr(a), *(volatile u64 __force *)(a) = (v)) argument 44 #define writeb_relaxed(v,c) ((void)__raw_writeb((__force u8)ioswabb(v),c)) argument 45 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)ioswabw(v),c)) argument 46 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)ioswabl(v),c)) argument 47 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)ioswabq(v),c)) argument 54 #define writeb(v,a) ({ wmb(); writeb_relaxed((v),(a)); }) argument 55 #define writew(v,a) ({ wmb(); writew_relaxed((v),(a)); }) argument [all …]
|
| H A D | atomic.h | 22 #define atomic_read(v) READ_ONCE((v)->counter) argument 23 #define atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) argument 33 #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) argument 34 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) argument
|
| /OK3568_Linux_fs/kernel/arch/sh/mm/ |
| H A D | cache-sh2a.c | 26 static void sh2a_flush_oc_line(unsigned long v, int way) in sh2a_flush_oc_line() 39 static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v) in sh2a_invalidate_line() 52 unsigned long v; in sh2a__flush_wback_region() local 93 unsigned long v; in sh2a__flush_purge_region() local 123 unsigned long v; in sh2a__flush_invalidate_region() local 154 unsigned long v; in sh2a_flush_icache_range() local
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/os_dep/linux/ |
| H A D | rtw_proc.c | 89 static int proc_get_dummy(struct seq_file *m, void *v) in proc_get_dummy() 94 static int proc_get_drv_version(struct seq_file *m, void *v) in proc_get_drv_version() 100 static int proc_get_log_level(struct seq_file *m, void *v) in proc_get_log_level() 106 static int proc_get_drv_cfg(struct seq_file *m, void *v) in proc_get_drv_cfg() 144 static int proc_get_mstat(struct seq_file *m, void *v) in proc_get_mstat() 151 static int proc_get_country_chplan_map(struct seq_file *m, void *v) in proc_get_country_chplan_map() 157 static int proc_get_chplan_id_list(struct seq_file *m, void *v) in proc_get_chplan_id_list() 163 static int proc_get_chplan_test(struct seq_file *m, void *v) in proc_get_chplan_test() 263 static int proc_get_sd_f0_reg_dump(struct seq_file *m, void *v) in proc_get_sd_f0_reg_dump() 273 static int proc_get_sdio_local_reg_dump(struct seq_file *m, void *v) in proc_get_sdio_local_reg_dump() [all …]
|
| /OK3568_Linux_fs/kernel/sound/soc/ti/ |
| H A D | davinci-i2s.c | 64 #define DAVINCI_MCBSP_SPCR_RINTM(v) ((v) << 4) argument 66 #define DAVINCI_MCBSP_SPCR_XINTM(v) ((v) << 20) argument 71 #define DAVINCI_MCBSP_RCR_RWDLEN1(v) ((v) << 5) argument 72 #define DAVINCI_MCBSP_RCR_RFRLEN1(v) ((v) << 8) argument 73 #define DAVINCI_MCBSP_RCR_RDATDLY(v) ((v) << 16) argument 75 #define DAVINCI_MCBSP_RCR_RWDLEN2(v) ((v) << 21) argument 76 #define DAVINCI_MCBSP_RCR_RFRLEN2(v) ((v) << 24) argument 79 #define DAVINCI_MCBSP_XCR_XWDLEN1(v) ((v) << 5) argument 80 #define DAVINCI_MCBSP_XCR_XFRLEN1(v) ((v) << 8) argument 81 #define DAVINCI_MCBSP_XCR_XDATDLY(v) ((v) << 16) argument [all …]
|
| /OK3568_Linux_fs/u-boot/arch/arm/include/asm/ |
| H A D | io.h | 47 #define __arch_putb(v,a) (*(volatile unsigned char *)(a) = (v)) argument 48 #define __arch_putw(v,a) (*(volatile unsigned short *)(a) = (v)) argument 49 #define __arch_putl(v,a) (*(volatile unsigned int *)(a) = (v)) argument 50 #define __arch_putq(v,a) (*(volatile unsigned long long *)(a) = (v)) argument 97 #define __raw_writeb(v,a) __arch_putb(v,a) argument 98 #define __raw_writew(v,a) __arch_putw(v,a) argument 99 #define __raw_writel(v,a) __arch_putl(v,a) argument 100 #define __raw_writeq(v,a) __arch_putq(v,a) argument 115 #define writeb(v,c) ({ u8 __v = v; __iowmb(); __arch_putb(__v,c); __v; }) argument 116 #define writew(v,c) ({ u16 __v = v; __iowmb(); __arch_putw(__v,c); __v; }) argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/os_dep/linux/ |
| H A D | rtw_proc.c | 89 static int proc_get_dummy(struct seq_file *m, void *v) in proc_get_dummy() 94 static int proc_get_drv_version(struct seq_file *m, void *v) in proc_get_drv_version() 100 static int proc_get_log_level(struct seq_file *m, void *v) in proc_get_log_level() 106 static int proc_get_drv_cfg(struct seq_file *m, void *v) in proc_get_drv_cfg() 142 static int proc_get_mstat(struct seq_file *m, void *v) in proc_get_mstat() 149 static int proc_get_country_chplan_map(struct seq_file *m, void *v) in proc_get_country_chplan_map() 155 static int proc_get_chplan_id_list(struct seq_file *m, void *v) in proc_get_chplan_id_list() 161 static int proc_get_chplan_test(struct seq_file *m, void *v) in proc_get_chplan_test() 261 static int proc_get_sd_f0_reg_dump(struct seq_file *m, void *v) in proc_get_sd_f0_reg_dump() 271 static int proc_get_sdio_local_reg_dump(struct seq_file *m, void *v) in proc_get_sdio_local_reg_dump() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/musb/ |
| H A D | tusb6010.h | 45 #define TUSB_PHY_OTG_CTRL_PHYREF_CLKSEL(v) (((v) & 3) << 7) argument 69 # define TUSB_DEV_OTG_TIMER_VAL(v) ((v) & 0x07ffffff) argument 75 #define TUSB_PRCM_CONF_SYS_CLKSEL(v) (((v) & 3) << 16) argument 79 #define TUSB_PRCM_MNGMT_SRP_FIX_TIMER(v) (((v) & 0xf) << 25) argument 81 #define TUSB_PRCM_MNGMT_VBUS_VALID_TIMER(v) (((v) & 0xf) << 20) argument 188 #define TUSB_INT_CTRL_CONF_INT_RELCYC(v) (((v) & 0x7) << 18) argument 191 #define TUSB_GPIO_CONF_DMAREQ(v) (((v) & 0x3f) << 24) argument 192 #define TUSB_DMA_REQ_CONF_BURST_SIZE(v) (((v) & 3) << 26) argument 193 #define TUSB_DMA_REQ_CONF_DMA_REQ_EN(v) (((v) & 0x3f) << 20) argument 194 #define TUSB_DMA_REQ_CONF_DMA_REQ_ASSER(v) (((v) & 0xf) << 16) argument [all …]
|
| /OK3568_Linux_fs/kernel/include/net/ |
| H A D | red.h | 160 static inline void red_set_vars(struct red_vars *v) in red_set_vars() 268 static inline int red_is_idling(const struct red_vars *v) in red_is_idling() 273 static inline void red_start_of_idle_period(struct red_vars *v) in red_start_of_idle_period() 278 static inline void red_end_of_idle_period(struct red_vars *v) in red_end_of_idle_period() 283 static inline void red_restart(struct red_vars *v) in red_restart() 291 const struct red_vars *v) in red_calc_qavg_from_idle_time() 339 const struct red_vars *v, in red_calc_qavg_no_idle_time() 355 const struct red_vars *v, in red_calc_qavg() 371 const struct red_vars *v, in red_mark_probability() 416 struct red_vars *v, in red_action() [all …]
|