/arch/um/kernel/ |
H A D | syscall.c | 19 unsigned long fd, unsigned long offset) 22 if (offset & ~PAGE_MASK) 25 err = sys_mmap_pgoff(addr, len, prot, flags, fd, offset >> PAGE_SHIFT); 17 old_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long offset) argument
|
/arch/x86/include/asm/ |
H A D | vvar.h | 14 * mapping for userspace. Each variable needs a unique offset within 15 * that page; specify that offset with the DECLARE_VVAR macro. (If 27 #define DECLARE_VVAR(offset, type, name) \ 28 EMIT_VVAR(name, offset) 34 #define DECLARE_VVAR(offset, type, name) \ 45 /* DECLARE_VVAR(offset, type, name) */
|
H A D | dwarf2.h | 104 .macro movq_cfi reg offset=0 105 movq %\reg, \offset(%rsp) 106 CFI_REL_OFFSET \reg, \offset 109 .macro movq_cfi_restore offset reg 110 movq \offset(%rsp), %\reg 134 .macro movl_cfi reg offset=0 135 movl %\reg, \offset(%esp) 136 CFI_REL_OFFSET \reg, \offset 139 .macro movl_cfi_restore offset reg 140 movl \offset( [all...] |
/arch/x86/kernel/ |
H A D | crash_dump_64.c | 19 * @offset: offset in bytes into the page (based on pfn) to begin the copy 27 size_t csize, unsigned long offset, int userbuf) 39 if (copy_to_user(buf, vaddr + offset, csize)) { 44 memcpy(buf, vaddr + offset, csize); 26 copy_oldmem_page(unsigned long pfn, char *buf, size_t csize, unsigned long offset, int userbuf) argument
|
/arch/m68k/coldfire/ |
H A D | gpio.c | 117 static int mcfgpio_direction_input(struct gpio_chip *chip, unsigned offset) argument 119 return __mcfgpio_direction_input(offset); 122 static int mcfgpio_get_value(struct gpio_chip *chip, unsigned offset) argument 124 return __mcfgpio_get_value(offset); 127 static int mcfgpio_direction_output(struct gpio_chip *chip, unsigned offset, argument 130 return __mcfgpio_direction_output(offset, value); 133 static void mcfgpio_set_value(struct gpio_chip *chip, unsigned offset, argument 136 __mcfgpio_set_value(offset, value); 139 static int mcfgpio_request(struct gpio_chip *chip, unsigned offset) argument 141 return __mcfgpio_request(offset); 144 mcfgpio_free(struct gpio_chip *chip, unsigned offset) argument 149 mcfgpio_to_irq(struct gpio_chip *chip, unsigned offset) argument [all...] |
/arch/mips/include/asm/octeon/ |
H A D | cvmx-pcsx-defs.h | 31 static inline uint64_t CVMX_PCSX_ANX_ADV_REG(unsigned long offset, unsigned long block_id) argument 35 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 38 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 42 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 44 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x4000ull) * 1024; 46 return CVMX_ADD_IO_SEG(0x00011800B0001010ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 49 static inline uint64_t CVMX_PCSX_ANX_EXT_ST_REG(unsigned long offset, unsigned long block_id) argument 53 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 56 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) + (block_id) * 0x20000ull) * 1024; 60 return CVMX_ADD_IO_SEG(0x00011800B0001028ull) + ((offset) 67 CVMX_PCSX_ANX_LP_ABIL_REG(unsigned long offset, unsigned long block_id) argument 85 CVMX_PCSX_ANX_RESULTS_REG(unsigned long offset, unsigned long block_id) argument 103 CVMX_PCSX_INTX_EN_REG(unsigned long offset, unsigned long block_id) argument 121 CVMX_PCSX_INTX_REG(unsigned long offset, unsigned long block_id) argument 139 CVMX_PCSX_LINKX_TIMER_COUNT_REG(unsigned long offset, unsigned long block_id) argument 157 CVMX_PCSX_LOG_ANLX_REG(unsigned long offset, unsigned long block_id) argument 175 CVMX_PCSX_MISCX_CTL_REG(unsigned long offset, unsigned long block_id) argument 193 CVMX_PCSX_MRX_CONTROL_REG(unsigned long offset, unsigned long block_id) argument 211 CVMX_PCSX_MRX_STATUS_REG(unsigned long offset, unsigned long block_id) argument 229 CVMX_PCSX_RXX_STATES_REG(unsigned long offset, unsigned long block_id) argument 247 CVMX_PCSX_RXX_SYNC_REG(unsigned long offset, unsigned long block_id) argument 265 CVMX_PCSX_SGMX_AN_ADV_REG(unsigned long offset, unsigned long block_id) argument 283 CVMX_PCSX_SGMX_LP_ADV_REG(unsigned long offset, unsigned long block_id) argument 301 CVMX_PCSX_TXX_STATES_REG(unsigned long offset, unsigned long block_id) argument 319 CVMX_PCSX_TX_RXX_POLARITY_REG(unsigned long offset, unsigned long block_id) argument [all...] |
/arch/x86/include/asm/uv/ |
H A D | uv_hub.h | 29 * M - The low M bits of a physical address represent the offset 63 * M - number of node offset bits (35 .. 40) 72 * M - number of node offset bits (35 .. 40) 132 unsigned long offset; member in struct:uv_scir_s 365 /* gpa -> node offset*/ 371 /* pnode, offset --> socket virtual */ 372 static inline void *uv_pnode_offset_to_vaddr(int pnode, unsigned long offset) argument 374 return __va(((unsigned long)pnode << uv_hub_info->m_val) | offset); 401 static inline unsigned long *uv_global_mmr32_address(int pnode, unsigned long offset) argument 404 UV_GLOBAL_MMR32_PNODE_BITS(pnode) | offset); 407 uv_write_global_mmr32(int pnode, unsigned long offset, unsigned long val) argument 412 uv_read_global_mmr32(int pnode, unsigned long offset) argument 421 uv_global_mmr64_address(int pnode, unsigned long offset) argument 427 uv_write_global_mmr64(int pnode, unsigned long offset, unsigned long val) argument 432 uv_read_global_mmr64(int pnode, unsigned long offset) argument 441 uv_global_gru_mmr_address(int pnode, unsigned long offset) argument 447 uv_write_global_mmr8(int pnode, unsigned long offset, unsigned char val) argument 452 uv_read_global_mmr8(int pnode, unsigned long offset) argument 461 uv_local_mmr_address(unsigned long offset) argument 466 uv_read_local_mmr(unsigned long offset) argument 471 uv_write_local_mmr(unsigned long offset, unsigned long val) argument 476 uv_read_local_mmr8(unsigned long offset) argument 481 uv_write_local_mmr8(unsigned long offset, unsigned char val) argument [all...] |
/arch/arm/boot/compressed/ |
H A D | sdhi-shmobile.h | 7 unsigned long offset, unsigned short count,
|
/arch/arm/mach-pxa/include/mach/ |
H A D | uncompress.h | 23 static inline unsigned char uart_read(int offset) argument 25 return *(volatile unsigned char *)(uart_base + (offset << uart_shift)); 28 static inline void uart_write(unsigned char val, int offset) argument 30 *(volatile unsigned char *)(uart_base + (offset << uart_shift)) = val;
|
/arch/mips/ath79/ |
H A D | gpio.c | 47 static int ath79_gpio_get_value(struct gpio_chip *chip, unsigned offset) argument 49 return __ath79_gpio_get_value(offset); 53 unsigned offset, int value) 55 __ath79_gpio_set_value(offset, value); 59 unsigned offset) 66 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) & ~(1 << offset), 75 unsigned offset, int value) 83 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_SET); 85 __raw_writel(1 << offset, base + AR71XX_GPIO_REG_CLEAR); 87 __raw_writel(__raw_readl(base + AR71XX_GPIO_REG_OE) | (1 << offset), 52 ath79_gpio_set_value(struct gpio_chip *chip, unsigned offset, int value) argument 58 ath79_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument 74 ath79_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument 95 ar934x_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument 110 ar934x_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument [all...] |
/arch/mips/kernel/ |
H A D | early_printk_8250.c | 36 static inline u8 serial_in(int offset) argument 38 return readb(serial8250_base + (offset << serial8250_reg_shift)); 41 static inline void serial_out(int offset, char value) argument 43 writeb(value, serial8250_base + (offset << serial8250_reg_shift));
|
/arch/mips/rb532/ |
H A D | gpio.c | 57 * offset: bit index in the 4 byte address range 61 unsigned offset, void __iomem *ioaddr) 69 val &= ~(!bitval << offset); /* unset bit if bitval == 0 */ 70 val |= (!!bitval << offset); /* set bit if bitval == 1 */ 80 static inline int rb532_get_bit(unsigned offset, void __iomem *ioaddr) argument 82 return (readl(ioaddr) & (1 << offset)); 87 static int rb532_gpio_get(struct gpio_chip *chip, unsigned offset) argument 92 return rb532_get_bit(offset, gpch->regbase + GPIOD); 99 unsigned offset, int value) 104 rb532_set_bit(value, offset, gpc 60 rb532_set_bit(unsigned bitval, unsigned offset, void __iomem *ioaddr) argument 98 rb532_gpio_set(struct gpio_chip *chip, unsigned offset, int value) argument 110 rb532_gpio_direction_input(struct gpio_chip *chip, unsigned offset) argument 126 rb532_gpio_direction_output(struct gpio_chip *chip, unsigned offset, int value) argument [all...] |
/arch/parisc/include/asm/ |
H A D | traps.h | 9 int code, unsigned long offset) __noreturn __cold;
|
/arch/s390/pci/ |
H A D | pci_insn.c | 89 static inline int __pcilg(u64 *data, u64 req, u64 offset, u8 *status) argument 92 register u64 __offset asm("3") = offset; 112 int zpci_load(u64 *data, u64 req, u64 offset) argument 118 cc = __pcilg(data, req, offset, &status); 124 printk_once(KERN_ERR "%s: error cc: %d status: %d req: %Lx offset: %Lx\n", 125 __func__, cc, status, req, offset); 131 static inline int __pcistg(u64 data, u64 req, u64 offset, u8 *status) argument 134 register u64 __offset asm("3") = offset; 150 int zpci_store(u64 data, u64 req, u64 offset) argument 156 cc = __pcistg(data, req, offset, 169 __pcistb(const u64 *data, u64 req, u64 offset, u8 *status) argument 186 zpci_store_block(const u64 *data, u64 req, u64 offset) argument [all...] |
/arch/tile/include/gxio/ |
H A D | kiorpc.h | 25 void __iomem *iorpc_ioremap(int hv_fd, resource_size_t offset,
|
H A D | uart.h | 92 * @param offset UART register offset. 95 extern void gxio_uart_write(gxio_uart_context_t *context, uint64_t offset, 100 * @param offset UART register offset. 103 extern uint64_t gxio_uart_read(gxio_uart_context_t *context, uint64_t offset);
|
/arch/x86/pci/ |
H A D | early.c | 10 u32 read_pci_config(u8 bus, u8 slot, u8 func, u8 offset) argument 13 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); 18 u8 read_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset) argument 21 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); 22 v = inb(0xcfc + (offset&3)); 26 u16 read_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset) argument 29 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 0xcf8); 30 v = inw(0xcfc + (offset&2)); 34 void write_pci_config(u8 bus, u8 slot, u8 func, u8 offset, argument 37 outl(0x80000000 | (bus<<16) | (slot<<11) | (func<<8) | offset, 41 write_pci_config_byte(u8 bus, u8 slot, u8 func, u8 offset, u8 val) argument 47 write_pci_config_16(u8 bus, u8 slot, u8 func, u8 offset, u16 val) argument [all...] |
/arch/arm/boot/dts/ |
H A D | exynos4412.dtsi | 34 cpu-offset = <0x4000>;
|
/arch/arm/kernel/ |
H A D | fiq.c | 96 unsigned offset = FIQ_OFFSET; local 98 memcpy(base + offset, start, length); 100 flush_icache_range((unsigned long)base + offset, offset + 102 flush_icache_range(0xffff0000 + offset, 0xffff0000 + offset + length); 160 unsigned offset = FIQ_OFFSET; local 161 dfl_fiq_insn = *(unsigned long *)(0xffff0000 + offset);
|
/arch/arm/mach-davinci/ |
H A D | serial.c | 35 int offset) 37 offset <<= up->regshift; 39 WARN_ONCE(!up->membase, "unmapped read: uart[%d]\n", offset); 41 return (unsigned int)__raw_readl(up->membase + offset); 44 static inline void serial_write_reg(struct plat_serial8250_port *p, int offset, argument 47 offset <<= p->regshift; 49 WARN_ONCE(!p->membase, "unmapped write: uart[%d]\n", offset); 51 __raw_writel(value, p->membase + offset); 34 serial_read_reg(struct plat_serial8250_port *up, int offset) argument
|
/arch/arm/mach-w90x900/ |
H A D | clksel.c | 41 unsigned int clksel, offset; local 46 offset = MSOFFSET; 48 offset = ATAOFFSET; 50 offset = LCDOFFSET; 52 offset = AUDOFFSET; 54 offset = CPUOFFSET; 56 clksel &= ~(0x03 << offset); 57 clksel |= (clkval << offset);
|
/arch/ia64/kvm/ |
H A D | kvm_minstate.h | 132 .mem.offset 0,0; st8.spill [r16] = r8,16; \ 133 .mem.offset 8,0; st8.spill [r17] = r9,16; \ 135 .mem.offset 0,0; st8.spill [r16] = r10,24; \ 136 .mem.offset 8,0; st8.spill [r17] = r11,24; \ 158 .mem.offset 0,0; st8.spill [r16] = r20,16;/* save original r1 */ \ 159 .mem.offset 8,0; st8.spill [r17] = r12,16; \ 162 .mem.offset 0,0; st8.spill [r16] = r13,16; \ 163 .mem.offset 8,0; st8.spill [r17] = r10,16; /* save ar.fpsr */\ 166 .mem.offset 0,0; st8.spill [r16] = r15,16; \ 167 .mem.offset [all...] |
/arch/mips/include/asm/ |
H A D | setup.h | 16 extern void set_handler(unsigned long offset, void *addr, unsigned long len); 17 extern void set_uncached_handler(unsigned long offset, void *addr, unsigned long len);
|
/arch/openrisc/include/asm/ |
H A D | spr.h | 34 static inline unsigned long mfspr_off(unsigned long add, unsigned long offset) argument 38 : "r" (offset), "K" (add));
|
/arch/mips/sibyte/swarm/ |
H A D | platform.c | 53 phys_t offset, size; local 60 offset = __raw_readq(base + R_IO_EXT_REG(R_IO_EXT_START_ADDR, IDE_CS)); 64 offset = G_IO_START_ADDR(offset) << S_IO_ADDRBASE; 66 if (offset < A_PHYS_GENBUS || offset >= A_PHYS_GENBUS_END) { 75 r[0].start = offset + (SWARM_IDE_BASE << SWARM_IDE_SHIFT); 76 r[0].end = offset + ((SWARM_IDE_BASE + 8) << SWARM_IDE_SHIFT) - 1; 77 r[1].start = offset + (SWARM_IDE_CTRL << SWARM_IDE_SHIFT); 78 r[1].end = offset [all...] |