| /linux/drivers/clocksource/ |
| H A D | timer-stm32.c | 62 static void stm32_timer_of_bits_set(struct timer_of *to, int bits) in stm32_timer_of_bits_set() argument 64 struct stm32_timer_private *pd = to->private_data; in stm32_timer_of_bits_set() 78 static int stm32_timer_of_bits_get(struct timer_of *to) in stm32_timer_of_bits_get() argument 80 struct stm32_timer_private *pd = to->private_data; in stm32_timer_of_bits_get() 99 static void stm32_clock_event_disable(struct timer_of *to) in stm32_clock_event_disable() argument 101 writel_relaxed(0, timer_of_base(to) + TIM_DIER); in stm32_clock_event_disable() 112 static void stm32_timer_start(struct timer_of *to) in stm32_timer_start() argument 114 writel_relaxed(TIM_CR1_UDIS | TIM_CR1_CEN, timer_of_base(to) + TIM_CR1); in stm32_timer_start() 119 struct timer_of *to = to_timer_of(clkevt); in stm32_clock_event_shutdown() local 121 stm32_clock_event_disable(to); in stm32_clock_event_shutdown() [all …]
|
| H A D | timer-mediatek.c | 56 #define SYST_CON_REG(to) (timer_of_base(to) + SYST_CON) argument 57 #define SYST_VAL_REG(to) (timer_of_base(to) + SYST_VAL) argument 75 static void mtk_syst_ack_irq(struct timer_of *to) in mtk_syst_ack_irq() argument 78 writel(SYST_CON_EN, SYST_CON_REG(to)); in mtk_syst_ack_irq() 79 writel(SYST_CON_IRQ_CLR | SYST_CON_EN, SYST_CON_REG(to)); in mtk_syst_ack_irq() 85 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_handler() local 87 mtk_syst_ack_irq(to); in mtk_syst_handler() 96 struct timer_of *to = to_timer_of(clkevt); in mtk_syst_clkevt_next_event() local 99 writel(SYST_CON_EN, SYST_CON_REG(to)); in mtk_syst_clkevt_next_event() 105 writel(ticks, SYST_VAL_REG(to)); in mtk_syst_clkevt_next_event() [all …]
|
| H A D | renesas-ostm.c | 46 static void ostm_timer_stop(struct timer_of *to) in ostm_timer_stop() argument 48 if (readb(timer_of_base(to) + OSTM_TE) & TE) { in ostm_timer_stop() 49 writeb(TT, timer_of_base(to) + OSTM_TT); in ostm_timer_stop() 56 while (readb(timer_of_base(to) + OSTM_TE) & TE) in ostm_timer_stop() 61 static int __init ostm_init_clksrc(struct timer_of *to) in ostm_init_clksrc() argument 63 ostm_timer_stop(to); in ostm_init_clksrc() 65 writel(0, timer_of_base(to) + OSTM_CMP); in ostm_init_clksrc() 66 writeb(CTL_FREERUN, timer_of_base(to) + OSTM_CTL); in ostm_init_clksrc() 67 writeb(TS, timer_of_base(to) + OSTM_TS); in ostm_init_clksrc() 69 return clocksource_mmio_init(timer_of_base(to) + OSTM_CNT, in ostm_init_clksrc() [all …]
|
| H A D | timer-rtl-otto.c | 52 struct timer_of to; member 100 struct timer_of *to = to_timer_of(clkevt); in rttm_timer_interrupt() local 102 rttm_ack_irq(to->of_base.base); in rttm_timer_interrupt() 103 RTTM_DEBUG(to->of_base.base); in rttm_timer_interrupt() 131 static void rttm_start_timer(struct timer_of *to, u32 mode) in rttm_start_timer() argument 133 rttm_enable_timer(to->of_base.base, mode, to->of_clk.rate / RTTM_TICKS_PER_SEC); in rttm_start_timer() 138 struct timer_of *to = to_timer_of(clkevt); in rttm_next_event() local 140 RTTM_DEBUG(to->of_base.base); in rttm_next_event() 141 rttm_bounce_timer(to->of_base.base, RTTM_CTRL_COUNTER); in rttm_next_event() 142 rttm_disable_timer(to->of_base.base); in rttm_next_event() [all …]
|
| H A D | timer-milbeaut.c | 52 struct timer_of *to = to_timer_of(clk); in mlb_timer_interrupt() local 55 val = readl_relaxed(timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); in mlb_timer_interrupt() 57 writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); in mlb_timer_interrupt() 64 static void mlb_evt_timer_start(struct timer_of *to, bool periodic) in mlb_evt_timer_start() argument 71 writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); in mlb_evt_timer_start() 74 static void mlb_evt_timer_stop(struct timer_of *to) in mlb_evt_timer_stop() argument 76 u32 val = readl_relaxed(timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); in mlb_evt_timer_stop() 79 writel_relaxed(val, timer_of_base(to) + MLB_TMR_EVT_TMCSR_OFS); in mlb_evt_timer_stop() 82 static void mlb_evt_timer_register_count(struct timer_of *to, unsigned long cnt) in mlb_evt_timer_register_count() argument 84 writel_relaxed(cnt, timer_of_base(to) + MLB_TMR_EVT_TMRLR1_OFS); in mlb_evt_timer_register_count() [all …]
|
| H A D | timer-loongson1-pwm.c | 45 struct timer_of *to) in ls1x_pwmtimer_set_period() argument 47 writel(period, timer_of_base(to) + PWM_LRC); in ls1x_pwmtimer_set_period() 48 writel(period, timer_of_base(to) + PWM_HRC); in ls1x_pwmtimer_set_period() 51 static inline void ls1x_pwmtimer_clear(struct timer_of *to) in ls1x_pwmtimer_clear() argument 53 writel(0, timer_of_base(to) + PWM_CNTR); in ls1x_pwmtimer_clear() 56 static inline void ls1x_pwmtimer_start(struct timer_of *to) in ls1x_pwmtimer_start() argument 58 writel((INT_EN | PWM_OE | CNT_EN), timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_start() 61 static inline void ls1x_pwmtimer_stop(struct timer_of *to) in ls1x_pwmtimer_stop() argument 63 writel(0, timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_stop() 66 static inline void ls1x_pwmtimer_irq_ack(struct timer_of *to) in ls1x_pwmtimer_irq_ack() argument [all …]
|
| H A D | timer-sun4i.c | 85 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_shutdown() local 87 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_shutdown() 94 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_oneshot() local 96 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_oneshot() 97 sun4i_clkevt_time_start(timer_of_base(to), 0, false); in sun4i_clkevt_set_oneshot() 104 struct timer_of *to = to_timer_of(evt); in sun4i_clkevt_set_periodic() local 106 sun4i_clkevt_time_stop(timer_of_base(to), 0); in sun4i_clkevt_set_periodic() 107 sun4i_clkevt_time_setup(timer_of_base(to), 0, timer_of_period(to)); in sun4i_clkevt_set_periodic() 108 sun4i_clkevt_time_start(timer_of_base(to), 0, true); in sun4i_clkevt_set_periodic() 116 struct timer_of *to = to_timer_of(clkevt); in sun4i_clkevt_next_event() local [all …]
|
| H A D | timer-mediatek-cpux.c | 37 static u32 mtk_cpux_readl(u32 reg_idx, struct timer_of *to) in mtk_cpux_readl() argument 39 writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG); in mtk_cpux_readl() 40 return readl(timer_of_base(to) + CPUX_CON_REG); in mtk_cpux_readl() 43 static void mtk_cpux_writel(u32 val, u32 reg_idx, struct timer_of *to) in mtk_cpux_writel() argument 45 writel(reg_idx, timer_of_base(to) + CPUX_IDX_REG); in mtk_cpux_writel() 46 writel(val, timer_of_base(to) + CPUX_CON_REG); in mtk_cpux_writel() 49 static void mtk_cpux_set_irq(struct timer_of *to, bool enable) in mtk_cpux_set_irq() argument 54 val = mtk_cpux_readl(CPUX_IDX_GLOBAL_IRQ, to); in mtk_cpux_set_irq() 61 mtk_cpux_writel(val, CPUX_IDX_GLOBAL_IRQ, to); in mtk_cpux_set_irq() 83 static struct timer_of to = { variable [all …]
|
| H A D | timer-of.c | 24 struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); in timer_of_irq_exit() local 26 struct clock_event_device *clkevt = &to->clkevt; in timer_of_irq_exit() 48 struct timer_of *to = container_of(of_irq, struct timer_of, of_irq); in timer_of_irq_init() local 49 struct clock_event_device *clkevt = &to->clkevt; in timer_of_irq_init() 159 int __init timer_of_init(struct device_node *np, struct timer_of *to) in timer_of_init() argument 164 if (to->flags & TIMER_OF_BASE) { in timer_of_init() 165 ret = timer_of_base_init(np, &to->of_base); in timer_of_init() 171 if (to->flags & TIMER_OF_CLOCK) { in timer_of_init() 172 ret = timer_of_clk_init(np, &to->of_clk); in timer_of_init() 178 if (to->flags & TIMER_OF_IRQ) { in timer_of_init() [all …]
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/eed1_8/ |
| H A D | ia_css_eed1_8.host.c | 81 struct eed1_8_vmem_params *to, in ia_css_eed1_8_vmem_encode() argument 93 to->e_dew_enh_x[0][i] = 0; in ia_css_eed1_8_vmem_encode() 94 to->e_dew_enh_y[0][i] = 0; in ia_css_eed1_8_vmem_encode() 95 to->e_dew_enh_a[0][i] = 0; in ia_css_eed1_8_vmem_encode() 96 to->e_dew_enh_f[0][i] = 0; in ia_css_eed1_8_vmem_encode() 97 to->chgrinv_x[0][i] = 0; in ia_css_eed1_8_vmem_encode() 98 to->chgrinv_a[0][i] = 0; in ia_css_eed1_8_vmem_encode() 99 to->chgrinv_b[0][i] = 0; in ia_css_eed1_8_vmem_encode() 100 to->chgrinv_c[0][i] = 0; in ia_css_eed1_8_vmem_encode() 101 to->tcinv_x[0][i] = 0; in ia_css_eed1_8_vmem_encode() [all …]
|
| /linux/arch/m68k/hp300/ |
| H A D | hp300map.map | 11 # be saved by mapping AltGr to Alt (and adapting a few entries): 185 compose '`' 'A' to '�' 186 compose '`' 'a' to '�' 187 compose '\'' 'A' to '�' 188 compose '\'' 'a' to '�' 189 compose '^' 'A' to '�' 190 compose '^' 'a' to '�' 191 compose '~' 'A' to '�' 192 compose '~' 'a' to '�' 193 compose '"' 'A' to '�' [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dsc/ |
| H A D | rc_calc_dpi.c | 29 static void copy_pps_fields(struct drm_dsc_config *to, const struct drm_dsc_config *from) in copy_pps_fields() argument 31 to->line_buf_depth = from->line_buf_depth; in copy_pps_fields() 32 to->bits_per_component = from->bits_per_component; in copy_pps_fields() 33 to->convert_rgb = from->convert_rgb; in copy_pps_fields() 34 to->slice_width = from->slice_width; in copy_pps_fields() 35 to->slice_height = from->slice_height; in copy_pps_fields() 36 to->simple_422 = from->simple_422; in copy_pps_fields() 37 to->native_422 = from->native_422; in copy_pps_fields() 38 to->native_420 = from->native_420; in copy_pps_fields() 39 to->pic_width = from->pic_width; in copy_pps_fields() [all …]
|
| /linux/ipc/ |
| H A D | compat.c | 38 int get_compat_ipc64_perm(struct ipc64_perm *to, in get_compat_ipc64_perm() argument 44 to->uid = v.uid; in get_compat_ipc64_perm() 45 to->gid = v.gid; in get_compat_ipc64_perm() 46 to->mode = v.mode; in get_compat_ipc64_perm() 50 int get_compat_ipc_perm(struct ipc64_perm *to, in get_compat_ipc_perm() argument 56 to->uid = v.uid; in get_compat_ipc_perm() 57 to->gid = v.gid; in get_compat_ipc_perm() 58 to->mode = v.mode; in get_compat_ipc_perm() 62 void to_compat_ipc64_perm(struct compat_ipc64_perm *to, struct ipc64_perm *from) in to_compat_ipc64_perm() argument 64 to->key = from->key; in to_compat_ipc64_perm() [all …]
|
| /linux/tools/testing/selftests/futex/functional/ |
| H A D | futex_wait_timeout.c | 66 static int futex_get_abs_timeout(clockid_t clockid, struct timespec *to, in futex_get_abs_timeout() argument 69 if (clock_gettime(clockid, to)) in futex_get_abs_timeout() 72 to->tv_nsec += timeout_ns; in futex_get_abs_timeout() 74 if (to->tv_nsec >= 1000000000) { in futex_get_abs_timeout() 75 to->tv_sec++; in futex_get_abs_timeout() 76 to->tv_nsec -= 1000000000; in futex_get_abs_timeout() 85 struct timespec to; in TEST() local 89 to.tv_sec = 0; in TEST() 90 to.tv_nsec = timeout_ns; in TEST() 92 res = futex_wait(&f1, f1, &to, 0); in TEST() [all …]
|
| /linux/drivers/tty/vt/ |
| H A D | defkeymap.map | 12 # be saved by mapping AltGr to Alt (and adapting a few entries): 291 compose '`' 'A' to '�' 292 compose '`' 'a' to '�' 293 compose '\'' 'A' to '�' 294 compose '\'' 'a' to '�' 295 compose '^' 'A' to '�' 296 compose '^' 'a' to '�' 297 compose '~' 'A' to '�' 298 compose '~' 'a' to '�' 299 compose '"' 'A' to '�' [all …]
|
| /linux/fs/nls/ |
| H A D | Kconfig | 11 as the ability of some filesystems to use native languages 27 system (if different) to store data (filenames) on a disk. 45 in so-called DOS codepages. You need to include the appropriate 46 codepage if you want to be able to read/write these filenames on 47 DOS/Windows partitions correctly. This does apply to the filenames 48 only, not to the file contents. You can include several codepages; 49 say Y here if you want to include the DOS codepage that is used in 57 in so-called DOS codepages. You need to include the appropriate 58 codepage if you want to be able to read/write these filenames on 59 DOS/Windows partitions correctly. This does apply to the filenames [all …]
|
| /linux/arch/powerpc/tools/ |
| H A D | unrel_branch_check.sh | 47 while IFS=: read -r from branch to sym; do 48 case "$to" in 49 c*) to="0x$to" 52 to=${to#.+} 54 if (( to >= 0x2000000 )); then 55 to=$(( to - 0x4000000 )) 57 elif (( to >= 0x8000 )); then 58 to=$(( to - 0x10000 )) 60 printf -v to '0x%x' $(( "0x$from" + to )) 65 if [ "$to" = "$sim" ]; then [all …]
|
| /linux/Documentation/filesystems/ext4/ |
| H A D | blockmap.rst | 6 | 0 to 11 | Direct map to file blocks 0 to 11. … 8 | 12 | Indirect block: (file blocks 12 to (``$block_size`` / 4) + 11, or 12 to 103… 13 | | | 0 to (``$block_size`` / 4) | Direct map to (``$block_size`` / 4) blocks… 16 …lock: (file blocks ``$block_size``/4 + 12 to (``$block_size`` / 4) ^ 2 + (``$block_size`` / 4) + 1… 21 | | | 0 to (``$block_size`` / 4) | Map to (``$block_size`` / 4) indirect bl… 26 … | | | | 0 to (``$block_size`` / 4) | Direct map to … 30 …``$block_size`` / 4) + 12 to (``$block_size`` / 4) ^ 3 + (``$block_size`` / 4) ^ 2 + (``$block_siz… 35 | | | 0 to (``$block_size`` / 4) | Map to (``$block_size`` / 4) double indi… 40 … | | | | 0 to (``$block_size`` / 4) | Map to (`… 45 … | | | | 0 to (``$block_size`` / 4) | Direct map to …
|
| /linux/arch/m68k/include/asm/ |
| H A D | uaccess.h | 182 unsigned long __generic_copy_from_user(void *to, const void __user *from, unsigned long n); 183 unsigned long __generic_copy_to_user(void __user *to, const void *from, unsigned long n); 190 #define ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 225 : "+d" (res), "+&a" (to), "+a" (from), "=&d" (tmp) \ 228 #define ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3)\ argument 229 ____constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, s1, s2, s3) 230 #define __constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3) \ argument 231 ___constant_copy_from_user_asm(res, to, from, tmp, n1, n2, n3, \ 235 __constant_copy_from_user(void *to, const void __user *from, unsigned long n) in __constant_copy_from_user() argument 241 __constant_copy_from_user_asm(res, to, from, tmp, 1, 0, 0); in __constant_copy_from_user() [all …]
|
| /linux/drivers/net/fddi/skfp/ |
| H A D | pmf.c | 552 char *to ; in smt_add_para() local 575 to = (char *) (pcon->pc_p) ; /* destination pointer */ in smt_add_para() 578 pa = (struct smt_para *) to ; /* type/length pointer */ in smt_add_para() 579 to += PARA_LEN ; /* skip smt_para */ in smt_add_para() 588 to[0] = 0 ; in smt_add_para() 589 to[1] = 0 ; in smt_add_para() 590 to[2] = 0 ; in smt_add_para() 591 to[3] = index ; in smt_add_para() 593 to += 4 ; in smt_add_para() 668 *(u32 *)to = 0 ; in smt_add_para() [all …]
|
| /linux/Documentation/bpf/ |
| H A D | prog_cgroup_sysctl.rst | 10 The hook has to be attached to a cgroup and will be called every time a 11 process inside that cgroup tries to read from or write to sysctl knob in proc. 16 ``BPF_CGROUP_SYSCTL`` attach type has to be used to attach 17 ``BPF_PROG_TYPE_CGROUP_SYSCTL`` program to a cgroup. 22 ``BPF_PROG_TYPE_CGROUP_SYSCTL`` provides access to the following context from 34 or written. This field is read-write. Writing to the field sets the starting 36 will be writing to. Writing zero to the field can be used e.g. to override 39 value to the field can be used to access part of sysctl value starting from 41 0``, e.g. writes to numeric sysctl entries must always be at file position 52 * ``0`` means "reject access to sysctl"; [all …]
|
| /linux/sound/soc/tegra/ |
| H A D | Kconfig | 21 Say Y or M if you want to add support for codecs attached to the 22 Tegra20 AC97 interface. You will also need to select the individual 23 machine drivers to support below. 28 Say Y or M if you want to add support for the Tegra20 DAS module. 29 You will also need to select the individual machine drivers to 36 Say Y or M if you want to add support for codecs attached to the 37 Tegra20 I2S interface. You will also need to selec [all...] |
| /linux/scripts/coccinelle/api/ |
| H A D | kstrdup.cocci | 18 expression from,to; 23 - to = kmalloc(strlen(from) + 1,flag); 24 + to = kstrdup(from, flag); 25 ... when != \(from = E1 \| to = E1 \) 26 if (to==NULL || ...) S 27 ... when != \(from = E2 \| to = E2 \) 28 - strcpy(to, from); 31 expression x,from,to; 38 - to = \(kmalloc\|kzalloc\)(x,flag); 39 + to = kstrdup(from, flag); [all …]
|
| /linux/arch/sh/kernel/ |
| H A D | io.c | 16 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 24 (((u32)to & 0x1f) == 0) && (((u32)from & 0x3) == 0)) { in memcpy_fromio() 50 : "=&r" (to), "=&r" (count), in memcpy_fromio() 53 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 58 if ((((u32)to | (u32)from) & 0x3) == 0) { in memcpy_fromio() 60 *(u32 *)to = *(volatile u32 *)from; in memcpy_fromio() 61 to += 4; in memcpy_fromio() 67 *(u8 *)to = *(volatile u8 *)from; in memcpy_fromio() 68 to++; in memcpy_fromio() 79 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument [all …]
|
| /linux/arch/arc/kernel/ |
| H A D | ptrace.c | 104 struct membuf to) in genregs_get() argument 110 membuf_zero(&to, 4); // pad in genregs_get() 111 membuf_store(&to, ptregs->bta); in genregs_get() 112 membuf_store(&to, ptregs->lp_start); in genregs_get() 113 membuf_store(&to, ptregs->lp_end); in genregs_get() 114 membuf_store(&to, ptregs->lp_count); in genregs_get() 115 membuf_store(&to, ptregs->status32); in genregs_get() 116 membuf_store(&to, ptregs->ret); in genregs_get() 117 membuf_store(&to, ptregs->blink); in genregs_get() 118 membuf_store(&to, ptregs->fp); in genregs_get() [all …]
|