| /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-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-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-msc313e.c | 172 struct timer_of *to; in msc313e_clkevt_init() local 174 to = kzalloc_obj(*to); in msc313e_clkevt_init() 175 if (!to) in msc313e_clkevt_init() 178 to->flags = TIMER_OF_IRQ | TIMER_OF_CLOCK | TIMER_OF_BASE; in msc313e_clkevt_init() 179 to->of_irq.handler = msc313e_timer_clkevt_irq; in msc313e_clkevt_init() 180 ret = timer_of_init(np, to); in msc313e_clkevt_init() 185 to->of_clk.rate = clk_get_rate(to->of_clk.clk) / MSC313E_CLK_DIVIDER; in msc313e_clkevt_init() 186 to->of_clk.period = DIV_ROUND_UP(to->of_clk.rate, HZ); in msc313e_clkevt_init() 187 writew(MSC313E_CLK_DIVIDER - 1, timer_of_base(to) + MSC313E_REG_TIMER_DIVIDE); in msc313e_clkevt_init() 191 msc313e_clkevt.irq = to->of_irq.irq; in msc313e_clkevt_init() [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/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 | 79 struct timespec to; in futex_get_abs_timeout() 83 to.tv_sec = 0; in TEST() 84 to.tv_nsec = timeout_ns; in TEST() 86 res = futex_wait(&f1, f1, &to, 0); in TEST() 90 GET_ABS_TIMEOUT(CLOCK_REALTIME, &to, timeout_ns); in TEST() 91 res = futex_wait_bitset(&f1, f1, &to, 1, FUTEX_CLOCK_REALTIME); in TEST() 95 GET_ABS_TIMEOUT(CLOCK_MONOTONIC, &to, timeout_ns); in TEST() 96 res = futex_wait_bitset(&f1, f1, &to, 1, 0); in TEST() 103 struct timespec to; in TEST() 107 GET_ABS_TIMEOUT(CLOCK_REALTIME, &to, timeout_n in TEST() 66 futex_get_abs_timeout(clockid_t clockid,struct timespec * to,long timeout_ns) futex_get_abs_timeout() argument 85 struct timespec to; TEST() local 111 struct timespec to; TEST() local 130 struct timespec to; TEST() local 171 struct timespec to; TEST() local [all...] |
| H A D | futex_waitv.c | 32 struct timespec to; in waiterfn() 36 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in waiterfn() 39 to.tv_sec++; in waiterfn() 41 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in waiterfn() 122 struct timespec to; in TEST() 131 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), 0) in TEST() 134 to.tv_sec++; in TEST() 136 res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC); in TEST() 148 struct timespec to; in TEST() 158 ASSERT_EQ(clock_gettime(CLOCK_MONOTONIC, &to), in TEST() 30 struct timespec to; waiterfn() local 124 struct timespec to; TEST() local 147 struct timespec to; TEST() local 171 struct timespec to; TEST() local 209 struct timespec to; TEST() local [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/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/xfs/libxfs/ |
| H A D | xfs_sb.c | 809 struct xfs_sb *to, in __xfs_sb_from_disk() argument 813 to->sb_magicnum = be32_to_cpu(from->sb_magicnum); in __xfs_sb_from_disk() 814 to->sb_blocksize = be32_to_cpu(from->sb_blocksize); in __xfs_sb_from_disk() 815 to->sb_dblocks = be64_to_cpu(from->sb_dblocks); in __xfs_sb_from_disk() 816 to->sb_rblocks = be64_to_cpu(from->sb_rblocks); in __xfs_sb_from_disk() 817 to->sb_rextents = be64_to_cpu(from->sb_rextents); in __xfs_sb_from_disk() 818 memcpy(&to->sb_uuid, &from->sb_uuid, sizeof(to->sb_uuid)); in __xfs_sb_from_disk() 819 to->sb_logstart = be64_to_cpu(from->sb_logstart); in __xfs_sb_from_disk() 820 to->sb_rootino = be64_to_cpu(from->sb_rootino); in __xfs_sb_from_disk() 821 to->sb_rbmino = be64_to_cpu(from->sb_rbmino); in __xfs_sb_from_disk() [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/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/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/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/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/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/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/arch/m68k/lib/ |
| H A D | memcpy.c | 10 void *memcpy(void *to, const void *from, size_t n) in memcpy() argument 12 void *xto = to; in memcpy() 17 if ((long)to & 1) { in memcpy() 18 char *cto = to; in memcpy() 21 to = cto; in memcpy() 27 char *cto = to; in memcpy() 34 if (n > 2 && (long)to & 2) { in memcpy() 35 short *sto = to; in memcpy() 38 to = sto; in memcpy() 44 long *lto = to; in memcpy() [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | Kconfig.profile | 8 Beware setting this value lower, or close to heartbeat interval 9 rounded to whole seconds times three, in order to avoid allowing 13 May be 0 to disable the timeout. 19 When listening to a foreign fence, we install a supplementary timer 20 to ensure that we are always signaled and our userspace is able to 24 May be 0 to disable the timeout, and rely on the foreign fence being 31 On runtime suspend, as we suspend the device, we have to revoke 32 userspace GGTT mmaps and force userspace to take a pagefault on 38 May be 0 to disable the extra delay and solely use the device level 45 The driver sends a periodic heartbeat down all active engines to [all …]
|
| /linux/Documentation/networking/ |
| H A D | operstates.rst | 13 <dev> up or down" and reflects whether the administrator wants to use 17 - ethernet requires to be plugged into the switch and, depending on 19 to be performed before user data can be transferred. Operational state 20 shows the ability of an interface to transmit this user data. 22 Thanks to 802.1X, userspace must be granted the possibility to 33 operation RTM_GETLINK. It is also possible to subscribe to RTNLGRP_LINK 34 to be notified of updates while the interface is admin up. This is 45 flag to determine whether they should use the interface. 68 Interface is unable to transfer data on L1, f.e. ethernet is not 82 protocol to establish. (802.1X) [all …]
|
| /linux/Documentation/mm/ |
| H A D | mmu_notifier.rst | 1 When do you need to notify inside page table lock ? 4 When clearing a pte/pmd we are given a choice to notify the event through 9 thing like ATS/PASID to get the IOMMU to walk the CPU page table to access a 10 process virtual address space). There is only 2 cases when you need to notify 14 B) a page table entry is updated to point to a new page (COW, write fault 17 Case A is obvious you do not want to take the risk for the device to write to 20 Case B is more subtle. For correctness it requires the following sequence to 25 - set page table entry to point to new page 31 Consider the following scenario (device use a feature similar to ATS/PASID): 39 CPU-thread-0 {try to write to addrA} [all …]
|