Home
last modified time | relevance | path

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

123456789

/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/target/
Dtarget_core_fabric_lib.c71 u32 off = 8; in fc_get_pr_transport_id() local
83 ret = hex2bin(&buf[off++], &ptr[i], 1); in fc_get_pr_transport_id()
146 u32 off = 4, padding = 0; in iscsi_get_pr_transport_id() local
161 len = sprintf(&buf[off], "%s", se_nacl->initiatorname); in iscsi_get_pr_transport_id()
194 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
195 buf[off+len] = 0x69; off++; /* ASCII Character: "i" */ in iscsi_get_pr_transport_id()
196 buf[off+len] = 0x2c; off++; /* ASCII Character: "," */ in iscsi_get_pr_transport_id()
197 buf[off+len] = 0x30; off++; /* ASCII Character: "0" */ in iscsi_get_pr_transport_id()
198 buf[off+len] = 0x78; off++; /* ASCII Character: "x" */ in iscsi_get_pr_transport_id()
200 buf[off+len] = pr_reg->pr_reg_isid[0]; off++; in iscsi_get_pr_transport_id()
[all …]
Dtarget_core_spc.c183 u32 unit_serial_len, off = 0; in spc_emulate_evpd_83() local
186 off = 4; in spc_emulate_evpd_83()
200 buf[off++] = 0x1; in spc_emulate_evpd_83()
203 buf[off] = 0x00; in spc_emulate_evpd_83()
206 buf[off++] |= 0x3; in spc_emulate_evpd_83()
207 off++; in spc_emulate_evpd_83()
210 buf[off++] = 0x10; in spc_emulate_evpd_83()
215 buf[off++] = (0x6 << 4); in spc_emulate_evpd_83()
220 buf[off++] = 0x01; in spc_emulate_evpd_83()
221 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.4.14/arch/mips/include/asm/
Dmips-cpc.h65 #define BUILD_CPC_R_(name, off) \ argument
68 return (u32 *)(mips_cpc_base + (off)); \
73 return __raw_readl(mips_cpc_base + (off)); \
76 #define BUILD_CPC__W(name, off) \ argument
79 __raw_writel(value, mips_cpc_base + (off)); \
82 #define BUILD_CPC_RW(name, off) \ argument
83 BUILD_CPC_R_(name, off) \
84 BUILD_CPC__W(name, off)
86 #define BUILD_CPC_Cx_R_(name, off) \ argument
87 BUILD_CPC_R_(cl_##name, MIPS_CPC_CLCB_OFS + (off)) \
[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 …]
Dmips-cm.h116 #define BUILD_CM_R_(name, off) \ argument
119 return (unsigned long __iomem *)(mips_cm_base + (off)); \
150 #define BUILD_CM__W(name, off) \ argument
169 #define BUILD_CM_RW(name, off) \ argument
170 BUILD_CM_R_(name, off) \
171 BUILD_CM__W(name, off)
173 #define BUILD_CM_Cx_R_(name, off) \ argument
174 BUILD_CM_R_(cl_##name, MIPS_CM_CLCB_OFS + (off)) \
175 BUILD_CM_R_(co_##name, MIPS_CM_COCB_OFS + (off))
177 #define BUILD_CM_Cx__W(name, off) \ argument
[all …]
Dasmmacro.h235 .macro ld_b wd, off, base
239 ld.b $w\wd, \off(\base)
243 .macro ld_h wd, off, base
247 ld.h $w\wd, \off(\base)
251 .macro ld_w wd, off, base
255 ld.w $w\wd, \off(\base)
259 .macro ld_d wd, off, base
264 ld.d $w\wd, \off(\base)
268 .macro st_b wd, off, base
272 st.b $w\wd, \off(\base)
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/ntb/hw/intel/
Dntb_hw_intel.c557 ssize_t ret, off; in ndev_debugfs_read() local
569 off = 0; in ndev_debugfs_read()
571 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
574 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
579 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
581 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
585 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
589 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
591 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
595 off += scnprintf(buf + off, buf_size - off, in ndev_debugfs_read()
[all …]
/linux-4.4.14/tools/include/linux/
Dfilter.h38 .off = 0, \
46 .off = 0, \
56 .off = 0, \
64 .off = 0, \
74 .off = 0, \
84 .off = 0, \
92 .off = 0, \
102 .off = 0, \
110 .off = 0, \
120 .off = 0, \
[all …]
/linux-4.4.14/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.4.14/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.4.14/samples/bpf/
Dlibbpf.h31 .off = 0, \
39 .off = 0, \
49 .off = 0, \
57 .off = 0, \
67 .off = 0, \
75 .off = 0, \
85 .off = 0, \
97 .off = 0, \
103 .off = 0, \
122 .off = 0, \
[all …]
Dbpf_helpers.h48 unsigned long long off) asm("llvm.bpf.load.byte");
50 unsigned long long off) asm("llvm.bpf.load.half");
52 unsigned long long off) asm("llvm.bpf.load.word");
64 static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) =
66 static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flags) =
68 static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) =
/linux-4.4.14/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.4.14/drivers/pci/
Dpci-sysfs.c631 loff_t off, size_t count) in pci_read_config() argument
636 loff_t init_off = off; in pci_read_config()
645 if (off > size) in pci_read_config()
647 if (off + count > size) { in pci_read_config()
648 size -= off; in pci_read_config()
656 if ((off & 1) && size) { in pci_read_config()
658 pci_user_read_config_byte(dev, off, &val); in pci_read_config()
659 data[off - init_off] = val; in pci_read_config()
660 off++; in pci_read_config()
664 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.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dfbmem.h61 fbmem_peek(struct io_mapping *fb, u32 off) in fbmem_peek() argument
63 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); in fbmem_peek()
64 u32 val = ioread32(p + (off & ~PAGE_MASK)); in fbmem_peek()
70 fbmem_poke(struct io_mapping *fb, u32 off, u32 val) in fbmem_poke() argument
72 u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); in fbmem_poke()
73 iowrite32(val, p + (off & ~PAGE_MASK)); in fbmem_poke()
79 fbmem_readback(struct io_mapping *fb, u32 off, u32 val) in fbmem_readback() argument
81 fbmem_poke(fb, off, val); in fbmem_readback()
82 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.4.14/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.4.14/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.4.14/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.4.14/net/ceph/
Dpagevec.c95 loff_t off, size_t len) in ceph_copy_user_to_page_vector() argument
98 int po = off & ~PAGE_CACHE_MASK; in ceph_copy_user_to_page_vector()
121 loff_t off, size_t len) in ceph_copy_to_page_vector() argument
124 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_to_page_vector()
144 loff_t off, size_t len) in ceph_copy_from_page_vector() argument
147 size_t po = off & ~PAGE_CACHE_MASK; in ceph_copy_from_page_vector()
169 void ceph_zero_page_vector_range(int off, int len, struct page **pages) in ceph_zero_page_vector_range() argument
171 int i = off >> PAGE_CACHE_SHIFT; in ceph_zero_page_vector_range()
173 off &= ~PAGE_CACHE_MASK; in ceph_zero_page_vector_range()
175 dout("zero_page_vector_page %u~%u\n", off, len); in ceph_zero_page_vector_range()
[all …]
/linux-4.4.14/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-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-pca953x.c118 int off) in pca953x_read_single() argument
122 int offset = off / BANK_SZ; in pca953x_read_single()
137 int off) in pca953x_write_single() argument
141 int offset = off / BANK_SZ; in pca953x_write_single()
217 static int pca953x_gpio_direction_input(struct gpio_chip *gc, unsigned off) in pca953x_gpio_direction_input() argument
224 reg_val = chip->reg_direction[off / BANK_SZ] | (1u << (off % BANK_SZ)); in pca953x_gpio_direction_input()
234 ret = pca953x_write_single(chip, offset, reg_val, off); in pca953x_gpio_direction_input()
238 chip->reg_direction[off / BANK_SZ] = reg_val; in pca953x_gpio_direction_input()
246 unsigned off, int val) in pca953x_gpio_direction_output() argument
255 reg_val = chip->reg_output[off / BANK_SZ] in pca953x_gpio_direction_output()
[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.4.14/drivers/staging/rdma/hfi1/
Dkeys.c184 size_t off; in hfi1_lkey_ok() local
215 off = sge->addr - mr->user_base; in hfi1_lkey_ok()
217 off + sge->length > mr->length || in hfi1_lkey_ok()
223 off += mr->offset; in hfi1_lkey_ok()
232 entries_spanned_by_off = off >> mr->page_shift; in hfi1_lkey_ok()
233 off -= (entries_spanned_by_off << mr->page_shift); in hfi1_lkey_ok()
239 while (off >= mr->map[m]->segs[n].length) { in hfi1_lkey_ok()
240 off -= mr->map[m]->segs[n].length; in hfi1_lkey_ok()
249 isge->vaddr = mr->map[m]->segs[n].vaddr + off; in hfi1_lkey_ok()
250 isge->length = mr->map[m]->segs[n].length - off; in hfi1_lkey_ok()
[all …]
/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Ddebug.c50 int block_debug_setup(void *addr, int len, __u64 off, __u64 id) in block_debug_setup() argument
54 put_unaligned_le64(off, addr); in block_debug_setup()
57 put_unaligned_le64(off, addr); in block_debug_setup()
64 int block_debug_check(char *who, void *addr, int end, __u64 off, __u64 id) in block_debug_check() argument
71 ne_off = le64_to_cpu (off); in block_debug_check()
75 who, id, off, *(__u64 *)addr, ne_off); in block_debug_check()
80 who, id, off, *(__u64 *)(addr + LPDS), id); in block_debug_check()
87 who, id, off, *(__u64 *)addr, ne_off); in block_debug_check()
92 who, id, off, *(__u64 *)(addr + LPDS), id); in block_debug_check()
/linux-4.4.14/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.4.14/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.4.14/drivers/staging/rdma/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.4.14/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.4.14/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.4.14/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 …]
Dbcm4708-smartrg-sr400ac.dts39 linux,default-trigger = "default-off";
45 linux,default-trigger = "default-off";
51 linux,default-trigger = "default-off";
57 linux,default-trigger = "default-off";
63 linux,default-trigger = "default-off";
69 linux,default-trigger = "default-off";
75 linux,default-trigger = "default-off";
81 linux,default-trigger = "default-off";
87 linux,default-trigger = "default-off";
93 linux,default-trigger = "default-off";
Dbcm4709-buffalo-wxr-1900dhp.dts33 linux,default-trigger = "default-off";
39 linux,default-trigger = "default-off";
51 linux,default-trigger = "default-off";
57 linux,default-trigger = "default-off";
63 linux,default-trigger = "default-off";
69 linux,default-trigger = "default-off";
75 linux,default-trigger = "default-off";
81 linux,default-trigger = "default-off";
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 …]
Dbcm4709-netgear-r7000.dts39 linux,default-trigger = "default-off";
45 linux,default-trigger = "default-off";
51 linux,default-trigger = "default-off";
57 linux,default-trigger = "default-off";
63 linux,default-trigger = "default-off";
69 linux,default-trigger = "default-off";
75 linux,default-trigger = "default-off";
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>;
Domap3-overo-tobiduo-common.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>;
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>;
Dlogicpd-torpedo-som.dtsi47 gpmc,cs-rd-off-ns = <44>;
48 gpmc,cs-wr-off-ns = <44>;
50 gpmc,adv-rd-off-ns = <34>;
51 gpmc,adv-wr-off-ns = <44>;
52 gpmc,we-off-ns = <40>;
53 gpmc,oe-off-ns = <54>;
116 cap-power-off-card;
156 compatible = "ti,twl4030-power-idle-osc-off", "ti,twl4030-power-idle";
Dbcm4708-asus-rt-ac56u.dts33 linux,default-trigger = "default-off";
39 linux,default-trigger = "default-off";
45 linux,default-trigger = "default-off";
63 linux,default-trigger = "default-off";
70 linux,default-trigger = "default-off";
Dexynos3250-rinato.dts195 power-off-delay= <120>;
277 regulator-off-in-suspend;
288 regulator-off-in-suspend;
299 regulator-off-in-suspend;
310 regulator-off-in-suspend;
321 regulator-off-in-suspend;
332 regulator-off-in-suspend;
343 regulator-off-in-suspend;
364 regulator-off-in-suspend;
388 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-common.dtsi214 gpmc,cs-rd-off-ns = <44>;
215 gpmc,cs-wr-off-ns = <44>;
217 gpmc,adv-rd-off-ns = <34>;
218 gpmc,adv-wr-off-ns = <44>;
219 gpmc,we-off-ns = <40>;
220 gpmc,oe-off-ns = <54>;
276 gpmc,cs-rd-off-ns = <180>;
277 gpmc,cs-wr-off-ns = <180>;
279 gpmc,adv-rd-off-ns = <18>;
280 gpmc,adv-wr-off-ns = <48>;
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.c38 unsigned long srcfd, u64 off, u64 len, u64 destoff, in cifs_ioctl_clone() argument
113 if (off + len > src_inode->i_size || off + len < off) in cifs_ioctl_clone()
116 len = src_inode->i_size - off; in cifs_ioctl_clone()
125 smb_file_src, smb_file_target, off, len, destoff); in cifs_ioctl_clone()
128 smb_file_src, smb_file_target, off, len, destoff); in cifs_ioctl_clone()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/include/linux/
Dfilter.h57 .off = 0, \
65 .off = 0, \
75 .off = 0, \
83 .off = 0, \
93 .off = 0, \
103 .off = 0, \
111 .off = 0, \
121 .off = 0, \
129 .off = 0, \
141 .off = 0, \
[all …]
/linux-4.4.14/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
/linux-4.4.14/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.4.14/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()
/linux-4.4.14/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.4.14/include/linux/reset/
Dbcm63xx_pmb.h42 u32 off, u32 op) in __bpcm_do_op() argument
47 cmd = (PMC_PMBM_START | op | (addr & 0xff) << 12 | off); in __bpcm_do_op()
67 u32 off, u32 *val) in bpcm_rd() argument
71 ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_READ); in bpcm_rd()
78 u32 off, u32 val) in bpcm_wr() argument
83 ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_WRITE); in bpcm_wr()
/linux-4.4.14/arch/arc/boot/dts/
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";
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";
/linux-4.4.14/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.4.14/kernel/bpf/
Dverifier.c341 insn->off, insn->src_reg); in print_bpf_insn()
346 insn->dst_reg, insn->off, in print_bpf_insn()
359 insn->off, insn->imm); in print_bpf_insn()
368 insn->src_reg, insn->off); in print_bpf_insn()
394 insn->code, insn->off); in print_bpf_insn()
401 insn->src_reg, insn->off); in print_bpf_insn()
406 insn->imm, insn->off); in print_bpf_insn()
552 static int check_stack_write(struct verifier_state *state, int off, int size, in check_stack_write() argument
570 state->spilled_regs[(MAX_BPF_STACK + off) / BPF_REG_SIZE] = in check_stack_write()
574 state->stack_slot_type[MAX_BPF_STACK + off + i] = STACK_SPILL; in check_stack_write()
[all …]
Dcore.c301 int off; in __bpf_prog_run() local
475 insn += insn->off; in __bpf_prog_run()
479 insn += insn->off; in __bpf_prog_run()
485 insn += insn->off; in __bpf_prog_run()
491 insn += insn->off; in __bpf_prog_run()
497 insn += insn->off; in __bpf_prog_run()
503 insn += insn->off; in __bpf_prog_run()
509 insn += insn->off; in __bpf_prog_run()
515 insn += insn->off; in __bpf_prog_run()
521 insn += insn->off; in __bpf_prog_run()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/misc/
Dlkdtm.c622 const char __user *user_buf, size_t count, loff_t *off) in do_register_entry() argument
651 *off += count; in do_register_entry()
658 size_t count, loff_t *off) in lkdtm_debugfs_read() argument
672 out = simple_read_from_buffer(user_buf, count, off, in lkdtm_debugfs_read()
686 size_t count, loff_t *off) in int_hardware_entry() argument
688 return do_register_entry(CN_INT_HARDWARE_ENTRY, f, buf, count, off); in int_hardware_entry()
692 size_t count, loff_t *off) in int_hw_irq_en() argument
694 return do_register_entry(CN_INT_HW_IRQ_EN, f, buf, count, off); in int_hw_irq_en()
698 size_t count, loff_t *off) in int_tasklet_entry() argument
700 return do_register_entry(CN_INT_TASKLET_ENTRY, f, buf, count, off); in int_tasklet_entry()
[all …]
Dds1682.c143 char *buf, loff_t off, size_t count) in ds1682_eeprom_read() argument
149 buf, off, count); in ds1682_eeprom_read()
151 rc = i2c_smbus_read_i2c_block_data(client, DS1682_REG_EEPROM + off, in ds1682_eeprom_read()
161 char *buf, loff_t off, size_t count) in ds1682_eeprom_write() argument
166 buf, off, count); in ds1682_eeprom_write()
169 if (i2c_smbus_write_i2c_block_data(client, DS1682_REG_EEPROM + off, in ds1682_eeprom_write()
/linux-4.4.14/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.4.14/arch/arm64/kvm/
Dguest.c62 u32 off; in get_core_reg() local
65 off = core_reg_offset_from_id(reg->id); in get_core_reg()
66 if (off >= nr_regs || in get_core_reg()
67 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in get_core_reg()
70 if (copy_to_user(uaddr, ((u32 *)regs) + off, KVM_REG_SIZE(reg->id))) in get_core_reg()
83 u64 off; in set_core_reg() local
87 off = core_reg_offset_from_id(reg->id); in set_core_reg()
88 if (off >= nr_regs || in set_core_reg()
89 (off + (KVM_REG_SIZE(reg->id) / sizeof(__u32))) >= nr_regs) in set_core_reg()
100 if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { in set_core_reg()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/net/rds/
Dtcp_send.c81 unsigned int hdr_off, unsigned int sg, unsigned int off) in rds_tcp_xmit() argument
126 rm->data.op_sg[sg].offset + off, in rds_tcp_xmit()
127 rm->data.op_sg[sg].length - off, in rds_tcp_xmit()
130 rm->data.op_sg[sg].offset + off, rm->data.op_sg[sg].length - off, in rds_tcp_xmit()
135 off += ret; in rds_tcp_xmit()
137 if (off == rm->data.op_sg[sg].length) { in rds_tcp_xmit()
138 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.4.14/drivers/misc/eeprom/
Deeprom.c85 char *buf, loff_t off, size_t count) in eeprom_read() argument
92 for (slice = off >> 5; slice <= (off + count - 1) >> 5; slice++) in eeprom_read()
103 if ((off + i <= 0x1f) || in eeprom_read()
104 (off + i >= 0xc0 && off + i <= 0xdf)) in eeprom_read()
107 buf[i] = data->data[off + i]; in eeprom_read()
110 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
54 cmd_addr |= off & 0x7f; in eeprom_93xx46_bin_read()
57 cmd_addr |= off & 0x3f; in eeprom_93xx46_bin_read()
87 count, (int)off, ret); in eeprom_93xx46_bin_read()
144 const char *buf, unsigned off) in eeprom_93xx46_write_word() argument
154 cmd_addr |= off & 0x7f; in eeprom_93xx46_write_word()
158 cmd_addr |= off & 0x3f; in eeprom_93xx46_write_word()
187 char *buf, loff_t off, size_t count) in eeprom_93xx46_bin_write() argument
213 ret = eeprom_93xx46_write_word(edev, &buf[i], off + i); in eeprom_93xx46_bin_write()
216 (int)off + i, ret); in eeprom_93xx46_bin_write()
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.4.14/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.4.14/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.4.14/arch/s390/net/
Dbpf_jit_comp.c242 #define EMIT6_PCREL(op1, op2, b1, b2, i, off, mask) \ argument
245 int rel = (addrs[i + off + 1] - (addrs[i + 1] - 6)) / 2;\
305 u32 off = STK_OFF_R6 + (rs - 6) * 8; in save_regs() local
309 _EMIT6(0xe300f000 | rs << 20 | off, 0x0024); in save_regs()
312 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0024, off); in save_regs()
320 u32 off = STK_OFF_R6 + (rs - 6) * 8; in restore_regs() local
323 off += STK_OFF; in restore_regs()
327 _EMIT6(0xe300f000 | rs << 20 | off, 0x0004); in restore_regs()
330 _EMIT6_DISP(0xeb00f000 | rs << 20 | re << 16, 0x0004, off); in restore_regs()
497 s16 off = insn->off; in bpf_jit_insn() local
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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()
221 loff_t off, size_t len);
224 loff_t off, size_t len);
227 loff_t off, size_t len);
228 extern void ceph_zero_page_vector_range(int off, int len, struct page **pages);
/linux-4.4.14/net/bridge/
Dbr_netfilter_ipv6.c55 int off = raw - nh; in br_nf_check_hbh_len() local
61 off += 2; in br_nf_check_hbh_len()
65 int optlen = nh[off + 1] + 2; in br_nf_check_hbh_len()
67 switch (nh[off]) { in br_nf_check_hbh_len()
76 if (nh[off + 1] != 4 || (off & 3) != 2) in br_nf_check_hbh_len()
78 pkt_len = ntohl(*(__be32 *)(nh + off + 2)); in br_nf_check_hbh_len()
94 off += optlen; in br_nf_check_hbh_len()
/linux-4.4.14/drivers/net/dsa/
Dbcm_sf2.h152 static inline u32 name##_readl(struct bcm_sf2_priv *priv, u32 off) \
154 return __raw_readl(priv->name + off); \
157 u32 val, u32 off) \
159 __raw_writel(val, priv->name + off); \
168 static inline u64 name##_readq(struct bcm_sf2_priv *priv, u32 off) \
172 dir = __raw_readl(priv->name + off); \
178 u32 off) \
182 __raw_writel(lower_32_bits(val), priv->name + off); \
/linux-4.4.14/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 …]
/linux-4.4.14/drivers/vfio/platform/
Dvfio_platform_common.c326 loff_t off) in vfio_platform_read_mmio() argument
341 if (count >= 4 && !(off % 4)) { in vfio_platform_read_mmio()
344 val = ioread32(reg->ioaddr + off); in vfio_platform_read_mmio()
349 } else if (count >= 2 && !(off % 2)) { in vfio_platform_read_mmio()
352 val = ioread16(reg->ioaddr + off); in vfio_platform_read_mmio()
360 val = ioread8(reg->ioaddr + off); in vfio_platform_read_mmio()
370 off += filled; in vfio_platform_read_mmio()
384 loff_t off = *ppos & VFIO_PLATFORM_OFFSET_MASK; in vfio_platform_read() local
394 buf, count, off); in vfio_platform_read()
403 loff_t off) in vfio_platform_write_mmio() argument
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/broadcom/
Dcnic_if.h353 #define CNIC_WR(dev, off, val) writel(val, dev->regview + off) argument
354 #define CNIC_WR16(dev, off, val) writew(val, dev->regview + off) argument
355 #define CNIC_WR8(dev, off, val) writeb(val, dev->regview + off) argument
356 #define CNIC_RD(dev, off) readl(dev->regview + off) argument
357 #define CNIC_RD16(dev, off) readw(dev->regview + off) argument
/linux-4.4.14/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.4.14/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.4.14/arch/arm/net/
Dbpf_jit_32.h158 #define ARM_LDR_I(rt, rn, off) (ARM_INST_LDR_I | (rt) << 12 | (rn) << 16 \ argument
159 | (off))
160 #define ARM_LDRB_I(rt, rn, off) (ARM_INST_LDRB_I | (rt) << 12 | (rn) << 16 \ argument
161 | (off))
164 #define ARM_LDRH_I(rt, rn, off) (ARM_INST_LDRH_I | (rt) << 12 | (rn) << 16 \ argument
165 | (((off) & 0xf0) << 4) | ((off) & 0xf))
204 #define ARM_STR_I(rt, rn, off) (ARM_INST_STR_I | (rt) << 12 | (rn) << 16 \ argument
205 | (off))
Dbpf_jit_32.c201 u16 off; in build_prologue() local
216 off = offsetof(struct sk_buff, data); in build_prologue()
217 emit(ARM_LDR_I(r_skb_data, r_skb, off), ctx); in build_prologue()
219 off = offsetof(struct sk_buff, len); in build_prologue()
220 emit(ARM_LDR_I(r_skb_hl, r_skb, off), ctx); in build_prologue()
221 off = offsetof(struct sk_buff, data_len); in build_prologue()
222 emit(ARM_LDR_I(r_scratch, r_skb, off), ctx); in build_prologue()
517 unsigned i, load_order, off, condt; in build_body() local
861 off = offsetof(struct sk_buff, protocol); in build_body()
862 emit(ARM_LDRH_I(r_scratch, r_skb, off), ctx); in build_body()
[all …]
/linux-4.4.14/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.4.14/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.4.14/drivers/rtc/
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.4.14/drivers/iio/pressure/
Dms5611_core.c92 s64 off, sens, dt; in ms5611_temp_and_pressure_compensate() local
95 off = ((s64)chip_info->prom[2] << 16) + ((chip_info->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate()
114 off -= off2; in ms5611_temp_and_pressure_compensate()
119 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5611_temp_and_pressure_compensate()
128 s64 off, sens, dt; in ms5607_temp_and_pressure_compensate() local
131 off = ((s64)chip_info->prom[2] << 17) + ((chip_info->prom[4] * dt) >> 6); in ms5607_temp_and_pressure_compensate()
150 off -= off2; in ms5607_temp_and_pressure_compensate()
155 *pressure = (((p * sens) >> 21) - off) >> 15; in ms5607_temp_and_pressure_compensate()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/drivers/staging/lustre/lustre/include/
Dlprocfs_status.h598 size_t count, loff_t *off);
600 size_t count, loff_t *off);
603 size_t count, loff_t *off);
665 loff_t *off) \
676 loff_t *off) \
678 return lprocfs_wr_##type(file, buffer, count, off); \
708 loff_t off, int count,
713 loff_t off, int count,
718 loff_t off, int count,
723 loff_t off, int count,
[all …]
/linux-4.4.14/arch/x86/net/
Dbpf_jit_comp.c48 #define EMIT1_off32(b1, off) \ argument
49 do {EMIT1(b1); EMIT(off, 4); } while (0)
50 #define EMIT2_off32(b1, b2, off) \ argument
51 do {EMIT2(b1, b2); EMIT(off, 4); } while (0)
52 #define EMIT3_off32(b1, b2, b3, off) \ argument
53 do {EMIT3(b1, b2, b3); EMIT(off, 4); } while (0)
54 #define EMIT4_off32(b1, b2, b3, b4, off) \ argument
55 do {EMIT4(b1, b2, b3, b4); EMIT(off, 4); } while (0)
466 insn[1].dst_reg != 0 || insn[1].off != 0) { in do_jit()
723 st: if (is_imm8(insn->off)) in do_jit()
[all …]
/linux-4.4.14/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.4.14/arch/arm64/boot/dts/qcom/
Dapq8016-sbc.dtsi74 default-state = "off";
81 default-state = "off";
88 default-state = "off";
95 default-state = "off";
102 default-state = "off";
109 default-state = "off";
/linux-4.4.14/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.4.14/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.4.14/scripts/
Dcheckpatch.pl964 my $off = 0;
970 for ($off = 1; $off < length($line); $off++) {
971 $c = substr($line, $off, 1);
975 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '/*') {
978 substr($res, $off, 2, "$;$;");
979 $off++;
982 if ($sanitise_quote eq '*/' && substr($line, $off, 2) eq '*/') {
984 substr($res, $off, 2, "$;$;");
985 $off++;
988 if ($sanitise_quote eq '' && substr($line, $off, 2) eq '//') {
[all …]
/linux-4.4.14/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.4.14/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()
855 priv->mcfg[MRAM_TXB].off); in m_can_chip_config()
861 priv->mcfg[MRAM_TXE].off); in m_can_chip_config()
866 RXFC_FWM_1 | priv->mcfg[MRAM_RXF0].off); in m_can_chip_config()
870 RXFC_FWM_1 | priv->mcfg[MRAM_RXF1].off); in m_can_chip_config()
1139 priv->mcfg[MRAM_SIDF].off = out_val[0]; in m_can_of_parse_mram()
1141 priv->mcfg[MRAM_XIDF].off = priv->mcfg[MRAM_SIDF].off + in m_can_of_parse_mram()
1144 priv->mcfg[MRAM_RXF0].off = priv->mcfg[MRAM_XIDF].off + in m_can_of_parse_mram()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/mips/kernel/
Dr4k_fpu.S243 .macro save_msa_upper wr, off, base
248 EX sd $1, \off(\base)
251 EX sw $1, \off(\base)
253 EX sw $1, (\off+4)(\base)
256 EX sw $1, (\off+4)(\base)
258 EX sw $1, \off(\base)
300 .macro restore_msa_upper wr, off, base
304 EX ld $1, \off(\base)
307 EX lw $1, \off(\base)
309 EX lw $1, (\off+4)(\base)
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/tools/lguest/
Dlguest.c1255 static void ioread(u16 off, u32 v, u32 mask, u32 *val) in ioread() argument
1257 assert(off < 4); in ioread()
1259 *val = (v >> (off * 8)) & mask; in ioread()
1263 static void iowrite(u16 off, u32 v, u32 mask, u32 *dst) in iowrite() argument
1265 assert(off < 4); in iowrite()
1267 *dst &= ~(mask << (off * 8)); in iowrite()
1268 *dst |= (v & mask) << (off * 8); in iowrite()
1359 static void emulate_mmio_write(struct device *d, u32 off, u32 val, u32 mask);
1461 static u32 emulate_mmio_read(struct device *d, u32 off, u32 mask);
1745 static struct device *find_mmio_region(unsigned long paddr, u32 *off) in find_mmio_region() argument
[all …]
/linux-4.4.14/drivers/firmware/broadcom/
Dbcm47xx_nvram.c60 u32 off; in nvram_find_and_copy() local
70 off = FLASH_MIN; in nvram_find_and_copy()
71 while (off <= lim) { in nvram_find_and_copy()
73 size = find_nvram_size(iobase + off); in nvram_find_and_copy()
75 header = (struct nvram_header *)(iobase + off - size); in nvram_find_and_copy()
78 off <<= 1; in nvram_find_and_copy()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/include/net/netfilter/
Dnf_conntrack_seqadj.h34 s32 off);
36 __be32 seq, s32 off);
38 enum ip_conntrack_info ctinfo, s32 off);
/linux-4.4.14/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.4.14/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))
378 qla82xx_pci_set_crbwindow(struct qla_hw_data *ha, u64 off) in qla82xx_pci_set_crbwindow() argument
382 if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_DDR_NET)) { in qla82xx_pci_set_crbwindow()
386 return off; in qla82xx_pci_set_crbwindow()
389 if ((off >= QLA82XX_CRB_PCIX_HOST) && (off < QLA82XX_CRB_PCIX_HOST2)) { in qla82xx_pci_set_crbwindow()
393 return off; in qla82xx_pci_set_crbwindow()
396 if ((off > QLA82XX_CRB_PCIX_HOST2) && (off < QLA82XX_CRB_MAX)) { in qla82xx_pci_set_crbwindow()
[all …]
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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 …]

123456789