Home
last modified time | relevance | path

Searched refs:off (Results 1 – 200 of 1650) sorted by relevance

123456789

/linux-4.1.27/drivers/scsi/
Dscsi_logging.c81 size_t off = 0; in sdev_format_header() local
84 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
87 if (WARN_ON(off >= logbuf_len)) in sdev_format_header()
88 return off; in sdev_format_header()
91 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_format_header()
93 return off; in sdev_format_header()
101 size_t off = 0, logbuf_len; in sdev_prefix_printk() local
111 off += scnprintf(logbuf + off, logbuf_len - off, in sdev_prefix_printk()
113 if (!WARN_ON(off >= logbuf_len)) { in sdev_prefix_printk()
115 off += vscnprintf(logbuf + off, logbuf_len - off, fmt, args); in sdev_prefix_printk()
[all …]
/linux-4.1.27/arch/mips/mm/
Dpage.c106 pg_addiu(u32 **buf, unsigned int reg1, unsigned int reg2, unsigned int off) in pg_addiu() argument
109 if (off > 0x7fff) { in pg_addiu()
110 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu()
111 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu()
113 uasm_i_addiu(buf, T9, ZERO, off); in pg_addiu()
116 if (off > 0x7fff) { in pg_addiu()
117 uasm_i_lui(buf, T9, uasm_rel_hi(off)); in pg_addiu()
118 uasm_i_addiu(buf, T9, T9, uasm_rel_lo(off)); in pg_addiu()
121 UASM_i_ADDIU(buf, reg1, reg2, off); in pg_addiu()
225 static void build_clear_store(u32 **buf, int off) in build_clear_store() argument
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dentry.h27 #define PT_REGS_SAVES(off) \ argument
29 .fframe IA64_PT_REGS_SIZE+16+(off); \
30 .spillsp rp, PT(CR_IIP)+16+(off); \
31 .spillsp ar.pfs, PT(CR_IFS)+16+(off); \
32 .spillsp ar.unat, PT(AR_UNAT)+16+(off); \
33 .spillsp ar.fpsr, PT(AR_FPSR)+16+(off); \
34 .spillsp pr, PT(PR)+16+(off);
36 #define PT_REGS_UNWIND_INFO(off) \ argument
38 PT_REGS_SAVES(off); \
41 #define SWITCH_STACK_SAVES(off) \ argument
[all …]
Dsys_ia64.c146 sys_mmap (unsigned long addr, unsigned long len, int prot, int flags, int fd, long off) in sys_mmap() argument
148 if (offset_in_page(off) != 0) in sys_mmap()
151 addr = sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in sys_mmap()
170 sys_pciconfig_read (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, in sys_pciconfig_read() argument
177 sys_pciconfig_write (unsigned long bus, unsigned long dfn, unsigned long off, unsigned long len, in sys_pciconfig_write() argument
/linux-4.1.27/arch/powerpc/boot/
Daddnote.c68 #define GET_16BE(off) ((buf[off] << 8) + (buf[(off)+1])) argument
69 #define GET_32BE(off) ((GET_16BE(off) << 16U) + GET_16BE((off)+2U)) argument
70 #define GET_64BE(off) ((((unsigned long long)GET_32BE(off)) << 32ULL) + \ argument
71 ((unsigned long long)GET_32BE((off)+4ULL)))
72 #define PUT_16BE(off, v)(buf[off] = ((v) >> 8) & 0xff, \ argument
73 buf[(off) + 1] = (v) & 0xff)
74 #define PUT_32BE(off, v)(PUT_16BE((off), (v) >> 16L), PUT_16BE((off) + 2, (v))) argument
75 #define PUT_64BE(off, v)((PUT_32BE((off), (v) >> 32L), \ argument
76 PUT_32BE((off) + 4, (v))))
78 #define GET_16LE(off) ((buf[off]) + (buf[(off)+1] << 8)) argument
[all …]
/linux-4.1.27/drivers/rapidio/
Drio-sysfs.c126 char *buf, loff_t off, size_t count) in rio_read_config() argument
131 loff_t init_off = off; in rio_read_config()
138 if (off >= size) in rio_read_config()
140 if (off + count > size) { in rio_read_config()
141 size -= off; in rio_read_config()
147 if ((off & 1) && size) { in rio_read_config()
149 rio_read_config_8(dev, off, &val); in rio_read_config()
150 data[off - init_off] = val; in rio_read_config()
151 off++; in rio_read_config()
155 if ((off & 3) && size > 2) { in rio_read_config()
[all …]
/linux-4.1.27/arch/arm/plat-samsung/include/plat/
Dgpio-cfg-helpers.h28 unsigned int off, unsigned int config) in samsung_gpio_do_setcfg() argument
30 return (chip->config->set_config)(chip, off, config); in samsung_gpio_do_setcfg()
34 unsigned int off) in samsung_gpio_do_getcfg() argument
36 return (chip->config->get_config)(chip, off); in samsung_gpio_do_getcfg()
40 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_do_setpull() argument
42 return (chip->config->set_pull)(chip, off, pull); in samsung_gpio_do_setpull()
46 unsigned int off) in samsung_gpio_do_getpull() argument
48 return chip->config->get_pull(chip, off); in samsung_gpio_do_getpull()
69 unsigned int off, samsung_gpio_pull_t pull);
81 unsigned int off, samsung_gpio_pull_t pull);
[all …]
/linux-4.1.27/drivers/target/
Dtarget_core_fabric_lib.c160 u32 off = 8; in fc_get_pr_transport_id() local
178 ret = hex2bin(&buf[off++], &ptr[i], 1); in fc_get_pr_transport_id()
229 u32 off = 4, padding = 0; in iscsi_get_pr_transport_id() local
248 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id()
281 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
282 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id()
283 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
284 buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ in iscsi_get_pr_transport_id()
285 buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ in iscsi_get_pr_transport_id()
287 buf[off+len] = pr_reg->pr_reg_isid[0]; off++; in iscsi_get_pr_transport_id()
[all …]
Dtarget_core_spc.c191 u32 unit_serial_len, off = 0; in spc_emulate_evpd_83() local
194 off = 4; in spc_emulate_evpd_83()
208 buf[off++] = 0x1; in spc_emulate_evpd_83()
211 buf[off] = 0x00; in spc_emulate_evpd_83()
214 buf[off++] |= 0x3; in spc_emulate_evpd_83()
215 off++; in spc_emulate_evpd_83()
218 buf[off++] = 0x10; in spc_emulate_evpd_83()
223 buf[off++] = (0x6 << 4); in spc_emulate_evpd_83()
228 buf[off++] = 0x01; in spc_emulate_evpd_83()
229 buf[off++] = 0x40; in spc_emulate_evpd_83()
[all …]
Dtarget_core_alua.c72 u32 rd_len = 0, off; in target_emulate_report_referrals() local
84 off = 4; in target_emulate_report_referrals()
95 int desc_num = off + 3; in target_emulate_report_referrals()
98 off += 4; in target_emulate_report_referrals()
99 if (cmd->data_length > off) in target_emulate_report_referrals()
100 put_unaligned_be64(map->lba_map_first_lba, &buf[off]); in target_emulate_report_referrals()
101 off += 8; in target_emulate_report_referrals()
102 if (cmd->data_length > off) in target_emulate_report_referrals()
103 put_unaligned_be64(map->lba_map_last_lba, &buf[off]); in target_emulate_report_referrals()
104 off += 8; in target_emulate_report_referrals()
[all …]
/linux-4.1.27/drivers/acpi/
Dec_sys.c32 size_t count, loff_t *off) in acpi_ec_read_io() argument
38 loff_t init_off = *off; in acpi_ec_read_io()
41 if (*off >= size) in acpi_ec_read_io()
43 if (*off + count >= size) { in acpi_ec_read_io()
44 size -= *off; in acpi_ec_read_io()
51 err = ec_read(*off, &byte_read); in acpi_ec_read_io()
54 if (put_user(byte_read, buf + *off - init_off)) { in acpi_ec_read_io()
55 if (*off - init_off) in acpi_ec_read_io()
56 return *off - init_off; /* partial read */ in acpi_ec_read_io()
59 *off += 1; in acpi_ec_read_io()
[all …]
/linux-4.1.27/drivers/isdn/hardware/mISDN/
Diohelper.h39 static u8 Read##name##_IO(void *p, u8 off) { \
41 return inb(hw->ap.port + off); \
43 static void Write##name##_IO(void *p, u8 off, u8 val) { \
45 outb(val, hw->ap.port + off); \
47 static void ReadFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
49 insb(hw->ap.port + off, dp, size); \
51 static void WriteFiFo##name##_IO(void *p, u8 off, u8 *dp, int size) { \
53 outsb(hw->ap.port + off, dp, size); \
57 static u8 Read##name##_IND(void *p, u8 off) { \
59 outb(off, hw->ap.ale); \
[all …]
/linux-4.1.27/arch/arm/mach-clps711x/include/mach/
Dhardware.h30 #define clps_readb(off) readb(CLPS711X_VIRT_BASE + (off)) argument
31 #define clps_readw(off) readw(CLPS711X_VIRT_BASE + (off)) argument
32 #define clps_readl(off) readl(CLPS711X_VIRT_BASE + (off)) argument
33 #define clps_writeb(val,off) writeb(val, CLPS711X_VIRT_BASE + (off)) argument
34 #define clps_writew(val,off) writew(val, CLPS711X_VIRT_BASE + (off)) argument
35 #define clps_writel(val,off) writel(val, CLPS711X_VIRT_BASE + (off)) argument
/linux-4.1.27/arch/mips/include/asm/
Dmips-cpc.h75 #define BUILD_CPC_R_(name, off) \ argument
78 return (u32 *)(mips_cpc_base + (off)); \
83 return __raw_readl(mips_cpc_base + (off)); \
86 #define BUILD_CPC__W(name, off) \ argument
89 __raw_writel(value, mips_cpc_base + (off)); \
92 #define BUILD_CPC_RW(name, off) \ argument
93 BUILD_CPC_R_(name, off) \
94 BUILD_CPC__W(name, off)
96 #define BUILD_CPC_Cx_R_(name, off) \ argument
97 BUILD_CPC_R_(cl_##name, MIPS_CPC_CLCB_OFS + (off)) \
[all …]
Dmips-cm.h91 #define BUILD_CM_R_(name, off) \ argument
94 return (u32 __iomem *)(mips_cm_base + (off)); \
102 #define BUILD_CM__W(name, off) \ argument
108 #define BUILD_CM_RW(name, off) \ argument
109 BUILD_CM_R_(name, off) \
110 BUILD_CM__W(name, off)
112 #define BUILD_CM_Cx_R_(name, off) \ argument
113 BUILD_CM_R_(cl_##name, MIPS_CM_CLCB_OFS + (off)) \
114 BUILD_CM_R_(co_##name, MIPS_CM_COCB_OFS + (off))
116 #define BUILD_CM_Cx__W(name, off) \ argument
[all …]
Duasm.h202 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument
203 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument
208 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument
214 # define UASM_i_SW(buf, rs, rt, off) uasm_i_sd(buf, rs, rt, off) argument
218 # define UASM_i_LL(buf, rs, rt, off) uasm_i_ll(buf, rs, rt, off) argument
219 # define UASM_i_LW(buf, rs, rt, off) uasm_i_lw(buf, rs, rt, off) argument
224 # define UASM_i_SC(buf, rs, rt, off) uasm_i_sc(buf, rs, rt, off) argument
230 # define UASM_i_SW(buf, rs, rt, off) uasm_i_sw(buf, rs, rt, off) argument
233 #define uasm_i_b(buf, off) uasm_i_beq(buf, 0, 0, off) argument
234 #define uasm_i_beqz(buf, rs, off) uasm_i_beq(buf, rs, 0, off) argument
[all …]
/linux-4.1.27/Documentation/isdn/
DREADME.act200015 Note: S5 and S6 always set off!
19 off on on on 0x0240
20 on off on on 0x0280
21 off off on on 0x02c0
22 on on off on 0x0300
23 off on off on 0x0340
24 on off off on 0x0380
25 on on on off 0xcfe0
26 off on on off 0xcfa0
27 on off on off 0xcf60
[all …]
/linux-4.1.27/drivers/w1/slaves/
Dw1_ds2433.c56 static inline size_t w1_f23_fix_count(loff_t off, size_t count, size_t size) in w1_f23_fix_count() argument
58 if (off > size) in w1_f23_fix_count()
61 if ((off + count) > size) in w1_f23_fix_count()
62 return (size - off); in w1_f23_fix_count()
72 int off = block * W1_PAGE_SIZE; in w1_f23_refresh_block() local
83 wrbuf[1] = off & 0xff; in w1_f23_refresh_block()
84 wrbuf[2] = off >> 8; in w1_f23_refresh_block()
86 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f23_refresh_block()
89 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f23_refresh_block()
98 loff_t off, size_t count) in eeprom_read() argument
[all …]
Dw1_ds28e04.c67 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) in w1_f1C_fix_count() argument
69 if (off > size) in w1_f1C_fix_count()
72 if ((off + count) > size) in w1_f1C_fix_count()
73 return size - off; in w1_f1C_fix_count()
82 int off = block * W1_PAGE_SIZE; in w1_f1C_refresh_block() local
93 wrbuf[1] = off & 0xff; in w1_f1C_refresh_block()
94 wrbuf[2] = off >> 8; in w1_f1C_refresh_block()
96 w1_read_block(sl->master, &data->memory[off], W1_PAGE_SIZE); in w1_f1C_refresh_block()
99 if (crc16(CRC16_INIT, &data->memory[off], W1_PAGE_SIZE) == CRC16_VALID) in w1_f1C_refresh_block()
123 loff_t off, size_t count) in eeprom_read() argument
[all …]
Dw1_ds2408.c76 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
81 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
82 if (count != 1 || off != 0) in state_read()
89 loff_t off, size_t count) in output_read() argument
93 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read()
94 if (count != 1 || off != 0) in output_read()
102 loff_t off, size_t count) in activity_read() argument
106 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in activity_read()
107 if (count != 1 || off != 0) in activity_read()
115 loff_t off, size_t count) in cond_search_mask_read() argument
[all …]
Dw1_ds2431.c48 static inline size_t w1_f2d_fix_count(loff_t off, size_t count, size_t size) in w1_f2d_fix_count() argument
50 if (off > size) in w1_f2d_fix_count()
53 if ((off + count) > size) in w1_f2d_fix_count()
54 return size - off; in w1_f2d_fix_count()
66 static int w1_f2d_readblock(struct w1_slave *sl, int off, int count, char *buf) in w1_f2d_readblock() argument
74 wrbuf[1] = off & 0xff; in w1_f2d_readblock()
75 wrbuf[2] = off >> 8; in w1_f2d_readblock()
101 loff_t off, size_t count) in eeprom_read() argument
106 count = w1_f2d_fix_count(off, count, W1_F2D_EEPROM_SIZE); in eeprom_read()
121 if (w1_f2d_readblock(sl, off, block_read, buf) < 0) in eeprom_read()
[all …]
Dw1_ds2413.c34 struct bin_attribute *bin_attr, char *buf, loff_t off, in state_read() argument
40 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read()
42 if (off != 0) in state_read()
72 loff_t off, size_t count) in output_write() argument
78 if (count != 1 || off != 0) in output_write()
/linux-4.1.27/drivers/vfio/pci/
Dvfio_pci_rdwr.c31 loff_t off, size_t count, size_t x_start, in do_io_rw() argument
39 if (off < x_start) in do_io_rw()
40 fillable = min(count, (size_t)(x_start - off)); in do_io_rw()
41 else if (off >= x_end) in do_io_rw()
46 if (fillable >= 4 && !(off % 4)) { in do_io_rw()
53 iowrite32(le32_to_cpu(val), io + off); in do_io_rw()
55 val = cpu_to_le32(ioread32(io + off)); in do_io_rw()
62 } else if (fillable >= 2 && !(off % 2)) { in do_io_rw()
69 iowrite16(le16_to_cpu(val), io + off); in do_io_rw()
71 val = cpu_to_le16(ioread16(io + off)); in do_io_rw()
[all …]
/linux-4.1.27/samples/bpf/
Dlibbpf.h28 .off = 0, \
36 .off = 0, \
46 .off = 0, \
54 .off = 0, \
64 .off = 0, \
74 .off = 0, \
86 .off = 0, \
92 .off = 0, \
111 .off = 0, \
121 .off = OFF, \
[all …]
Dbpf_helpers.h30 unsigned long long off) asm("llvm.bpf.load.byte");
32 unsigned long long off) asm("llvm.bpf.load.half");
34 unsigned long long off) asm("llvm.bpf.load.word");
46 static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) =
48 static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flags) =
50 static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) =
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-nvram.c32 int off; in opal_nvram_read() local
36 off = *index; in opal_nvram_read()
37 if ((off + count) > nvram_size) in opal_nvram_read()
38 count = nvram_size - off; in opal_nvram_read()
39 rc = opal_read_nvram(__pa(buf), count, off); in opal_nvram_read()
49 int off; in opal_nvram_write() local
53 off = *index; in opal_nvram_write()
54 if ((off + count) > nvram_size) in opal_nvram_write()
55 count = nvram_size - off; in opal_nvram_write()
58 rc = opal_write_nvram(__pa(buf), count, off); in opal_nvram_write()
/linux-4.1.27/drivers/pci/
Dpci-sysfs.c628 loff_t off, size_t count) in pci_read_config() argument
633 loff_t init_off = off; in pci_read_config()
642 if (off > size) in pci_read_config()
644 if (off + count > size) { in pci_read_config()
645 size -= off; in pci_read_config()
653 if ((off & 1) && size) { in pci_read_config()
655 pci_user_read_config_byte(dev, off, &val); in pci_read_config()
656 data[off - init_off] = val; in pci_read_config()
657 off++; in pci_read_config()
661 if ((off & 3) && size > 2) { in pci_read_config()
[all …]
Dsyscall.c17 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument
36 cfg_ret = pci_user_read_config_byte(dev, off, &byte); in SYSCALL_DEFINE5()
39 cfg_ret = pci_user_read_config_word(dev, off, &word); in SYSCALL_DEFINE5()
42 cfg_ret = pci_user_read_config_dword(dev, off, &dword); in SYSCALL_DEFINE5()
87 unsigned long, off, unsigned long, len, void __user *, buf) in SYSCALL_DEFINE5() argument
107 err = pci_user_write_config_byte(dev, off, byte); in SYSCALL_DEFINE5()
116 err = pci_user_write_config_word(dev, off, word); in SYSCALL_DEFINE5()
125 err = pci_user_write_config_dword(dev, off, dword); in SYSCALL_DEFINE5()
Dvpd.c11 int pci_vpd_find_tag(const u8 *buf, unsigned int off, unsigned int len, u8 rdt) in pci_vpd_find_tag() argument
15 for (i = off; i < len; ) { in pci_vpd_find_tag()
46 int pci_vpd_find_info_keyword(const u8 *buf, unsigned int off, in pci_vpd_find_info_keyword() argument
51 for (i = off; i + PCI_VPD_INFO_FLD_HDR_SIZE <= off + len;) { in pci_vpd_find_info_keyword()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dfbmem.h62 fbmem_peek(struct io_mapping *fb, u32 off) in fbmem_peek() argument
64 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); in fbmem_peek()
65 u32 val = ioread32(p + (off & ~PAGE_MASK)); in fbmem_peek()
71 fbmem_poke(struct io_mapping *fb, u32 off, u32 val) in fbmem_poke() argument
73 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); in fbmem_poke()
74 iowrite32(val, p + (off & ~PAGE_MASK)); in fbmem_poke()
80 fbmem_readback(struct io_mapping *fb, u32 off, u32 val) in fbmem_readback() argument
82 fbmem_poke(fb, off, val); in fbmem_readback()
83 return val == fbmem_peek(fb, off); in fbmem_readback()
Dnv20.c38 uint32_t amount, off; in nv20_devinit_meminit() local
54 for (off = amount; off > 0x2000000; off -= 0x2000000) in nv20_devinit_meminit()
55 fbmem_poke(fb, off - 4, off); in nv20_devinit_meminit()
/linux-4.1.27/arch/arm/mach-ebsa110/
Dio.c350 u32 off; in outsb() local
353 off = port << 2; in outsb()
355 off = (port & ~1) << 1; in outsb()
360 __raw_writesb((void __iomem *)ISAIO_BASE + off, from, len); in outsb()
365 u32 off; in insb() local
368 off = port << 2; in insb()
370 off = (port & ~1) << 1; in insb()
375 __raw_readsb((void __iomem *)ISAIO_BASE + off, from, len); in insb()
383 u32 off; in outsw() local
386 off = port << 2; in outsw()
[all …]
/linux-4.1.27/drivers/net/wireless/b43/
Dppr.c83 u8 maxpwr, off; in b43_ppr_load_max_from_sprom() local
129 off = ((sprom->cck2gpo >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
130 rates->cck[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
136 off = ((sprom_ofdm_po >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
137 rates->ofdm[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
152 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
153 rates->mcs_20_cdd[i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
158 off = ((sprom_mcs_po[1] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
159 rates->mcs_20_cdd[4 + i] = maxpwr - off; in b43_ppr_load_max_from_sprom()
176 off = ((sprom_mcs_po[0] >> (i * 4)) & 0xf) * 2; in b43_ppr_load_max_from_sprom()
[all …]
/linux-4.1.27/fs/hfs/
Dbnode.c18 int off, int len) in hfs_bnode_read() argument
22 off += node->page_offset; in hfs_bnode_read()
25 memcpy(buf, kmap(page) + off, len); in hfs_bnode_read()
29 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
33 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
37 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
41 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
45 void hfs_bnode_read_key(struct hfs_bnode *node, void *key, int off) in hfs_bnode_read_key() argument
53 key_len = hfs_bnode_read_u8(node, off) + 1; in hfs_bnode_read_key()
57 hfs_bnode_read(node, key, off, key_len); in hfs_bnode_read_key()
[all …]
Dbtree.c227 unsigned off; in hfs_bmap_alloc() local
257 off = off16; in hfs_bmap_alloc()
259 off += node->page_offset; in hfs_bmap_alloc()
260 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bmap_alloc()
262 off &= ~PAGE_CACHE_MASK; in hfs_bmap_alloc()
267 byte = data[off]; in hfs_bmap_alloc()
272 data[off] |= m; in hfs_bmap_alloc()
282 if (++off >= PAGE_CACHE_SIZE) { in hfs_bmap_alloc()
285 off = 0; in hfs_bmap_alloc()
303 off = off16; in hfs_bmap_alloc()
[all …]
Dbfind.c45 u16 off, len, keylen; in __hfs_brec_find() local
55 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
61 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
74 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
80 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
84 fd->keyoffset = off; in __hfs_brec_find()
86 fd->entryoffset = off + keylen; in __hfs_brec_find()
166 u16 off, len, keylen; in hfs_brec_goto() local
210 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto()
216 fd->keyoffset = off; in hfs_brec_goto()
[all …]
Dmdb.c75 loff_t off; in hfs_mdb_get() local
175 off = (loff_t)block << HFS_SECTOR_SIZE_BITS; in hfs_mdb_get()
179 bh = sb_bread(sb, off >> sb->s_blocksize_bits); in hfs_mdb_get()
184 off2 = off & (sb->s_blocksize - 1); in hfs_mdb_get()
189 off += len; in hfs_mdb_get()
304 int off, size, len; in hfs_mdb_commit() local
307 off = (block << HFS_SECTOR_SIZE_BITS) & (sb->s_blocksize - 1); in hfs_mdb_commit()
317 len = min((int)sb->s_blocksize - off, size); in hfs_mdb_commit()
320 memcpy(bh->b_data + off, ptr, len); in hfs_mdb_commit()
326 off = 0; in hfs_mdb_commit()
/linux-4.1.27/net/ceph/
Dpagevec.c98 loff_t off, size_t len) in ceph_copy_user_to_page_vector() argument
101 int po = off & ~PAGE_CACHE_MASK; in ceph_copy_user_to_page_vector()
124 loff_t off, size_t len) in ceph_copy_to_page_vector() argument
127 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_to_page_vector()
147 loff_t off, size_t len) in ceph_copy_from_page_vector() argument
150 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_from_page_vector()
172 void ceph_zero_page_vector_range(int off, int len, struct page **pages) in ceph_zero_page_vector_range() argument
174 int i = off >> PAGE_CACHE_SHIFT; in ceph_zero_page_vector_range()
176 off &= ~PAGE_CACHE_MASK; in ceph_zero_page_vector_range()
178 dout("zero_page_vector_page %u~%u\n", off, len); in ceph_zero_page_vector_range()
[all …]
/linux-4.1.27/drivers/gpio/
Dgpio-adp5520.c25 static int adp5520_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5520_gpio_get_value() argument
37 if (test_bit(off, &dev->output)) in adp5520_gpio_get_value()
42 return !!(reg_val & dev->lut[off]); in adp5520_gpio_get_value()
46 unsigned off, int val) in adp5520_gpio_set_value() argument
52 adp5520_set_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); in adp5520_gpio_set_value()
54 adp5520_clr_bits(dev->master, ADP5520_GPIO_OUT, dev->lut[off]); in adp5520_gpio_set_value()
57 static int adp5520_gpio_direction_input(struct gpio_chip *chip, unsigned off) in adp5520_gpio_direction_input() argument
62 clear_bit(off, &dev->output); in adp5520_gpio_direction_input()
65 dev->lut[off]); in adp5520_gpio_direction_input()
69 unsigned off, int val) in adp5520_gpio_direction_output() argument
[all …]
Dgpio-ucb1400.c15 static int ucb1400_gpio_dir_in(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_dir_in() argument
19 ucb1400_gpio_set_direction(gpio->ac97, off, 0); in ucb1400_gpio_dir_in()
23 static int ucb1400_gpio_dir_out(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_dir_out() argument
27 ucb1400_gpio_set_direction(gpio->ac97, off, 1); in ucb1400_gpio_dir_out()
28 ucb1400_gpio_set_value(gpio->ac97, off, val); in ucb1400_gpio_dir_out()
32 static int ucb1400_gpio_get(struct gpio_chip *gc, unsigned off) in ucb1400_gpio_get() argument
36 return ucb1400_gpio_get_value(gpio->ac97, off); in ucb1400_gpio_get()
39 static void ucb1400_gpio_set(struct gpio_chip *gc, unsigned off, int val) in ucb1400_gpio_set() argument
43 ucb1400_gpio_set_value(gpio->ac97, off, val); in ucb1400_gpio_set()
Dgpio-pca953x.c107 int off) in pca953x_read_single() argument
111 int offset = off / BANK_SZ; in pca953x_read_single()
126 int off) in pca953x_write_single() argument
130 int offset = off / BANK_SZ; in pca953x_write_single()
206 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) in pca953x_gpio_direction_input() argument
213 reg_val = chip->reg_direction[off / BANK_SZ] | (1u << (off % BANK_SZ)); in pca953x_gpio_direction_input()
223 ret = pca953x_write_single(chip, offset, reg_val, off); in pca953x_gpio_direction_input()
227 chip->reg_direction[off / BANK_SZ] = reg_val; in pca953x_gpio_direction_input()
235 unsigned off, int val) in pca953x_gpio_direction_output() argument
244 reg_val = chip->reg_output[off / BANK_SZ] in pca953x_gpio_direction_output()
[all …]
Dgpio-samsung.c44 unsigned int off, samsung_gpio_pull_t pull) in samsung_gpio_setpull_updown() argument
47 int shift = off * 2; in samsung_gpio_setpull_updown()
59 unsigned int off) in samsung_gpio_getpull_updown() argument
62 int shift = off * 2; in samsung_gpio_getpull_updown()
72 unsigned int off, samsung_gpio_pull_t pull) in s3c2443_gpio_setpull() argument
85 return samsung_gpio_setpull_updown(chip, off, pull); in s3c2443_gpio_setpull()
89 unsigned int off) in s3c2443_gpio_getpull() argument
93 pull = samsung_gpio_getpull_updown(chip, off); in s3c2443_gpio_getpull()
112 unsigned int off, samsung_gpio_pull_t pull, in s3c24xx_gpio_setpull_1() argument
119 pup &= ~(1 << off); in s3c24xx_gpio_setpull_1()
[all …]
Dgpio-max732x.c197 static inline int is_group_a(struct max732x_chip *chip, unsigned off) in is_group_a() argument
199 return (1u << off) & chip->mask_group_a; in is_group_a()
202 static int max732x_gpio_get_value(struct gpio_chip *gc, unsigned off) in max732x_gpio_get_value() argument
208 ret = max732x_readb(chip, is_group_a(chip, off), &reg_val); in max732x_gpio_get_value()
212 return reg_val & (1u << (off & 0x7)); in max732x_gpio_get_value()
215 static void max732x_gpio_set_mask(struct gpio_chip *gc, unsigned off, int mask, in max732x_gpio_set_mask() argument
224 reg_out = (off > 7) ? chip->reg_out[1] : chip->reg_out[0]; in max732x_gpio_set_mask()
227 ret = max732x_writeb(chip, is_group_a(chip, off), reg_out); in max732x_gpio_set_mask()
232 if (off > 7) in max732x_gpio_set_mask()
240 static void max732x_gpio_set_value(struct gpio_chip *gc, unsigned off, int val) in max732x_gpio_set_value() argument
[all …]
Dgpio-adp5588.c66 static int adp5588_gpio_get_value(struct gpio_chip *chip, unsigned off) in adp5588_gpio_get_value() argument
70 unsigned bank = ADP5588_BANK(off); in adp5588_gpio_get_value()
71 unsigned bit = ADP5588_BIT(off); in adp5588_gpio_get_value()
87 unsigned off, int val) in adp5588_gpio_set_value() argument
93 bank = ADP5588_BANK(off); in adp5588_gpio_set_value()
94 bit = ADP5588_BIT(off); in adp5588_gpio_set_value()
107 static int adp5588_gpio_direction_input(struct gpio_chip *chip, unsigned off) in adp5588_gpio_direction_input() argument
114 bank = ADP5588_BANK(off); in adp5588_gpio_direction_input()
117 dev->dir[bank] &= ~ADP5588_BIT(off); in adp5588_gpio_direction_input()
125 unsigned off, int val) in adp5588_gpio_direction_output() argument
[all …]
/linux-4.1.27/fs/hfsplus/
Dbnode.c21 void hfs_bnode_read(struct hfs_bnode *node, void *buf, int off, int len) in hfs_bnode_read() argument
26 off += node->page_offset; in hfs_bnode_read()
27 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bnode_read()
28 off &= ~PAGE_CACHE_MASK; in hfs_bnode_read()
30 l = min_t(int, len, PAGE_CACHE_SIZE - off); in hfs_bnode_read()
31 memcpy(buf, kmap(*pagep) + off, l); in hfs_bnode_read()
42 u16 hfs_bnode_read_u16(struct hfs_bnode *node, int off) in hfs_bnode_read_u16() argument
46 hfs_bnode_read(node, &data, off, 2); in hfs_bnode_read_u16()
50 u8 hfs_bnode_read_u8(struct hfs_bnode *node, int off) in hfs_bnode_read_u8() argument
54 hfs_bnode_read(node, &data, off, 1); in hfs_bnode_read_u8()
[all …]
Dbtree.c349 unsigned off; in hfs_bmap_alloc() local
380 off = off16; in hfs_bmap_alloc()
382 off += node->page_offset; in hfs_bmap_alloc()
383 pagep = node->page + (off >> PAGE_CACHE_SHIFT); in hfs_bmap_alloc()
385 off &= ~PAGE_CACHE_MASK; in hfs_bmap_alloc()
390 byte = data[off]; in hfs_bmap_alloc()
395 data[off] |= m; in hfs_bmap_alloc()
406 if (++off >= PAGE_CACHE_SIZE) { in hfs_bmap_alloc()
409 off = 0; in hfs_bmap_alloc()
427 off = off16; in hfs_bmap_alloc()
[all …]
Dbfind.c116 u16 off, len, keylen; in __hfs_brec_find() local
127 len = hfs_brec_lenoff(bnode, rec, &off); in __hfs_brec_find()
133 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
141 len = hfs_brec_lenoff(bnode, e, &off); in __hfs_brec_find()
147 hfs_bnode_read(bnode, fd->key, off, keylen); in __hfs_brec_find()
152 fd->keyoffset = off; in __hfs_brec_find()
154 fd->entryoffset = off + keylen; in __hfs_brec_find()
235 u16 off, len, keylen; in hfs_brec_goto() local
279 len = hfs_brec_lenoff(bnode, fd->record, &off); in hfs_brec_goto()
285 fd->keyoffset = off; in hfs_brec_goto()
[all …]
Dunicode.c277 int off; in decompose_unichar() local
279 off = hfsplus_decompose_table[(uc >> 12) & 0xf]; in decompose_unichar()
280 if (off == 0 || off == 0xffff) in decompose_unichar()
283 off = hfsplus_decompose_table[off + ((uc >> 8) & 0xf)]; in decompose_unichar()
284 if (!off) in decompose_unichar()
287 off = hfsplus_decompose_table[off + ((uc >> 4) & 0xf)]; in decompose_unichar()
288 if (!off) in decompose_unichar()
291 off = hfsplus_decompose_table[off + (uc & 0xf)]; in decompose_unichar()
292 *size = off & 3; in decompose_unichar()
295 return hfsplus_decompose_table + (off / 4); in decompose_unichar()
/linux-4.1.27/lib/
Dkfifo.c103 unsigned int len, unsigned int off) in kfifo_copy_in() argument
109 off &= fifo->mask; in kfifo_copy_in()
111 off *= esize; in kfifo_copy_in()
115 l = min(len, size - off); in kfifo_copy_in()
117 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
142 unsigned int len, unsigned int off) in kfifo_copy_out() argument
148 off &= fifo->mask; in kfifo_copy_out()
150 off *= esize; in kfifo_copy_out()
154 l = min(len, size - off); in kfifo_copy_out()
156 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
[all …]
Dbitmap.c87 unsigned off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_right() local
89 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
96 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right()
99 upper = src[off + k + 1]; in __bitmap_shift_right()
100 if (off + k + 1 == lim - 1) in __bitmap_shift_right()
104 lower = src[off + k]; in __bitmap_shift_right()
105 if (off + k == lim - 1) in __bitmap_shift_right()
110 if (off) in __bitmap_shift_right()
111 memset(&dst[lim - off], 0, off*sizeof(unsigned long)); in __bitmap_shift_right()
133 unsigned int off = shift/BITS_PER_LONG, rem = shift % BITS_PER_LONG; in __bitmap_shift_left() local
[all …]
/linux-4.1.27/drivers/infiniband/hw/ipath/
Dipath_keys.c127 size_t off; in ipath_lkey_ok() local
156 off = sge->addr - mr->user_base; in ipath_lkey_ok()
158 off + sge->length > mr->length || in ipath_lkey_ok()
164 off += mr->offset; in ipath_lkey_ok()
167 while (off >= mr->map[m]->segs[n].length) { in ipath_lkey_ok()
168 off -= mr->map[m]->segs[n].length; in ipath_lkey_ok()
176 isge->vaddr = mr->map[m]->segs[n].vaddr + off; in ipath_lkey_ok()
177 isge->length = mr->map[m]->segs[n].length - off; in ipath_lkey_ok()
207 size_t off; in ipath_rkey_ok() local
239 off = vaddr - mr->iova; in ipath_rkey_ok()
[all …]
Dipath_diag.c60 size_t count, loff_t *off);
62 size_t count, loff_t *off);
75 size_t count, loff_t *off);
326 size_t count, loff_t *off) in ipath_diagpkt_write() argument
489 size_t count, loff_t *off) in ipath_diag_read() argument
499 else if ((count % 4) || (*off % 4)) in ipath_diag_read()
502 else if (ipath_diag_inuse < 1 && (*off || count != 8)) in ipath_diag_read()
504 else if ((count % 8) || (*off % 8)) in ipath_diag_read()
506 ret = ipath_read_umem32(dd, data, kreg_base + *off, count); in ipath_diag_read()
508 ret = ipath_read_umem64(dd, data, kreg_base + *off, count); in ipath_diag_read()
[all …]
/linux-4.1.27/arch/unicore32/mm/
Dproc-macros.S97 .macro va2pa, va, pa, tbl, msk, off, err=990f
99 mov \off, \va >> #22 @ off <- index of 1st page table
103 ldw \pa, [\pa+], \off << #2 @ pa <- the content of pt
106 and \off, \pa, #3 @ off <- the last 2 bits
107 add \tbl, \tbl, \off << #3 @ cmove table pointer
112 mov \off, \va << #10
114 mov \off, \off >> \tbl
115 mov \off, \off >> #2 @ off <- index of 2nd pt
/linux-4.1.27/arch/m32r/kernel/
Dptrace.c71 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, in ptrace_read_user() argument
79 if ((off & 3) || off > sizeof(struct user) - 3) in ptrace_read_user()
82 off >>= 2; in ptrace_read_user()
83 switch (off) { in ptrace_read_user()
107 off = PT_BBPC; in ptrace_read_user()
110 if (off < (sizeof(struct pt_regs) >> 2)) in ptrace_read_user()
111 tmp = get_stack_long(tsk, off); in ptrace_read_user()
113 else if (off >= (long)(&dummy->fpu >> 2) && in ptrace_read_user()
114 off < (long)(&dummy->u_fpvalid >> 2)) { in ptrace_read_user()
116 if (off == (long)(&dummy->fpu.fpscr >> 2)) in ptrace_read_user()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Ddebug.c60 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) in block_debug_setup() argument
64 put_unaligned_le64(off, addr); in block_debug_setup()
67 put_unaligned_le64(off, addr); in block_debug_setup()
74 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) in block_debug_check() argument
81 ne_off = le64_to_cpu (off); in block_debug_check()
85 who, id, off, *(__u64 *)addr, ne_off); in block_debug_check()
90 who, id, off, *(__u64 *)(addr + LPDS), id); in block_debug_check()
97 who, id, off, *(__u64 *)addr, ne_off); in block_debug_check()
102 who, id, off, *(__u64 *)(addr + LPDS), id); in block_debug_check()
/linux-4.1.27/arch/arm/boot/dts/
Domap3430-sdp.dts67 gpmc,cs-rd-off-ns = <186>;
68 gpmc,cs-wr-off-ns = <186>;
70 gpmc,adv-rd-off-ns = <48>;
71 gpmc,adv-wr-off-ns = <48>;
73 gpmc,oe-off-ns = <168>;
75 gpmc,we-off-ns = <168>;
113 gpmc,cs-rd-off-ns = <36>;
114 gpmc,cs-wr-off-ns = <36>;
116 gpmc,adv-rd-off-ns = <24>;
117 gpmc,adv-wr-off-ns = <36>;
[all …]
Dea3250.dts228 default-state = "off";
233 default-state = "off";
238 default-state = "off";
243 default-state = "off";
250 default-state = "off";
254 default-state = "off";
258 default-state = "off";
262 default-state = "off";
266 default-state = "off";
270 default-state = "off";
[all …]
Domap-gpmc-smsc911x.dtsi30 gpmc,cs-rd-off-ns = <150>;
31 gpmc,cs-wr-off-ns = <150>;
33 gpmc,adv-rd-off-ns = <15>;
34 gpmc,adv-wr-off-ns = <40>;
36 gpmc,oe-off-ns = <140>;
38 gpmc,we-off-ns = <140>;
Domap-gpmc-smsc9221.dtsi33 gpmc,cs-rd-off-ns = <42>;
34 gpmc,cs-wr-off-ns = <36>;
36 gpmc,adv-rd-off-ns = <12>;
37 gpmc,adv-wr-off-ns = <12>;
39 gpmc,oe-off-ns = <42>;
41 gpmc,we-off-ns = <36>;
Domap2420-h4.dts35 gpmc,cs-rd-off-ns = <160>;
36 gpmc,cs-wr-off-ns = <160>;
38 gpmc,adv-rd-off-ns = <50>;
39 gpmc,adv-wr-off-ns = <50>;
41 gpmc,oe-off-ns = <120>;
43 gpmc,we-off-ns = <120>;
Domap2430-sdp.dts52 gpmc,cs-rd-off-ns = <187>;
53 gpmc,cs-wr-off-ns = <187>;
55 gpmc,adv-rd-off-ns = <48>;
56 gpmc,adv-wr-off-ns = <48>;
58 gpmc,oe-off-ns = <169>;
60 gpmc,we-off-ns = <169>;
Domap2420-n8x0-common.dtsi59 gpmc,cs-rd-off-ns = <127>;
60 gpmc,cs-wr-off-ns = <109>;
62 gpmc,adv-rd-off-ns = <18>;
63 gpmc,adv-wr-off-ns = <18>;
65 gpmc,oe-off-ns = <127>;
67 gpmc,we-off-ns = <72>;
Domap-zoom-common.dtsi32 gpmc,cs-rd-off-ns = <155>;
33 gpmc,cs-wr-off-ns = <155>;
35 gpmc,adv-rd-off-ns = <40>;
36 gpmc,adv-wr-off-ns = <40>;
38 gpmc,oe-off-ns = <145>;
40 gpmc,we-off-ns = <145>;
Dexynos3250-rinato.dts174 power-off-delay= <120>;
256 regulator-off-in-suspend;
267 regulator-off-in-suspend;
278 regulator-off-in-suspend;
289 regulator-off-in-suspend;
300 regulator-off-in-suspend;
311 regulator-off-in-suspend;
322 regulator-off-in-suspend;
343 regulator-off-in-suspend;
367 regulator-off-in-suspend;
[all …]
Domap3-sb-t35.dtsi114 gpmc,cs-rd-off-ns = <150>;
115 gpmc,cs-wr-off-ns = <150>;
117 gpmc,adv-rd-off-ns = <15>;
118 gpmc,adv-wr-off-ns = <40>;
120 gpmc,oe-off-ns = <140>;
122 gpmc,we-off-ns = <140>;
Domap3-devkit8000.dts118 gpmc,cs-rd-off-ns = <44>;
119 gpmc,cs-wr-off-ns = <44>;
121 gpmc,adv-rd-off-ns = <34>;
122 gpmc,adv-wr-off-ns = <44>;
123 gpmc,we-off-ns = <40>;
124 gpmc,oe-off-ns = <54>;
Dexynos4412-tiny4412.dts35 default-state = "off";
42 default-state = "off";
48 default-state = "off";
54 default-state = "off";
Ddm8168-evm.dts97 gpmc,cs-rd-off-ns = <44>;
98 gpmc,cs-wr-off-ns = <44>;
100 gpmc,adv-rd-off-ns = <34>;
101 gpmc,adv-wr-off-ns = <44>;
103 gpmc,we-off-ns = <40>;
105 gpmc,oe-off-ns = <54>;
/linux-4.1.27/arch/mips/alchemy/common/
Dgpiolib.c120 static int alchemy_gpic_get(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_get() argument
122 return au1300_gpio_get_value(off + AU1300_GPIO_BASE); in alchemy_gpic_get()
125 static void alchemy_gpic_set(struct gpio_chip *chip, unsigned int off, int v) in alchemy_gpic_set() argument
127 au1300_gpio_set_value(off + AU1300_GPIO_BASE, v); in alchemy_gpic_set()
130 static int alchemy_gpic_dir_input(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_dir_input() argument
132 return au1300_gpio_direction_input(off + AU1300_GPIO_BASE); in alchemy_gpic_dir_input()
135 static int alchemy_gpic_dir_output(struct gpio_chip *chip, unsigned int off, in alchemy_gpic_dir_output() argument
138 return au1300_gpio_direction_output(off + AU1300_GPIO_BASE, v); in alchemy_gpic_dir_output()
141 static int alchemy_gpic_gpio_to_irq(struct gpio_chip *chip, unsigned int off) in alchemy_gpic_gpio_to_irq() argument
143 return au1300_gpio_to_irq(off + AU1300_GPIO_BASE); in alchemy_gpic_gpio_to_irq()
/linux-4.1.27/drivers/power/reset/
DKconfig2 bool "Board level reset or power off"
7 Say Y here to enable board reset and power off
12 bool "ams AS3722 power-off driver"
15 This driver supports turning off board via a ams AS3722 power-off.
53 bool "GPIO power-off driver"
56 This driver supports turning off your board via a GPIO line.
69 bool "Hisilicon power-off driver"
75 bool "IMX6 power-off driver"
78 This driver support power off external PMIC by PMIC_ON_REQ on i.mx6
84 bool "Qualcomm MSM power-off driver"
[all …]
/linux-4.1.27/include/linux/
Dfilter.h55 .off = 0, \
63 .off = 0, \
73 .off = 0, \
81 .off = 0, \
91 .off = 0, \
101 .off = 0, \
109 .off = 0, \
119 .off = 0, \
127 .off = 0, \
139 .off = 0, \
[all …]
/linux-4.1.27/kernel/
Dkallsyms.c91 static unsigned int kallsyms_expand_symbol(unsigned int off, in kallsyms_expand_symbol() argument
98 data = &kallsyms_names[off]; in kallsyms_expand_symbol()
106 off += len + 1; in kallsyms_expand_symbol()
135 return off; in kallsyms_expand_symbol()
142 static char kallsyms_get_symbol_type(unsigned int off) in kallsyms_get_symbol_type() argument
148 return kallsyms_token_table[kallsyms_token_index[kallsyms_names[off + 1]]]; in kallsyms_get_symbol_type()
184 unsigned int off; in kallsyms_lookup_name() local
186 for (i = 0, off = 0; i < kallsyms_num_syms; i++) { in kallsyms_lookup_name()
187 off = kallsyms_expand_symbol(off, namebuf, ARRAY_SIZE(namebuf)); in kallsyms_lookup_name()
202 unsigned int off; in kallsyms_on_each_symbol() local
[all …]
/linux-4.1.27/drivers/misc/
Dds1682.c143 char *buf, loff_t off, size_t count) in ds1682_eeprom_read() argument
149 buf, off, count); in ds1682_eeprom_read()
151 if (off >= DS1682_EEPROM_SIZE) in ds1682_eeprom_read()
154 if (off + count > DS1682_EEPROM_SIZE) in ds1682_eeprom_read()
155 count = DS1682_EEPROM_SIZE - off; in ds1682_eeprom_read()
157 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off, in ds1682_eeprom_read()
167 char *buf, loff_t off, size_t count) in ds1682_eeprom_write() argument
172 buf, off, count); in ds1682_eeprom_write()
174 if (off >= DS1682_EEPROM_SIZE) in ds1682_eeprom_write()
177 if (off + count > DS1682_EEPROM_SIZE) in ds1682_eeprom_write()
[all …]
Dlkdtm.c616 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
645 *off += count; in do_register_entry()
652 size_t count, loff_t *off) in lkdtm_debugfs_read() argument
666 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
680 size_t count, loff_t *off) in int_hardware_entry() argument
682 return do_register_entry(CN_INT_HARDWARE_ENTRY, f, buf, count, off); in int_hardware_entry()
686 size_t count, loff_t *off) in int_hw_irq_en() argument
688 return do_register_entry(CN_INT_HW_IRQ_EN, f, buf, count, off); in int_hw_irq_en()
692 size_t count, loff_t *off) in int_tasklet_entry() argument
694 return do_register_entry(CN_INT_TASKLET_ENTRY, f, buf, count, off); in int_tasklet_entry()
[all …]
/linux-4.1.27/drivers/mtd/
Dafs.c71 u_int off, u_int mask) in afs_read_footer() argument
74 u_int ptr = off + mtd->erasesize - sizeof(fs); in afs_read_footer()
122 if (*img_start > off) in afs_read_footer()
169 u_int mask, off, idx, sz; in parse_afs_partitions() local
184 for (idx = off = sz = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions()
188 ret = afs_read_footer(mtd, &img_ptr, &iis_ptr, off, mask); in parse_afs_partitions()
217 for (idx = off = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions()
222 ret = afs_read_footer(mtd, &img_ptr, &iis_ptr, off, mask); in parse_afs_partitions()
/linux-4.1.27/fs/cifs/
Dcifs_dfs_ref.c149 int off, noff; in cifs_compose_mount_options() local
185 off = 0; in cifs_compose_mount_options()
189 off += 5; in cifs_compose_mount_options()
193 tkn_e = strchr(sb_mountdata + off, sep); in cifs_compose_mount_options()
195 noff = strlen(sb_mountdata + off); in cifs_compose_mount_options()
197 noff = tkn_e - (sb_mountdata + off) + 1; in cifs_compose_mount_options()
199 if (strncasecmp(sb_mountdata + off, "unc=", 4) == 0) { in cifs_compose_mount_options()
200 off += noff; in cifs_compose_mount_options()
203 if (strncasecmp(sb_mountdata + off, "ip=", 3) == 0) { in cifs_compose_mount_options()
204 off += noff; in cifs_compose_mount_options()
[all …]
Dsmb2misc.c238 smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *hdr) in smb2_get_data_area_len() argument
240 *off = 0; in smb2_get_data_area_len()
256 *off = le16_to_cpu( in smb2_get_data_area_len()
262 *off = le16_to_cpu( in smb2_get_data_area_len()
268 *off = le32_to_cpu( in smb2_get_data_area_len()
274 *off = le16_to_cpu( in smb2_get_data_area_len()
280 *off = ((struct smb2_read_rsp *)hdr)->DataOffset; in smb2_get_data_area_len()
284 *off = le16_to_cpu( in smb2_get_data_area_len()
290 *off = le32_to_cpu( in smb2_get_data_area_len()
305 if (*off > 4096) { in smb2_get_data_area_len()
[all …]
Dioctl.c39 unsigned long srcfd, u64 off, u64 len, u64 destoff) in cifs_ioctl_clone() argument
108 if (off + len > src_inode->i_size || off + len < off) in cifs_ioctl_clone()
111 len = src_inode->i_size - off; in cifs_ioctl_clone()
120 smb_file_src, smb_file_target, off, len, destoff); in cifs_ioctl_clone()
/linux-4.1.27/arch/arm/include/asm/
Dpercpu.h24 static inline void set_my_cpu_offset(unsigned long off) in set_my_cpu_offset() argument
27 asm volatile("mcr p15, 0, %0, c13, c0, 4" : : "r" (off) : "memory"); in set_my_cpu_offset()
32 unsigned long off; in __my_cpu_offset() local
39 asm("mrc p15, 0, %0, c13, c0, 4" : "=r" (off) in __my_cpu_offset()
42 return off; in __my_cpu_offset()
Dbitops.h200 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument
202 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument
209 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument
211 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_keys.c160 size_t off; in qib_lkey_ok() local
192 off = sge->addr - mr->user_base; in qib_lkey_ok()
194 off + sge->length > mr->length || in qib_lkey_ok()
201 off += mr->offset; in qib_lkey_ok()
210 entries_spanned_by_off = off >> mr->page_shift; in qib_lkey_ok()
211 off -= (entries_spanned_by_off << mr->page_shift); in qib_lkey_ok()
217 while (off >= mr->map[m]->segs[n].length) { in qib_lkey_ok()
218 off -= mr->map[m]->segs[n].length; in qib_lkey_ok()
227 isge->vaddr = mr->map[m]->segs[n].vaddr + off; in qib_lkey_ok()
228 isge->length = mr->map[m]->segs[n].length - off; in qib_lkey_ok()
[all …]
Dqib_diag.c134 size_t count, loff_t *off);
136 size_t count, loff_t *off);
152 size_t count, loff_t *off);
549 size_t count, loff_t *off) in qib_diagpkt_write() argument
764 size_t count, loff_t *off) in qib_diag_read() argument
780 else if ((count % 4) || (*off % 4)) in qib_diag_read()
783 else if (dc->state < READY && (*off || count != 8)) in qib_diag_read()
791 use_32 = (count % 8) || (*off % 8); in qib_diag_read()
799 op = diag_get_observer(dd, *off); in qib_diag_read()
801 u32 offset = *off; in qib_diag_read()
[all …]
/linux-4.1.27/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c208 static void pdacf_transfer(struct snd_pdacf *chip, unsigned int size, unsigned int off) in pdacf_transfer() argument
216 pdacf_transfer_mono24le((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); in pdacf_transfer()
218 pdacf_transfer_stereo24le((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); in pdacf_transfer()
222 pdacf_transfer_mono24be((char *)chip->pcm_area + (off * 3), xor, size, rdp_port); in pdacf_transfer()
224 pdacf_transfer_stereo24be((char *)chip->pcm_area + (off * 6), xor, size, rdp_port); in pdacf_transfer()
232 pdacf_transfer_mono16((u16 *)chip->pcm_area + off, xor, size, rdp_port); in pdacf_transfer()
234 pdacf_transfer_mono32((u32 *)chip->pcm_area + off, xor, size, rdp_port); in pdacf_transfer()
238 pdacf_transfer_stereo16((u16 *)chip->pcm_area + (off * 2), xor, size, rdp_port); in pdacf_transfer()
240 pdacf_transfer_stereo32((u32 *)chip->pcm_area + (off * 2), xor, size, rdp_port); in pdacf_transfer()
246 pdacf_transfer_mono16sw((u16 *)chip->pcm_area + off, xor, size, rdp_port); in pdacf_transfer()
[all …]
/linux-4.1.27/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_hw.c37 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument
38 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument
40 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) argument
62 #define PCI_OFFSET_FIRST_RANGE(adapter, off) \ argument
63 ((adapter)->ahw.pci_base0 + (off))
64 #define PCI_OFFSET_SECOND_RANGE(adapter, off) \ argument
65 ((adapter)->ahw.pci_base1 + (off) - SECOND_PAGE_GROUP_START)
66 #define PCI_OFFSET_THIRD_RANGE(adapter, off) \ argument
67 ((adapter)->ahw.pci_base2 + (off) - THIRD_PAGE_GROUP_START)
70 unsigned long off) in pci_base_offset() argument
[all …]
/linux-4.1.27/drivers/misc/eeprom/
Deeprom.c85 char *buf, loff_t off, size_t count) in eeprom_read() argument
91 if (off > EEPROM_SIZE) in eeprom_read()
93 if (off + count > EEPROM_SIZE) in eeprom_read()
94 count = EEPROM_SIZE - off; in eeprom_read()
97 for (slice = off >> 5; slice <= (off + count - 1) >> 5; slice++) in eeprom_read()
108 if ((off + i <= 0x1f) || in eeprom_read()
109 (off + i >= 0xc0 && off + i <= 0xdf)) in eeprom_read()
112 buf[i] = data->data[off + i]; in eeprom_read()
115 memcpy(buf, &data->data[off], count); in eeprom_read()
Deeprom_93xx46.c39 char *buf, loff_t off, size_t count) in eeprom_93xx46_bin_read() argument
51 if (unlikely(off >= edev->bin.size)) in eeprom_93xx46_bin_read()
53 if ((off + count) > edev->bin.size) in eeprom_93xx46_bin_read()
54 count = edev->bin.size - off; in eeprom_93xx46_bin_read()
61 cmd_addr |= off & 0x7f; in eeprom_93xx46_bin_read()
64 cmd_addr |= off & 0x3f; in eeprom_93xx46_bin_read()
94 count, (int)off, ret); in eeprom_93xx46_bin_read()
151 const char *buf, unsigned off) in eeprom_93xx46_write_word() argument
161 cmd_addr |= off & 0x7f; in eeprom_93xx46_write_word()
165 cmd_addr |= off & 0x3f; in eeprom_93xx46_write_word()
[all …]
Dmax6875.c111 char *buf, loff_t off, size_t count) in max6875_read() argument
117 if (off > USER_EEPROM_SIZE) in max6875_read()
120 if (off + count > USER_EEPROM_SIZE) in max6875_read()
121 count = USER_EEPROM_SIZE - off; in max6875_read()
124 max_slice = (off + count - 1) >> SLICE_BITS; in max6875_read()
125 for (slice = (off >> SLICE_BITS); slice <= max_slice; slice++) in max6875_read()
128 memcpy(buf, &data->data[off], count); in max6875_read()
Dat25.c137 char *buf, loff_t off, size_t count) in at25_bin_read() argument
145 return at25_ee_read(at25, buf, off, count); in at25_bin_read()
150 at25_ee_write(struct at25_data *at25, const char *buf, loff_t off, in at25_ee_write() argument
158 if (unlikely(off >= at25->bin.size)) in at25_ee_write()
160 if ((off + count) > at25->bin.size) in at25_ee_write()
161 count = at25->bin.size - off; in at25_ee_write()
180 unsigned offset = (unsigned) off; in at25_ee_write()
255 off += segment; in at25_ee_write()
271 char *buf, loff_t off, size_t count) in at25_bin_write() argument
279 return at25_ee_write(at25, buf, off, count); in at25_bin_write()
/linux-4.1.27/arch/arm/include/asm/hardware/
Diomd.h23 #define iomd_readb(off) __raw_readb(IOMD_BASE + (off)) argument
24 #define iomd_readl(off) __raw_readl(IOMD_BASE + (off)) argument
25 #define iomd_writeb(val,off) __raw_writeb(val, IOMD_BASE + (off)) argument
26 #define iomd_writel(val,off) __raw_writel(val, IOMD_BASE + (off)) argument
Dioc.h22 #define ioc_readb(off) __raw_readb(IOC_BASE + (off)) argument
23 #define ioc_writeb(val,off) __raw_writeb(val, IOC_BASE + (off)) argument
/linux-4.1.27/drivers/hid/
Dhid-picolcd_debugfs.c83 size_t s, loff_t *off) in picolcd_debug_eeprom_read() argument
92 if (*off > 0x0ff) in picolcd_debug_eeprom_read()
96 raw_data[0] = *off & 0xff; in picolcd_debug_eeprom_read()
97 raw_data[1] = (*off >> 8) & 0xff; in picolcd_debug_eeprom_read()
99 if (*off + raw_data[2] > 0xff) in picolcd_debug_eeprom_read()
100 raw_data[2] = 0x100 - *off; in picolcd_debug_eeprom_read()
114 *off += ret; in picolcd_debug_eeprom_read()
122 size_t s, loff_t *off) in picolcd_debug_eeprom_write() argument
131 if (*off > 0x0ff) in picolcd_debug_eeprom_write()
135 raw_data[0] = *off & 0xff; in picolcd_debug_eeprom_write()
[all …]
Dhid-roccat-lua.c30 char *buf, loff_t off, size_t count, in lua_sysfs_read() argument
38 if (off >= real_size) in lua_sysfs_read()
41 if (off != 0 || count != real_size) in lua_sysfs_read()
52 void const *buf, loff_t off, size_t count, in lua_sysfs_write() argument
60 if (off != 0 || count != real_size) in lua_sysfs_write()
73 char *buf, loff_t off, size_t count) \
75 return lua_sysfs_write(fp, kobj, buf, off, count, \
82 char *buf, loff_t off, size_t count) \
84 return lua_sysfs_read(fp, kobj, buf, off, count, \
Dhid-roccat-common.h44 char *buf, loff_t off, size_t count,
47 void const *buf, loff_t off, size_t count,
53 loff_t off, size_t count) \
55 return roccat_common2_sysfs_write(fp, kobj, buf, off, count, \
62 loff_t off, size_t count) \
64 return roccat_common2_sysfs_read(fp, kobj, buf, off, count, \
Dhid-roccat-pyra.c90 char *buf, loff_t off, size_t count, in pyra_sysfs_read() argument
99 if (off >= real_size) in pyra_sysfs_read()
102 if (off != 0 || count != real_size) in pyra_sysfs_read()
116 void const *buf, loff_t off, size_t count, in pyra_sysfs_write() argument
125 if (off != 0 || count != real_size) in pyra_sysfs_write()
141 loff_t off, size_t count) \
143 return pyra_sysfs_write(fp, kobj, buf, off, count, \
150 loff_t off, size_t count) \
152 return pyra_sysfs_read(fp, kobj, buf, off, count, \
192 loff_t off, size_t count) in pyra_sysfs_read_profilex_settings() argument
[all …]
Dhid-roccat-koneplus.c87 char *buf, loff_t off, size_t count, in koneplus_sysfs_read() argument
96 if (off >= real_size) in koneplus_sysfs_read()
99 if (off != 0 || count != real_size) in koneplus_sysfs_read()
113 void const *buf, loff_t off, size_t count, in koneplus_sysfs_write() argument
122 if (off != 0 || count != real_size) in koneplus_sysfs_write()
139 loff_t off, size_t count) \
141 return koneplus_sysfs_write(fp, kobj, buf, off, count, \
148 loff_t off, size_t count) \
150 return koneplus_sysfs_read(fp, kobj, buf, off, count, \
194 loff_t off, size_t count) in koneplus_sysfs_read_profilex_settings() argument
[all …]
Dhid-wiimote-debug.c27 loff_t *off) in wiidebug_eeprom_read() argument
38 if (*off > 0xffffff) in wiidebug_eeprom_read()
50 wiimote_cmd_set(wdata, WIIPROTO_REQ_RMEM, *off & 0xffff); in wiidebug_eeprom_read()
51 wiiproto_req_reeprom(wdata, *off, s); in wiidebug_eeprom_read()
72 *off += size; in wiidebug_eeprom_read()
128 size_t s, loff_t *off) in wiidebug_drm_write() argument
Dhid-roccat-common.c134 char *buf, loff_t off, size_t count, in roccat_common2_sysfs_read() argument
143 if (off >= real_size) in roccat_common2_sysfs_read()
146 if (off != 0 || count != real_size) in roccat_common2_sysfs_read()
158 void const *buf, loff_t off, size_t count, in roccat_common2_sysfs_write() argument
167 if (off != 0 || count != real_size) in roccat_common2_sysfs_write()
Dhid-roccat-kovaplus.c128 char *buf, loff_t off, size_t count, in kovaplus_sysfs_read() argument
137 if (off >= real_size) in kovaplus_sysfs_read()
140 if (off != 0 || count != real_size) in kovaplus_sysfs_read()
154 void const *buf, loff_t off, size_t count, in kovaplus_sysfs_write() argument
163 if (off != 0 || count != real_size) in kovaplus_sysfs_write()
180 loff_t off, size_t count) \
182 return kovaplus_sysfs_write(fp, kobj, buf, off, count, \
189 loff_t off, size_t count) \
191 return kovaplus_sysfs_read(fp, kobj, buf, off, count, \
222 loff_t off, size_t count) in kovaplus_sysfs_read_profilex_settings() argument
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/leds/
Dregister-bit-led.txt4 where single bits in a certain register can turn on/off a
27 values are "on", "off", and "keep". If the LED is already on or off
29 glitch should be produced where the LED momentarily turns off (or
31 state is, without producing a glitch. The default is off if this
54 default-state = "off";
62 default-state = "off";
69 default-state = "off";
76 default-state = "off";
83 default-state = "off";
90 default-state = "off";
[all …]
Dleds-gpio.txt18 values are "on", "off", and "keep". If the LED is already on or off
20 glitch should be produced where the LED momentarily turns off (or
22 state is, without producing a glitch. The default is off if this
50 default-state = "off";
/linux-4.1.27/arch/mips/bcm47xx/
Dprom.c59 unsigned long off; in prom_init_mem() local
76 off = CPHYSADDR((unsigned long)prom_init); in prom_init_mem()
83 if (off + mem >= max) { in prom_init_mem()
139 unsigned long off = (unsigned long)prom_init; in bcm47xx_prom_highmem_init() local
163 off = EXTVBASE + __pa(off); in bcm47xx_prom_highmem_init()
165 if (!memcmp(prom_init, (void *)(off + extmem), 16)) in bcm47xx_prom_highmem_init()
Dnvram.c59 u32 off; in nvram_find_and_copy() local
69 off = FLASH_MIN; in nvram_find_and_copy()
70 while (off <= lim) { in nvram_find_and_copy()
72 size = find_nvram_size(iobase + off); in nvram_find_and_copy()
74 header = (struct nvram_header *)(iobase + off - size); in nvram_find_and_copy()
77 off <<= 1; in nvram_find_and_copy()
/linux-4.1.27/kernel/bpf/
Dcore.c290 int off; in __bpf_prog_run() local
436 insn += insn->off; in __bpf_prog_run()
440 insn += insn->off; in __bpf_prog_run()
446 insn += insn->off; in __bpf_prog_run()
452 insn += insn->off; in __bpf_prog_run()
458 insn += insn->off; in __bpf_prog_run()
464 insn += insn->off; in __bpf_prog_run()
470 insn += insn->off; in __bpf_prog_run()
476 insn += insn->off; in __bpf_prog_run()
482 insn += insn->off; in __bpf_prog_run()
[all …]
Dverifier.c340 insn->off, insn->src_reg); in print_bpf_insn()
345 insn->dst_reg, insn->off, in print_bpf_insn()
358 insn->off, insn->imm); in print_bpf_insn()
367 insn->src_reg, insn->off); in print_bpf_insn()
393 insn->code, insn->off); in print_bpf_insn()
400 insn->src_reg, insn->off); in print_bpf_insn()
405 insn->imm, insn->off); in print_bpf_insn()
536 static int check_stack_write(struct verifier_state *state, int off, int size, in check_stack_write() argument
556 state->spilled_regs[(MAX_BPF_STACK + off) / BPF_REG_SIZE] = in check_stack_write()
560 state->stack_slot_type[MAX_BPF_STACK + off + i] = STACK_SPILL; in check_stack_write()
[all …]
/linux-4.1.27/fs/freevxfs/
Dvxfs_bmap.c136 int64_t off; in vxfs_bmap_indir() local
145 off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_indir()
147 if (block < off) { in vxfs_bmap_indir()
155 typ->vt_size, block - off); in vxfs_bmap_indir()
160 if ((block - off) >= typ->vt_size) in vxfs_bmap_indir()
162 pblock = (typ->vt_block + block - off); in vxfs_bmap_indir()
209 int64_t off = (typ->vt_hdr & VXFS_TYPED_OFFSETMASK); in vxfs_bmap_typed() local
214 if (iblock < off) in vxfs_bmap_typed()
219 typ->vt_size, iblock - off); in vxfs_bmap_typed()
224 if ((iblock - off) < typ->vt_size) in vxfs_bmap_typed()
[all …]
/linux-4.1.27/arch/arc/boot/dts/
Dabilis_tb101_dvk.dts78 default-state = "off";
83 default-state = "off";
88 default-state = "off";
93 default-state = "off";
98 default-state = "off";
103 default-state = "off";
108 default-state = "off";
113 default-state = "off";
118 default-state = "off";
123 default-state = "off";
Dabilis_tb100_dvk.dts78 default-state = "off";
83 default-state = "off";
88 default-state = "off";
93 default-state = "off";
98 default-state = "off";
103 default-state = "off";
108 default-state = "off";
113 default-state = "off";
118 default-state = "off";
123 default-state = "off";
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_hw.c20 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument
21 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument
23 #define CRB_HI(off) ((crb_hub_agt[CRB_BLK(off)] << 20) | ((off) & 0xf0000)) argument
33 u64 off; member
1133 ulong off, void __iomem **addr) in qlcnic_pci_get_crb_addr_2M() argument
1137 if ((off >= QLCNIC_CRB_MAX) || (off < QLCNIC_PCI_CRBSPACE)) in qlcnic_pci_get_crb_addr_2M()
1140 off -= QLCNIC_PCI_CRBSPACE; in qlcnic_pci_get_crb_addr_2M()
1145 m = &crb_128M_2M_map[CRB_BLK(off)].sub_block[CRB_SUBBLK(off)]; in qlcnic_pci_get_crb_addr_2M()
1147 if (m->valid && (m->start_128M <= off) && (m->end_128M > off)) { in qlcnic_pci_get_crb_addr_2M()
1149 (off - m->start_128M); in qlcnic_pci_get_crb_addr_2M()
[all …]
/linux-4.1.27/drivers/net/dsa/
Dbcm_sf2.h90 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \
92 return __raw_readl(priv->name + off); \
95 u32 val, u32 off) \
97 __raw_writel(val, priv->name + off); \
106 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \
110 dir = __raw_readl(priv->name + off); \
116 u32 off) \
120 __raw_writel(lower_32_bits(val), priv->name + off); \
/linux-4.1.27/drivers/net/wireless/orinoco/
Dhermes.h421 #define hermes_read_reg(hw, off) \ argument
422 (ioread16((hw)->iobase + ((off) << (hw)->reg_spacing)))
423 #define hermes_write_reg(hw, off, val) \ argument
424 (iowrite16((val), (hw)->iobase + ((off) << (hw)->reg_spacing)))
469 static inline void hermes_read_words(struct hermes *hw, int off, in hermes_read_words() argument
472 off = off << hw->reg_spacing; in hermes_read_words()
473 ioread16_rep(hw->iobase + off, buf, count); in hermes_read_words()
476 static inline void hermes_write_bytes(struct hermes *hw, int off, in hermes_write_bytes() argument
479 off = off << hw->reg_spacing; in hermes_write_bytes()
480 iowrite16_rep(hw->iobase + off, buf, count >> 1); in hermes_write_bytes()
[all …]
/linux-4.1.27/drivers/dma/
Dpl330.c254 #define PL330_DBGCMD_DUMP(off, x...) do { \ argument
257 cmd_line += off; \
261 #define PL330_DBGCMD_DUMP(off, x...) do {} while (0) argument
1119 int off = 0; in _ldst_memtomem() local
1125 off += _emit_LD(dry_run, &buf[off], ALWAYS); in _ldst_memtomem()
1126 off += _emit_ST(dry_run, &buf[off], ALWAYS); in _ldst_memtomem()
1130 off += _emit_LD(dry_run, &buf[off], ALWAYS); in _ldst_memtomem()
1131 off += _emit_RMB(dry_run, &buf[off]); in _ldst_memtomem()
1132 off += _emit_ST(dry_run, &buf[off], ALWAYS); in _ldst_memtomem()
1133 off += _emit_WMB(dry_run, &buf[off]); in _ldst_memtomem()
[all …]
/linux-4.1.27/drivers/power/
Dpower_supply_sysfs.c73 const ptrdiff_t off = attr - power_supply_attrs; in power_supply_show_property() local
76 if (off == POWER_SUPPLY_PROP_TYPE) { in power_supply_show_property()
79 ret = power_supply_get_property(psy, off, &value); in power_supply_show_property()
92 if (off == POWER_SUPPLY_PROP_STATUS) in power_supply_show_property()
94 else if (off == POWER_SUPPLY_PROP_CHARGE_TYPE) in power_supply_show_property()
96 else if (off == POWER_SUPPLY_PROP_HEALTH) in power_supply_show_property()
98 else if (off == POWER_SUPPLY_PROP_TECHNOLOGY) in power_supply_show_property()
100 else if (off == POWER_SUPPLY_PROP_CAPACITY_LEVEL) in power_supply_show_property()
102 else if (off == POWER_SUPPLY_PROP_TYPE) in power_supply_show_property()
104 else if (off == POWER_SUPPLY_PROP_SCOPE) in power_supply_show_property()
[all …]
/linux-4.1.27/Documentation/scsi/scsi_transport_srp/
Drport_state_diagram.dot14 …running -> running_rta [ label = "fast_io_fail_tmo = off and\ndev_loss_tmo = off;\nsrp_start_tl_f…
15 …running_rta -> running [ label = "fast_io_fail_tmo = off and\ndev_loss_tmo = off;\nreconnecting s…
17 …running -> failfast [ label = "fast_io_fail_tmo = off and\ndev_loss_tmo = off;\nreconnecting fail…
/linux-4.1.27/fs/btrfs/
Dstruct-funcs.c54 unsigned long off, \
58 unsigned long offset = part_offset + off; \
72 res = get_unaligned_le##bits(p + off); \
84 res = get_unaligned_le##bits(p + off); \
93 void *ptr, unsigned long off, u##bits val, \
97 unsigned long offset = part_offset + off; \
110 put_unaligned_le##bits(val, p + off); \
123 put_unaligned_le##bits(val, p + off); \
/linux-4.1.27/arch/arm64/kvm/
Dguest.c60 u32 off; in get_core_reg() local
63 off = core_reg_offset_from_id(reg->id); in get_core_reg()
64 if (off >= nr_regs || in get_core_reg()
65 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg()
68 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) in get_core_reg()
81 u64 off; in set_core_reg() local
85 off = core_reg_offset_from_id(reg->id); in set_core_reg()
86 if (off >= nr_regs || in set_core_reg()
87 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg()
98 if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { in set_core_reg()
[all …]
/linux-4.1.27/net/netfilter/
Dnf_nat_proto_common.c46 u_int16_t off; in nf_nat_l4proto_unique_tuple() local
78 off = l3proto->secure_port(tuple, maniptype == NF_NAT_MANIP_SRC in nf_nat_l4proto_unique_tuple()
82 off = prandom_u32(); in nf_nat_l4proto_unique_tuple()
84 off = *rover; in nf_nat_l4proto_unique_tuple()
87 for (i = 0; ; ++off) { in nf_nat_l4proto_unique_tuple()
88 *portptr = htons(min + off % range_size); in nf_nat_l4proto_unique_tuple()
92 *rover = off; in nf_nat_l4proto_unique_tuple()
Dnf_conntrack_seqadj.c10 s32 off) in nf_ct_seqadj_init() argument
16 if (off == 0) in nf_ct_seqadj_init()
23 this_way->offset_before = off; in nf_ct_seqadj_init()
24 this_way->offset_after = off; in nf_ct_seqadj_init()
30 __be32 seq, s32 off) in nf_ct_seqadj_set() argument
36 if (off == 0) in nf_ct_seqadj_set()
52 this_way->offset_after += off; in nf_ct_seqadj_set()
61 s32 off) in nf_ct_tcp_seqadj_set() argument
69 nf_ct_seqadj_set(ct, ctinfo, th->seq, off); in nf_ct_tcp_seqadj_set()
Dnf_conntrack_amanda.c93 unsigned int dataoff, start, stop, off, i; in amanda_help() local
128 off = skb_find_text(skb, start, stop, search[i].ts); in amanda_help()
129 if (off == UINT_MAX) in amanda_help()
131 off += start + search[i].len; in amanda_help()
133 len = min_t(unsigned int, sizeof(pbuf) - 1, stop - off); in amanda_help()
134 if (skb_copy_bits(skb, off, pbuf, len)) in amanda_help()
158 off - dataoff, len, exp); in amanda_help()
/linux-4.1.27/drivers/media/usb/go7007/
Dgo7007-fw.c378 int size = 0, i, off = 0, chunk; in gen_mjpeghdr_to_package() local
393 if (space - off < 32) { in gen_mjpeghdr_to_package()
394 off = -1; in gen_mjpeghdr_to_package()
398 code[off + 1] = __cpu_to_le16(0x8000 | mem); in gen_mjpeghdr_to_package()
407 code[off] = __cpu_to_le16(0x4000 | chunk); in gen_mjpeghdr_to_package()
408 code[off + 31] = __cpu_to_le16(addr++); in gen_mjpeghdr_to_package()
411 code[off] = __cpu_to_le16(0x1000 | 28); in gen_mjpeghdr_to_package()
412 code[off + 31] = 0; in gen_mjpeghdr_to_package()
416 memcpy(&code[off + 2], buf + i, chunk * 2); in gen_mjpeghdr_to_package()
417 off += 32; in gen_mjpeghdr_to_package()
[all …]
/linux-4.1.27/drivers/vfio/platform/
Dvfio_platform_common.c266 loff_t off) in vfio_platform_read_mmio() argument
281 if (count >= 4 && !(off % 4)) { in vfio_platform_read_mmio()
284 val = ioread32(reg.ioaddr + off); in vfio_platform_read_mmio()
289 } else if (count >= 2 && !(off % 2)) { in vfio_platform_read_mmio()
292 val = ioread16(reg.ioaddr + off); in vfio_platform_read_mmio()
300 val = ioread8(reg.ioaddr + off); in vfio_platform_read_mmio()
310 off += filled; in vfio_platform_read_mmio()
324 loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; in vfio_platform_read() local
334 buf, count, off); in vfio_platform_read()
343 loff_t off) in vfio_platform_write_mmio() argument
[all …]
/linux-4.1.27/drivers/memstick/host/
Djmb38x_ms.c160 unsigned int off = 0; in jmb38x_ms_read_data() local
163 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data()
170 return off; in jmb38x_ms_read_data()
175 *(unsigned int *)(buf + off) = __raw_readl(host->addr + DATA); in jmb38x_ms_read_data()
177 off += 4; in jmb38x_ms_read_data()
184 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_data()
192 return off; in jmb38x_ms_read_data()
199 unsigned int off = 0; in jmb38x_ms_read_reg_data() local
202 buf[off++] = host->io_word[0] & 0xff; in jmb38x_ms_read_reg_data()
209 return off; in jmb38x_ms_read_reg_data()
[all …]
Dtifm_ms.c90 unsigned int off = 0; in tifm_ms_read_data() local
93 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data()
100 return off; in tifm_ms_read_data()
105 *(unsigned int *)(buf + off) = __raw_readl(sock->addr in tifm_ms_read_data()
108 off += 4; in tifm_ms_read_data()
115 buf[off++] = host->io_word & 0xff; in tifm_ms_read_data()
123 return off; in tifm_ms_read_data()
130 unsigned int off = 0; in tifm_ms_write_data() local
134 host->io_word |= buf[off++] << (host->io_pos * 8); in tifm_ms_write_data()
148 return off; in tifm_ms_write_data()
[all …]
/linux-4.1.27/arch/unicore32/kernel/
Dptrace.c63 static int ptrace_read_user(struct task_struct *tsk, unsigned long off, in ptrace_read_user() argument
69 if (off < sizeof(struct pt_regs)) in ptrace_read_user()
70 tmp = get_user_reg(tsk, off >> 2); in ptrace_read_user()
78 static int ptrace_write_user(struct task_struct *tsk, unsigned long off, in ptrace_write_user() argument
81 if (off >= sizeof(struct pt_regs)) in ptrace_write_user()
84 return put_user_reg(tsk, off >> 2, val); in ptrace_write_user()
/linux-4.1.27/arch/sh/kernel/cpu/
Dadc.c14 int off; in adc_single() local
19 off = (channel & 0x03) << 2; in adc_single()
32 return (((__raw_readb(ADDRAH + off) << 8) | in adc_single()
33 __raw_readb(ADDRAL + off)) >> 6); in adc_single()
/linux-4.1.27/include/linux/isdn/
Dcapiutil.h19 #define CAPIMSG_U8(m, off) (m[off]) argument
20 #define CAPIMSG_U16(m, off) (m[off]|(m[(off)+1]<<8)) argument
21 #define CAPIMSG_U32(m, off) (m[off]|(m[(off)+1]<<8)|(m[(off)+2]<<16)|(m[(off)+3]<<24)) argument
33 static inline void capimsg_setu8(void *m, int off, __u8 val) in capimsg_setu8() argument
35 ((__u8 *)m)[off] = val; in capimsg_setu8()
38 static inline void capimsg_setu16(void *m, int off, __u16 val) in capimsg_setu16() argument
40 ((__u8 *)m)[off] = val & 0xff; in capimsg_setu16()
41 ((__u8 *)m)[off+1] = (val >> 8) & 0xff; in capimsg_setu16()
44 static inline void capimsg_setu32(void *m, int off, __u32 val) in capimsg_setu32() argument
46 ((__u8 *)m)[off] = val & 0xff; in capimsg_setu32()
[all …]
/linux-4.1.27/net/rds/
Dtcp_send.c81 unsigned int hdr_off, unsigned int sg, unsigned int off) in rds_tcp_xmit() argument
122 rm->data.op_sg[sg].offset + off, in rds_tcp_xmit()
123 rm->data.op_sg[sg].length - off, in rds_tcp_xmit()
126 rm->data.op_sg[sg].offset + off, rm->data.op_sg[sg].length - off, in rds_tcp_xmit()
131 off += ret; in rds_tcp_xmit()
133 if (off == rm->data.op_sg[sg].length) { in rds_tcp_xmit()
134 off = 0; in rds_tcp_xmit()
Dcong.c294 unsigned long off; in rds_cong_set_bit() local
300 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_set_bit()
302 __set_bit_le(off, (void *)map->m_page_addrs[i]); in rds_cong_set_bit()
308 unsigned long off; in rds_cong_clear_bit() local
314 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_clear_bit()
316 __clear_bit_le(off, (void *)map->m_page_addrs[i]); in rds_cong_clear_bit()
322 unsigned long off; in rds_cong_test_bit() local
325 off = be16_to_cpu(port) % RDS_CONG_MAP_PAGE_BITS; in rds_cong_test_bit()
327 return test_bit_le(off, (void *)map->m_page_addrs[i]); in rds_cong_test_bit()
/linux-4.1.27/drivers/input/misc/
Dmma8450.c61 static int mma8450_read(struct mma8450 *m, unsigned off) in mma8450_read() argument
66 ret = i2c_smbus_read_byte_data(c, off); in mma8450_read()
70 off, ret); in mma8450_read()
75 static int mma8450_write(struct mma8450 *m, unsigned off, u8 v) in mma8450_write() argument
80 error = i2c_smbus_write_byte_data(c, off, v); in mma8450_write()
84 off, error); in mma8450_write()
91 static int mma8450_read_block(struct mma8450 *m, unsigned off, in mma8450_read_block() argument
97 err = i2c_smbus_read_i2c_block_data(c, off, size, buf); in mma8450_read_block()
/linux-4.1.27/arch/arm/kvm/
Dguest.c53 u64 off; in get_core_reg() local
59 off = core_reg_offset_from_id(reg->id); in get_core_reg()
60 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in get_core_reg()
63 return put_user(((u32 *)regs)[off], uaddr); in get_core_reg()
70 u64 off, val; in set_core_reg() local
76 off = core_reg_offset_from_id(reg->id); in set_core_reg()
77 if (off >= sizeof(*regs) / KVM_REG_SIZE(reg->id)) in set_core_reg()
83 if (off == KVM_REG_ARM_CORE_REG(usr_regs.ARM_cpsr)) { in set_core_reg()
98 ((u32 *)regs)[off] = val; in set_core_reg()
/linux-4.1.27/Documentation/devicetree/bindings/mtd/
Dgpmc-nor.txt15 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads
16 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes
18 - gpmc,oe-off-ns: Output-enable de-assertion time
20 - gpmc,we-off-ns: Write-enable de-assertion time
61 gpmc,cs-rd-off-ns = <186>;
62 gpmc,cs-wr-off-ns = <186>;
64 gpmc,adv-rd-off-ns = <48>;
65 gpmc,adv-wr-off-ns = <48>;
67 gpmc,oe-off-ns = <168>;
69 gpmc,we-off-ns = <168>;
/linux-4.1.27/include/net/
Dudplite.h102 const int off = skb_transport_offset(skb); in udplite_csum_outgoing() local
103 const int len = skb->len - off; in udplite_csum_outgoing()
105 csum = skb_checksum(skb, off, (cscov > len)? len : cscov, csum); in udplite_csum_outgoing()
117 const int off = skb_transport_offset(skb); in udplite_csum() local
118 int len = skb->len - off; in udplite_csum()
127 return skb_checksum(skb, off, len, 0); in udplite_csum()
/linux-4.1.27/drivers/bcma/
Ddriver_pci_host.c60 unsigned int func, unsigned int off) in bcma_get_cfgspace_addr() argument
78 addr |= (off & ~3); in bcma_get_cfgspace_addr()
85 unsigned int func, unsigned int off, in bcma_extpci_read_config() argument
103 if (off >= PCI_CONFIG_SPACE_SIZE) { in bcma_extpci_read_config()
105 addr |= (off & 0x0FFC); in bcma_extpci_read_config()
110 addr |= (off & 0xFC); in bcma_extpci_read_config()
114 addr = bcma_get_cfgspace_addr(pc, dev, func, off); in bcma_extpci_read_config()
127 val >>= (8 * (off & 3)); in bcma_extpci_read_config()
149 unsigned int func, unsigned int off, in bcma_extpci_write_config() argument
168 if (off >= PCI_CONFIG_SPACE_SIZE) { in bcma_extpci_write_config()
[all …]
/linux-4.1.27/arch/s390/net/
Dbpf_jit_comp.c226 #define EMIT6_PCREL(op1, op2, b1, b2, i, off, mask) \ argument
229 int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\
289 u32 off = 72 + (rs - 6) * 8; in save_regs() local
293 _EMIT6(0xe300f000 | rs << 20 | off, 0x0024); in save_regs()
296 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0024, off); in save_regs()
304 u32 off = 72 + (rs - 6) * 8; in restore_regs() local
307 off += STK_OFF; in restore_regs()
311 _EMIT6(0xe300f000 | rs << 20 | off, 0x0004); in restore_regs()
314 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0004, off); in restore_regs()
462 s16 off = insn->off; in bpf_jit_insn() local
[all …]
/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight-priv.h56 extern int etm_readl_cp14(u32 off, unsigned int *val);
57 extern int etm_writel_cp14(u32 off, u32 val);
59 static inline int etm_readl_cp14(u32 off, unsigned int *val) { return 0; } in etm_readl_cp14() argument
60 static inline int etm_writel_cp14(u32 off, u32 val) { return 0; } in etm_writel_cp14() argument
/linux-4.1.27/include/linux/ceph/
Dlibceph.h173 static inline int calc_pages_for(u64 off, u64 len) in calc_pages_for() argument
175 return ((off+len+PAGE_CACHE_SIZE-1) >> PAGE_CACHE_SHIFT) - in calc_pages_for()
176 (off >> PAGE_CACHE_SHIFT); in calc_pages_for()
220 loff_t off, size_t len);
223 loff_t off, size_t len);
226 loff_t off, size_t len);
227 extern void ceph_zero_page_vector_range(int off, int len, struct page **pages);
/linux-4.1.27/mm/
Dpercpu.c331 int off = chunk->map[i] & ~1; in pcpu_count_occupied_pages() local
334 if (!PAGE_ALIGNED(off) && i > 0) { in pcpu_count_occupied_pages()
337 if (!(prev & 1) && prev <= round_down(off, PAGE_SIZE)) in pcpu_count_occupied_pages()
338 off = round_down(off, PAGE_SIZE); in pcpu_count_occupied_pages()
349 return max_t(int, PFN_DOWN(end) - PFN_UP(off), 0); in pcpu_count_occupied_pages()
504 static int pcpu_fit_in_area(struct pcpu_chunk *chunk, int off, int this_size, in pcpu_fit_in_area() argument
507 int cand_off = off; in pcpu_fit_in_area()
510 int head = ALIGN(cand_off, align) - off; in pcpu_fit_in_area()
524 page_start = PFN_DOWN(head + off); in pcpu_fit_in_area()
525 page_end = PFN_UP(head + off + size); in pcpu_fit_in_area()
[all …]
Dzsmalloc.c849 unsigned long off = 0; in obj_idx_to_offset() local
852 off = page->index; in obj_idx_to_offset()
854 return off + obj_idx * class_size; in obj_idx_to_offset()
914 unsigned long off = 0; in init_zspage() local
931 page->index = off; in init_zspage()
934 link = (struct link_free *)vaddr + off / sizeof(*link); in init_zspage()
936 while ((off += class->size) < PAGE_SIZE) { in init_zspage()
950 off %= PAGE_SIZE; in init_zspage()
1053 struct page *pages[2], int off, int size) in __zs_map_object() argument
1057 return area->vm_addr + off; in __zs_map_object()
[all …]
/linux-4.1.27/arch/arm/net/
Dbpf_jit_32.h155 #define ARM_LDR_I(rt, rn, off) (ARM_INST_LDR_I | (rt) << 12 | (rn) << 16 \ argument
156 | (off))
157 #define ARM_LDRB_I(rt, rn, off) (ARM_INST_LDRB_I | (rt) << 12 | (rn) << 16 \ argument
158 | (off))
161 #define ARM_LDRH_I(rt, rn, off) (ARM_INST_LDRH_I | (rt) << 12 | (rn) << 16 \ argument
162 | (((off) & 0xf0) << 4) | ((off) & 0xf))
199 #define ARM_STR_I(rt, rn, off) (ARM_INST_STR_I | (rt) << 12 | (rn) << 16 \ argument
200 | (off))
Dbpf_jit_32.c176 u16 off; in build_prologue() local
191 off = offsetof(struct sk_buff, data); in build_prologue()
192 emit(ARM_LDR_I(r_skb_data, r_skb, off), ctx); in build_prologue()
194 off = offsetof(struct sk_buff, len); in build_prologue()
195 emit(ARM_LDR_I(r_skb_hl, r_skb, off), ctx); in build_prologue()
196 off = offsetof(struct sk_buff, data_len); in build_prologue()
197 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); in build_prologue()
485 unsigned i, load_order, off, condt; in build_body() local
804 off = offsetof(struct sk_buff, protocol); in build_body()
805 emit(ARM_LDRH_I(r_scratch, r_skb, off), ctx); in build_body()
[all …]
/linux-4.1.27/arch/powerpc/sysdev/
Dscom.c111 loff_t off = *ppos; in scom_debug_read() local
117 if (off < 0 || (off & 7) || (count & 7)) in scom_debug_read()
119 reg = off >> 3; in scom_debug_read()
148 loff_t off = *ppos; in scom_debug_write() local
154 if (off < 0 || (off & 7) || (count & 7)) in scom_debug_write()
156 reg = off >> 3; in scom_debug_write()
/linux-4.1.27/Documentation/leds/
Dledtrig-oneshot.txt5 no clear trap points to put standard led-on and led-off settings. Using this
7 happened, than the trigger turns the LED on and than keeps it off for a
16 additional "invert" property specifies if the LED has to stay off (normal) or
35 ms, then blink off for delay_off ms, leaving the LED normally off. If
36 set to 1, blink off for delay_off ms, then blink on for delay_on ms,
59 echo 0 > invert # set led as normally-off, turn the led off
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic_if.h336 #define CNIC_WR(dev, off, val) writel(val, dev->regview + off) argument
337 #define CNIC_WR16(dev, off, val) writew(val, dev->regview + off) argument
338 #define CNIC_WR8(dev, off, val) writeb(val, dev->regview + off) argument
339 #define CNIC_RD(dev, off) readl(dev->regview + off) argument
340 #define CNIC_RD16(dev, off) readw(dev->regview + off) argument
/linux-4.1.27/drivers/net/phy/
Dspi_ks8995.c215 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) in ks8995_registers_read() argument
223 if (unlikely(off > ks8995->regs_attr.size)) in ks8995_registers_read()
226 if ((off + count) > ks8995->regs_attr.size) in ks8995_registers_read()
227 count = ks8995->regs_attr.size - off; in ks8995_registers_read()
232 return ks8995_read(ks8995, buf, off, count); in ks8995_registers_read()
237 struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) in ks8995_registers_write() argument
245 if (unlikely(off >= ks8995->regs_attr.size)) in ks8995_registers_write()
248 if ((off + count) > ks8995->regs_attr.size) in ks8995_registers_write()
249 count = ks8995->regs_attr.size - off; in ks8995_registers_write()
254 return ks8995_write(ks8995, buf, off, count); in ks8995_registers_write()
/linux-4.1.27/Documentation/devicetree/bindings/net/
Dgpmc-eth.txt30 - gpmc,cs-rd-off-ns: Chip-select de-assertion time for reads
31 - gpmc,cs-wr-off-ns: Chip-select de-assertion time for writes
33 - gpmc,oe-off-ns: Output-enable de-assertion time
35 - gpmc,we-off-ns: Write-enable de-assertion time
69 gpmc,cs-rd-off-ns = <186>;
70 gpmc,cs-wr-off-ns = <186>;
72 gpmc,adv-rd-off-ns = <48>;
73 gpmc,adv-wr-off-ns = <48>;
75 gpmc,oe-off-ns = <168>;
77 gpmc,we-off-ns = <168>;
/linux-4.1.27/Documentation/ja_JP/
DSubmittingPatches302 メールでやり取りされるパッチに対して「 sign-off 」という手続きを導入し
305 「 sign-off 」とは、パッチがあなたの書いたものであるか、あるいは、
329 る。同時に、関与した記録(投稿の際の全ての個人情報と sign-off
336 Signed-off-by: Random J Developer <random@developer.example.org>
340 人によっては sign-off の近くに追加のタグを付加しています。それらは今のところ
341 無視されますが、あなたはそのタグを社内の手続きに利用したり、sign-off に特別
352 Signed-off-by とあなたがその末尾に追加する Signed-off-by の間に、修正を
358 Signed-off-by: Random J Developer <random@developer.example.org>
360 Signed-off-by: Lucky K Maintainer <lucky@maintainer.example.org>
390 「 Signed-off-by: 」タグはその署名者がパッチの開発に関わっていたことやパッチ
[all …]
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_nx.c28 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument
29 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument
32 #define CRB_HI(off) ((qla82xx_crb_hub_agt[CRB_BLK(off)] << 20) | \ argument
33 ((off) & 0xf0000))
355 qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong *off) in qla82xx_pci_set_crbwindow_2M() argument
360 ha->crb_win = CRB_HI(*off); in qla82xx_pci_set_crbwindow_2M()
373 __func__, ha->crb_win, win_read, *off); in qla82xx_pci_set_crbwindow_2M()
375 *off = (*off & MASK(16)) + CRB_INDIRECT_2M + ha->nx_pcibase; in qla82xx_pci_set_crbwindow_2M()
379 qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off) in qla82xx_pci_set_crbwindow() argument
383 if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) { in qla82xx_pci_set_crbwindow()
[all …]
/linux-4.1.27/arch/x86/net/
Dbpf_jit_comp.c46 #define EMIT1_off32(b1, off) \ argument
47 do {EMIT1(b1); EMIT(off, 4); } while (0)
48 #define EMIT2_off32(b1, b2, off) \ argument
49 do {EMIT2(b1, b2); EMIT(off, 4); } while (0)
50 #define EMIT3_off32(b1, b2, b3, off) \ argument
51 do {EMIT3(b1, b2, b3); EMIT(off, 4); } while (0)
52 #define EMIT4_off32(b1, b2, b3, b4, off) \ argument
53 do {EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0)
375 insn[1].dst_reg != 0 || insn[1].off != 0) { in do_jit()
632 st: if (is_imm8(insn->off)) in do_jit()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-cmos.c511 char *buf, loff_t off, size_t count) in cmos_nvram_read() argument
515 if (unlikely(off >= attr->size)) in cmos_nvram_read()
517 if (unlikely(off < 0)) in cmos_nvram_read()
519 if ((off + count) > attr->size) in cmos_nvram_read()
520 count = attr->size - off; in cmos_nvram_read()
522 off += NVRAM_OFFSET; in cmos_nvram_read()
524 for (retval = 0; count; count--, off++, retval++) { in cmos_nvram_read()
525 if (off < 128) in cmos_nvram_read()
526 *buf++ = CMOS_READ(off); in cmos_nvram_read()
528 *buf++ = cmos_read_bank2(off); in cmos_nvram_read()
[all …]
Drtc-bq4802.c29 static u8 bq4802_read_io(struct bq4802 *p, int off) in bq4802_read_io() argument
31 return inb(p->ioport + off); in bq4802_read_io()
34 static void bq4802_write_io(struct bq4802 *p, int off, u8 val) in bq4802_write_io() argument
36 outb(val, p->ioport + off); in bq4802_write_io()
39 static u8 bq4802_read_mem(struct bq4802 *p, int off) in bq4802_read_mem() argument
41 return readb(p->regs + off); in bq4802_read_mem()
44 static void bq4802_write_mem(struct bq4802 *p, int off, u8 val) in bq4802_write_mem() argument
46 writeb(val, p->regs + off); in bq4802_write_mem()
/linux-4.1.27/arch/mips/netlogic/xlp/
Dahci-init.c95 static void sata_clear_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) in sata_clear_glue_reg() argument
99 reg_val = nlm_read_sata_reg(regbase, off); in sata_clear_glue_reg()
100 nlm_write_sata_reg(regbase, off, (reg_val & ~bit)); in sata_clear_glue_reg()
103 static void sata_set_glue_reg(uint64_t regbase, uint32_t off, uint32_t bit) in sata_set_glue_reg() argument
107 reg_val = nlm_read_sata_reg(regbase, off); in sata_set_glue_reg()
108 nlm_write_sata_reg(regbase, off, (reg_val | bit)); in sata_set_glue_reg()
/linux-4.1.27/net/ipv4/
Dgre_offload.c126 unsigned int off; in gre_gro_receive() local
131 off = skb_gro_offset(skb); in gre_gro_receive()
132 hlen = off + sizeof(*greh); in gre_gro_receive()
133 greh = skb_gro_header_fast(skb, off); in gre_gro_receive()
135 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
164 hlen = off + grehlen; in gre_gro_receive()
166 greh = skb_gro_header_slow(skb, hlen, off); in gre_gro_receive()
196 greh2 = (struct gre_base_hdr *)(p->data + off); in gre_gro_receive()
/linux-4.1.27/drivers/pinctrl/spear/
Dpinctrl-plgpio.c622 void __iomem *off; in plgpio_suspend() local
625 off = plgpio->base + i * sizeof(int *); in plgpio_suspend()
629 readl_relaxed(plgpio->regs.enb + off); in plgpio_suspend()
632 readl_relaxed(plgpio->regs.eit + off); in plgpio_suspend()
634 off); in plgpio_suspend()
636 off); in plgpio_suspend()
637 plgpio->csave_regs[i].ie = readl_relaxed(plgpio->regs.ie + off); in plgpio_suspend()
661 void __iomem *off; in plgpio_resume() local
665 off = plgpio->base + i * sizeof(int *); in plgpio_resume()
672 plgpio_prepare_reg(enb, off, mask, tmp); in plgpio_resume()
[all …]
/linux-4.1.27/Documentation/scsi/
Din2000.txt154 off off C8000 - CBFF0
155 on off D8000 - DBFF0
156 off on D0000 - D3FF0
161 off off 220 - 22F
162 on off 200 - 20F
163 off on 110 - 11F
168 off off off 15
169 off on off 14
170 off off on 11
171 off on on 10
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h633 size_t count, loff_t *off);
635 size_t count, loff_t *off);
637 size_t count, loff_t *off);
640 size_t count, loff_t *off);
720 loff_t *off) \
731 loff_t *off) \
733 return lprocfs_wr_##type(file, buffer, count, off); \
752 size_t count, loff_t *off);
756 loff_t off, int count,
761 loff_t off, int count,
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/power_supply/
Dqnap-poweroff.txt6 microcontroller to turn the power off. This driver adds a handler to
7 pm_power_off which is called to turn the power off.
13 - compatible: Should be "qnap,power-off" or "synology,power-off"
/linux-4.1.27/tools/testing/selftests/memory-hotplug/
DMakefile5 TEST_PROGS := mem-on-off-test.sh
6 override RUN_TESTS := ./mem-on-off-test.sh -r 2 || echo "selftests: memory-hotplug [FAIL]"
10 @/bin/bash ./mem-on-off-test.sh || echo "memory-hotplug selftests: [FAIL]"
/linux-4.1.27/drivers/i2c/
Di2c-slave-eeprom.c78 struct bin_attribute *attr, char *buf, loff_t off, size_t count) in i2c_slave_eeprom_bin_read() argument
83 if (off + count > attr->size) in i2c_slave_eeprom_bin_read()
89 memcpy(buf, &eeprom->buffer[off], count); in i2c_slave_eeprom_bin_read()
96 struct bin_attribute *attr, char *buf, loff_t off, size_t count) in i2c_slave_eeprom_bin_write() argument
101 if (off + count > attr->size) in i2c_slave_eeprom_bin_write()
107 memcpy(&eeprom->buffer[off], buf, count); in i2c_slave_eeprom_bin_write()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Dled.c118 unsigned long off) in iwl_led_cmd() argument
129 if (priv->blink_on == on && priv->blink_off == off) in iwl_led_cmd()
132 if (off == 0) { in iwl_led_cmd()
141 led_cmd.off = iwl_blink_compensation(priv, off, in iwl_led_cmd()
147 priv->blink_off = off; in iwl_led_cmd()
/linux-4.1.27/arch/powerpc/platforms/maple/
Dpci.c84 static unsigned long u3_agp_cfa0(u8 devfn, u8 off) in u3_agp_cfa0() argument
88 ((unsigned long)off & 0xFCUL); in u3_agp_cfa0()
91 static unsigned long u3_agp_cfa1(u8 bus, u8 devfn, u8 off) in u3_agp_cfa1() argument
95 ((unsigned long)off & 0xFCUL) | in u3_agp_cfa1()
188 static unsigned long u3_ht_cfa0(u8 devfn, u8 off) in u3_ht_cfa0() argument
190 return (devfn << 8) | off; in u3_ht_cfa0()
193 static unsigned long u3_ht_cfa1(u8 bus, u8 devfn, u8 off) in u3_ht_cfa1() argument
195 return u3_ht_cfa0(devfn, off) + (bus << 16) + 0x01000000UL; in u3_ht_cfa1()
338 static unsigned int u4_pcie_cfa0(unsigned int devfn, unsigned int off) in u4_pcie_cfa0() argument
342 ((off >> 8) << 28) | in u4_pcie_cfa0()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/
Dmain.c34 u32 off; in ath_rxbuf_alloc() local
51 off = ((unsigned long) skb->data) % common->cachelsz; in ath_rxbuf_alloc()
52 if (off != 0) in ath_rxbuf_alloc()
53 skb_reserve(skb, common->cachelsz - off); in ath_rxbuf_alloc()
/linux-4.1.27/drivers/sbus/char/
Dbbc_i2c.h80 extern int bbc_i2c_writeb(struct bbc_i2c_client *, unsigned char val, int off);
81 extern int bbc_i2c_readb(struct bbc_i2c_client *, unsigned char *byte, int off);
82 extern int bbc_i2c_write_buf(struct bbc_i2c_client *, char *buf, int len, int off);
83 extern int bbc_i2c_read_buf(struct bbc_i2c_client *, char *buf, int len, int off);
Dbbc_i2c.c149 int bbc_i2c_writeb(struct bbc_i2c_client *client, unsigned char val, int off) in bbc_i2c_writeb() argument
164 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_writeb()
180 int bbc_i2c_readb(struct bbc_i2c_client *client, unsigned char *byte, int off) in bbc_i2c_readb() argument
194 writeb(off, bp->i2c_control_regs + 0x1); in bbc_i2c_readb()
230 char *buf, int len, int off) in bbc_i2c_write_buf() argument
235 ret = bbc_i2c_writeb(client, *buf, off); in bbc_i2c_write_buf()
240 off++; in bbc_i2c_write_buf()
246 char *buf, int len, int off) in bbc_i2c_read_buf() argument
251 ret = bbc_i2c_readb(client, buf, off); in bbc_i2c_read_buf()
256 off++; in bbc_i2c_read_buf()
/linux-4.1.27/arch/sparc/lib/
Dchecksum_32.S191 #define CSUMCOPY_BIGCHUNK_ALIGNED(src, dst, sum, off, t0, t1, t2, t3, t4, t5, t6, t7) \ argument
192 ldd [src + off + 0x00], t0; \
193 ldd [src + off + 0x08], t2; \
195 ldd [src + off + 0x10], t4; \
197 ldd [src + off + 0x18], t6; \
199 std t0, [dst + off + 0x00]; \
201 std t2, [dst + off + 0x08]; \
203 std t4, [dst + off + 0x10]; \
205 std t6, [dst + off + 0x18]; \
213 #define CSUMCOPY_BIGCHUNK(src, dst, sum, off, t0, t1, t2, t3, t4, t5, t6, t7) \ argument
[all …]
/linux-4.1.27/drivers/leds/
Dleds-asic3.c65 u32 off; in blink_set() local
74 off = MS_TO_CLK(500); in blink_set()
77 off = MS_TO_CLK(*delay_off); in blink_set()
78 if ((on + off) > MAX_CLK) in blink_set()
83 asic3_write_register(asic, (base + ASIC3_LED_PeriodTime), (on + off)); in blink_set()
89 *delay_off = CLK_TO_MS(off); in blink_set()
/linux-4.1.27/drivers/staging/iio/accel/
Dadis16220_core.c99 loff_t off, in adis16220_capture_buffer_read() argument
125 if ((off >= ADIS16220_CAPTURE_SIZE) || (count & 1) || (off & 1)) in adis16220_capture_buffer_read()
128 if (off + count > ADIS16220_CAPTURE_SIZE) in adis16220_capture_buffer_read()
129 count = ADIS16220_CAPTURE_SIZE - off; in adis16220_capture_buffer_read()
134 off > 1); in adis16220_capture_buffer_read()
162 loff_t off, in adis16220_accel_bin_read() argument
168 off, count, in adis16220_accel_bin_read()
183 char *buf, loff_t off, in adis16220_adc1_bin_read() argument
189 off, count, in adis16220_adc1_bin_read()
204 char *buf, loff_t off, in adis16220_adc2_bin_read() argument
[all …]
/linux-4.1.27/drivers/isdn/hisax/
Dteles0.c31 readisac(void __iomem *adr, u_char off) in readisac() argument
33 return readb(adr + ((off & 1) ? 0x2ff : 0x100) + off); in readisac()
37 writeisac(void __iomem *adr, u_char off, u_char data) in writeisac() argument
39 writeb(data, adr + ((off & 1) ? 0x2ff : 0x100) + off); mb(); in writeisac()
44 readhscx(void __iomem *adr, int hscx, u_char off) in readhscx() argument
47 ((off & 1) ? 0x1ff : 0) + off); in readhscx()
51 writehscx(void __iomem *adr, int hscx, u_char off, u_char data) in writehscx() argument
54 ((off & 1) ? 0x1ff : 0) + off); mb(); in writehscx()
Dmic.c32 readreg(unsigned int ale, unsigned int adr, u_char off) in readreg() argument
36 byteout(ale, off); in readreg()
42 readfifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in readfifo() argument
44 byteout(ale, off); in readfifo()
50 writereg(unsigned int ale, unsigned int adr, u_char off, u_char data) in writereg() argument
52 byteout(ale, off); in writereg()
57 writefifo(unsigned int ale, unsigned int adr, u_char off, u_char *data, int size) in writefifo() argument
59 byteout(ale, off); in writefifo()
/linux-4.1.27/scripts/
Dcheckpatch.pl920 my $off = 0;
926 for ($off = 1; $off < length($line); $off++) {
927 $c = substr($line, $off, 1);
931 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
934 substr($res, $off, 2, "$;$;");
935 $off++;
938 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
940 substr($res, $off, 2, "$;$;");
941 $off++;
944 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
[all …]
/linux-4.1.27/arch/arm64/kernel/
Dsys.c31 unsigned long fd, off_t off) in sys_mmap() argument
33 if (offset_in_page(off) != 0) in sys_mmap()
36 return sys_mmap_pgoff(addr, len, prot, flags, fd, off >> PAGE_SHIFT); in sys_mmap()
/linux-4.1.27/drivers/net/can/m_can/
Dm_can.c274 u16 off; member
308 return readl(priv->mram_base + priv->mcfg[MRAM_RXF0].off + in m_can_fifo_read()
315 writel(val, priv->mram_base + priv->mcfg[MRAM_TXB].off + in m_can_fifo_write()
858 priv->mcfg[MRAM_TXB].off); in m_can_chip_config()
864 priv->mcfg[MRAM_TXE].off); in m_can_chip_config()
869 RXFC_FWM_1 | priv->mcfg[MRAM_RXF0].off); in m_can_chip_config()
873 RXFC_FWM_1 | priv->mcfg[MRAM_RXF1].off); in m_can_chip_config()
1142 priv->mcfg[MRAM_SIDF].off = out_val[0]; in m_can_of_parse_mram()
1144 priv->mcfg[MRAM_XIDF].off = priv->mcfg[MRAM_SIDF].off + in m_can_of_parse_mram()
1147 priv->mcfg[MRAM_RXF0].off = priv->mcfg[MRAM_XIDF].off + in m_can_of_parse_mram()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Djump_label.c20 s32 off = (s32)entry->target - (s32)entry->code; in arch_jump_label_transform() local
24 val = 0x10680000 | ((u32) off >> 2); in arch_jump_label_transform()
27 val = 0x10800000 | ((u32) off >> 2); in arch_jump_label_transform()
Dled.c19 unsigned char on, off; in led_toggle() local
23 off = AUXIO_LED; in led_toggle()
26 off = 0; in led_toggle()
29 set_auxio(on, off); in led_toggle()
/linux-4.1.27/drivers/fmc/
Dfmc-core.c83 char *buf, loff_t off, size_t count) in fmc_read_eeprom() argument
92 if (off > eelen) in fmc_read_eeprom()
94 if (off == eelen) in fmc_read_eeprom()
96 if (off + count > eelen) in fmc_read_eeprom()
97 count = eelen - off; in fmc_read_eeprom()
98 memcpy(buf, fmc->eeprom + off, count); in fmc_read_eeprom()
104 char *buf, loff_t off, size_t count) in fmc_write_eeprom() argument
111 return fmc->op->write_ee(fmc, off, buf, count); in fmc_write_eeprom()
/linux-4.1.27/arch/arm/common/
Ddmabounce.c367 unsigned long off; in __dmabounce_sync_for_cpu() local
376 off = addr - buf->safe_dma_addr; in __dmabounce_sync_for_cpu()
381 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, in __dmabounce_sync_for_cpu()
388 __func__, buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_cpu()
389 memcpy(buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_cpu()
407 unsigned long off; in __dmabounce_sync_for_device() local
416 off = addr - buf->safe_dma_addr; in __dmabounce_sync_for_device()
421 __func__, buf->ptr, virt_to_dma(dev, buf->ptr), off, in __dmabounce_sync_for_device()
428 __func__,buf->ptr + off, buf->safe + off, sz); in __dmabounce_sync_for_device()
429 memcpy(buf->safe + off, buf->ptr + off, sz); in __dmabounce_sync_for_device()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-platform-asus-wmi17 Control the camera. 1 means on, 0 means off.
24 Control the card reader. 1 means on, 0 means off.
31 Control the card touchpad. 1 means on, 0 means off.
38 Resume on lid open. 1 means on, 0 means off.
Dsysfs-platform-asus-laptop21 Control the gps device. 1 means on, 0 means off.
41 Control the bluetooth device. 1 means on, 0 means off.
50 Control the wlan device. 1 means on, 0 means off.
59 Control the wimax device. 1 means on, 0 means off.
66 Control the wwan (3G) device. 1 means on, 0 means off.
/linux-4.1.27/drivers/scsi/qla4xxx/
Dql4_nx.c29 #define CRB_BLK(off) ((off >> 20) & 0x3f) argument
30 #define CRB_SUBBLK(off) ((off >> 16) & 0xf) argument
32 #define CRB_HI(off) ((qla4_82xx_crb_hub_agt[CRB_BLK(off)] << 20) | \ argument
33 ((off) & 0xf0000))
39 qla4_8xxx_pci_base_offsetfset(struct scsi_qla_host *ha, unsigned long off) in qla4_8xxx_pci_base_offsetfset() argument
41 if ((off < ha->first_page_group_end) && in qla4_8xxx_pci_base_offsetfset()
42 (off >= ha->first_page_group_start)) in qla4_8xxx_pci_base_offsetfset()
43 return (void __iomem *)(ha->nx_pcibase + off); in qla4_8xxx_pci_base_offsetfset()
358 qla4_82xx_pci_set_crbwindow_2M(struct scsi_qla_host *ha, ulong *off) in qla4_82xx_pci_set_crbwindow_2M() argument
362 ha->crb_win = CRB_HI(*off); in qla4_82xx_pci_set_crbwindow_2M()
[all …]
/linux-4.1.27/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.h183 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in default_mpp_ctrl_get() local
186 *config = (readl(base + off) >> shift) & MVEBU_MPP_MASK; in default_mpp_ctrl_get()
194 unsigned off = (pid / MVEBU_MPPS_PER_REG) * MVEBU_MPP_BITS; in default_mpp_ctrl_set() local
198 reg = readl(base + off) & ~(MVEBU_MPP_MASK << shift); in default_mpp_ctrl_set()
199 writel(reg | (config << shift), base + off); in default_mpp_ctrl_set()
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunhme.h342 #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE32|((14/2)<<16)) argument
345 #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE64|((14/2)<<16)) argument
348 #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE128|((14/2)<<16)) argument
351 #define ERX_CFG_DEFAULT(off) (ERX_CFG_DMAENABLE|((off)<<3)|ERX_CFG_SIZE256|((14/2)<<16)) argument
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_ipack.c46 int off; in send_ipack() local
61 off = 9 + p->buf[8]; in send_ipack()
62 streamid = p->buf[off]; in send_ipack()
64 ai.off = 0; in send_ipack()
65 ac3_off = ((p->buf[off + 2] << 8)| in send_ipack()
66 p->buf[off + 3]); in send_ipack()
68 f = dvb_filter_get_ac3info(p->buf + off + 3 + ac3_off, in send_ipack()
71 nframes = (p->count - off - 3 - ac3_off) / in send_ipack()
73 p->buf[off + 2] = (ac3_off >> 8) & 0xff; in send_ipack()
74 p->buf[off + 3] = (ac3_off) & 0xff; in send_ipack()
[all …]
/linux-4.1.27/tools/lguest/
Dlguest.c1251 static void ioread(u16 off, u32 v, u32 mask, u32 *val) in ioread() argument
1253 assert(off < 4); in ioread()
1255 *val = (v >> (off * 8)) & mask; in ioread()
1259 static void iowrite(u16 off, u32 v, u32 mask, u32 *dst) in iowrite() argument
1261 assert(off < 4); in iowrite()
1263 *dst &= ~(mask << (off * 8)); in iowrite()
1264 *dst |= (v & mask) << (off * 8); in iowrite()
1355 static void emulate_mmio_write(struct device *d, u32 off, u32 val, u32 mask);
1457 static u32 emulate_mmio_read(struct device *d, u32 off, u32 mask);
1741 static struct device *find_mmio_region(unsigned long paddr, u32 *off) in find_mmio_region() argument
[all …]
/linux-4.1.27/drivers/staging/unisys/visorchannel/
Dvisorchannel.h40 ulong off, uuid_le guid);
47 ulong off, uuid_le guid);
71 struct seq_file *seq, u32 off);
73 int off, int len, struct seq_file *seq);
Dvisorchannel_funcs.c54 struct visorchannel *parent, ulong off, uuid_le guid, in visorchannel_create_guts() argument
78 off, sizeof(struct channel_header)); in visorchannel_create_guts()
132 struct visorchannel *parent, ulong off, in visorchannel_create_overlapped() argument
135 return visorchannel_create_guts(0, channel_bytes, parent, off, guid, in visorchannel_create_overlapped()
142 struct visorchannel *parent, ulong off, in visorchannel_create_overlapped_with_lock() argument
145 return visorchannel_create_guts(0, channel_bytes, parent, off, guid, in visorchannel_create_overlapped_with_lock()
553 struct seq_file *seq, u32 off) in visorchannel_debug() argument
571 errcode = visorchannel_read(channel, off, in visorchannel_debug()
577 if (off == 0) { in visorchannel_debug()
586 addr + off, nbytes, nbytes_region); in visorchannel_debug()
[all …]
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_proc.c271 size_t off; in prism2_pda_proc_read() local
276 off = *_pos; in prism2_pda_proc_read()
277 if (count > PRISM2_PDA_SIZE - off) in prism2_pda_proc_read()
278 count = PRISM2_PDA_SIZE - off; in prism2_pda_proc_read()
279 if (copy_to_user(buf, local->pda + off, count) != 0) in prism2_pda_proc_read()
303 static int prism2_io_debug_proc_read(char *page, char **start, off_t off, in prism2_io_debug_proc_read() argument
310 if (off + count > PRISM2_IO_DEBUG_SIZE * 4) { in prism2_io_debug_proc_read()
312 if (off >= PRISM2_IO_DEBUG_SIZE * 4) in prism2_io_debug_proc_read()
314 count = PRISM2_IO_DEBUG_SIZE * 4 - off; in prism2_io_debug_proc_read()
321 if (off < start_bytes) { in prism2_io_debug_proc_read()
[all …]
/linux-4.1.27/fs/pstore/
Dinode.c60 size_t off; member
75 data->off = ps->size % REC_SIZE; in pstore_ftrace_seq_start()
76 data->off += *pos * REC_SIZE; in pstore_ftrace_seq_start()
77 if (data->off + REC_SIZE > ps->size) { in pstore_ftrace_seq_start()
96 data->off += REC_SIZE; in pstore_ftrace_seq_next()
97 if (data->off + REC_SIZE > ps->size) in pstore_ftrace_seq_next()
108 struct pstore_ftrace_record *rec = (void *)(ps->data + data->off); in pstore_ftrace_seq_show()
171 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence) in pstore_file_llseek() argument
176 return seq_lseek(file, off, whence); in pstore_file_llseek()
177 return default_llseek(file, off, whence); in pstore_file_llseek()
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_ioctl.c1590 int esas2r_read_fw(struct esas2r_adapter *a, char *buf, long off, int count) in esas2r_read_fw() argument
1613 off); in esas2r_read_fw()
1615 if (off == 0) { in esas2r_read_fw()
1644 if (count + off > length) in esas2r_read_fw()
1645 count = length - off; in esas2r_read_fw()
1656 esas2r_debug("esas2r_read_fw: off %d count %d length %d ", off, in esas2r_read_fw()
1660 memcpy(buf, &a->firmware.data[off], count); in esas2r_read_fw()
1664 if (length <= off + count) { in esas2r_read_fw()
1681 int esas2r_write_fw(struct esas2r_adapter *a, const char *buf, long off, in esas2r_write_fw() argument
1686 if (off == 0) { in esas2r_write_fw()
[all …]
/linux-4.1.27/arch/mn10300/mm/
Dcache-flush-icache.c52 unsigned long addr, size, off; in flush_icache_page_range() local
60 off = start & ~PAGE_MASK; in flush_icache_page_range()
94 mn10300_local_dcache_flush_range2(addr + off, size); in flush_icache_page_range()
95 mn10300_local_icache_inv_range2(addr + off, size); in flush_icache_page_range()
/linux-4.1.27/drivers/usb/gadget/
Du_os_desc.h63 static inline u8 *usb_ext_prop_data_len_ptr(u8 *buf, size_t off) in usb_ext_prop_data_len_ptr() argument
66 USB_EXT_PROP_DW_PROPERTY_DATA_LENGTH + off); in usb_ext_prop_data_len_ptr()
69 static inline u8 *usb_ext_prop_data_ptr(u8 *buf, size_t off) in usb_ext_prop_data_ptr() argument
71 return __usb_ext_prop_ptr(buf, USB_EXT_PROP_B_PROPERTY_DATA + off); in usb_ext_prop_data_ptr()
/linux-4.1.27/drivers/video/fbdev/mb862xx/
Dmb862xxfb.h111 #define inreg(type, off) \ argument
112 gdc_read((par->type + (off)))
114 #define outreg(type, off, val) \ argument
115 gdc_write((val), (par->type + (off)))
/linux-4.1.27/drivers/tty/serial/
Dmsm_serial.h129 void msm_write(struct uart_port *port, unsigned int val, unsigned int off) in msm_write() argument
131 writel_relaxed(val, port->membase + off); in msm_write()
135 unsigned int msm_read(struct uart_port *port, unsigned int off) in msm_read() argument
137 return readl_relaxed(port->membase + off); in msm_read()
/linux-4.1.27/arch/alpha/include/asm/
Dcore_marvel.h58 #define EV7_CSR_PHYS(pe, off) (EV7_IPE(pe) | (0x7FFCUL << 20) | (off)) argument
61 #define EV7_CSR_KERN(pe, off) (EV7_KERN_ADDR(EV7_CSR_PHYS(pe, off))) argument
256 #define IO7_CSR_PHYS(pe, port, off) \ argument
257 (IO7_HOSE(pe, port) | 0xFF800000UL | (off))
264 #define IO7_CSR_KERN(pe, port, off) (IO7_KERN_ADDR(IO7_CSR_PHYS(pe,port,off))) argument
/linux-4.1.27/include/net/netfilter/
Dnf_conntrack_seqadj.h34 s32 off);
36 __be32 seq, s32 off);
38 enum ip_conntrack_info ctinfo, s32 off);
/linux-4.1.27/Documentation/devicetree/bindings/gpio/
Dgpio-poweroff.txt1 Driver a GPIO line that can be used to turn the power off.
3 The driver supports both level triggered and edge triggered power off.
10 and drive active, so triggering a level triggered power off
12 triggering positive edge triggered power off. After a delay of 100ms,
14 triggering negative edge triggered power off. After another 100ms
/linux-4.1.27/arch/mips/kvm/
Dmsa.S93 .macro kvm_restore_msa_upper wr, off, base
97 ld $1, \off(\base)
100 lw $1, \off(\base)
102 lw $1, (\off+4)(\base)
105 lw $1, (\off+4)(\base)
107 lw $1, \off(\base)
/linux-4.1.27/arch/x86/kernel/
Dksysfs.c33 char *buf, loff_t off, size_t count) in boot_params_data_read() argument
35 memcpy(buf, (void *)&boot_params + off, count); in boot_params_data_read()
143 loff_t off, size_t count) in setup_data_data_read() argument
161 if (off > data->len) { in setup_data_data_read()
166 if (count > data->len - off) in setup_data_data_read()
167 count = data->len - off; in setup_data_data_read()
178 memcpy(buf, p + off, count); in setup_data_data_read()
/linux-4.1.27/arch/powerpc/kernel/
Dsyscalls.c46 unsigned long fd, unsigned long off, int shift) in do_mmap2() argument
54 if (off & ((1 << shift) - 1)) in do_mmap2()
56 off >>= shift; in do_mmap2()
59 ret = sys_mmap_pgoff(addr, len, prot, flags, fd, off); in do_mmap2()
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_serial.c90 u8 off; member
135 .off = (UART_MCR_RTS | UART_MCR_OUT2),
152 .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2),
164 .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2),
176 .off = (UART_MCR_RTS | UART_MCR_DTR | UART_MCR_OUT2),
187 .off = (UART_MCR_RTS | UART_MCR_OUT2),
289 soutp(UART_MCR, hardware[type].off); in on()
294 static void off(void) in off() function
299 soutp(UART_MCR, hardware[type].off); in off()
473 off(); in send_pulse_homebrew_softcarrier()
[all …]
/linux-4.1.27/net/ipv6/
Dah6.c120 int off = 0; in zero_out_mutable_opts() local
123 off += 2; in zero_out_mutable_opts()
128 switch (opt[off]) { in zero_out_mutable_opts()
136 optlen = opt[off+1]+2; in zero_out_mutable_opts()
139 if (opt[off] & 0x20) in zero_out_mutable_opts()
140 memset(&opt[off+2], 0, opt[off+1]); in zero_out_mutable_opts()
144 off += optlen; in zero_out_mutable_opts()
164 int off = 0; in ipv6_rearrange_destopt() local
167 off += 2; in ipv6_rearrange_destopt()
172 switch (opt[off]) { in ipv6_rearrange_destopt()
[all …]
/linux-4.1.27/tools/net/
Dbpf_jit_disasm.c112 off_t off = 0; in get_last_jit_image() local
132 off += pmatch[0].rm_eo; in get_last_jit_image()
133 assert(off < hlen); in get_last_jit_image()
138 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image()
144 tmp = ptr = haystack + off; in get_last_jit_image()
/linux-4.1.27/Documentation/devicetree/bindings/arm/tegra/
Dnvidia,tegra20-pmc.txt29 0 (LP0): CPU + Core voltage off and DRAM in self-refresh
30 1 (LP1): CPU voltage off and DRAM in self-refresh
31 2 (LP2): CPU voltage off
40 - nvidia,cpu-pwr-off-time : CPU power off time in uS.
43 - nvidia,core-pwr-off-time : Core power off time in uS.
82 nvidia,cpu-pwr-off-time = <100>;
84 nvidia,core-pwr-off-time = <458>;

123456789