Searched refs:write (Results 1 - 200 of 12355) sorted by relevance

1234567891011>>

/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Ddigitv.h19 * write or first message of a read:
35 * 0x05 write register of the COFDM
38 * 0x06 write to the tuner (only for NXT6000)
44 * 0x07 write to the remote (don't know why one should this, resetting ?)
47 * 0x08 write remote type
50 * 0x09 write device init
H A Ddibusb.h39 * bulk write: 0x02 ((7bit i2c_addr << 1) | 0x01) register_bytes length_word
45 * i2c write
46 * bulk write: 0x03 (7bit i2c_addr << 1) register_bytes value_bytes
52 * bulk write: 0x04
62 * bulk write: 0x05 mode_byte
H A Dm920x.h26 0x80 write addr
30 0x80 write addr
47 the read/write bit as the LSB.
60 response to a write, is unknown.
H A Dvp702x.h15 /* consecutive read/write operation */
75 /* OUT i: offset; v: value to write; no extra buffer */
90 /* OUT i: offset; v: value to write; 1 byte extra buffer */
96 /* IN i: register, v: value to write, no extra buffer */
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dregs-uart.h11 #define FFTHR __REG(0x40100000) /* Transmit Holding Register (write only) */
12 #define FFIER __REG(0x40100004) /* Interrupt Enable Register (read/write) */
14 #define FFFCR __REG(0x40100008) /* FIFO Control Register (write only) */
15 #define FFLCR __REG(0x4010000C) /* Line Control Register (read/write) */
16 #define FFMCR __REG(0x40100010) /* Modem Control Register (read/write) */
19 #define FFSPR __REG(0x4010001C) /* Scratch Pad Register (read/write) */
20 #define FFISR __REG(0x40100020) /* Infrared Selection Register (read/write) */
21 #define FFDLL __REG(0x40100000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
22 #define FFDLH __REG(0x40100004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
27 #define BTTHR __REG(0x40200000) /* Transmit Holding Register (write only) */
28 #define BTIER __REG(0x40200004) /* Interrupt Enable Register (read/write) */
30 #define BTFCR __REG(0x40200008) /* FIFO Control Register (write only) */
31 #define BTLCR __REG(0x4020000C) /* Line Control Register (read/write) */
32 #define BTMCR __REG(0x40200010) /* Modem Control Register (read/write) */
35 #define BTSPR __REG(0x4020001C) /* Scratch Pad Register (read/write) */
36 #define BTISR __REG(0x40200020) /* Infrared Selection Register (read/write) */
37 #define BTDLL __REG(0x40200000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
38 #define BTDLH __REG(0x40200004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
43 #define STTHR __REG(0x40700000) /* Transmit Holding Register (write only) */
44 #define STIER __REG(0x40700004) /* Interrupt Enable Register (read/write) */
46 #define STFCR __REG(0x40700008) /* FIFO Control Register (write only) */
47 #define STLCR __REG(0x4070000C) /* Line Control Register (read/write) */
48 #define STMCR __REG(0x40700010) /* Modem Control Register (read/write) */
51 #define STSPR __REG(0x4070001C) /* Scratch Pad Register (read/write) */
52 #define STISR __REG(0x40700020) /* Infrared Selection Register (read/write) */
53 #define STDLL __REG(0x40700000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
54 #define STDLH __REG(0x40700004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
59 #define HWTHR __REG(0x41600000) /* Transmit Holding Register (write only) */
60 #define HWIER __REG(0x41600004) /* Interrupt Enable Register (read/write) */
62 #define HWFCR __REG(0x41600008) /* FIFO Control Register (write only) */
63 #define HWLCR __REG(0x4160000C) /* Line Control Register (read/write) */
64 #define HWMCR __REG(0x41600010) /* Modem Control Register (read/write) */
67 #define HWSPR __REG(0x4160001C) /* Scratch Pad Register (read/write) */
68 #define HWISR __REG(0x41600020) /* Infrared Selection Register (read/write) */
70 #define HWABR __REG(0x41600028) /* Auto-Baud Control Register (read/write) */
72 #define HWDLL __REG(0x41600000) /* Divisor Latch Low Register (DLAB = 1) (read/write) */
73 #define HWDLH __REG(0x41600004) /* Divisor Latch High Register (DLAB = 1) (read/write) */
/linux-4.1.27/arch/mips/include/asm/mach-ath79/
H A Dkernel-entry-init.h16 * 'Cacheable, noncoherent, write-through, no write allocate'
18 * 'Cacheable, noncoherent, write-back, write allocate'
/linux-4.1.27/arch/sh/include/uapi/asm/
H A Dcachectl.h6 #define CACHEFLUSH_D_INVAL 0x1 /* invalidate (without write back) */
7 #define CACHEFLUSH_D_WB 0x2 /* write back (without invalidate) */
/linux-4.1.27/drivers/isdn/hardware/eicon/
H A Ddqueue.c29 q->read = q->write = q->count = q->segment_pending = 0; diva_data_q_init()
52 q->read = q->write = q->count = q->segment_pending = 0; diva_data_q_finit()
66 return (q->data[q->write]); diva_data_q_get_segment4write()
76 q->length[q->write] = length; diva_data_q_ack_segment4write()
78 q->write++; diva_data_q_ack_segment4write()
79 if (q->write >= q->segments) { diva_data_q_ack_segment4write()
80 q->write = 0; diva_data_q_ack_segment4write()
H A Ddqueue.h12 int write; member in struct:_diva_um_idi_data_queue
/linux-4.1.27/arch/arm/plat-pxa/include/plat/
H A Ddma.h16 #define DCSR_RUN (1 << 31) /* Run Bit (read / write) */
17 #define DCSR_NODESC (1 << 30) /* No-Descriptor Fetch (read / write) */
18 #define DCSR_STOPIRQEN (1 << 29) /* Stop Interrupt Enable (read / write) */
21 #define DCSR_ENDINTR (1 << 2) /* End Interrupt (read / write) */
22 #define DCSR_STARTINTR (1 << 1) /* Start Interrupt (read / write) */
23 #define DCSR_BUSERR (1 << 0) /* Bus Error Interrupt (read / write) */
33 #define DRCMR_MAPVLD (1 << 7) /* Map Valid (read / write) */
34 #define DRCMR_CHLNUM 0x1f /* mask for Channel Number (read / write) */
37 #define DDADR_STOP (1 << 0) /* Stop (read / write) */
/linux-4.1.27/kernel/
H A Dutsname_sysctl.c20 static void *get_uts(struct ctl_table *table, int write) get_uts() argument
28 if (!write) get_uts()
35 static void put_uts(struct ctl_table *table, int write, void *which) put_uts() argument
37 if (!write) put_uts()
47 static int proc_do_uts_string(struct ctl_table *table, int write, proc_do_uts_string() argument
53 uts_table.data = get_uts(table, write); proc_do_uts_string()
54 r = proc_dostring(&uts_table, write, buffer, lenp, ppos); proc_do_uts_string()
55 put_uts(table, write, uts_table.data); proc_do_uts_string()
57 if (write) proc_do_uts_string()
H A Dsysctl.c177 static int proc_do_cad_pid(struct ctl_table *table, int write,
179 static int proc_taint(struct ctl_table *table, int write,
184 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
188 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write,
191 static int proc_dostring_coredump(struct ctl_table *table, int write,
199 static int sysrq_sysctl_handler(struct ctl_table *table, int write, sysrq_sysctl_handler() argument
205 error = proc_dointvec(table, write, buffer, lenp, ppos); sysrq_sysctl_handler()
209 if (write) sysrq_sysctl_handler()
1746 static int _proc_do_string(char *data, int maxlen, int write, _proc_do_string() argument
1759 if (write) { _proc_do_string()
1824 * @write: %TRUE if this is a write to the sysctl file
1838 int proc_dostring(struct ctl_table *table, int write, proc_dostring() argument
1841 if (write && *ppos && sysctl_writes_strict == SYSCTL_WRITES_WARN) proc_dostring()
1844 return _proc_do_string((char *)(table->data), table->maxlen, write, proc_dostring()
1975 int write, void *data) do_proc_dointvec_conv()
1977 if (write) { do_proc_dointvec_conv()
2003 int write, void __user *buffer, __do_proc_dointvec()
2006 int write, void *data), __do_proc_dointvec()
2014 if (!tbl_data || !table->maxlen || !*lenp || (*ppos && !write)) { __do_proc_dointvec()
2026 if (write) { __do_proc_dointvec()
2056 if (write) { __do_proc_dointvec()
2085 if (!write && !first && left && !err) __do_proc_dointvec()
2087 if (write && !err && left) __do_proc_dointvec()
2090 if (write) { __do_proc_dointvec()
2101 static int do_proc_dointvec(struct ctl_table *table, int write, do_proc_dointvec() argument
2104 int write, void *data), do_proc_dointvec()
2107 return __do_proc_dointvec(table->data, table, write, do_proc_dointvec()
2114 * @write: %TRUE if this is a write to the sysctl file
2124 int proc_dointvec(struct ctl_table *table, int write, proc_dointvec() argument
2127 return do_proc_dointvec(table,write,buffer,lenp,ppos, proc_dointvec()
2135 static int proc_taint(struct ctl_table *table, int write, proc_taint() argument
2142 if (write && !capable(CAP_SYS_ADMIN)) proc_taint()
2147 err = proc_doulongvec_minmax(&t, write, buffer, lenp, ppos); proc_taint()
2151 if (write) { proc_taint()
2167 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, proc_dointvec_minmax_sysadmin() argument
2170 if (write && !capable(CAP_SYS_ADMIN)) proc_dointvec_minmax_sysadmin()
2173 return proc_dointvec_minmax(table, write, buffer, lenp, ppos); proc_dointvec_minmax_sysadmin()
2184 int write, void *data) do_proc_dointvec_minmax_conv()
2187 if (write) { do_proc_dointvec_minmax_conv()
2209 * @write: %TRUE if this is a write to the sysctl file
2222 int proc_dointvec_minmax(struct ctl_table *table, int write, proc_dointvec_minmax() argument
2229 return do_proc_dointvec(table, write, buffer, lenp, ppos, proc_dointvec_minmax()
2245 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write, proc_dointvec_minmax_coredump() argument
2248 int error = proc_dointvec_minmax(table, write, buffer, lenp, ppos); proc_dointvec_minmax_coredump()
2255 static int proc_dostring_coredump(struct ctl_table *table, int write, proc_dostring_coredump() argument
2258 int error = proc_dostring(table, write, buffer, lenp, ppos); proc_dostring_coredump()
2265 static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int write, __do_proc_doulongvec_minmax() argument
2277 if (!data || !table->maxlen || !*lenp || (*ppos && !write)) { __do_proc_doulongvec_minmax()
2288 if (write) { __do_proc_doulongvec_minmax()
2317 if (write) { __do_proc_doulongvec_minmax()
2345 if (!write && !first && left && !err) __do_proc_doulongvec_minmax()
2347 if (write && !err) __do_proc_doulongvec_minmax()
2350 if (write) { __do_proc_doulongvec_minmax()
2361 static int do_proc_doulongvec_minmax(struct ctl_table *table, int write, do_proc_doulongvec_minmax() argument
2367 return __do_proc_doulongvec_minmax(table->data, table, write, do_proc_doulongvec_minmax()
2374 * @write: %TRUE if this is a write to the sysctl file
2387 int proc_doulongvec_minmax(struct ctl_table *table, int write, proc_doulongvec_minmax() argument
2390 return do_proc_doulongvec_minmax(table, write, buffer, lenp, ppos, 1l, 1l); proc_doulongvec_minmax()
2396 * @write: %TRUE if this is a write to the sysctl file
2410 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, proc_doulongvec_ms_jiffies_minmax() argument
2414 return do_proc_doulongvec_minmax(table, write, buffer, proc_doulongvec_ms_jiffies_minmax()
2421 int write, void *data) do_proc_dointvec_jiffies_conv()
2423 if (write) { do_proc_dointvec_jiffies_conv()
2444 int write, void *data) do_proc_dointvec_userhz_jiffies_conv()
2446 if (write) { do_proc_dointvec_userhz_jiffies_conv()
2467 int write, void *data) do_proc_dointvec_ms_jiffies_conv()
2469 if (write) { do_proc_dointvec_ms_jiffies_conv()
2493 * @write: %TRUE if this is a write to the sysctl file
2505 int proc_dointvec_jiffies(struct ctl_table *table, int write, proc_dointvec_jiffies() argument
2508 return do_proc_dointvec(table,write,buffer,lenp,ppos, proc_dointvec_jiffies()
2515 * @write: %TRUE if this is a write to the sysctl file
2527 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, proc_dointvec_userhz_jiffies() argument
2530 return do_proc_dointvec(table,write,buffer,lenp,ppos, proc_dointvec_userhz_jiffies()
2537 * @write: %TRUE if this is a write to the sysctl file
2550 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, proc_dointvec_ms_jiffies() argument
2553 return do_proc_dointvec(table, write, buffer, lenp, ppos, proc_dointvec_ms_jiffies()
2557 static int proc_do_cad_pid(struct ctl_table *table, int write, proc_do_cad_pid() argument
2566 r = __do_proc_dointvec(&tmp, table, write, buffer, proc_do_cad_pid()
2568 if (r || !write) proc_do_cad_pid()
2580 * proc_do_large_bitmap - read/write from/to a large bitmap
2582 * @write: %TRUE if this is a write to the sysctl file
2596 int proc_do_large_bitmap(struct ctl_table *table, int write, proc_do_large_bitmap() argument
2607 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { proc_do_large_bitmap()
2612 if (write) { proc_do_large_bitmap()
2711 if (write) { proc_do_large_bitmap()
2729 int proc_dostring(struct ctl_table *table, int write, proc_dostring() argument
2735 int proc_dointvec(struct ctl_table *table, int write, proc_dointvec() argument
2741 int proc_dointvec_minmax(struct ctl_table *table, int write, proc_dointvec_minmax() argument
2747 int proc_dointvec_jiffies(struct ctl_table *table, int write, proc_dointvec_jiffies() argument
2753 int proc_dointvec_userhz_jiffies(struct ctl_table *table, int write, proc_dointvec_userhz_jiffies() argument
2759 int proc_dointvec_ms_jiffies(struct ctl_table *table, int write, proc_dointvec_ms_jiffies() argument
2765 int proc_doulongvec_minmax(struct ctl_table *table, int write, proc_doulongvec_minmax() argument
2771 int proc_doulongvec_ms_jiffies_minmax(struct ctl_table *table, int write, proc_doulongvec_ms_jiffies_minmax() argument
1973 do_proc_dointvec_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) do_proc_dointvec_conv() argument
2002 __do_proc_dointvec(void *tbl_data, struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos, int (*conv)(bool *negp, unsigned long *lvalp, int *valp, int write, void *data), void *data) __do_proc_dointvec() argument
2182 do_proc_dointvec_minmax_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) do_proc_dointvec_minmax_conv() argument
2419 do_proc_dointvec_jiffies_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) do_proc_dointvec_jiffies_conv() argument
2442 do_proc_dointvec_userhz_jiffies_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) do_proc_dointvec_userhz_jiffies_conv() argument
2465 do_proc_dointvec_ms_jiffies_conv(bool *negp, unsigned long *lvalp, int *valp, int write, void *data) do_proc_dointvec_ms_jiffies_conv() argument
/linux-4.1.27/arch/parisc/kernel/
H A Dperf_asm.S18 * along with this program; if not, write to the Free Software
569 ;* arg1 = 64-bit value to write
599 ; RDR 0 write sequence
601 sync ; RDR 0 write sequence
611 ; RDR 1 write sequence
623 ; RDR 2 write sequence
635 ; RDR 3 write sequence
647 ; RDR 4 write sequence
659 ; RDR 5 write sequence
671 ; RDR 6 write sequence
683 ; RDR 7 write sequence
695 ; RDR 8 write sequence
707 ; RDR 9 write sequence
719 ; RDR 10 write sequence
731 ; RDR 11 write sequence
743 ; RDR 12 write sequence
755 ; RDR 13 write sequence
767 ; RDR 14 write sequence
779 ; RDR 15 write sequence
791 ; RDR 16 write sequence
803 ; RDR 17 write sequence
815 ; RDR 18 write sequence
827 ; RDR 19 write sequence
839 ; RDR 20 write sequence
851 ; RDR 21 write sequence
863 ; RDR 22 write sequence
875 ; RDR 23 write sequence
887 ; RDR 24 write sequence
899 ; RDR 25 write sequence
911 ; RDR 26 write sequence
923 ; RDR 27 write sequence
935 ; RDR 28 write sequence
947 ; RDR 29 write sequence
959 ; RDR 30 write sequence
971 ; RDR 31 write sequence
1398 sync ; RDR 0 write sequence
1407 sync ; RDR 1 write sequence
1416 sync ; RDR 2 write sequence
1425 sync ; RDR 3 write sequence
1434 sync ; RDR 4 write sequence
1443 sync ; RDR 5 write sequence
1452 sync ; RDR 6 write sequence
1461 sync ; RDR 7 write sequence
1470 sync ; RDR 8 write sequence
1479 sync ; RDR 9 write sequence
1488 sync ; RDR 10 write sequence
1497 sync ; RDR 11 write sequence
1506 sync ; RDR 12 write sequence
1515 sync ; RDR 13 write sequence
1524 sync ; RDR 14 write sequence
1533 sync ; RDR 15 write sequence
1542 sync ; RDR 16 write sequence
1551 sync ; RDR 17 write sequence
1560 sync ; RDR 18 write sequence
1569 sync ; RDR 19 write sequence
1578 sync ; RDR 20 write sequence
1587 sync ; RDR 21 write sequence
1596 sync ; RDR 22 write sequence
1605 sync ; RDR 23 write sequence
1614 sync ; RDR 24 write sequence
1623 sync ; RDR 25 write sequence
1632 sync ; RDR 26 write sequence
1641 sync ; RDR 27 write sequence
1650 sync ; RDR 28 write sequence
1659 sync ; RDR 29 write sequence
1668 sync ; RDR 30 write sequence
1677 sync ; RDR 31 write sequence
/linux-4.1.27/drivers/s390/char/
H A Dsclp_tty.h2 * interface to the SCLP-read/write driver
/linux-4.1.27/drivers/fmc/
H A DMakefile12 obj-$(CONFIG_FMC_WRITE_EEPROM) += fmc-write-eeprom.o
/linux-4.1.27/arch/x86/mm/
H A Dpat_internal.h22 case _PAGE_CACHE_MODE_WB: return "write-back"; cattr_name()
23 case _PAGE_CACHE_MODE_WC: return "write-combining"; cattr_name()
24 case _PAGE_CACHE_MODE_WT: return "write-through"; cattr_name()
25 case _PAGE_CACHE_MODE_WP: return "write-protected"; cattr_name()
H A Dpf_in.h16 * along with this program; if not, write to the Free Software
29 REG_WRITE, /* write from reg to addr */
30 IMM_WRITE, /* write from imm to addr */
H A Dgup.c72 unsigned long end, int write, struct page **pages, int *nr) gup_pte_range()
78 if (write) gup_pte_range()
118 unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd()
126 if (write) gup_huge_pmd()
152 int write, struct page **pages, int *nr) gup_pmd_range()
183 if (!gup_huge_pmd(pmd, addr, next, write, pages, nr)) gup_pmd_range()
186 if (!gup_pte_range(pmd, addr, next, write, pages, nr)) gup_pmd_range()
195 unsigned long end, int write, struct page **pages, int *nr) gup_huge_pud()
203 if (write) gup_huge_pud()
229 int write, struct page **pages, int *nr) gup_pud_range()
242 if (!gup_huge_pud(pud, addr, next, write, pages, nr)) gup_pud_range()
245 if (!gup_pmd_range(pud, addr, next, write, pages, nr)) gup_pud_range()
257 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, __get_user_pages_fast() argument
271 if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ, __get_user_pages_fast()
301 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) __get_user_pages_fast()
313 * @write: whether pages will be written to
325 int get_user_pages_fast(unsigned long start, int nr_pages, int write, get_user_pages_fast() argument
373 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) get_user_pages_fast()
393 write, 0, pages); get_user_pages_fast()
71 gup_pte_range(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pte_range() argument
117 gup_huge_pmd(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd() argument
151 gup_pmd_range(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range() argument
194 gup_huge_pud(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pud() argument
228 gup_pud_range(pgd_t pgd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pud_range() argument
/linux-4.1.27/arch/cris/include/arch-v32/arch/hwregs/
H A Dreg_rdwr.h2 * Read/write register macros used by *_defs.h
/linux-4.1.27/arch/cris/include/uapi/asm/
H A Dioctls.h6 #define TIOCSERWRRS485 0x5462 /* write rs-485 */
/linux-4.1.27/arch/frv/lib/
H A Dinsl_sw.S30 stbu.p gr5,@(gr9,gr4) ; write 0xDD
32 stbu.p gr5,@(gr9,gr4) ; write 0xCC
34 stbu.p gr5,@(gr9,gr4) ; write 0xBB
36 stbu.p gr5,@(gr9,gr4) ; write 0xAA
/linux-4.1.27/Documentation/watchdog/src/
H A Dwatchdog-simple.c15 ret = write(fd, "\0", 1); main()
/linux-4.1.27/include/asm-generic/
H A Dqrwlock_types.h8 * The queue read/write lock data structure
H A Dtlbflush.h6 * If you have an MMU, you need to write your own functions.
/linux-4.1.27/include/linux/
H A Di2c-pxa.h14 void (*write)(void *ptr, unsigned int val); member in struct:i2c_slave_client
H A Damifdreg.h14 ** CIAAPRB bits (read/write)
32 #define DISKWRITE (1<<13) /* disk write bit in DSKLEN enabled */
73 #define FD_WRITE 0xC5 /* write with MT, MFM */
/linux-4.1.27/include/linux/mfd/
H A Djanz.h38 /* write-only */
42 /* write-only */
46 /* read-write access to serial EEPROM */
50 /* write-only access to EEPROM chip select */
/linux-4.1.27/fs/afs/
H A DMakefile30 write.o
/linux-4.1.27/arch/metag/include/asm/
H A Dbarrier.h23 * the processor write queues as well as possibly the write combiner (depending
25 * To ensure the write queues are flushed we do 4 writes to a system event
26 * register (in this case write combiner flush) which will also flush the write
42 /* flush writes through the write combiner */
60 * needed before a write to shared memory in a critical section, to prevent
64 * thread as a write.
/linux-4.1.27/Documentation/networking/
H A Dcxacru-cf.py15 # this program; if not, write to the Free Software Foundation, Inc., 59
39 sys.stdout.write("\n")
40 sys.stderr.write("Error: read {0} not 4 bytes\n".format(len(buf)))
44 sys.stdout.write(" ")
45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
48 sys.stdout.write("\n")
/linux-4.1.27/tools/virtio/virtio-trace/
H A Dtrace-agent.h15 * @rw_ti: structure managing information of read/write threads
26 * rw_thread_info - structure managing a read/write thread a cpu
27 * @cpu_num: cpu number operating this read/write thread
31 * @write_pipe: fd of write pipe
51 /* for controller of read/write threads */
55 /* for trace read/write thread */
H A Dtrace-agent-ctl.c2 * Controller of read/write threads for virtio-trace
89 * contol read/write threads by handling global_run_operation
117 * this controller wakes all read/write threads. rw_ctl_loop()
121 pr_debug("Wake up all read/write threads\n"); rw_ctl_loop()
124 * If host writes '0' to a control path, read/write rw_ctl_loop()
128 pr_debug("Stop all read/write threads\n"); rw_ctl_loop()
H A Dtrace-agent.c65 /* read/write threads init */ agent_info_new()
123 /* write(output) path */ make_path()
131 this_is_write_path ? "read" : "write", cpu_num, ret); make_path()
158 /* init read/write threads */ agent_info_init()
160 /* set read(input) path per read/write thread */ agent_info_init()
165 /* set write(output) path per read/write thread*/ agent_info_init()
178 /* init controller of read/write threads */ agent_info_init()
225 /* Start all read/write threads */ agent_main_loop()
231 /* Finish all read/write threads */ agent_main_loop()
/linux-4.1.27/arch/mips/lasat/
H A Dsysctl.c15 * with this program; if not, write to the Free Software Foundation, Inc.,
42 int proc_dolasatstring(struct ctl_table *table, int write, proc_dolasatstring() argument
47 r = proc_dostring(table, write, buffer, lenp, ppos); proc_dolasatstring()
48 if ((!write) || r) proc_dolasatstring()
59 /* proc function to read/write RealTime Clock */ proc_dolasatrtc()
60 int proc_dolasatrtc(struct ctl_table *table, int write, proc_dolasatrtc() argument
66 if (!write) { proc_dolasatrtc()
73 r = proc_dointvec(table, write, buffer, lenp, ppos); proc_dolasatrtc()
77 if (write) proc_dolasatrtc()
85 int proc_lasat_ip(struct ctl_table *table, int write, proc_lasat_ip() argument
94 (*ppos && !write)) { proc_lasat_ip()
99 if (write) { proc_lasat_ip()
145 int proc_lasat_prid(struct ctl_table *table, int write, proc_lasat_prid() argument
150 r = proc_dointvec(table, write, buffer, lenp, ppos); proc_lasat_prid()
153 if (write) { proc_lasat_prid()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dpcl730.c39 * offset to the (*insn_bits) functions to read/write the correct
44 * BASE+0 Isolated outputs 0-7 (write) / inputs 0-7 (read)
45 * BASE+1 Isolated outputs 8-15 (write) / inputs 8-15 (read)
46 * BASE+2 TTL outputs 0-7 (write) / inputs 0-7 (read)
47 * BASE+3 TTL outputs 8-15 (write) / inputs 8-15 (read)
53 * BASE+0 Isolated outputs 0-7 (write) (read back on p8r8dio)
58 * BASE+0 Isolated outputs 0-7 (write) (read back)
59 * BASE+1 Isolated outputs 8-15 (write) (read back)
65 * BASE+0 Isolated outputs 0-7 (write) or inputs 0-7 (read)
66 * BASE+1 Isolated outputs 8-15 (write) or inputs 8-15 (read)
67 * BASE+2 Isolated outputs 16-23 (write) or inputs 16-23 (read)
68 * BASE+3 Isolated outputs 24-31 (write) or inputs 24-31 (read)
72 * BASE+0 Isolated outputs 0-7 (write) (read back)
73 * BASE+1 Isolated outputs 8-15 (write) (read back)
79 * BASE+2 Relay select register (write)
80 * BASE+3 Board reset control register (write)
81 * BASE+4 Interrupt control register (write)
83 * BASE+5 LED control register (write)
88 * BASE+0 Isolated outputs 0-7 (write)
89 * BASE+1 Isolated outputs 8-15 (write)
93 * BASE+0 Isolated outputs 0-7 (write) (read back)
94 * BASE+1 Isolated outputs 8-15 (write) (read back)
95 * BASE+2 Isolated outputs 16-19 (write) (read back)
/linux-4.1.27/drivers/iio/dac/
H A Dad5446.c51 * @write: chip specific helper function to write to the register
57 int (*write)(struct ad5446_state *st, unsigned val); member in struct:ad5446_chip_info
124 ret = st->chip_info->write(st, val); ad5446_write_dac_powerdown()
134 .write = ad5446_write_dac_powerdown,
202 ret = st->chip_info->write(st, val); ad5446_write_raw()
348 .write = ad5446_write,
352 .write = ad5446_write,
356 .write = ad5446_write,
360 .write = ad5446_write,
364 .write = ad5446_write,
368 .write = ad5446_write,
372 .write = ad5446_write,
376 .write = ad5446_write,
380 .write = ad5446_write,
384 .write = ad5446_write,
388 .write = ad5446_write,
392 .write = ad5446_write,
396 .write = ad5446_write,
400 .write = ad5446_write,
405 .write = ad5446_write,
410 .write = ad5446_write,
415 .write = ad5446_write,
420 .write = ad5446_write,
425 .write = ad5660_write,
430 .write = ad5660_write,
434 .write = ad5660_write,
534 .write = ad5622_write,
538 .write = ad5622_write,
542 .write = ad5622_write,
/linux-4.1.27/drivers/gpu/drm/i2c/
H A Dtda998x_drv.c56 * write a given register, we need to make sure CURPAGE register is set
64 #define REG_CURPAGE 0xff /* write */
69 #define REG_MAIN_CNTRL0 REG(0x00, 0x01) /* read/write */
77 #define REG_SOFTRESET REG(0x00, 0x0a) /* write */
80 #define REG_DDC_DISABLE REG(0x00, 0x0b) /* read/write */
81 #define REG_CCLK_ON REG(0x00, 0x0c) /* read/write */
82 #define REG_I2C_MASTER REG(0x00, 0x0d) /* read/write */
86 #define REG_FEAT_POWERDOWN REG(0x00, 0x0e) /* read/write */
88 #define REG_INT_FLAGS_0 REG(0x00, 0x0f) /* read/write */
89 #define REG_INT_FLAGS_1 REG(0x00, 0x10) /* read/write */
90 #define REG_INT_FLAGS_2 REG(0x00, 0x11) /* read/write */
92 #define REG_ENA_ACLK REG(0x00, 0x16) /* read/write */
93 #define REG_ENA_VP_0 REG(0x00, 0x18) /* read/write */
94 #define REG_ENA_VP_1 REG(0x00, 0x19) /* read/write */
95 #define REG_ENA_VP_2 REG(0x00, 0x1a) /* read/write */
96 #define REG_ENA_AP REG(0x00, 0x1e) /* read/write */
97 #define REG_VIP_CNTRL_0 REG(0x00, 0x20) /* write */
102 #define REG_VIP_CNTRL_1 REG(0x00, 0x21) /* write */
107 #define REG_VIP_CNTRL_2 REG(0x00, 0x22) /* write */
112 #define REG_VIP_CNTRL_3 REG(0x00, 0x23) /* write */
121 #define REG_VIP_CNTRL_4 REG(0x00, 0x24) /* write */
128 #define REG_VIP_CNTRL_5 REG(0x00, 0x25) /* write */
131 #define REG_MUX_AP REG(0x00, 0x26) /* read/write */
134 #define REG_MUX_VP_VIP_OUT REG(0x00, 0x27) /* read/write */
135 #define REG_MAT_CONTRL REG(0x00, 0x80) /* write */
138 #define REG_VIDFORMAT REG(0x00, 0xa0) /* write */
139 #define REG_REFPIX_MSB REG(0x00, 0xa1) /* write */
140 #define REG_REFPIX_LSB REG(0x00, 0xa2) /* write */
141 #define REG_REFLINE_MSB REG(0x00, 0xa3) /* write */
142 #define REG_REFLINE_LSB REG(0x00, 0xa4) /* write */
143 #define REG_NPIX_MSB REG(0x00, 0xa5) /* write */
144 #define REG_NPIX_LSB REG(0x00, 0xa6) /* write */
145 #define REG_NLINE_MSB REG(0x00, 0xa7) /* write */
146 #define REG_NLINE_LSB REG(0x00, 0xa8) /* write */
147 #define REG_VS_LINE_STRT_1_MSB REG(0x00, 0xa9) /* write */
148 #define REG_VS_LINE_STRT_1_LSB REG(0x00, 0xaa) /* write */
149 #define REG_VS_PIX_STRT_1_MSB REG(0x00, 0xab) /* write */
150 #define REG_VS_PIX_STRT_1_LSB REG(0x00, 0xac) /* write */
151 #define REG_VS_LINE_END_1_MSB REG(0x00, 0xad) /* write */
152 #define REG_VS_LINE_END_1_LSB REG(0x00, 0xae) /* write */
153 #define REG_VS_PIX_END_1_MSB REG(0x00, 0xaf) /* write */
154 #define REG_VS_PIX_END_1_LSB REG(0x00, 0xb0) /* write */
155 #define REG_VS_LINE_STRT_2_MSB REG(0x00, 0xb1) /* write */
156 #define REG_VS_LINE_STRT_2_LSB REG(0x00, 0xb2) /* write */
157 #define REG_VS_PIX_STRT_2_MSB REG(0x00, 0xb3) /* write */
158 #define REG_VS_PIX_STRT_2_LSB REG(0x00, 0xb4) /* write */
159 #define REG_VS_LINE_END_2_MSB REG(0x00, 0xb5) /* write */
160 #define REG_VS_LINE_END_2_LSB REG(0x00, 0xb6) /* write */
161 #define REG_VS_PIX_END_2_MSB REG(0x00, 0xb7) /* write */
162 #define REG_VS_PIX_END_2_LSB REG(0x00, 0xb8) /* write */
163 #define REG_HS_PIX_START_MSB REG(0x00, 0xb9) /* write */
164 #define REG_HS_PIX_START_LSB REG(0x00, 0xba) /* write */
165 #define REG_HS_PIX_STOP_MSB REG(0x00, 0xbb) /* write */
166 #define REG_HS_PIX_STOP_LSB REG(0x00, 0xbc) /* write */
167 #define REG_VWIN_START_1_MSB REG(0x00, 0xbd) /* write */
168 #define REG_VWIN_START_1_LSB REG(0x00, 0xbe) /* write */
169 #define REG_VWIN_END_1_MSB REG(0x00, 0xbf) /* write */
170 #define REG_VWIN_END_1_LSB REG(0x00, 0xc0) /* write */
171 #define REG_VWIN_START_2_MSB REG(0x00, 0xc1) /* write */
172 #define REG_VWIN_START_2_LSB REG(0x00, 0xc2) /* write */
173 #define REG_VWIN_END_2_MSB REG(0x00, 0xc3) /* write */
174 #define REG_VWIN_END_2_LSB REG(0x00, 0xc4) /* write */
175 #define REG_DE_START_MSB REG(0x00, 0xc5) /* write */
176 #define REG_DE_START_LSB REG(0x00, 0xc6) /* write */
177 #define REG_DE_STOP_MSB REG(0x00, 0xc7) /* write */
178 #define REG_DE_STOP_LSB REG(0x00, 0xc8) /* write */
179 #define REG_TBG_CNTRL_0 REG(0x00, 0xca) /* write */
187 #define REG_TBG_CNTRL_1 REG(0x00, 0xcb) /* write */
195 #define REG_ENABLE_SPACE REG(0x00, 0xd6) /* write */
196 #define REG_HVF_CNTRL_0 REG(0x00, 0xe4) /* write */
201 #define REG_HVF_CNTRL_1 REG(0x00, 0xe5) /* write */
207 #define REG_RPT_CNTRL REG(0x00, 0xf0) /* write */
208 #define REG_I2S_FORMAT REG(0x00, 0xfc) /* read/write */
210 #define REG_AIP_CLKSEL REG(0x00, 0xfd) /* write */
218 #define REG_PLL_SERIAL_1 REG(0x02, 0x00) /* read/write */
222 #define REG_PLL_SERIAL_2 REG(0x02, 0x01) /* read/write */
225 #define REG_PLL_SERIAL_3 REG(0x02, 0x02) /* read/write */
229 #define REG_SERIALIZER REG(0x02, 0x03) /* read/write */
230 #define REG_BUFFER_OUT REG(0x02, 0x04) /* read/write */
231 #define REG_PLL_SCG1 REG(0x02, 0x05) /* read/write */
232 #define REG_PLL_SCG2 REG(0x02, 0x06) /* read/write */
233 #define REG_PLL_SCGN1 REG(0x02, 0x07) /* read/write */
234 #define REG_PLL_SCGN2 REG(0x02, 0x08) /* read/write */
235 #define REG_PLL_SCGR1 REG(0x02, 0x09) /* read/write */
236 #define REG_PLL_SCGR2 REG(0x02, 0x0a) /* read/write */
237 #define REG_AUDIO_DIV REG(0x02, 0x0e) /* read/write */
244 #define REG_SEL_CLK REG(0x02, 0x11) /* read/write */
248 #define REG_ANA_GENERAL REG(0x02, 0x12) /* read/write */
254 #define REG_EDID_CTRL REG(0x09, 0xfa) /* read/write */
255 #define REG_DDC_ADDR REG(0x09, 0xfb) /* read/write */
256 #define REG_DDC_OFFS REG(0x09, 0xfc) /* read/write */
257 #define REG_DDC_SEGM_ADDR REG(0x09, 0xfd) /* read/write */
258 #define REG_DDC_SEGM REG(0x09, 0xfe) /* read/write */
262 #define REG_IF1_HB0 REG(0x10, 0x20) /* read/write */
263 #define REG_IF2_HB0 REG(0x10, 0x40) /* read/write */
264 #define REG_IF3_HB0 REG(0x10, 0x60) /* read/write */
265 #define REG_IF4_HB0 REG(0x10, 0x80) /* read/write */
266 #define REG_IF5_HB0 REG(0x10, 0xa0) /* read/write */
270 #define REG_AIP_CNTRL_0 REG(0x11, 0x00) /* read/write */
276 #define REG_CA_I2S REG(0x11, 0x01) /* read/write */
279 #define REG_LATENCY_RD REG(0x11, 0x04) /* read/write */
280 #define REG_ACR_CTS_0 REG(0x11, 0x05) /* read/write */
281 #define REG_ACR_CTS_1 REG(0x11, 0x06) /* read/write */
282 #define REG_ACR_CTS_2 REG(0x11, 0x07) /* read/write */
283 #define REG_ACR_N_0 REG(0x11, 0x08) /* read/write */
284 #define REG_ACR_N_1 REG(0x11, 0x09) /* read/write */
285 #define REG_ACR_N_2 REG(0x11, 0x0a) /* read/write */
286 #define REG_CTS_N REG(0x11, 0x0c) /* read/write */
289 #define REG_ENC_CNTRL REG(0x11, 0x0d) /* read/write */
293 #define REG_DIP_FLAGS REG(0x11, 0x0e) /* read/write */
296 #define REG_DIP_IF_FLAGS REG(0x11, 0x0f) /* read/write */
302 #define REG_CH_STAT_B(x) REG(0x11, 0x14 + (x)) /* read/write */
306 #define REG_TX3 REG(0x12, 0x9a) /* read/write */
307 #define REG_TX4 REG(0x12, 0x9b) /* read/write */
309 #define REG_TX33 REG(0x12, 0xb8) /* read/write */
322 #define REG_CEC_FRO_IM_CLK_CTRL 0xfb /* read/write */
327 #define REG_CEC_RXSHPDINTENA 0xfc /* read/write */
333 #define REG_CEC_ENAMODS 0xff /* read/write */
/linux-4.1.27/drivers/rtc/
H A Drtc-bq4802.c26 void (*write)(struct bq4802 *, int, u8); member in struct:bq4802
60 p->write(p, 0xe, val | 0x08); bq4802_read_time()
71 p->write(p, 0x0e, val); bq4802_read_time()
121 p->write(p, 0x0e, val | 0x08); bq4802_set_time()
123 p->write(p, 0x00, sec); bq4802_set_time()
124 p->write(p, 0x02, min); bq4802_set_time()
125 p->write(p, 0x04, hrs); bq4802_set_time()
126 p->write(p, 0x06, day); bq4802_set_time()
127 p->write(p, 0x09, mon); bq4802_set_time()
128 p->write(p, 0x0a, yrs); bq4802_set_time()
129 p->write(p, 0x0f, century); bq4802_set_time()
131 p->write(p, 0x0e, val); bq4802_set_time()
163 p->write = bq4802_write_io; bq4802_probe()
168 p->write = bq4802_write_mem; bq4802_probe()
H A Drtc-max6900.c42 * register read/write commands
62 .flags = 0, /* write */ max6900_i2c_read_regs()
74 .flags = 0, /* write */ max6900_i2c_read_regs()
101 .flags = 0, /* write */ max6900_i2c_write_regs()
109 .flags = 0, /* write */ max6900_i2c_write_regs()
117 * the need to delay after each write to the chip. Also, max6900_i2c_write_regs()
118 * we write the century byte first, since we set the write-protect max6900_i2c_write_regs()
119 * bit as part of the burst write. max6900_i2c_write_regs()
140 dev_err(&client->dev, "%s: register write failed\n", __func__); max6900_i2c_write_regs()
188 /* set write protect */ max6900_i2c_set_time()
H A Drtc-ds1685.c39 /* Standard read/write functions if platform does not provide overrides */
54 * ds1685_write - write a value to an rtc register.
56 * @reg: the register address to write.
57 * @value: value to write to the register.
114 rtc->write(rtc, RTC_CTRL_A, ds1685_rtc_switch_to_bank0()
125 rtc->write(rtc, RTC_CTRL_A, ds1685_rtc_switch_to_bank1()
146 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_begin_data_access()
172 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_end_data_access()
350 rtc->write(rtc, RTC_CTRL_B, ctrlb); ds1685_rtc_set_time()
351 rtc->write(rtc, RTC_SECS, seconds); ds1685_rtc_set_time()
352 rtc->write(rtc, RTC_MINS, minutes); ds1685_rtc_set_time()
353 rtc->write(rtc, RTC_HRS, hours); ds1685_rtc_set_time()
354 rtc->write(rtc, RTC_WDAY, wday); ds1685_rtc_set_time()
355 rtc->write(rtc, RTC_MDAY, mday); ds1685_rtc_set_time()
356 rtc->write(rtc, RTC_MONTH, month); ds1685_rtc_set_time()
357 rtc->write(rtc, RTC_YEAR, years); ds1685_rtc_set_time()
358 rtc->write(rtc, RTC_CENTURY, century); ds1685_rtc_set_time()
495 rtc->write(rtc, RTC_CTRL_B, (ctrlb & ~(RTC_CTRL_B_AIE))); ds1685_rtc_set_alarm()
509 rtc->write(rtc, RTC_CTRL_B, ctrlb); ds1685_rtc_set_alarm()
510 rtc->write(rtc, RTC_SECS_ALARM, seconds); ds1685_rtc_set_alarm()
511 rtc->write(rtc, RTC_MINS_ALARM, minutes); ds1685_rtc_set_alarm()
512 rtc->write(rtc, RTC_HRS_ALARM, hours); ds1685_rtc_set_alarm()
513 rtc->write(rtc, RTC_MDAY_ALARM, mday); ds1685_rtc_set_alarm()
519 rtc->write(rtc, RTC_CTRL_B, ctrlb); ds1685_rtc_set_alarm()
549 rtc->write(rtc, RTC_CTRL_B, (rtc->read(rtc, RTC_CTRL_B) | ds1685_rtc_alarm_irq_enable()
552 rtc->write(rtc, RTC_CTRL_B, (rtc->read(rtc, RTC_CTRL_B) & ds1685_rtc_alarm_irq_enable()
668 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_work_queue()
673 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_work_queue()
683 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_work_queue()
701 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_work_queue()
723 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_work_queue()
966 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_sysfs_nvram_read()
970 /* We need one write to RTC_BANK1_RAM_ADDR_LSB to start ds1685_rtc_sysfs_nvram_read()
972 rtc->write(rtc, RTC_BANK1_RAM_ADDR_LSB, ds1685_rtc_sysfs_nvram_read()
980 /* DS1685/DS1687 has to write to RTC_BANK1_RAM_ADDR ds1685_rtc_sysfs_nvram_read()
982 rtc->write(rtc, RTC_BANK1_RAM_ADDR, ds1685_rtc_sysfs_nvram_read()
991 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_sysfs_nvram_read()
1015 * @size: size of the data to write.
1035 rtc->write(rtc, (NVRAM_TIME_BASE + pos++), ds1685_rtc_sysfs_nvram_write()
1038 rtc->write(rtc, (NVRAM_BANK0_BASE), *buf++); ds1685_rtc_sysfs_nvram_write()
1046 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_sysfs_nvram_write()
1050 /* We need one write to RTC_BANK1_RAM_ADDR_LSB to start ds1685_rtc_sysfs_nvram_write()
1052 rtc->write(rtc, RTC_BANK1_RAM_ADDR_LSB, ds1685_rtc_sysfs_nvram_write()
1060 /* DS1685/DS1687 has to write to RTC_BANK1_RAM_ADDR ds1685_rtc_sysfs_nvram_write()
1062 rtc->write(rtc, RTC_BANK1_RAM_ADDR, ds1685_rtc_sysfs_nvram_write()
1065 rtc->write(rtc, RTC_BANK1_RAM_DATA_PORT, *buf++); ds1685_rtc_sysfs_nvram_write()
1071 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_sysfs_nvram_write()
1087 * @write: nvram write function.
1097 .write = ds1685_rtc_sysfs_nvram_write,
1327 /* Safe to spinlock during a write. */ ds1685_rtc_sysfs_ctrl_regs_store()
1330 rtc->write(rtc, reg, (val ? (tmp | bit) : (tmp & ~(bit)))); ds1685_rtc_sysfs_ctrl_regs_store()
1345 * DS1685_RTC_SYSFS_CTRL_REG_RW - device_attribute for read-write register bit.
1346 * @bit: bit to read or write.
1670 rtc->write(rtc, bcd_reg_info->reg, val); ds1685_rtc_sysfs_time_regs_store()
1677 * DS1685_RTC_SYSFS_REG_RW - device_attribute for a read-write time register.
1678 * @reg: time/date register to read or write.
1891 /* Platform write function, else default if mmio setup */ ds1685_rtc_probe()
1893 rtc->write = pdata->plat_write; ds1685_rtc_probe()
1896 rtc->write = ds1685_write; ds1685_rtc_probe()
1933 rtc->write(rtc, RTC_CTRL_A, ctrla); ds1685_rtc_probe()
1936 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_probe()
1940 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_probe()
1979 rtc->write(rtc, RTC_CTRL_B, ctrlb); ds1685_rtc_probe()
1982 rtc->write(rtc, RTC_HRS, ds1685_rtc_probe()
1995 rtc->write(rtc, RTC_HRS_ALARM, ds1685_rtc_probe()
2000 /* 24-hour mode is already set, so write Control B back. */ ds1685_rtc_probe()
2001 rtc->write(rtc, RTC_CTRL_B, ctrlb); ds1685_rtc_probe()
2005 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_probe()
2019 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_probe()
2026 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_probe()
2030 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_probe()
2037 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_probe()
2116 rtc->write(rtc, RTC_CTRL_B, ds1685_rtc_remove()
2124 rtc->write(rtc, RTC_EXT_CTRL_4B, ds1685_rtc_remove()
2129 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_remove()
2206 rtc->write(rtc, RTC_CTRL_A, ctrla); ds1685_rtc_poweroff()
2218 rtc->write(rtc, RTC_EXT_CTRL_4A, ctrl4a); ds1685_rtc_poweroff()
2229 rtc->write(rtc, RTC_EXT_CTRL_4B, ctrl4b); ds1685_rtc_poweroff()
2235 rtc->write(rtc, RTC_EXT_CTRL_4A, ds1685_rtc_poweroff()
H A Drtc-imxdi.c115 * @write_wait: registers write complete queue
116 * @write_mutex: serialize registers write
159 * This function attempts to clear the dryice write-error flag.
161 * A dryice write error is similar to a bus fault and should not occur in
162 * normal operation. Clearing the flag requires another write, so the root
169 dev_warn(&imxdi->pdev->dev, "WARNING: Register write error!\n"); clear_write_error()
171 /* clear the write error flag */ clear_write_error()
181 "ERROR: Cannot clear write-error flag!\n"); clear_write_error()
188 * write has completed.
198 /* enable the write-complete interrupt */ di_write_wait()
203 /* do the register write */ di_write_wait()
206 /* wait for the write to finish */ di_write_wait()
218 /* check for write error */ di_write_wait()
319 /* write the new alarm time */ dryice_rtc_set_alarm()
351 /* handle write complete and write error cases */ dryice_norm_irq()
353 /*If the write wait queue is empty then there is no pending dryice_norm_irq()
391 * on the write completion.
/linux-4.1.27/arch/powerpc/sysdev/
H A Dfsl_85xx_cache_ctlr.h19 * along with this program; if not, write to the Free Software
53 u32 ewar0; /* 0x010 - External write address 0 */
54 u32 ewarea0; /* 0x014 - External write address extended 0 */
55 u32 ewcr0; /* 0x018 - External write ctrl */
57 u32 ewar1; /* 0x020 - External write address 1 */
58 u32 ewarea1; /* 0x024 - External write address extended 1 */
59 u32 ewcr1; /* 0x028 - External write ctrl 1 */
61 u32 ewar2; /* 0x030 - External write address 2 */
62 u32 ewarea2; /* 0x034 - External write address extended 2 */
63 u32 ewcr2; /* 0x038 - External write ctrl 2 */
65 u32 ewar3; /* 0x040 - External write address 3 */
66 u32 ewarea3; /* 0x044 - External write address extended 3 */
67 u32 ewcr3; /* 0x048 - External write ctrl 3 */
/linux-4.1.27/arch/mn10300/proc-mn2ws0050/include/proc/
H A Dnand-regs.h39 #define FCOMMAND_XFWP 0x02 /* write protect enable */
89 #define FPWS_PWS1W_2CLK 0x00000000 /* write pulse width 1clock */
90 #define FPWS_PWS1W_3CLK 0x01000000 /* write pulse width 2clock */
91 #define FPWS_PWS1W_4CLK 0x02000000 /* write pulse width 4clock */
92 #define FPWS_PWS1W_5CLK 0x03000000 /* write pulse width 5clock */
93 #define FPWS_PWS1W_6CLK 0x04000000 /* write pulse width 6clock */
94 #define FPWS_PWS1W_7CLK 0x05000000 /* write pulse width 7clock */
95 #define FPWS_PWS1W_8CLK 0x06000000 /* write pulse width 8clock */
102 #define FPWS_PWS2W_2CLK 0x00000100 /* write pulse interval 2clock */
103 #define FPWS_PWS2W_3CLK 0x00000200 /* write pulse interval 3clock */
104 #define FPWS_PWS2W_4CLK 0x00000300 /* write pulse interval 4clock */
105 #define FPWS_PWS2W_5CLK 0x00000400 /* write pulse interval 5clock */
106 #define FPWS_PWS2W_6CLK 0x00000500 /* write pulse interval 6clock */
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/linux/
H A Dlinux-sysctl.c83 static int proc_set_timeout(struct ctl_table *table, int write, proc_set_timeout() argument
88 rc = proc_dointvec(table, write, buffer, lenp, ppos); proc_set_timeout()
94 static int proc_memory_alloc(struct ctl_table *table, int write, proc_memory_alloc() argument
100 if (!*lenp || (*ppos && !write)) { proc_memory_alloc()
104 if (write) proc_memory_alloc()
118 static int proc_pages_alloc(struct ctl_table *table, int write, proc_pages_alloc() argument
124 if (!*lenp || (*ppos && !write)) { proc_pages_alloc()
128 if (write) proc_pages_alloc()
142 static int proc_mem_max(struct ctl_table *table, int write, void __user *buffer, proc_mem_max() argument
148 if (!*lenp || (*ppos && !write)) { proc_mem_max()
152 if (write) proc_mem_max()
166 static int proc_pages_max(struct ctl_table *table, int write, proc_pages_max() argument
172 if (!*lenp || (*ppos && !write)) { proc_pages_max()
176 if (write) proc_pages_max()
190 static int proc_max_dirty_pages_in_mb(struct ctl_table *table, int write, proc_max_dirty_pages_in_mb() argument
195 if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) { proc_max_dirty_pages_in_mb()
199 if (write) { proc_max_dirty_pages_in_mb()
231 static int proc_alloc_fail_rate(struct ctl_table *table, int write, proc_alloc_fail_rate() argument
236 if (!table->data || !table->maxlen || !*lenp || (*ppos && !write)) { proc_alloc_fail_rate()
240 if (write) { proc_alloc_fail_rate()
/linux-4.1.27/arch/sh/include/cpu-sh2/cpu/
H A Dwatchdog.h15 * and write the same sizes to WTCNT, now we have to read and write
45 * Same read/write brain-damage as for WTCNT here.. sh_wdt_read_rstcsr()
53 * @val: Value to write
56 * register. The upper byte is set manually on each write.
/linux-4.1.27/arch/arm/mach-shmobile/include/mach/
H A Dzboot_macros.h8 /* The ED command is used to write a 32-bit word */
19 /* The EW command is used to write a 16-bit word */
30 /* The EB command is used to write an 8-bit word */
82 /* read 32-bit value from addr, "or" an immediate and write back */
95 /* read 32-bit value from addr, "and" an immediate and write back */
/linux-4.1.27/arch/mips/mm/
H A Dgup.c38 int write, struct page **pages, int *nr) gup_pte_range()
46 pte_special(pte) || (write && !pte_write(pte))) { gup_pte_range()
72 int write, struct page **pages, int *nr) gup_huge_pmd()
78 if (write && !pte_write(pte)) gup_huge_pmd()
102 int write, struct page **pages, int *nr) gup_pmd_range()
126 if (!gup_huge_pmd(pmd, addr, next, write, pages,nr)) gup_pmd_range()
129 if (!gup_pte_range(pmd, addr, next, write, pages,nr)) gup_pmd_range()
138 int write, struct page **pages, int *nr) gup_huge_pud()
144 if (write && !pte_write(pte)) gup_huge_pud()
168 int write, struct page **pages, int *nr) gup_pud_range()
181 if (!gup_huge_pud(pud, addr, next, write, pages,nr)) gup_pud_range()
184 if (!gup_pmd_range(pud, addr, next, write, pages,nr)) gup_pud_range()
196 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, __get_user_pages_fast() argument
210 if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ, __get_user_pages_fast()
239 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) __get_user_pages_fast()
251 * @write: whether pages will be written to
263 int get_user_pages_fast(unsigned long start, int nr_pages, int write, get_user_pages_fast() argument
289 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) get_user_pages_fast()
306 write, 0, pages); get_user_pages_fast()
37 gup_pte_range(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pte_range() argument
71 gup_huge_pmd(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd() argument
101 gup_pmd_range(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range() argument
137 gup_huge_pud(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pud() argument
167 gup_pud_range(pgd_t pgd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pud_range() argument
H A Dfault.c39 static void __kprobes __do_page_fault(struct pt_regs *regs, unsigned long write, __do_page_fault() argument
54 current->comm, current->pid, field, address, write, __do_page_fault()
120 if (write) { __do_page_fault()
131 field, address, write, __do_page_fault()
141 field, address, write, __do_page_fault()
210 tsk->thread.error_code = write; __do_page_fault()
216 write ? "write access to" : "read access from", __do_page_fault()
279 write ? "write access to" : "read access from", __do_page_fault()
335 unsigned long write, unsigned long address) do_page_fault()
340 __do_page_fault(regs, write, address); do_page_fault()
334 do_page_fault(struct pt_regs *regs, unsigned long write, unsigned long address) do_page_fault() argument
/linux-4.1.27/arch/sh/include/asm/
H A Dromimage-macros.h8 /* The ED command is used to write a 32-bit word */
21 /* The EW command is used to write a 16-bit word */
34 /* The EB command is used to write an 8-bit word */
H A Dwatchdog.h78 * @val: Value to write
81 * The upper byte is set manually on each write.
90 * @val: Value to write
93 * The upper byte is set manually on each write.
111 * @val: Value to write
114 * register. The upper byte is set manually on each write.
132 * @val: Value to write
135 * The upper byte is set manually on each write.
154 * @val: Value to write
157 * register. The upper byte is set manually on each write.
/linux-4.1.27/arch/arm/mm/
H A Dabort-macro.S3 * differently than every other instruction, so it is set to 0 (write)
5 * during an abort the instructions will be treated as a write and the
19 tst \tmp, #1 << 11 @ L = 0 -> write
H A Dcache-v6.S114 * - the Icache does not read data from the write buffer
130 * - the Icache does not read data from the write buffer
144 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
207 strb r2, [r0] @ write for ownership
219 strneb r2, [r1, #-1] @ write for ownership
237 strlo r2, [r0] @ write for ownership
241 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
264 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
275 strb r2, [r0] @ write for ownership
288 strlob r2, [r0] @ write for ownership
292 mcr p15, 0, r0, c7, c10, 4 @ drain write buffer
/linux-4.1.27/fs/
H A Ddrop_caches.c40 int drop_caches_sysctl_handler(struct ctl_table *table, int write, drop_caches_sysctl_handler() argument
45 ret = proc_dointvec_minmax(table, write, buffer, length, ppos); drop_caches_sysctl_handler()
48 if (write) { drop_caches_sysctl_handler()
/linux-4.1.27/security/
H A Dmin_addr.c31 int mmap_min_addr_handler(struct ctl_table *table, int write, mmap_min_addr_handler() argument
36 if (write && !capable(CAP_SYS_RAWIO)) mmap_min_addr_handler()
39 ret = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); mmap_min_addr_handler()
/linux-4.1.27/drivers/staging/android/uapi/
H A Dion_test.h27 * @size: size to read or write
28 * @write: 1 to write, 0 to read
34 int write; member in struct:ion_test_rw_data
50 * DOC: ION_IOC_TEST_DMA_MAPPING - read or write memory from a handle as DMA
60 * DOC: ION_IOC_TEST_KERNEL_MAPPING - read or write memory from a handle
/linux-4.1.27/include/linux/platform_data/
H A Dmmc-s3cmci.h6 * @no_wprotect: Set this to indicate there is no write-protect switch.
8 * @wprotect_invert: Invert the default sense of the write protect switch.
9 * @detect_invert: Invert the default sense of the write protect switch.
12 * @gpio_wprotect: GPIO number for the write protect line.
21 * The driver will use @gpio_wprotect to signal whether the card is write
23 * means the card is read/write, and 1 means read-only. The @wprotect_invert
H A Dbfin_rotary.h102 #define W1LCNT_ZERO (1 << 0) /* write 1 to load CNT_COUNTER with zero */
103 #define W1LCNT_MIN (1 << 2) /* write 1 to load CNT_COUNTER from CNT_MIN */
104 #define W1LCNT_MAX (1 << 3) /* write 1 to load CNT_COUNTER from CNT_MAX */
106 #define W1LMIN_ZERO (1 << 4) /* write 1 to load CNT_MIN with zero */
107 #define W1LMIN_CNT (1 << 5) /* write 1 to load CNT_MIN from CNT_COUNTER */
108 #define W1LMIN_MAX (1 << 7) /* write 1 to load CNT_MIN from CNT_MAX */
110 #define W1LMAX_ZERO (1 << 8) /* write 1 to load CNT_MAX with zero */
111 #define W1LMAX_CNT (1 << 9) /* write 1 to load CNT_MAX from CNT_COUNTER */
112 #define W1LMAX_MIN (1 << 10) /* write 1 to load CNT_MAX from CNT_MIN */
/linux-4.1.27/include/uapi/linux/
H A Dpg.h13 of read and write operations to the appropriate /dev/pgN device.
14 A write operation delivers a command and any outbound data in
15 a single buffer. Normally, the write will succeed unless the
17 command pending. If the write succeeds, it should be followed
22 As a special case, the device can be reset with a write operation,
32 read and write buffers contain a single character "magic" flag.
H A Dvirtio_pci.h137 __le32 device_feature_select; /* read-write */
139 __le32 guest_feature_select; /* read-write */
140 __le32 guest_feature; /* read-write */
141 __le16 msix_config; /* read-write */
143 __u8 device_status; /* read-write */
147 __le16 queue_select; /* read-write */
148 __le16 queue_size; /* read-write, power of 2. */
149 __le16 queue_msix_vector; /* read-write */
150 __le16 queue_enable; /* read-write */
152 __le32 queue_desc_lo; /* read-write */
153 __le32 queue_desc_hi; /* read-write */
154 __le32 queue_avail_lo; /* read-write */
155 __le32 queue_avail_hi; /* read-write */
156 __le32 queue_used_lo; /* read-write */
157 __le32 queue_used_hi; /* read-write */
H A Dtiocl.h28 /* these two don't return a value: they write it back in the type */
29 #define TIOCL_GETSHIFTSTATE 6 /* write shift state */
30 #define TIOCL_GETMOUSEREPORTING 7 /* write whether mouse event are reported */
H A Dppdev.h19 /* Set mode for read/write (e.g. IEEE1284_MODE_EPP) */
26 /* Read/write control */
36 /* Read/write data */
40 /* Read/write econtrol (not used) */
44 /* Read/write FIFO (not used) */
/linux-4.1.27/net/sctp/
H A Dsysctl.c61 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
64 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
67 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
70 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
73 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
315 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, proc_sctp_do_hmac_alg() argument
328 if (write) { proc_sctp_do_hmac_alg()
336 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); proc_sctp_do_hmac_alg()
337 if (write && ret == 0) { proc_sctp_do_hmac_alg()
361 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, proc_sctp_do_rto_min() argument
374 if (write) proc_sctp_do_rto_min()
379 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); proc_sctp_do_rto_min()
380 if (write && ret == 0) { proc_sctp_do_rto_min()
390 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, proc_sctp_do_rto_max() argument
403 if (write) proc_sctp_do_rto_max()
408 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); proc_sctp_do_rto_max()
409 if (write && ret == 0) { proc_sctp_do_rto_max()
419 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, proc_sctp_do_alpha_beta() argument
423 if (write) proc_sctp_do_alpha_beta()
427 return proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); proc_sctp_do_alpha_beta()
430 static int proc_sctp_do_auth(struct ctl_table *ctl, int write, proc_sctp_do_auth() argument
441 if (write) proc_sctp_do_auth()
446 ret = proc_dointvec(&tbl, write, buffer, lenp, ppos); proc_sctp_do_auth()
447 if (write && ret == 0) { proc_sctp_do_auth()
/linux-4.1.27/drivers/mmc/core/
H A Dsdio_ops.h16 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn,
18 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn,
H A Dsdio_ops.c68 static int mmc_io_rw_direct_host(struct mmc_host *host, int write, unsigned fn, mmc_io_rw_direct_host() argument
82 cmd.arg = write ? 0x80000000 : 0x00000000; mmc_io_rw_direct_host()
84 cmd.arg |= (write && out) ? 0x08000000 : 0x00000000; mmc_io_rw_direct_host()
114 int mmc_io_rw_direct(struct mmc_card *card, int write, unsigned fn, mmc_io_rw_direct() argument
118 return mmc_io_rw_direct_host(card->host, write, fn, addr, in, out); mmc_io_rw_direct()
121 int mmc_io_rw_extended(struct mmc_card *card, int write, unsigned fn, mmc_io_rw_extended() argument
144 cmd.arg = write ? 0x80000000 : 0x00000000; mmc_io_rw_extended()
157 data.flags = write ? MMC_DATA_WRITE : MMC_DATA_READ; mmc_io_rw_extended()
H A Dsdio_io.c303 static int sdio_io_rw_ext_helper(struct sdio_func *func, int write, sdio_io_rw_ext_helper() argument
324 ret = mmc_io_rw_extended(func->card, write, sdio_io_rw_ext_helper()
342 ret = mmc_io_rw_extended(func->card, write, func->num, addr, sdio_io_rw_ext_helper()
387 * sdio_writeb - write a single byte to a SDIO function
389 * @b: byte to write
390 * @addr: address to write to
410 * sdio_writeb_readb - write and read a byte from SDIO function
412 * @write_byte: byte to write
413 * @addr: address to write to
457 * sdio_memcpy_toio - write a chunk of memory to a SDIO function
460 * @src: buffer that contains the data to write
461 * @count: number of bytes to write
491 * sdio_writesb - write to a FIFO of a SDIO function
494 * @src: buffer that contains the data to write
495 * @count: number of bytes to write
536 * sdio_writew - write a 16 bit integer to a SDIO function
538 * @b: integer to write
539 * @addr: address to write to
588 * sdio_writel - write a 32 bit integer to a SDIO function
590 * @b: integer to write
591 * @addr: address to write to
643 * sdio_f0_writeb - write a single byte to SDIO function 0
645 * @b: byte to write
646 * @addr: address to write to
/linux-4.1.27/drivers/usb/gadget/function/
H A Du_ecm.h27 * Read/write access to configfs attributes is handled by configfs.
29 * This is to protect the data from concurrent access by read/write
H A Du_eem.h27 * Read/write access to configfs attributes is handled by configfs.
29 * This is to protect the data from concurrent access by read/write
H A Du_gether.h27 * Read/write access to configfs attributes is handled by configfs.
29 * This is to protect the data from concurrent access by read/write
H A Du_ncm.h27 * Read/write access to configfs attributes is handled by configfs.
29 * This is to protect the data from concurrent access by read/write
H A Dg_zero.h34 * Read/write access to configfs attributes is handled by configfs.
36 * This is to protect the data from concurrent access by read/write
49 * Read/write access to configfs attributes is handled by configfs.
51 * This is to protect the data from concurrent access by read/write
H A Du_rndis.h33 * Read/write access to configfs attributes is handled by configfs.
35 * This is to protect the data from concurrent access by read/write
/linux-4.1.27/drivers/media/dvb-frontends/
H A Dsi21xx.h32 if (fe->ops.write) si21xx_writeregister()
33 r = fe->ops.write(fe, buf, 2); si21xx_writeregister()
H A Dcx24110.h20 along with this program; if not, write to the Free Software
44 if (fe->ops.write) cx24110_pll_write()
45 return fe->ops.write(fe, buf, 3); cx24110_pll_write()
H A Dstv0288.h22 along with this program; if not, write to the Free Software
62 if (fe->ops.write) stv0288_writereg()
63 r = fe->ops.write(fe, buf, 2); stv0288_writereg()
H A Dmt352.h29 * along with this program; if not, write to the Free Software
68 if (fe->ops.write) mt352_write()
69 r = fe->ops.write(fe, buf, len); mt352_write()
/linux-4.1.27/arch/powerpc/boot/
H A Dofconsole.c40 of_call_prom("write", 3, 1, of_stdout_handle, buf, len); of_console_write()
46 console_ops.write = of_console_write; of_console_init()
H A Dmktree.c118 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { main()
119 perror("boot-image write"); main()
131 if (write(out_fd, tmpbuf, sizeof(tmpbuf)) != sizeof(tmpbuf)) { main()
132 perror("boot-image write"); main()
144 if (write(out_fd, &bt, sizeof(bt)) != sizeof(bt)) { main()
/linux-4.1.27/arch/cris/include/asm/
H A Detraxi2c.h12 /* in write operations, the argument contains both i2c
23 #define I2C_WRITEREG 0x1 /* write to an i2c register */
/linux-4.1.27/arch/ia64/include/asm/
H A Dagp.h13 * in coherent mode, which lets us map the AGP memory as normal (write-back) memory
14 * (unlike x86, where it gets mapped "write-coalescing").
/linux-4.1.27/ipc/
H A Dipc_sysctl.c30 static int proc_ipc_dointvec(struct ctl_table *table, int write, proc_ipc_dointvec() argument
38 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); proc_ipc_dointvec()
41 static int proc_ipc_dointvec_minmax(struct ctl_table *table, int write, proc_ipc_dointvec_minmax() argument
49 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); proc_ipc_dointvec_minmax()
52 static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write, proc_ipc_dointvec_minmax_orphans() argument
56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); proc_ipc_dointvec_minmax_orphans()
65 static int proc_ipc_doulongvec_minmax(struct ctl_table *table, int write, proc_ipc_doulongvec_minmax() argument
72 return proc_doulongvec_minmax(&ipc_table, write, buffer, proc_ipc_doulongvec_minmax()
76 static int proc_ipc_auto_msgmni(struct ctl_table *table, int write, proc_ipc_auto_msgmni() argument
85 if (write) proc_ipc_auto_msgmni()
88 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); proc_ipc_auto_msgmni()
H A Dmq_sysctl.c25 static int proc_mq_dointvec(struct ctl_table *table, int write, proc_mq_dointvec() argument
32 return proc_dointvec(&mq_table, write, buffer, lenp, ppos); proc_mq_dointvec()
35 static int proc_mq_dointvec_minmax(struct ctl_table *table, int write, proc_mq_dointvec_minmax() argument
42 return proc_dointvec_minmax(&mq_table, write, buffer, proc_mq_dointvec_minmax()
/linux-4.1.27/arch/m68k/include/asm/
H A Dtraps.h122 #define MMU_WP (0x0800) /* write-protected */
142 /* bits for 68040 write back status word */
173 #define MMU060_RW (0x01800000) /* read/write */
174 # define MMU060_RW_W (0x00800000) /* write */
176 # define MMU060_RW_RMW (0x01800000) /* read/modify/write */
177 # define MMU060_W (0x00800000) /* general write, includes rmw */
189 #define MMU060_WP (0x00000080) /* write protection */
192 #define MMU060_WE (0x00000010) /* bus error on write */
222 unsigned short wb3s; /* write back 3 status */
223 unsigned short wb2s; /* write back 2 status */
224 unsigned short wb1s; /* write back 1 status */
226 unsigned long wb3a; /* write back 3 address */
227 unsigned long wb3d; /* write back 3 data */
228 unsigned long wb2a; /* write back 2 address */
229 unsigned long wb2d; /* write back 2 data */
230 unsigned long wb1a; /* write back 1 address */
231 unsigned long wb1dpd0; /* write back 1 data/push data 0*/
H A Dmac_iop.h101 __u8 wdata; /* write a data byte */
103 __u8 wmark; /* write a mark byte */
105 __u8 wcrc; /* write 2-byte crc to disk */
107 __u8 wparams; /* write the param regs */
109 __u8 wphase; /* write the phase states & dirs */
111 __u8 wsetup; /* write the setup register */
H A Dcacheflush_no.h77 /* Flush the write buffer */ __flush_dcache_all()
83 * Push cache entries at supplied address. We want to write back any dirty
92 * Clear cache entries at supplied address (that is don't write back any
/linux-4.1.27/arch/arm/mach-omap2/
H A Dvp.c25 voltdm->write(vpconfig, vp->vpconfig); _vp_set_init_voltage()
28 voltdm->write((vpconfig | vp->common->vpconfig_initvdd), _vp_set_init_voltage()
32 voltdm->write(vpconfig, vp->vpconfig); _vp_set_init_voltage()
49 if (!voltdm->read || !voltdm->write) { omap_vp_init()
50 pr_err("%s: No read/write API for accessing vdd_%s regs\n", omap_vp_init()
78 voltdm->write(val, vp->vpconfig); omap_vp_init()
83 voltdm->write(val, vp->vstepmin); omap_vp_init()
88 voltdm->write(val, vp->vstepmax); omap_vp_init()
94 voltdm->write(val, vp->vlimitto); omap_vp_init()
151 voltdm->write(vpconfig | vp->common->vpconfig_forceupdate, omap_vp_forceupdate_scale()
184 voltdm->write(vpconfig, vp->vpconfig); omap_vp_forceupdate_scale()
207 if (!voltdm->read || !voltdm->write) { omap_vp_enable()
208 pr_err("%s: No read/write API for accessing vdd_%s regs\n", omap_vp_enable()
228 voltdm->write(vpconfig, vp->vpconfig); omap_vp_enable()
252 if (!voltdm->read || !voltdm->write) { omap_vp_disable()
253 pr_err("%s: No read/write API for accessing vdd_%s regs\n", omap_vp_disable()
268 voltdm->write(vpconfig, vp->vpconfig); omap_vp_disable()
H A Dvoltagedomains54xx_data.c40 .write = omap4_prm_vcvp_write,
51 .write = omap4_prm_vcvp_write,
62 .write = omap4_prm_vcvp_write,
H A Dvoltagedomains44xx_data.c54 .write = omap4_prm_vcvp_write,
65 .write = omap4_prm_vcvp_write,
76 .write = omap4_prm_vcvp_write,
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dmodule.c495 static int proc_call_handler(void *data, int write, loff_t *ppos, proc_call_handler() argument
497 int (*handler)(void *data, int write, proc_call_handler()
500 int rc = handler(data, write, *ppos, buffer, *lenp); proc_call_handler()
505 if (write) { proc_call_handler()
514 static int __proc_dobitmasks(void *data, int write, __proc_dobitmasks() argument
528 if (!write) { __proc_dobitmasks()
555 static int proc_dobitmasks(struct ctl_table *table, int write, proc_dobitmasks() argument
558 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_dobitmasks()
565 static int __proc_dump_kernel(void *data, int write, __proc_dump_kernel() argument
568 if (!write) __proc_dump_kernel()
574 static int proc_dump_kernel(struct ctl_table *table, int write, proc_dump_kernel() argument
577 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_dump_kernel()
581 static int __proc_daemon_file(void *data, int write, __proc_daemon_file() argument
584 if (!write) { __proc_daemon_file()
597 static int proc_daemon_file(struct ctl_table *table, int write, proc_daemon_file() argument
600 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_daemon_file()
604 static int __proc_debug_mb(void *data, int write, __proc_debug_mb() argument
607 if (!write) { __proc_debug_mb()
622 static int proc_debug_mb(struct ctl_table *table, int write, proc_debug_mb() argument
625 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_debug_mb()
629 static int proc_console_max_delay_cs(struct ctl_table *table, int write, proc_console_max_delay_cs() argument
640 if (!write) { /* read */ proc_console_max_delay_cs()
642 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_max_delay_cs()
646 /* write */ proc_console_max_delay_cs()
648 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_max_delay_cs()
662 static int proc_console_min_delay_cs(struct ctl_table *table, int write, proc_console_min_delay_cs() argument
673 if (!write) { /* read */ proc_console_min_delay_cs()
675 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_min_delay_cs()
679 /* write */ proc_console_min_delay_cs()
681 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_min_delay_cs()
695 static int proc_console_backoff(struct ctl_table *table, int write, proc_console_backoff() argument
704 if (!write) { /* read */ proc_console_backoff()
706 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_backoff()
710 /* write */ proc_console_backoff()
712 rc = proc_dointvec(&dummy, write, buffer, lenp, ppos); proc_console_backoff()
723 static int libcfs_force_lbug(struct ctl_table *table, int write, libcfs_force_lbug() argument
727 if (write) libcfs_force_lbug()
732 static int proc_fail_loc(struct ctl_table *table, int write, proc_fail_loc() argument
739 rc = proc_doulongvec_minmax(table, write, buffer, lenp, ppos); proc_fail_loc()
745 static int __proc_cpt_table(void *data, int write, __proc_cpt_table() argument
752 if (write) __proc_cpt_table()
786 static int proc_cpt_table(struct ctl_table *table, int write, proc_cpt_table() argument
789 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_cpt_table()
/linux-4.1.27/fs/ubifs/
H A Dio.c17 * this program; if not, write to the Free Software Foundation, Inc., 51
28 * write-buffering support. Write buffers help to save space which otherwise
30 * Instead, data first goes to the write-buffer and is flushed when the
34 * UBIFS distinguishes between minimum write size (@c->min_io_size) and maximum
35 * write size (@c->max_write_size). The latter is the maximum amount of bytes
40 * write-buffer is flushed, only the portion of it (aligned to @c->min_io_size
41 * boundary) which contains data is written, not the whole write-buffer,
45 * hand, we want to write in optimal @c->max_write_size bytes chunks, which
47 * other hand, we do not want to waste space when synchronizing the write
49 * the next write offset to be not aligned to @c->max_write_size bytes. So the
50 * have to make sure that the write-buffer offset (@wbuf->offs) becomes aligned
52 * write-buffer size (@wbuf->size).
56 * has to lock the write-buffer (e.g. journal space reservation code), many
57 * functions related to write-buffers have "nolock" suffix which means that the
58 * caller has to lock the write-buffer before calling this function.
308 * The flash media obliges us to write only in chunks of %c->min_io_size and
309 * when we have to write less data we add padding node to the write-buffer and
312 * padding node which takes %UBIFS_PAD_NODE_SZ bytes, we write padding bytes
433 * wbuf_timer_callback - write-buffer timer callback function.
434 * @timer: timer data (write-buffer descriptor)
436 * This function is called when the write-buffer timer expires.
450 * new_wbuf_timer - start new write-buffer timer.
451 * @wbuf: write-buffer descriptor
469 * cancel_wbuf_timer - cancel write-buffer timer.
470 * @wbuf: write-buffer descriptor
481 * ubifs_wbuf_sync_nolock - synchronize write-buffer.
482 * @wbuf: write-buffer to synchronize
484 * This function synchronizes write-buffer @buf and returns zero in case of
487 * Note, although write-buffers are of @c->max_write_size, this function does
489 * if the write-buffer is only partially filled with data, only the used part
490 * of the write-buffer (aligned on @c->min_io_size boundary) is synchronized.
518 * Do not write whole write buffer but write only the minimum necessary ubifs_wbuf_sync_nolock()
533 * But our goal is to optimize writes and make sure we write in ubifs_wbuf_sync_nolock()
538 * write-buffer flush we are again at the optimal offset (aligned to ubifs_wbuf_sync_nolock()
559 * ubifs_wbuf_seek_nolock - seek write-buffer.
560 * @wbuf: write-buffer
564 * This function targets the write-buffer to logical eraseblock @lnum:@offs.
565 * The write-buffer has to be empty. Returns zero in case of success and a
596 * ubifs_bg_wbufs_sync - synchronize write-buffers.
599 * This function is called by background thread to synchronize write-buffers.
639 ubifs_err(c, "cannot sync write-buffer, error %d", err); ubifs_bg_wbufs_sync()
660 * ubifs_wbuf_write_nolock - write data to flash via write-buffer.
661 * @wbuf: write-buffer
662 * @buf: node to write
665 * This function writes data to flash via write-buffer @wbuf. This means that
667 * does not take whole max. write unit (@c->max_write_size). Instead, the node
668 * will sit in RAM until the write-buffer is synchronized (e.g., by timer, or
669 * because more data are appended to the write-buffer).
709 * write-buffer. ubifs_wbuf_write_nolock()
747 * write-buffer and switch to the next max. write unit. ubifs_wbuf_write_nolock()
763 * The write-buffer offset is not aligned to ubifs_wbuf_write_nolock()
769 dbg_io("write %d bytes to LEB %d:%d", ubifs_wbuf_write_nolock()
783 * The remaining data may take more whole max. write units, so write the ubifs_wbuf_write_nolock()
784 * remains multiple to max. write unit size directly to the flash media. ubifs_wbuf_write_nolock()
791 dbg_io("write %d bytes to LEB %d:%d", n, wbuf->lnum, ubifs_wbuf_write_nolock()
807 * max. write unit, so write it to the write-buffer and we are ubifs_wbuf_write_nolock()
836 ubifs_err(c, "cannot write %d bytes to LEB %d:%d, error %d", ubifs_wbuf_write_nolock()
845 * ubifs_write_node - write node to the media.
847 * @buf: the node to write
883 * ubifs_read_node_wbuf - read node from the media or write-buffer.
892 * in @buf. If the node partially or fully sits in the write-buffer, this
913 /* We may safely unlock the write-buffer and read the data */ ubifs_read_node_wbuf()
923 /* Copy the rest from the write-buffer */ ubifs_read_node_wbuf()
928 /* Read everything that goes before write-buffer */ ubifs_read_node_wbuf()
1021 * ubifs_wbuf_init - initialize write-buffer.
1023 * @wbuf: write-buffer to initialize
1025 * This function initializes write-buffer. Returns zero in case of success
1047 * If the LEB starts at the max. write size aligned address, then ubifs_wbuf_init()
1048 * write-buffer size has to be set to @c->max_write_size. Otherwise, ubifs_wbuf_init()
1050 * write size boundary. ubifs_wbuf_init()
1071 * @wbuf: the write-buffer where to add
1074 * This function adds an inode number to the inode array of the write-buffer.
1090 * @wbuf: the write-buffer
1093 * This function returns with %1 if the write-buffer contains some data from the
1112 * ubifs_sync_wbufs_by_inode - synchronize write-buffers for an inode.
1116 * This function synchronizes write-buffers which contain nodes belonging to
/linux-4.1.27/arch/x86/lib/
H A Dmsr.c50 * @msr: MSR to write
51 * @m: value to write
92 * > 0: Hardware accepted the MSR write.
105 * > 0: Hardware accepted the MSR write.
/linux-4.1.27/arch/x86/include/asm/
H A Dedac.h11 * Very carefully read and write to memory atomically so we atomic_scrub()
H A Diosf_mbi.h31 /* Baytrail read/write opcodes */
61 /* Quark read/write opcodes */
82 * @opcode: port specific read or write opcode
92 * iosf_mbi_write() - MailBox unmasked write command
94 * @opcode: port specific read or write opcode
104 * iosf_mbi_modify() - MailBox masked write command
106 * @opcode: port specific read or write opcode
H A Dxor_64.h16 /* We force the use of the SSE xor block because it can write around L2.
/linux-4.1.27/arch/metag/mm/
H A Dmaccess.c2 * safe read and write memory routines callable while atomic
30 /* Use the write combine bit to decide is the destination is MMIO. */ probe_kernel_write()
39 if (pte & MMCU_ENTRY_WRC_BIT || /* write combined memory */ probe_kernel_write()
41 size > 8 || /* more than max write size */ probe_kernel_write()
/linux-4.1.27/arch/powerpc/include/asm/
H A Dpte-hash64.h10 * Note: We only support user read/write permissions. Supervisor always
11 * have full read/write to pages above PAGE_OFFSET (pages below that
23 #define _PAGE_WRITETHRU 0x0040 /* W: cache write-through */
26 #define _PAGE_RW 0x0200 /* software: user write access allowed */
H A Dmmu-hash32.h28 #define BPP_RW 0x02 /* Read/write */
51 #define PP_RWXX 0 /* Supervisor read/write, User none */
52 #define PP_RWRX 1 /* Supervisor read/write, User read */
53 #define PP_RWRW 2 /* Supervisor read/write, User read/write */
H A Dtce.h17 * along with this program; if not, write to the Free Software
49 #define TCE_PCI_WRITE 0x2 /* write from PCI allowed */
51 #define TCE_VB_WRITE 0x1 /* write from VB allowed */
H A Dmmu-44x.h39 #define PPC44x_TLB_W 0x00000800 /* Caching is write-through */
47 #define PPC44x_TLB_UW 0x00000010 /* User write */
50 #define PPC44x_TLB_SW 0x00000002 /* Super write */
85 #define PPC47x_TLB2_W 0x00000800 /* Caching is write-through */
92 #define PPC47x_TLB2_UW 0x00000010 /* User write */
95 #define PPC47x_TLB2_SW 0x00000002 /* Super write */
/linux-4.1.27/arch/powerpc/kernel/
H A Dcpu_setup_44x.S60 * Workaround for the incorrect write to DDR SDRAM errata.
61 * The write address can be corrupted during writes to
62 * DDR SDRAM when write pipelining is enabled on PLB0.
63 * Disable write pipelining here.
/linux-4.1.27/arch/alpha/include/asm/
H A Dcache.h13 /* Both EV4 and EV5 are write-through, read-allocate,
/linux-4.1.27/arch/alpha/kernel/
H A Des1888.c35 inb(0x022a); /* pause, also forces the write */ es1888_init()
38 outb(0xb1, 0x022c); /* setup for write to Interrupt CR */ es1888_init()
44 outb(0xb2, 0x022c); /* setup for write to DMA CR */ es1888_init()
48 inb(0x022c); /* force the write */ es1888_init()
/linux-4.1.27/tools/usb/usbip/libsrc/
H A Dsysfs_utils.c21 length = write(fd, new_value, len); write_sysfs_attribute()
/linux-4.1.27/arch/blackfin/include/asm/
H A Dbfrom.h15 #define SYSCTRL_WRITE 0x00000001 /* write registers */
19 #define SYSCTRL_VRCTL 0x00000010 /* read/write VR_CTL register */
23 #define SYSCTRL_PLLCTL 0x00000100 /* read/write PLL_CTL register */
24 #define SYSCTRL_PLLDIV 0x00000200 /* read/write PLL_DIV register */
25 #define SYSCTRL_LOCKCNT 0x00000400 /* read/write PLL_LOCKCNT register */
26 #define SYSCTRL_PLLSTAT 0x00000800 /* read/write PLL_STAT register */
71 /* otp read/write: defines for "flags" */
/linux-4.1.27/sound/pci/ice1712/
H A Dews.h23 * along with this program; if not, write to the Free Software
53 #define ICE1712_EWX2496_RW 0x08 /* read/write switch for i2c; high = write */
62 #define ICE1712_EWS88_RW 0x08 /* read/write switch for i2c; high = write */
77 #define ICE1712_6FIRE_RW 0x08 /* read/write switch for i2c; high = write */
/linux-4.1.27/arch/powerpc/platforms/83xx/
H A Dkm83xx.c77 * write 0b01 to UCC1 bits 18:19 quirk_mpc8360e_qe_enet10()
78 * write 0b01 to UCC2 option 1 bits 4:5 quirk_mpc8360e_qe_enet10()
79 * write 0b01 to UCC2 option 2 bits 16:17 quirk_mpc8360e_qe_enet10()
87 * write 0b01 to UCC2 option 2 bits 16:17 quirk_mpc8360e_qe_enet10()
88 * write 0b0101 to UCC1 bits 20:23 quirk_mpc8360e_qe_enet10()
89 * write 0b0101 to UCC2 option 1 bits 24:27 quirk_mpc8360e_qe_enet10()
95 * UCC2 option 1: write 0b1010 to bits 24:27 quirk_mpc8360e_qe_enet10()
101 * UCC1: write 0b11 to bits 18:19 quirk_mpc8360e_qe_enet10()
107 * UCC2 option 1: write 0b11 to bits 4:5 quirk_mpc8360e_qe_enet10()
113 * UCC2 option 2: write 0b11 to bits 16:17 quirk_mpc8360e_qe_enet10()
/linux-4.1.27/arch/s390/mm/
H A Dhugetlbpage.c27 * read-write, clean, old 111.001100.1 -> 00..1...1...11 __pte_to_pmd()
28 * read-write, clean, young 101.001101.1 -> 01..1...0...11 __pte_to_pmd()
29 * read-write, dirty, old 110.001110.1 -> 10..0...1...11 __pte_to_pmd()
30 * read-write, dirty, young 100.001111.1 -> 11..0...0...11 __pte_to_pmd()
32 * SW-bits: p present, y young, d dirty, r read, w write, s special, __pte_to_pmd()
64 * read-write, clean, old 00..1...1...11 -> 111.001100.1 __pmd_to_pte()
65 * read-write, clean, young 01..1...0...11 -> 101.001101.1 __pmd_to_pte()
66 * read-write, dirty, old 10..0...1...11 -> 110.001110.1 __pmd_to_pte()
67 * read-write, dirty, young 11..0...0...11 -> 100.001111.1 __pmd_to_pte()
69 * SW-bits: p present, y young, d dirty, r read, w write, s special, __pmd_to_pte()
H A Dgup.c21 unsigned long end, int write, struct page **pages, int *nr) gup_pte_range()
27 mask = (write ? _PAGE_PROTECT : 0) | _PAGE_INVALID | _PAGE_SPECIAL; gup_pte_range()
52 unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd()
58 result = write ? 0 : _SEGMENT_ENTRY_PROTECT; gup_huge_pmd()
103 unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range()
129 write, pages, nr)) gup_pmd_range()
132 write, pages, nr)) gup_pmd_range()
140 unsigned long end, int write, struct page **pages, int *nr) gup_pud_range()
155 if (!gup_pmd_range(pudp, pud, addr, next, write, pages, nr)) gup_pud_range()
166 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, __get_user_pages_fast() argument
196 if (!gup_pud_range(pgdp, pgd, addr, next, write, pages, &nr)) __get_user_pages_fast()
208 * @write: whether pages will be written to
220 int get_user_pages_fast(unsigned long start, int nr_pages, int write, get_user_pages_fast() argument
227 nr = __get_user_pages_fast(start, nr_pages, write, pages); get_user_pages_fast()
235 nr_pages - nr, write, 0, pages); get_user_pages_fast()
20 gup_pte_range(pmd_t *pmdp, pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pte_range() argument
51 gup_huge_pmd(pmd_t *pmdp, pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd() argument
102 gup_pmd_range(pud_t *pudp, pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range() argument
139 gup_pud_range(pgd_t *pgdp, pgd_t pgd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pud_range() argument
/linux-4.1.27/arch/frv/kernel/
H A Dpm.c153 static int sysctl_pm_do_suspend(struct ctl_table *ctl, int write, sysctl_pm_do_suspend() argument
200 static int cmode_procctl(struct ctl_table *ctl, int write, cmode_procctl() argument
205 if (!write) cmode_procctl()
206 return proc_dointvec(ctl, write, buffer, lenp, fpos); cmode_procctl()
272 static int p0_procctl(struct ctl_table *ctl, int write, p0_procctl() argument
277 if (!write) p0_procctl()
278 return proc_dointvec(ctl, write, buffer, lenp, fpos); p0_procctl()
285 static int cm_procctl(struct ctl_table *ctl, int write, cm_procctl() argument
290 if (!write) cm_procctl()
291 return proc_dointvec(ctl, write, buffer, lenp, fpos); cm_procctl()
H A Dsysctl.c47 * handle requests to dynamically switch the write caching mode delivered by /proc
49 static int procctl_frv_cachemode(struct ctl_table *table, int write, procctl_frv_cachemode() argument
59 if (write) { procctl_frv_cachemode()
73 /* switch dcache into write-back mode */ procctl_frv_cachemode()
79 /* switch dcache into write-through mode */ procctl_frv_cachemode()
124 static int procctl_frv_pin_cxnr(struct ctl_table *table, int write, procctl_frv_pin_cxnr() argument
134 if (write) { procctl_frv_pin_cxnr()
/linux-4.1.27/arch/sh/include/mach-common/mach/
H A Dsh2007.h24 /* write-read/write-write delay (0-7:0,1,2,3,4,5,6,7) */
27 /* different area, read-write delay (0-7:0,1,2,3,4,5,6,7) */
30 /* same area, read-write delay (0-7:0,1,2,3,4,5,6,7) */
/linux-4.1.27/arch/powerpc/lib/
H A Dlocks.c2 * Spin and read/write lock operations.
47 * Waiting for a read lock or a write lock on a rwlock...
48 * This turns out to be the same for read and write locks, since
49 * we only know the holder if it is write-locked.
58 return; /* no write lock at present */ __rw_yield()
/linux-4.1.27/tools/perf/util/
H A Dtrace-event-info.c16 * along with this program; if not, write to the Free Software
76 if (write(output_fd, &size, hdr_sz) != hdr_sz) record_file()
84 if (write(output_fd, buf, r) != r) record_file()
122 if (write(output_fd, "header_page", 12) != 12) { record_header_files()
123 pr_debug("can't write header_page\n"); record_header_files()
146 if (write(output_fd, "header_event", 13) != 13) { record_header_files()
147 pr_debug("can't write header_event\n"); record_header_files()
206 if (write(output_fd, &count, 4) != 4) { copy_event_system()
208 pr_debug("can't write count\n"); copy_event_system()
303 if (write(output_fd, &count, 4) != 4) { record_event_files()
305 pr_debug("can't write count\n"); record_event_files()
325 if (write(output_fd, dent->d_name, size) != size || record_event_files()
353 if (write(output_fd, &size, 4) != 4) record_proc_kallsyms()
377 if (write(output_fd, &size, 4) != 4) record_ftrace_printk()
461 if (write(output_fd, buf, 10) != 10) tracing_data_header()
465 if (write(output_fd, VERSION, size) != size) tracing_data_header()
474 if (write(output_fd, buf, 1) != 1) tracing_data_header()
479 if (write(output_fd, buf, 1) != 1) tracing_data_header()
483 if (write(output_fd, &page_size, 4) != 4) tracing_data_header()
586 * We work over the real file, so we can write data read_tracing_data()
/linux-4.1.27/arch/sh/mm/
H A Dgup.c75 unsigned long end, int write, struct page **pages, int *nr) gup_pte_range()
82 if (write) gup_pte_range()
86 if (write) gup_pte_range()
90 if (write) gup_pte_range()
120 int write, struct page **pages, int *nr) gup_pmd_range()
132 if (!gup_pte_range(pmd, addr, next, write, pages, nr)) gup_pmd_range()
140 int write, struct page **pages, int *nr) gup_pud_range()
152 if (!gup_pmd_range(pud, addr, next, write, pages, nr)) gup_pud_range()
163 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, __get_user_pages_fast() argument
177 if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ, __get_user_pages_fast()
193 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) __get_user_pages_fast()
205 * @write: whether pages will be written to
217 int get_user_pages_fast(unsigned long start, int nr_pages, int write, get_user_pages_fast() argument
242 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) get_user_pages_fast()
261 (end - start) >> PAGE_SHIFT, write, 0, pages); get_user_pages_fast()
74 gup_pte_range(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pte_range() argument
119 gup_pmd_range(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range() argument
139 gup_pud_range(pgd_t pgd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pud_range() argument
/linux-4.1.27/arch/sparc/mm/
H A Dgup.c21 unsigned long end, int write, struct page **pages, int *nr) gup_pte_range()
28 if (write) gup_pte_range()
32 if (write) gup_pte_range()
70 unsigned long end, int write, struct page **pages, gup_huge_pmd()
79 if (write && !pmd_write(pmd)) gup_huge_pmd()
119 int write, struct page **pages, int *nr) gup_pmd_range()
133 write, pages, nr)) gup_pmd_range()
135 } else if (!gup_pte_range(pmd, addr, next, write, gup_pmd_range()
144 int write, struct page **pages, int *nr) gup_pud_range()
156 if (!gup_pmd_range(pud, addr, next, write, pages, nr)) gup_pud_range()
163 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, __get_user_pages_fast() argument
185 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) __get_user_pages_fast()
193 int get_user_pages_fast(unsigned long start, int nr_pages, int write, get_user_pages_fast() argument
233 if (!gup_pud_range(pgd, addr, next, write, pages, &nr)) get_user_pages_fast()
253 (end - start) >> PAGE_SHIFT, write, 0, pages); get_user_pages_fast()
20 gup_pte_range(pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pte_range() argument
69 gup_huge_pmd(pmd_t *pmdp, pmd_t pmd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_huge_pmd() argument
118 gup_pmd_range(pud_t pud, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pmd_range() argument
143 gup_pud_range(pgd_t pgd, unsigned long addr, unsigned long end, int write, struct page **pages, int *nr) gup_pud_range() argument
/linux-4.1.27/arch/mips/include/asm/octeon/
H A Dcvmx-scratch.h20 * along with this file; if not, write to the Free Software
95 * @address: byte address to write to
96 * @value: value to write
107 * @address: byte address to write to
108 * @value: value to write
119 * @address: byte address to write to
120 * @value: value to write
131 * @address: byte address to write to
132 * @value: value to write
/linux-4.1.27/drivers/isdn/hysdn/
H A Dhysdn_procconf.c30 /* defines and data structure for conf write operations */
91 /* write conf file -> boot or send cfg line to card */
119 cnf->state = CONF_STATE_CONF; /* requested conf data write */ hysdn_conf_write()
126 if (cnf->state == CONF_STATE_POF) { /* pof write active */ hysdn_conf_write()
127 i = cnf->needed_size - cnf->buf_size; /* bytes still missing for write */ hysdn_conf_write()
138 cnf->needed_size = pof_write_buffer(cnf->card, cnf->buf_size); /* write data */ hysdn_conf_write()
146 /* pof write active */ hysdn_conf_write()
147 else { /* conf write active */ hysdn_conf_write()
151 hysdn_addlog(cnf->card, "cnf write denied -> not booted"); hysdn_conf_write()
203 } /* conf write active */ hysdn_conf_write()
244 /* write only access -> write boot file or conf line */ hysdn_conf_open()
292 } else { /* simultaneous read/write access forbidden ! */ hysdn_conf_open()
318 /* write only access -> write boot file or conf line */ hysdn_conf_close()
323 retval = pof_write_close(cnf->card); /* close the pof write */ hysdn_conf_close()
326 } /* handle write private data */ hysdn_conf_close()
344 .write = hysdn_conf_write,
/linux-4.1.27/drivers/net/ethernet/ti/
H A Ddavinci_cpdma.h101 CPDMA_CMD_IDLE, /* write-only */
102 CPDMA_COPY_ERROR_FRAMES, /* read-write */
103 CPDMA_RX_OFF_LEN_UPDATE, /* read-write */
104 CPDMA_RX_OWNERSHIP_FLIP, /* read-write */
105 CPDMA_TX_PRIO_FIXED, /* read-write */
111 CPDMA_RX_BUFFER_OFFSET, /* read-write */
/linux-4.1.27/sound/core/seq/oss/
H A Dseq_oss_writeq.c4 * seq_oss_writeq.c - write queue and sync
19 * along with this program; if not, write to the Free Software
34 * create a write queue record
62 * delete the write queue
75 * reset the write queue
91 * wait until the write buffer has enough room
/linux-4.1.27/drivers/staging/fbtft/
H A Dfbtft-bus.c44 ret = par->fbtftops.write(par, par->buf, sizeof(type)+offset); \
47 dev_err(par->info->device, "%s: write() failed and returned %d\n", __func__, ret); \
62 ret = par->fbtftops.write(par, par->buf, len * (sizeof(type)+offset)); \
65 dev_err(par->info->device, "%s: write() failed and returned %d\n", __func__, ret); \
111 ret = par->fbtftops.write(par, par->buf, (len + pad) * sizeof(u16)); define_fbtft_write_reg()
114 "write() failed and returned %d\n", ret); define_fbtft_write_reg()
150 /* non buffered write */ fbtft_write_vmem16_bus8()
152 return par->fbtftops.write(par, vmem16, len); fbtft_write_vmem16_bus8()
154 /* buffered write */ fbtft_write_vmem16_bus8()
173 ret = par->fbtftops.write(par, par->txbuf.buf, fbtft_write_vmem16_bus8()
223 ret = par->fbtftops.write(par, par->txbuf.buf, to_copy*2); fbtft_write_vmem16_bus9()
253 /* no need for buffered write with 16-bit bus */ fbtft_write_vmem16_bus16()
254 return par->fbtftops.write(par, vmem16, len); fbtft_write_vmem16_bus16()
H A Dfb_agm1264k-fl.c165 /* if write (rw = 0) e(1->0) perform write */ request_gpios_match()
224 ret = par->fbtftops.write(par, par->buf, len * (sizeof(u8))); write_reg8_bus8()
228 "write() failed and returned %d\n", ret); write_reg8_bus8()
377 /* write bitmap */ write_vmem()
379 ret = par->fbtftops.write(par, buf, len); write_vmem()
382 "write failed and returned: %d\n", write_vmem()
399 /* write bitmap */ write_vmem()
401 par->fbtftops.write(par, buf, len); write_vmem()
404 "write failed and returned: %d\n", write_vmem()
416 static int write(struct fbtft_par *par, void *buf, size_t len) write() function
421 gpio_set_value(par->RW, 0); /* set write mode */ write()
435 /* unset E - write */ write()
454 .write = write,
/linux-4.1.27/net/core/
H A Dsysctl_net_core.c34 static int rps_sock_flow_sysctl(struct ctl_table *table, int write, rps_sock_flow_sysctl() argument
53 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); rps_sock_flow_sysctl()
55 if (write) { rps_sock_flow_sysctl()
101 static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, flow_limit_cpu_sysctl() argument
113 if (write) { flow_limit_cpu_sysctl()
180 static int flow_limit_table_len_sysctl(struct ctl_table *table, int write, flow_limit_table_len_sysctl() argument
191 ret = proc_dointvec(table, write, buffer, lenp, ppos); flow_limit_table_len_sysctl()
192 if (!ret && write && !is_power_of_2(*ptr)) { flow_limit_table_len_sysctl()
203 static int set_default_qdisc(struct ctl_table *table, int write, set_default_qdisc() argument
215 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); set_default_qdisc()
216 if (write && ret == 0) set_default_qdisc()
222 static int proc_do_rss_key(struct ctl_table *table, int write, proc_do_rss_key() argument
231 return proc_dostring(&fake_table, write, buffer, lenp, ppos); proc_do_rss_key()
/linux-4.1.27/include/drm/ttm/
H A Dttm_lock.h34 * The lock is a read-write lock. Taking it in read mode and write mode
42 * excludes write lock and read lock.
63 * @rw: Read-write lock counter. Protected by @lock.
117 * in write mode, the function will return -EBUSY. If the lock is held
122 * -EBUSY The lock was already held in write mode.
132 * Releases a write lock.
142 * Takes the lock in write mode.
153 * Downgrades a write lock to a read lock.
162 * Takes the lock in suspend mode. Excludes read and write mode.
206 * Releases a write lock.
216 * Takes the lock in write mode.
232 * - X server takes lock in write mode.
/linux-4.1.27/drivers/xen/xen-pciback/
H A Dconf_space_header.c102 DRV_NAME ": %s: enable memory-write-invalidate\n", command_write()
106 pr_warn("%s: cannot enable memory-write-invalidate (%d)\n", command_write()
114 DRV_NAME ": %s: disable memory-write-invalidate\n", command_write()
145 /* A write to obtain the length must happen as a 32-bit write. rom_write()
165 /* For the BARs, only allow writes which write ~0 or
179 /* A write to obtain the length must happen as a 32-bit write. bar_write()
334 .u.w.write = command_write,
351 .u.b.write = xen_pcibk_write_config_byte,
362 .u.b.write = bist_write,
375 .u.dw.write = bar_write, \
386 .u.dw.write = rom_write, \
/linux-4.1.27/drivers/isdn/gigaset/
H A Disocdata.c28 iwb->write = 0; gigaset_isowbuf_init()
40 int read, write, freebytes; isowbuf_freebytes() local
43 write = iwb->write; isowbuf_freebytes()
44 freebytes = read - write; isowbuf_freebytes()
50 return BAS_OUTBUFSIZE - write; isowbuf_freebytes()
58 * acquire the write semaphore
65 gig_dbg(DEBUG_ISO, "%s: couldn't acquire iso write semaphore", isowbuf_startwrite()
70 "%s: acquired iso write semaphore, data[write]=%02x, nbits=%d", isowbuf_startwrite()
71 __func__, iwb->data[iwb->write], iwb->wbits); isowbuf_startwrite()
76 * release the write semaphore
77 * returns the current write position
81 int write = iwb->write; isowbuf_donewrite() local
83 return write; isowbuf_donewrite()
89 * must be called with the write semaphore held
91 * buffer too, but the write position is only advanced by nbits.
95 int write = iwb->write; isowbuf_putbits() local
97 data |= iwb->data[write]; isowbuf_putbits()
100 iwb->data[write++] = data & 0xff; isowbuf_putbits()
101 write %= BAS_OUTBUFSIZE; isowbuf_putbits()
106 iwb->data[write] = data & 0xff; isowbuf_putbits()
107 iwb->write = write; isowbuf_putbits()
112 * must be called with the write semaphore held
116 int write; isowbuf_putflag() local
121 write = iwb->write; isowbuf_putflag()
122 iwb->idle = iwb->data[write]; isowbuf_putflag()
125 iwb->data[write] &= (1 << iwb->wbits) - 1; isowbuf_putflag()
136 int read, write, limit, src, dst; gigaset_isowbuf_getbytes() local
140 write = iwb->write; gigaset_isowbuf_getbytes()
141 if (likely(read == write)) { gigaset_isowbuf_getbytes()
148 gig_dbg(DEBUG_STREAM, "%s: read=%d write=%d limit=%d", gigaset_isowbuf_getbytes()
149 __func__, read, write, limit); gigaset_isowbuf_getbytes()
157 if (read < write) { gigaset_isowbuf_getbytes()
159 if (limit >= write) { gigaset_isowbuf_getbytes()
163 /* write position could have changed */ gigaset_isowbuf_getbytes()
164 write = iwb->write; gigaset_isowbuf_getbytes()
165 if (limit >= write) { gigaset_isowbuf_getbytes()
166 pbyte = iwb->data[write]; /* save gigaset_isowbuf_getbytes()
168 limit = write + BAS_OUTBUFPAD; gigaset_isowbuf_getbytes()
171 __func__, write, limit, iwb->idle); gigaset_isowbuf_getbytes()
172 if (write + BAS_OUTBUFPAD < BAS_OUTBUFSIZE) gigaset_isowbuf_getbytes()
173 memset(iwb->data + write, iwb->idle, gigaset_isowbuf_getbytes()
177 memset(iwb->data + write, iwb->idle, gigaset_isowbuf_getbytes()
179 - write); gigaset_isowbuf_getbytes()
187 iwb->write = limit; gigaset_isowbuf_getbytes()
197 while (dst < limit && src < write) gigaset_isowbuf_getbytes()
212 * write hex bytes to syslog for debugging
349 * (write semaphore must be held)
391 * (write semaphore must be held)
394 * -EAGAIN if write semaphore busy or buffer full
444 * (write semaphore must be held)
447 * -EAGAIN if write semaphore busy or buffer full
453 int write; trans_buildframe() local
457 return iwb->write; trans_buildframe()
468 write = iwb->write; trans_buildframe()
471 iwb->data[write++] = c; trans_buildframe()
472 write %= BAS_OUTBUFSIZE; trans_buildframe()
474 iwb->write = write; trans_buildframe()
/linux-4.1.27/drivers/input/misc/
H A Dad714x.h38 ad714x_write_t write; member in struct:ad714x_chip
52 ad714x_read_t read, ad714x_write_t write);
/linux-4.1.27/arch/unicore32/include/asm/
H A Dhwdef-copro.h20 #define CR_B (1 << 4) /* Dcache write mechanism: write back */
/linux-4.1.27/drivers/md/
H A Draid1.h122 atomic_t behind_remaining; /* number of write-behind ios remaining
160 /* For write-behind requests, we call bi_end_io when
161 * the last non-write-behind device completes, providing
162 * any write was successful. Otherwise we call when
163 * any write-behind write succeeds, otherwise we call
164 * with failure when last write completes (and all failed).
168 /* If a write for this request means we can clear some
/linux-4.1.27/arch/ia64/include/asm/sn/
H A Drw_mmr.h15 * pio_phys_write_mmr - write an MMR
16 * pio_atomic_phys_write_mmrs - atomically write 1 or 2 MMRs with psr.ic=0
/linux-4.1.27/arch/arm/mach-ebsa110/
H A Dcore.h37 #define IRQ_MSET IOMEM(0xfe000000) /* trick 3 - write */
39 #define IRQ_MCLR IOMEM(0xff000000) /* trick 4 - write */
/linux-4.1.27/drivers/w1/
H A Dw1_io.c18 * along with this program; if not, write to the Free Software
65 * w1_touch_bit() - Generates a write-0 or write-1 cycle and samples the level.
67 * @bit: 0 - write a 0, 1 - write a 0 read the level
82 * w1_write_bit() - Generates a write-0 or write-1 cycle.
84 * @bit: bit to write
110 * w1_pre_write() - pre-write operations
113 * Pre-write operation, currently only supporting strong pullups.
127 * w1_post_write() - post-write options
130 * Post-write operation, currently only supporting strong pullups.
148 * @byte: the byte to write
170 * w1_read_bit() - Generates a write-1 cycle and samples the level.
198 * @bdir: the bit to write if both id_bit and comp_bit are 0
261 * @buf: pointer to the data to write
262 * @len: the number of bytes to write
282 * @buf: pointer to the data to write
283 * @len: the number of bytes to write
451 * Put out a strong pull-up of the specified duration after the next write
454 * write operation without a strong pullup. This is a one shot request for
455 * the next write, specifying zero will clear a previous request.
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_wc_ppc64.c41 * qib_enable_wc - enable write combining for MMIO writes to the device
52 * qib_unordered_wc - indicate whether write combining is unordered
54 * Because our performance depends on our ability to do write
57 * write combining.
H A Dqib_wc_x86_64.c47 * qib_enable_wc - enable write combining for MMIO writes to the device
51 * write combining.
129 * qib_disable_wc - disable write combining for MMIO writes to the device
138 * qib_unordered_wc - indicate whether write combining is ordered
140 * Because our performance depends on our ability to do write combining mmio
144 * correct ordering. Intel processors, however, will flush write buffers
/linux-4.1.27/drivers/input/touchscreen/
H A Dad7879.h21 int (*write)(struct device *dev, u8 reg, u16 val); member in struct:ad7879_bus_ops
/linux-4.1.27/arch/sparc/include/asm/
H A Dio.h13 /* Big endian versions of memory read/write routines */
/linux-4.1.27/arch/mips/include/asm/
H A Dedac.h16 * Very carefully read and write to memory atomically atomic_scrub()
/linux-4.1.27/arch/mips/include/asm/mach-loongson/cs5536/
H A Dcs5536_vsm.h2 * the read/write interfaces for Virtual Support Module(VSM)
/linux-4.1.27/fs/xfs/
H A Dxfs_pnfs.h7 struct iomap *iomap, bool write, u32 *device_generation);
H A Dxfs_sysctl.c15 * along with this program; if not, write the Free Software Foundation,
29 int write, xfs_stats_clear_proc_handler()
37 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); xfs_stats_clear_proc_handler()
39 if (!ret && write && *valp) { xfs_stats_clear_proc_handler()
59 int write, xfs_panic_mask_proc_handler()
66 ret = proc_dointvec_minmax(ctl, write, buffer, lenp, ppos); xfs_panic_mask_proc_handler()
67 if (!ret && write) { xfs_panic_mask_proc_handler()
27 xfs_stats_clear_proc_handler( struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) xfs_stats_clear_proc_handler() argument
57 xfs_panic_mask_proc_handler( struct ctl_table *ctl, int write, void __user *buffer, size_t *lenp, loff_t *ppos) xfs_panic_mask_proc_handler() argument
/linux-4.1.27/drivers/video/fbdev/
H A Dpxa3xx-gcu.h33 * Hardware is started upon write(). */
H A Dbt431.h76 * The compiler splits the write in two bytes without these bt431_select_reg()
88 /* Autoincrement read/write. */ bt431_read_reg_inc()
92 * The compiler splits the write in two bytes without the bt431_read_reg_inc()
104 * The compiler splits the write in two bytes without the bt431_write_reg_inc()
125 /* Autoincremented read/write for the cursor map. */ bt431_read_cmap_inc()
129 * The compiler splits the write in two bytes without the bt431_read_cmap_inc()
141 * The compiler splits the write in two bytes without the bt431_write_cmap_inc()
/linux-4.1.27/fs/jffs2/
H A DMakefile9 jffs2-y += read.o nodemgmt.o readinode.o write.o scan.o gc.o
H A Dwbuf.c27 /* For testing write failures */
89 /* Schedule delayed write-buffer write-out */ jffs2_wbuf_dirties_inode()
272 /* Recover from failure to write wbuf. Recover the nodes up to the
273 * wbuf, not the one which we were starting to try to write. */
409 /* Need to do another write immediately, but it's possible jffs2_wbuf_recover()
423 pr_notice("Faking write error at 0x%08x\n", ofs); jffs2_wbuf_recover()
434 pr_crit("Recovery of wbuf failed due to a second write error\n"); jffs2_wbuf_recover()
586 /* Nothing to do if not write-buffering the flash. In particular, we shouldn't __jffs2_flush_wbuf()
630 pr_notice("Faking write error at 0x%08x\n", c->wbuf_ofs); __jffs2_flush_wbuf()
692 /* adjust write buffer offset, else we get a non contiguous write bug */ __jffs2_flush_wbuf()
698 /* Trigger garbage collection to flush the write-buffer.
700 outstanding. If ino arg non-zero, do it only if a write for the
763 /* Pad write-buffer to end and write it, wasting space. */ jffs2_flush_wbuf_pad()
817 * Sanity checks on target address. It's permitted to write jffs2_flash_writev()
819 * write at the beginning of a new erase block. Anything else, jffs2_flash_writev()
824 /* It's a write to a new block */ jffs2_flash_writev()
839 pr_crit("%s(): Non-contiguous write to %08lx\n", jffs2_flash_writev()
900 * If there's a remainder in the wbuf and it's a non-GC write, jffs2_flash_writev()
938 * This is the entry for flash write.
939 * Check, if we work on NAND FLASH, if so build an kvec and write it via vritev
977 * it out. We keep this block, it will fail on write or erase jffs2_flash_read()
980 * power loss before the ecc write or a erase was completed. jffs2_flash_read()
986 /* if no writebuffer available or write buffer empty, return */ jffs2_flash_read()
995 owbf = (ofs - c->wbuf_ofs); /* offset in write buffer */ jffs2_flash_read()
996 if (owbf > c->wbuf_len) /* is read beyond write buffer ? */ jffs2_flash_read()
1003 if (orbf > len) /* is write beyond write buffer ? */ jffs2_flash_read()
1115 pr_err("cannot write OOB for EB at %08x, requested %zd bytes, read %zd bytes, error %d\n", jffs2_write_nand_cleanmarker()
1137 /* if the count is < max, we try to write the counter to the 2nd page oob area */ jffs2_write_nand_badblock()
1203 /* Initialise write buffer */ jffs2_nand_flash_setup()
1242 /* Initialize write buffer */ jffs2_dataflash_setup()
1283 pr_info("write-buffering enabled buffer (%d) erasesize (%d)\n", jffs2_dataflash_setup()
1301 /* Initialize write buffer */ jffs2_nor_wbuf_flash_setup()
1333 /* We do not need write-buffer */ jffs2_ubivol_setup()
1345 pr_info("write-buffering enabled buffer (%d) erasesize (%d)\n", jffs2_ubivol_setup()
/linux-4.1.27/arch/avr32/include/asm/
H A Dbarrier.h12 * Weirdest thing ever.. no full barrier, but it has a write barrier!
/linux-4.1.27/kernel/locking/
H A Drwsem.c87 * release a write lock
100 * downgrade write lock to read lock
105 * lockdep: a downgraded write will live on as a write downgrade_write()
/linux-4.1.27/net/phonet/
H A Dsysctl.c20 * along with this program; if not, write to the Free Software
64 static int proc_local_port_range(struct ctl_table *table, int write, proc_local_port_range() argument
78 ret = proc_dointvec_minmax(&tmp, write, buffer, lenp, ppos); proc_local_port_range()
80 if (write && ret == 0) { proc_local_port_range()
/linux-4.1.27/scripts/gdb/linux/
H A Dmodules.py71 gdb.write(
76 gdb.write("{address} {name:<19} {size:>8} {ref}".format(
88 gdb.write("{separator}{name}".format(
93 gdb.write("\n")
H A Dsymbols.py45 gdb.write("refreshing all symbols to reload module "
78 gdb.write("scanning for modules in {0}\n".format(path))
120 gdb.write("loading @{addr}: {filename}\n".format(
130 gdb.write("no module object found for '{0}'\n".format(module_name))
133 gdb.write("loading vmlinux\n")
149 gdb.write("no modules found\n")
173 gdb.write("Note: symbol update on module loading not supported "
/linux-4.1.27/include/kvm/
H A Diodev.h26 * read and write handlers return 0 if the transaction has been handled,
35 int (*write)(struct kvm_vcpu *vcpu, member in struct:kvm_io_device_ops
66 return dev->ops->write ? dev->ops->write(vcpu, dev, addr, l, v) kvm_iodevice_write()
/linux-4.1.27/drivers/mfd/
H A Dtps65912-irq.c82 tps65912->write(tps65912, TPS65912_INT_STS, 1, &reg); tps65912_irq()
86 tps65912->write(tps65912, TPS65912_INT_STS2, 1, &reg); tps65912_irq()
90 tps65912->write(tps65912, TPS65912_INT_STS3, 1, &reg); tps65912_irq()
93 tps65912->write(tps65912, TPS65912_INT_STS4, 1, &reg); tps65912_irq()
122 tps65912->write(tps65912, TPS65912_INT_MSK, 1, &reg); tps65912_irq_sync_unlock()
124 tps65912->write(tps65912, TPS65912_INT_MSK2, 1, &reg); tps65912_irq_sync_unlock()
126 tps65912->write(tps65912, TPS65912_INT_MSK3, 1, &reg); tps65912_irq_sync_unlock()
128 tps65912->write(tps65912, TPS65912_INT_MSK4, 1, &reg); tps65912_irq_sync_unlock()
175 tps65912->write(tps65912, TPS65912_INT_STS, 1, &reg); tps65912_irq_init()
177 tps65912->write(tps65912, TPS65912_INT_STS2, 1, &reg); tps65912_irq_init()
179 tps65912->write(tps65912, TPS65912_INT_STS3, 1, &reg); tps65912_irq_init()
181 tps65912->write(tps65912, TPS65912_INT_STS4, 1, &reg); tps65912_irq_init()
H A Dab3100-core.c83 * A two-byte write message with the first byte containing the register ab3100_set_register_interruptible()
90 "write error (write register): %d\n", ab3100_set_register_interruptible()
94 "write error (write register)\n" ab3100_set_register_interruptible()
134 "write error (write test register): %d\n", ab3100_set_test_register_interruptible()
138 "write error (write test register)\n" ab3100_set_test_register_interruptible()
163 * message transport layer is to send the read and write messages ab3100_get_register_interruptible()
169 "write error (send register address): %d\n", ab3100_get_register_interruptible()
174 "write error (send register address)\n" ab3100_get_register_interruptible()
187 "write error (read register): %d\n", ab3100_get_register_interruptible()
192 "write error (read register)\n" ab3100_get_register_interruptible()
235 "write error (send first register address): %d\n", ab3100_get_register_page_interruptible()
240 "write error (send first register address)\n" ab3100_get_register_page_interruptible()
250 "write error (read register page): %d\n", ab3100_get_register_page_interruptible()
255 "write error (read register page)\n" ab3100_get_register_page_interruptible()
293 "write error (maskset send address): %d\n", ab3100_mask_and_set_register_interruptible()
298 "write error (maskset send address)\n" ab3100_mask_and_set_register_interruptible()
308 "write error (maskset read register): %d\n", ab3100_mask_and_set_register_interruptible()
313 "write error (maskset read register)\n" ab3100_mask_and_set_register_interruptible()
328 "write error (write register): %d\n", ab3100_mask_and_set_register_interruptible()
333 "write error (write register)\n" ab3100_mask_and_set_register_interruptible()
527 /* Either we read or we write a register here */ ab3100_get_set_reg()
543 * Writing, we need some value to write to ab3100_get_set_reg()
563 "debug write reg[0x%02x]\n" ab3100_get_set_reg()
572 .write = ab3100_get_set_reg,
H A Dtc3589x.c56 * tc3589x_reg_read() - write a single TC3589x register
57 * @tc3589x: Device to write to
59 * @data: Value to write
67 dev_err(tc3589x->dev, "failed to write reg %#x: %d\n", tc3589x_reg_write()
79 * @values: Buffer to write to
95 * tc3589x_block_write() - write multiple TC3589x registers
96 * @tc3589x: Device to write to
99 * @values: Values to write
109 dev_err(tc3589x->dev, "failed to write regs %#x: %d\n", tc3589x_block_write()
118 * @tc3589x: Device to write to
119 * @reg: Register to write
197 * A dummy read or write (to any register) appears to be necessary to tc3589x_irq()
198 * have the last interrupt clear (for example, GPIO IC write) take tc3589x_irq()
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_eeprom.h15 * this program; if not, write to the Free Software Foundation, Inc.,
33 #define EEPROM_EWEN_OPCODE 19 /* Erase/write enable*/
34 #define EEPROM_EWDS_OPCODE 16 /* Erase/write disable*/
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
H A Dfw.c28 /* register write. wmb() to make sure it is completed */
30 /* register set = read, OR, write */
32 /* register clear = read, AND with inverted, write */
H A Dfw.h38 /* data block. write starting from @addr
76 /* write @value to the @addr,
112 /* gateway write block.
113 * write starting address and values from the data buffer
136 /* gateway write block.
137 * write starting address and values from the data buffer
/linux-4.1.27/arch/mips/include/asm/dec/
H A Decc.h20 * The register is r/wc -- any write clears it.
24 #define KN0X_EAR_WRITE (1<<29) /* write/read transaction */
32 * from the last memory read. The register is r/wc -- any write clears it.
H A Dkn01.h29 #define KN01_ERRADDR (7*KN01_SLOT_SIZE) /* write error address */
49 #define KN01_CPU_INR_BUS 6 /* memory, I/O bus read/write errors */
65 #define KN01_CSR_MEMERR (1<<10) /* write timeout error status & ack*/
/linux-4.1.27/drivers/media/dvb-core/
H A Ddvb_ringbuffer.h23 * along with this program; if not, write to the Free Software
50 ** (1) For performance reasons read and write routines don't check buffer sizes
54 ** *** write <buflen> bytes ***
69 ** to lock read or write operations.
72 ** Resetting the buffer counts as a read and write operation.
90 ** Reset the read and write pointers to zero and flush the buffer
91 ** This counts as a read and write operation
123 /* write routines & macros */
125 /* write single byte to ring buffer */
130 ** write <len> bytes to ring buffer
143 * <rbuf> Ringbuffer to write to.
144 * <buf> Buffer to write.
/linux-4.1.27/arch/mips/loongson/common/cs5536/
H A Dcs5536_pci.c2 * read/write operation to the PCI config space of CS5536
57 * write to PCI config space and transfer it to MSR write.
/linux-4.1.27/arch/arm/mach-bcm/
H A Dboard_bcm21664.c49 * register. To write to that register we must first write the password bcm21664_restart()
50 * and the enable bit in the write access enable register. bcm21664_restart()
/linux-4.1.27/arch/arm/mach-imx/
H A Dclk.c52 * This fixups the register CCM_CSCMR1 write value.
53 * The write/read/divider values of the aclk_podf field
57 * write value read value divider
/linux-4.1.27/mm/
H A Dmaccess.c38 * probe_kernel_write(): safely attempt to write to a location
39 * @dst: address to write to
43 * Safely write to address @dst from the buffer at @src. If a kernel fault
/linux-4.1.27/kernel/trace/
H A Dtrace_seq.c7 * to a buffer that other functions can write to. It is similar to the
18 * A write to the buffer will either succed or fail. That is, unlike
19 * sprintf() there will not be a partial write (well it may write into
21 * try to write something into the trace_seq buffer and if it fails
50 * write to the seq_file it will reset the trace_seq, otherwise
97 /* If we can't write it all, don't bother writing anything */ trace_seq_printf()
106 * trace_seq_bitmask - write a bitmask array in its ASCII representation
154 /* If we can't write it all, don't bother writing anything */ trace_seq_vprintf()
188 /* If we can't write it all, don't bother writing anything */ trace_seq_bprintf()
252 * trace_seq_putmem - write raw data into the trace_seq buffer
278 * trace_seq_putmem_hex - write raw memory into the buffer in ASCII hex
280 * @mem: The raw memory to write its hex ASCII representation of
317 * @path: path to write into the sequence buffer.
323 * Returns 0 if we the length to write is bigger than the
/linux-4.1.27/drivers/media/radio/
H A Dradio-tea5777.h25 * along with this program; if not, write to the Free Software
42 * Write the 6 bytes large write register of the tea5777
44 * val represents the 6 write registers, with byte 1 from the
69 bool write_before_read; /* must write before read quirk */
70 bool needs_write; /* for write before read quirk */
H A Dradio-wl1273.c17 * along with this program; if not, write to the Free Software
209 /* wrap write pointer */ wl1273_fm_rds()
302 r = core->write(core, WL1273_TUNER_MODE_SET, wl1273_fm_irq_thread_handler()
340 core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); wl1273_fm_irq_thread_handler()
375 r = core->write(core, WL1273_CHANL_SET, freq / 10); wl1273_fm_set_tx_freq()
389 r = core->write(core, WL1273_POWER_ENB_SET, 1); wl1273_fm_set_tx_freq()
430 core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); wl1273_fm_set_rx_freq()
437 r = core->write(core, WL1273_FREQ_SET, f); wl1273_fm_set_rx_freq()
443 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_PRESET); wl1273_fm_set_rx_freq()
534 core->write(core, WL1273_RESET, 0); wl1273_fm_upload_firmware_patch()
547 int r = core->write(core, WL1273_POWER_SET, wl1273_fm_stop()
553 int r = core->write(core, WL1273_PUPD_SET, wl1273_fm_stop()
589 r = core->write(core, WL1273_POWER_SET, val); wl1273_fm_start()
593 r = core->write(core, WL1273_POWER_SET, val); wl1273_fm_start()
606 r = core->write(core, WL1273_PUPD_SET, WL1273_PUPD_SET_ON); wl1273_fm_start()
609 r = core->write(core, WL1273_PUPD_SET, wl1273_fm_start()
618 r = core->write(core, WL1273_RDS_DATA_ENB, 1); wl1273_fm_start()
620 r = core->write(core, WL1273_RDS_DATA_ENB, 0); wl1273_fm_start()
640 r = core->write(core, WL1273_POWER_SET, val); wl1273_fm_start()
646 r = core->write(core, WL1273_PUPD_SET, wl1273_fm_start()
671 r = core->write(core, WL1273_POWER_SET, wl1273_fm_suspend()
674 r = core->write(core, WL1273_PUPD_SET, wl1273_fm_suspend()
715 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); wl1273_fm_set_mode()
813 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); wl1273_fm_set_seek()
819 r = core->write(core, WL1273_SEARCH_LVL_SET, level); wl1273_fm_set_seek()
823 r = core->write(core, WL1273_SEARCH_DIR_SET, dir); wl1273_fm_set_seek()
827 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK); wl1273_fm_set_seek()
858 r = core->write(core, WL1273_TUNER_MODE_SET, TUNER_MODE_AUTO_SEEK); wl1273_fm_set_seek()
931 r = core->write(core, WL1273_PREMPH_SET, em); wl1273_fm_set_preemphasis()
951 r = core->write(core, WL1273_POWER_SET, wl1273_fm_rds_on()
973 r = core->write(core, WL1273_INT_MASK_SET, radio->irq_flags); wl1273_fm_rds_off()
982 r = core->write(core, WL1273_POWER_SET, WL1273_POWER_SET_FM); wl1273_fm_rds_off()
1005 r = core->write(core, WL1273_RDS_CNTRL_SET, 1); wl1273_fm_set_rds()
1010 r = core->write(core, WL1273_RDS_DATA_ENB, 0); wl1273_fm_set_rds()
1012 r = core->write(core, WL1273_RDS_DATA_ENB, 1); wl1273_fm_set_rds()
1051 * one gets to write to it. wl1273_fm_fops_write()
1065 core->write(core, WL1273_RDS_CONFIG_DATA_SET, val); wl1273_fm_fops_write()
1126 r = core->write(core, WL1273_INT_MASK_SET, wl1273_fm_fops_open()
1158 r = core->write(core, wl1273_fm_fops_release()
1268 .write = wl1273_fm_fops_write,
1341 r = core->write(core, WL1273_POWER_LEV_SET, 122 - power); wl1273_fm_set_tx_power()
1363 r = core->write(core, WL1273_SCAN_SPACING_SET, wl1273_fm_tx_set_spacing()
1367 r = core->write(core, WL1273_SCAN_SPACING_SET, wl1273_fm_tx_set_spacing()
1371 r = core->write(core, WL1273_SCAN_SPACING_SET, wl1273_fm_tx_set_spacing()
1375 r = core->write(core, WL1273_SCAN_SPACING_SET, wl1273_fm_tx_set_spacing()
1434 r = core->write(core, wl1273_fm_vidioc_s_ctrl()
1439 r = core->write(core, wl1273_fm_vidioc_s_ctrl()
1442 r = core->write(core, WL1273_MUTE, 1); wl1273_fm_vidioc_s_ctrl()
1444 r = core->write(core, WL1273_MUTE, 0); wl1273_fm_vidioc_s_ctrl()
1604 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_MONO); wl1273_fm_vidioc_s_tuner()
1612 r = core->write(core, WL1273_MOST_MODE_SET, WL1273_RX_STEREO); wl1273_fm_vidioc_s_tuner()
1754 r = core->write(core, WL1273_MONO_SET, WL1273_TX_MONO); wl1273_fm_vidioc_s_modulator()
1756 r = core->write(core, WL1273_MONO_SET, wl1273_fm_vidioc_s_modulator()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_kernel_queue.h40 * queue ring buffer where the calling function can write its packet. It is
42 * pending write pointer to that location so subsequent calls to
43 * acquire_packet_buffer will get a correct write pointer
45 * @submit_packet: Update the write pointer and doorbell of a kernel queue.
47 * @sync_with_hw: Wait until the write pointer and the read pointer of a kernel
/linux-4.1.27/include/linux/sched/
H A Dsysctl.h9 extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write,
63 int sched_proc_update_handler(struct ctl_table *table, int write,
98 extern int sched_rr_handler(struct ctl_table *table, int write,
102 extern int sched_rt_handler(struct ctl_table *table, int write,
106 extern int sysctl_numa_balancing(struct ctl_table *table, int write,
/linux-4.1.27/net/sunrpc/
H A Dsysctl.c61 static int proc_do_xprt(struct ctl_table *table, int write, proc_do_xprt() argument
67 if ((*ppos && !write) || !*lenp) { proc_do_xprt()
76 proc_dodebug(struct ctl_table *table, int write, proc_dodebug() argument
84 if ((*ppos && !write) || !*lenp) { proc_dodebug()
91 if (write) { proc_dodebug()
/linux-4.1.27/samples/hw_breakpoint/
H A Ddata_breakpoint.c15 * along with this program; if not, write to the Free Software
22 * prints a backtrace is invoked every time a write operation is performed on
42 " write operations on the kernel symbol");
69 printk(KERN_INFO "HW Breakpoint for %s write installed\n", ksym_name); hw_break_module_init()
82 printk(KERN_INFO "HW Breakpoint for %s write uninstalled\n", ksym_name); hw_break_module_exit()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_debugfs.c16 this program; if not, write to the Free Software Foundation, Inc.,
40 * @buffer: where to write the data for the user to read
73 * ixgbe_dbg_reg_ops_write - write into reg_ops datum
102 if (strncmp(ixgbe_dbg_reg_ops_buf, "write", 5) == 0) { ixgbe_dbg_reg_ops_write()
109 e_dev_info("write: 0x%08x = 0x%08x\n", reg, value); ixgbe_dbg_reg_ops_write()
111 e_dev_info("write <reg> <value>\n"); ixgbe_dbg_reg_ops_write()
127 e_dev_info(" write <reg> <value>\n"); ixgbe_dbg_reg_ops_write()
136 .write = ixgbe_dbg_reg_ops_write,
144 * @buffer: where to write the data for the user to read
178 * ixgbe_dbg_netdev_ops_write - write into netdev_ops datum
222 .write = ixgbe_dbg_netdev_ops_write,
/linux-4.1.27/drivers/tty/
H A Dn_tracesink.c49 * there is a quirk with this ldisc is he can write data
52 * project. So he needs to know when he can and cannot write when
133 * n_tracesink_write() - Function that allows write() in userspace.
146 * implemented. Return value based on write() man pages.
161 * @buf: Trace debuging data buffer to write to tty target
162 * port. Null value will return with no write occurring.
164 * return with no write occuring.
168 * call the tty's write() call because it will have no pointer
169 * to call the write().
176 this_tty->ops->write(this_tty, buf, count); n_tracesink_datadrain()
197 .write = n_tracesink_write
/linux-4.1.27/fs/btrfs/
H A Dlocking.c14 * License along with this program; if not, write to the
39 * from us. If we have the write lock, we are the owner btrfs_set_lock_blocking_rw()
71 * from us. If we have the write lock, we are the owner btrfs_clear_lock_blocking_rw()
110 * This extent is already write-locked by our thread. We allow btrfs_tree_read_lock()
113 * called on a partly (write-)locked tree. btrfs_tree_read_lock()
199 * if we're nested, we have the write lock. No new locking btrfs_tree_read_unlock()
201 * The write unlock will do a barrier for us, and the lock_nested btrfs_tree_read_unlock()
221 * if we're nested, we have the write lock. No new locking btrfs_tree_read_unlock_blocking()
223 * The write unlock will do a barrier for us, and the lock_nested btrfs_tree_read_unlock_blocking()
239 * take a spinning write lock. This will wait for both
267 * drop a spinning or a blocking write lock.
/linux-4.1.27/fs/ecryptfs/
H A Dread_write.c18 * along with this program; if not, write to the Free Software
30 * @data: Data to write
31 * @offset: Byte offset in the lower file to which to write the data
32 * @size: Number of bytes from @data to write at @offset in the lower
60 * @size: The amount of data from @page_for_lower to write to the
64 * offset within the page, maps the page, and makes the call to write
89 * @ecryptfs_inode: The eCryptfs file into which to write
90 * @data: Virtual address where data to write is located
93 * @size: The number of bytes to write from @data
139 /* remaining zeros to write, up to destination offset */ ecryptfs_write()
247 * @size: The number of bytes to write into @page_for_ecryptfs
/linux-4.1.27/drivers/mtd/nand/
H A Dr852.h18 byte write/read does one cycle on nand data lines.
19 dword write/read does 4 cycles
22 If write was done two dword reads read generated ecc checksums
29 #define R852_CTL_DATA 0x02 /* read/write data (#ALE)*/
35 #define R852_CTL_ECC_ACCESS 0x40 /* read/write ecc via reg #0*/
81 #define R852_DMA_READ 0x02 /* 0 = write, 1 = read */
122 int dma_dir; /* 1 = read, 0 = write */
/linux-4.1.27/drivers/scsi/
H A Dosst_options.h34 asynchronous write in fixed block mode. See also OSST_ASYNC_WRITES
39 * * write error recovery when writing near end of medium. ENOSPC is returned
40 * * when write() is called and the tape write position is within this number
72 buffered until the driver buffer is full or asynchronous write is
76 /* If OSST_ASYNC_WRITES is non-zero, the SCSI write command may be started
86 read or write command after the device is opened. The door is opened
/linux-4.1.27/drivers/mmc/card/
H A Dmmc_test.c192 unsigned dev_addr, unsigned blocks, unsigned blksz, int write) mmc_test_prepare_mrq()
197 mrq->cmd->opcode = write ? mmc_test_prepare_mrq()
200 mrq->cmd->opcode = write ? mmc_test_prepare_mrq()
220 mrq->data->flags = write ? MMC_DATA_WRITE : MMC_DATA_READ; mmc_test_prepare_mrq()
269 u8 *buffer, unsigned addr, unsigned blksz, int write) mmc_test_buffer_transfer()
286 mmc_test_prepare_mrq(test, &mrq, &sg, 1, addr, 1, blksz, write); mmc_test_buffer_transfer()
615 static int __mmc_test_prepare(struct mmc_test_card *test, int write) __mmc_test_prepare() argument
623 if (write) __mmc_test_prepare()
676 struct mmc_request *mrq, int write) mmc_test_prepare_broken_mrq()
681 mrq->cmd->opcode = write ? mmc_test_prepare_broken_mrq()
783 unsigned blksz, int write, int count) mmc_test_nonblock_transfer()
815 blocks, blksz, write); mmc_test_nonblock_transfer()
847 unsigned blocks, unsigned blksz, int write) mmc_test_simple_transfer()
859 blocks, blksz, write); mmc_test_simple_transfer()
872 unsigned blocks, unsigned blksz, int write) mmc_test_broken_transfer()
887 mmc_test_prepare_mrq(test, &mrq, &sg, 1, 0, blocks, blksz, write); mmc_test_broken_transfer()
888 mmc_test_prepare_broken_mrq(test, &mrq, write); mmc_test_broken_transfer()
904 unsigned blocks, unsigned blksz, int write) mmc_test_transfer()
909 if (write) { mmc_test_transfer()
924 blocks, blksz, write); mmc_test_transfer()
928 if (write) { mmc_test_transfer()
1450 unsigned int dev_addr, int write) mmc_test_area_transfer()
1455 t->blocks, 512, write); mmc_test_area_transfer()
1462 unsigned int dev_addr, int write, mmc_test_area_io_seq()
1495 dev_addr, t->blocks, 512, write, count); mmc_test_area_io_seq()
1498 ret = mmc_test_area_transfer(test, dev_addr, write); mmc_test_area_io_seq()
1515 unsigned int dev_addr, int write, int max_scatter, mmc_test_area_io()
1518 return mmc_test_area_io_seq(test, sz, dev_addr, write, max_scatter, mmc_test_area_io()
1563 * (if the card supports it) which may improve write performance. Optionally,
1667 static int mmc_test_best_performance(struct mmc_test_card *test, int write, mmc_test_best_performance() argument
1672 return mmc_test_area_io(test, t->max_tfr, t->dev_addr, write, mmc_test_best_performance()
1685 * Best-case write performance.
1701 * Best-case write performance from scattered pages.
1730 * Single write performance by transfer size.
1856 * Consecutive write performance by transfer size.
1924 static int mmc_test_rnd_perf(struct mmc_test_card *test, int write, int print, mmc_test_rnd_perf() argument
1950 ret = mmc_test_area_io(test, sz, dev_addr, write, 0, 0); mmc_test_rnd_perf()
1959 static int mmc_test_random_perf(struct mmc_test_card *test, int write) mmc_test_random_perf() argument
1972 if (write) { mmc_test_random_perf()
1974 ret = mmc_test_rnd_perf(test, write, 0, sz); mmc_test_random_perf()
1979 ret = mmc_test_rnd_perf(test, write, 1, sz); mmc_test_random_perf()
1984 if (write) { mmc_test_random_perf()
1986 ret = mmc_test_rnd_perf(test, write, 0, sz); mmc_test_random_perf()
1991 return mmc_test_rnd_perf(test, write, 1, sz); mmc_test_random_perf()
2003 * Random write performance by transfer size.
2010 static int mmc_test_seq_perf(struct mmc_test_card *test, int write, mmc_test_seq_perf() argument
2044 ret = mmc_test_area_io(test, sz, dev_addr, write, mmc_test_seq_perf()
2057 static int mmc_test_large_seq_perf(struct mmc_test_card *test, int write) mmc_test_large_seq_perf() argument
2062 ret = mmc_test_seq_perf(test, write, 10 * 1024 * 1024, 1); mmc_test_large_seq_perf()
2067 ret = mmc_test_seq_perf(test, write, 100 * 1024 * 1024, 1); mmc_test_large_seq_perf()
2072 ret = mmc_test_seq_perf(test, write, 1000 * 1024 * 1024, 1); mmc_test_large_seq_perf()
2089 * Large sequential write performance.
2184 * Multiple blocking write 4k to 4 MB chunks
2203 * Multiple non-blocking write 4k to 4 MB chunks
2260 * Multiple blocking write 1 to 512 sg elements
2279 * Multiple non-blocking write 1 to 512 sg elements
2358 .name = "Basic write (no data verification)",
2368 .name = "Basic write (with data verification)",
2382 .name = "Multi-block write",
2424 .name = "Badly aligned write",
2438 .name = "Badly aligned multi-block write",
2452 .name = "Correct xfer_size at write (start failure)",
2462 .name = "Correct xfer_size at write (midway failure)",
2474 .name = "Highmem write",
2488 .name = "Multi-block highmem write",
2504 .name = "Highmem write",
2514 .name = "Multi-block highmem write",
2533 .name = "Best-case write performance",
2547 .name = "Best-case write performance from scattered pages",
2561 .name = "Single write performance by transfer size",
2582 .name = "Consecutive write performance by transfer size",
2603 .name = "Random write performance by transfer size",
2617 .name = "Large sequential write from scattered pages",
2896 .write = mtf_test_write,
190 mmc_test_prepare_mrq(struct mmc_test_card *test, struct mmc_request *mrq, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) mmc_test_prepare_mrq() argument
268 mmc_test_buffer_transfer(struct mmc_test_card *test, u8 *buffer, unsigned addr, unsigned blksz, int write) mmc_test_buffer_transfer() argument
675 mmc_test_prepare_broken_mrq(struct mmc_test_card *test, struct mmc_request *mrq, int write) mmc_test_prepare_broken_mrq() argument
780 mmc_test_nonblock_transfer(struct mmc_test_card *test, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write, int count) mmc_test_nonblock_transfer() argument
845 mmc_test_simple_transfer(struct mmc_test_card *test, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) mmc_test_simple_transfer() argument
871 mmc_test_broken_transfer(struct mmc_test_card *test, unsigned blocks, unsigned blksz, int write) mmc_test_broken_transfer() argument
902 mmc_test_transfer(struct mmc_test_card *test, struct scatterlist *sg, unsigned sg_len, unsigned dev_addr, unsigned blocks, unsigned blksz, int write) mmc_test_transfer() argument
1449 mmc_test_area_transfer(struct mmc_test_card *test, unsigned int dev_addr, int write) mmc_test_area_transfer() argument
1461 mmc_test_area_io_seq(struct mmc_test_card *test, unsigned long sz, unsigned int dev_addr, int write, int max_scatter, int timed, int count, bool nonblock, int min_sg_len) mmc_test_area_io_seq() argument
1514 mmc_test_area_io(struct mmc_test_card *test, unsigned long sz, unsigned int dev_addr, int write, int max_scatter, int timed) mmc_test_area_io() argument
/linux-4.1.27/arch/arm/mach-sa1100/include/mach/
H A DSA-1100.h80 * Controller (UDC) Control Register (read/write).
82 * Controller (UDC) Address Register (read/write).
85 * (read/write).
88 * (read/write).
91 * (read/write).
94 * (output, read/write).
97 * (input, read/write).
100 * (read/write).
105 * Controller (UDC) Data Register (read/write).
107 * Controller (UDC) Status Register (read/write).
157 /* (write) */
158 #define UDCCS0_SSE 0x00000080 /* Serviced Setup End (write) */
196 * (read/write).
199 * (read/write).
202 * (read/write).
205 * (read/write).
208 * (read/write).
211 * (read/write).
217 * (read/write).
220 * (read/write).
223 * (read/write).
226 * (read/write).
229 * (read/write).
232 * (read/write).
235 * (read/write).
241 * (read/write).
244 * (read/write).
247 * (read/write).
250 * (read/write).
253 * (read/write).
256 * (read/write).
406 * Control Register 0 (read/write).
408 * Control Register 1 (read/write).
410 * Control Register 2 (read/write).
412 * Control Register 3 (read/write).
414 * Control Register 4 (read/write).
416 * Data Register (read/write).
418 * Status Register 0 (read/write).
420 * Status Register 1 (read/write).
526 * controller (HSSP) Control Register 0 (read/write).
528 * controller (HSSP) Control Register 1 (read/write).
530 * controller (HSSP) Data Register (read/write).
532 * controller (HSSP) Status Register 0 (read/write).
536 * controller (HSSP) Control Register 2 (read/write).
607 * Control Register 0 (read/write).
609 * Data Register 0 (audio, read/write).
611 * Data Register 1 (telecom, read/write).
613 * Data Register 2 (CODEC registers, read/write).
615 * Status Register (read/write).
617 * Control Register 1 (read/write).
736 * Register 0 (read/write).
738 * Register 1 (read/write).
742 * Register (read/write).
744 * Register (read/write).
816 * (read/write).
818 * (read/write).
820 * (read/write).
822 * (read/write).
824 * (read/write).
826 * (read/write).
828 * (read/write).
830 * (read/write).
864 * RTAR Real-Time Clock (RTC) Alarm Register (read/write).
865 * RCNR Real-Time Clock (RTC) CouNt Register (read/write).
866 * RTTR Real-Time Clock (RTC) Trim Register (read/write).
867 * RTSR Real-Time Clock (RTC) Status Register (read/write).
898 * PMCR Power Manager (PM) Control Register (read/write).
899 * PSSR Power Manager (PM) Sleep Status Register (read/write).
900 * PSPR Power Manager (PM) Scratch-Pad Register (read/write).
902 * (read/write).
904 * (read/write).
906 * Configuration Register (read/write).
908 * Sleep state Register (read/write, see GPIO pins).
1054 * (read/write).
1055 * RCSR Reset Controller (RC) Status Register (read/write).
1073 * TUCR Test Unit Control Register (read/write).
1120 * Register (read/write).
1122 * Register (write).
1124 * Register (write).
1126 * detect Register (read/write).
1128 * detect Register (read/write).
1130 * status Register (read/write).
1132 * Function Register (read/write).
1228 * ICMR Interrupt Controller (IC) Mask Register (read/write).
1229 * ICLR Interrupt Controller (IC) Level Register (read/write).
1231 * (read/write).
1305 * Register (read/write).
1307 * (read/write).
1309 * Register (read/write).
1311 * Direction Register (read/write).
1384 * CoNFiGuration register (read/write).
1387 * (read/write).
1390 * (read/write).
1393 * (read/write).
1448 #define MDCNFG_SA1110_TWR0 Fld(2, 14) /* SDRAM write recovery 0/1 */
1459 #define MDCNFG_SA1110_TWR2 Fld(2, 30) /* SDRAM write recovery 0/1 */
1467 * (read/write).
1469 * (read/write).
1537 * Configuration Register (read/write).
1603 * (read/write).
1608 * (read/write).
1614 * (DMA) Base Address Register channel 1 (read/write).
1618 * (DMA) Base Address Register channel 2 (read/write).
1622 * (read/write).
1628 * (read/write).
1634 * (read/write).
/linux-4.1.27/fs/debugfs/
H A Dfile.c41 .write = default_write_file,
72 * debugfs_create_u8 - create a debugfs file that is used to read and write an unsigned 8-bit value
78 * @value: a pointer to the variable that the file should read to and write
98 /* if there are no write bits set, make read only */ debugfs_create_u8()
101 /* if there are no read bits set, make write only */ debugfs_create_u8()
124 * debugfs_create_u16 - create a debugfs file that is used to read and write an unsigned 16-bit value
130 * @value: a pointer to the variable that the file should read to and write
150 /* if there are no write bits set, make read only */ debugfs_create_u16()
153 /* if there are no read bits set, make write only */ debugfs_create_u16()
176 * debugfs_create_u32 - create a debugfs file that is used to read and write an unsigned 32-bit value
182 * @value: a pointer to the variable that the file should read to and write
202 /* if there are no write bits set, make read only */ debugfs_create_u32()
205 /* if there are no read bits set, make write only */ debugfs_create_u32()
229 * debugfs_create_u64 - create a debugfs file that is used to read and write an unsigned 64-bit value
235 * @value: a pointer to the variable that the file should read to and write
255 /* if there are no write bits set, make read only */ debugfs_create_u64()
258 /* if there are no read bits set, make write only */ debugfs_create_u64()
281 * debugfs_create_x{8,16,32,64} - create a debugfs file that is used to read and write an unsigned {8,16,32,64}-bit value
289 * debugfs_create_x8 - create a debugfs file that is used to read and write an unsigned 8-bit value
295 * @value: a pointer to the variable that the file should read to and write
301 /* if there are no write bits set, make read only */ debugfs_create_x8()
304 /* if there are no read bits set, make write only */ debugfs_create_x8()
313 * debugfs_create_x16 - create a debugfs file that is used to read and write an unsigned 16-bit value
319 * @value: a pointer to the variable that the file should read to and write
325 /* if there are no write bits set, make read only */ debugfs_create_x16()
328 /* if there are no read bits set, make write only */ debugfs_create_x16()
337 * debugfs_create_x32 - create a debugfs file that is used to read and write an unsigned 32-bit value
343 * @value: a pointer to the variable that the file should read to and write
349 /* if there are no write bits set, make read only */ debugfs_create_x32()
352 /* if there are no read bits set, make write only */ debugfs_create_x32()
361 * debugfs_create_x64 - create a debugfs file that is used to read and write an unsigned 64-bit value
367 * @value: a pointer to the variable that the file should read to and write
392 * debugfs_create_size_t - create a debugfs file that is used to read and write an size_t value
398 * @value: a pointer to the variable that the file should read to and write
425 * write an atomic_t value
431 * @value: a pointer to the variable that the file should read to and write
437 /* if there are no write bits set, make read only */ debugfs_create_atomic_t()
441 /* if there are no read bits set, make write only */ debugfs_create_atomic_t()
486 .write = write_file_bool,
492 * debugfs_create_bool - create a debugfs file that is used to read and write a boolean value
498 * @value: a pointer to the variable that the file should read to and write
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dif_spi.h33 /* Value to write to indicate end of helper firmware dnld */
40 /* Masks used in SPI register read/write operations */
151 /* Host Interrupt Status bit : I/O write FIFO overflow */
155 /* Host Interrupt Status bit : Data write FIFO overflow */
159 /* Host Interrupt Status bit : Command write FIFO overflow */
175 /* Host Interrupt Status Mask bit : I/O write FIFO overflow */
179 /* Host Interrupt Status Mask bit : Data write FIFO overflow */
181 /* Host Interrupt Status Mask bit : Data write FIFO underflow */
183 /* Host Interrupt Status Mask bit : Command write FIFO overflow */
185 /* Host Interrupt Status Mask bit : Command write FIFO underflow */
/linux-4.1.27/include/linux/mtd/
H A Dspi-nor.h57 #define SPINOR_OP_BRWR 0x17 /* Bank register write */
70 #define SR_SRWD 0x80 /* SR write protect */
133 * @lock: the lock for the read/write/erase/lock/unlock operations
142 * @sst_write_second: used by the SST write operation
147 * read/write/erase/lock/unlock operations
149 * read/write/erase/lock/unlock operations
153 * @write_reg: [DRIVER-SPECIFIC] write data to the register
155 * @write: [DRIVER-SPECIFIC] write data to the SPI NOR
190 void (*write)(struct spi_nor *nor, loff_t to, member in struct:spi_nor
/linux-4.1.27/arch/arm/mach-u300/
H A Ddummyspichip.c79 pr_info("Simple test 1: write 0xAA byte, read back garbage byte " dummy_looptest()
88 pr_info("Simple test 2: write 8 bytes, read back 8 bytes garbage " dummy_looptest()
97 pr_info("Simple test 3: write 14 bytes, read back 14 bytes garbage " dummy_looptest()
106 pr_info("Simple test 4: write 8 bytes with spi_write(), read 8 " dummy_looptest()
121 pr_info("Simple test 5: write 14 bytes with spi_write(), read " dummy_looptest()
136 pr_info("Simple test 6: write %d bytes with spi_write(), " dummy_looptest()
161 pr_info("Simple test 7: write 0xAA byte, read back garbage byte " dummy_looptest()
173 pr_info("Simple test 8: write 8 bytes, read back 8 bytes garbage " dummy_looptest()
182 pr_info("Simple test 9: write 14 bytes, read back 14 bytes garbage " dummy_looptest()
191 pr_info("Simple test 10: write %d bytes with spi_write(), " dummy_looptest()
/linux-4.1.27/lib/zlib_inflate/
H A Dinffast.c52 Decode literal, length, and distance codes and write out the resulting
101 unsigned write; /* window write index */ inflate_fast() local
128 write = state->write; inflate_fast()
209 if (write == 0) { /* very common case */ inflate_fast()
219 else if (write < op) { /* wrap around window */ inflate_fast()
220 from += wsize + write - op; inflate_fast()
221 op -= write; inflate_fast()
228 if (write < len) { /* some from start of window */ inflate_fast()
229 op = write; inflate_fast()
239 from += write - op; inflate_fast()
353 - Three separate decoding do-loops for direct, window, and write == 0
/linux-4.1.27/scripts/
H A Dpnmtologo.c294 /* write file header */ write_logo_mono()
297 /* write logo data */ write_logo_mono()
307 /* write logo structure and file footer */ write_logo_mono()
328 /* write file header */ write_logo_vga16()
331 /* write logo data */ write_logo_vga16()
347 /* write logo structure and file footer */ write_logo_vga16()
370 /* write file header */ write_logo_clut224()
373 /* write logo data */ write_logo_clut224()
383 /* write logo clut */ write_logo_clut224()
393 /* write logo structure and file footer */ write_logo_clut224()
407 /* write file header */ write_logo_gray256()
410 /* write logo data */ write_logo_gray256()
415 /* write logo structure and file footer */ write_logo_gray256()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
H A Drouter_proc.c19 * along with Portals; if not, write to the Free Software
93 static int proc_call_handler(void *data, int write, loff_t *ppos, proc_call_handler() argument
95 int (*handler)(void *data, int write, proc_call_handler()
98 int rc = handler(data, write, *ppos, buffer, *lenp); proc_call_handler()
103 if (write) { proc_call_handler()
112 static int __proc_lnet_stats(void *data, int write, __proc_lnet_stats() argument
121 if (write) { __proc_lnet_stats()
160 static int proc_lnet_stats(struct ctl_table *table, int write, proc_lnet_stats() argument
163 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_lnet_stats()
167 static int proc_lnet_routes(struct ctl_table *table, int write, proc_lnet_routes() argument
183 LASSERT(!write); proc_lnet_routes()
293 static int proc_lnet_routers(struct ctl_table *table, int write, proc_lnet_routers() argument
307 LASSERT(!write); proc_lnet_routers()
428 static int proc_lnet_peers(struct ctl_table *table, int write, proc_lnet_peers() argument
443 LASSERT(!write); proc_lnet_peers()
595 static int __proc_lnet_buffers(void *data, int write, __proc_lnet_buffers() argument
606 LASSERT(!write); __proc_lnet_buffers()
653 static int proc_lnet_buffers(struct ctl_table *table, int write, proc_lnet_buffers() argument
656 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_lnet_buffers()
660 static int proc_lnet_nis(struct ctl_table *table, int write, proc_lnet_nis() argument
669 LASSERT(!write); proc_lnet_nis()
815 static int __proc_lnet_portal_rotor(void *data, int write, __proc_lnet_portal_rotor() argument
828 if (!write) { __proc_lnet_portal_rotor()
876 static int proc_lnet_portal_rotor(struct ctl_table *table, int write, proc_lnet_portal_rotor() argument
880 return proc_call_handler(table->data, write, ppos, buffer, lenp, proc_lnet_portal_rotor()
/linux-4.1.27/arch/alpha/lib/
H A Dev6-memset.S47 * undertake a major re-write to interleave the constant materialization
57 addq $18,$16,$6 # E : max address to write to
64 xor $16,$6,$1 # E : will complete write be within one quadword?
99 * one partial quad to write.
102 sra $18,3,$3 # U : Number of remaining quads to write
103 and $18,7,$18 # E : Number of trailing bytes to write
113 * $6 The max quadword address to write to
115 * $3 Number quads to write
160 wh64 ($4) # L1 : memory subsystem write hint
244 addq $18,$16,$6 # E : max address to write to
246 xor $16,$6,$1 # E : will complete write be within one quadword?
276 * one partial quad to write.
279 sra $18,3,$3 # U : Number of remaining quads to write
280 and $18,7,$18 # E : Number of trailing bytes to write
290 * $6 The max quadword address to write to
292 * $3 Number quads to write
337 wh64 ($4) # L1 : memory subsystem write hint
424 addq $18,$16,$6 # E : max address to write to
429 xor $16,$6,$1 # E : will complete write be within one quadword?
463 * one partial quad to write.
466 sra $18,3,$3 # U : Number of remaining quads to write
467 and $18,7,$18 # E : Number of trailing bytes to write
477 * $6 The max quadword address to write to
479 * $3 Number quads to write
524 wh64 ($4) # L1 : memory subsystem write hint
/linux-4.1.27/drivers/md/bcache/
H A Dbtree.h25 * specifying read vs. write locking, and the embedded closure is used for
57 * write in flight, and one being set up, and we toggle between them.
64 * When passing now = true, bch_btree_write() causes a write to happen
65 * "immediately" (if there was already a write in flight, it'll cause the write
66 * to happen as soon as the previous write completes). It returns immediately
68 * to it, so a closure_sync() later can be used to wait for the write to
72 * in parallel, reducing the amount of time they have to hold write locks.
76 * When traversing the btree, we may need write locks starting at some level -
77 * inserting a key into the btree will typically only require a write lock on
81 * take write locks at level <= 0, i.e. only leaf nodes. bch_btree_node_get()
89 * Handling cache misses require a different mechanism for upgrading to a write
92 * placeholder key to detect races - otherwise, we could race with a write and
96 * For this we use a sequence number that write locks and unlocks increment - to
97 * insert the check key it unlocks the btree node and then takes a write lock,
109 * c->prio_blocked because we can't write the gens until the new
212 /* Btree level at which we start taking write locks */
/linux-4.1.27/drivers/mtd/maps/
H A Ddc21285.c31 * write access.
38 * we want to write a bit pattern XXX1 to Xilinx to enable nw_en_write()
39 * the write gate, which will be open for about the next 2ms. nw_en_write()
156 dc21285_map.write = dc21285_write8; init_dc21285()
162 dc21285_map.write = dc21285_write16; init_dc21285()
168 dc21285_map.write = dc21285_write32; init_dc21285()
/linux-4.1.27/drivers/watchdog/
H A Dlantiq_wdt.c26 * write actions, which might cause malfunction of the WDT.
62 /* write the first password magic */ ltq_wdt_enable()
64 /* write the second magic plus the configuration and new timeout */ ltq_wdt_enable()
72 /* write the first password magic */ ltq_wdt_disable()
75 * write the second password magic with no config ltq_wdt_disable()
176 .write = ltq_wdt_write,
/linux-4.1.27/arch/mn10300/boot/tools/
H A Dbuild.c116 if (write(1, buf, 512) != 512) main()
123 if (write(1, buf, c) != c) main()
140 if (write(1, buf, c) != c) main()
170 if (write(1, buf, l) != l) main()
180 if (write(1, buf, 1) != 1) main()
186 if (write(1, buf, 2) != 2) main()
/linux-4.1.27/arch/alpha/boot/tools/
H A Dobjstrip.c132 if (write(ofd, bb, sizeof(bb)) != sizeof(bb)) { main()
133 perror("boot-block write"); main()
249 nwritten = write(ofd, buf, n); main()
251 perror("write"); main()
274 nwritten = write(ofd, buf, n); main()
276 perror("write"); main()
/linux-4.1.27/net/decnet/
H A Dsysctl_net_decnet.c135 static int dn_node_address_handler(struct ctl_table *table, int write, dn_node_address_handler() argument
143 if (!*lenp || (*ppos && !write)) { dn_node_address_handler()
148 if (write) { dn_node_address_handler()
186 static int dn_def_dev_handler(struct ctl_table *table, int write, dn_def_dev_handler() argument
194 if (!*lenp || (*ppos && !write)) { dn_def_dev_handler()
199 if (write) { dn_def_dev_handler()
/linux-4.1.27/drivers/media/pci/cx23885/
H A Dnetup-init.c43 printk(KERN_ERR "%s: i2c write error!\n", __func__); i2c_av_write()
67 printk(KERN_ERR "%s: i2c write error!\n", __func__); i2c_av_write4()
87 printk(KERN_ERR "%s: i2c write error!\n", __func__); i2c_av_read()
/linux-4.1.27/drivers/media/usb/gspca/
H A Dstk1135.h17 * along with this program; if not, write to the Free Software
37 #define STK1135_REG_SBUSW 0x204 /* Serial bus write */
40 #define STK1135_REG_GSBWP 0x210 /* General serial bus write port */
/linux-4.1.27/drivers/staging/iio/addac/
H A Dadt7316-i2c.c48 dev_err(&cl->dev, "I2C write error\n"); adt7316_i2c_write()
83 dev_err(&cl->dev, "I2C multi write error\n"); adt7316_i2c_multi_write()
103 .write = adt7316_i2c_write, adt7316_i2c_probe()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dio.h16 * along with this program; if not, write to the Free Software
47 wl->if_ops->write(wl, addr, &wl->buffer_32, sizeof(wl->buffer_32)); wl1251_write32()
67 wl->if_ops->write(wl, addr, &val, sizeof(u32)); wl1251_write_elp()
/linux-4.1.27/drivers/parport/
H A Dprocfs.c34 static int do_active_device(struct ctl_table *table, int write, do_active_device() argument
42 if (write) /* can't happen anyway */ do_active_device()
71 static int do_autoprobe(struct ctl_table *table, int write, do_autoprobe() argument
79 if (write) /* permissions stop this */ do_autoprobe()
113 static int do_hardware_base_addr(struct ctl_table *table, int write, do_hardware_base_addr() argument
126 if (write) /* permissions prevent this anyway */ do_hardware_base_addr()
141 static int do_hardware_irq(struct ctl_table *table, int write, do_hardware_irq() argument
154 if (write) /* permissions prevent this anyway */ do_hardware_irq()
169 static int do_hardware_dma(struct ctl_table *table, int write, do_hardware_dma() argument
182 if (write) /* permissions prevent this anyway */ do_hardware_dma()
197 static int do_hardware_modes(struct ctl_table *table, int write, do_hardware_modes() argument
210 if (write) /* permissions prevent this anyway */ do_hardware_modes()
/linux-4.1.27/arch/x86/kernel/cpu/mtrr/
H A Dcentaur.c62 *type = MTRR_TYPE_WRCOMB; /* write-combining */ centaur_get_mcr()
84 /* Only support write-combining... */ centaur_set_mcr()
106 pr_warning("mtrr: only write-combining%s supported\n", centaur_validate_add_page()
/linux-4.1.27/drivers/hid/
H A Dhid-roccat-common.h25 uint8_t request; /* always 0 on requesting write check */
78 .write = roccat_common2_sysfs_write_ ## thingy \
94 .write = roccat_common2_sysfs_write_ ## thingy \
/linux-4.1.27/arch/arm/mach-prima2/
H A Dplatsmp.c62 * write the address of secondary startup into the clkc register sirfsoc_boot_secondary()
63 * at offset 0x2bC, then write the magic number 0x3CAF5D62 to the sirfsoc_boot_secondary()
75 /* make sure write buffer is drained */ sirfsoc_boot_secondary()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
H A Dmsr.c21 * EFAULT -If the read/write did not fully complete
51 * EFAULT -If the read/write did not fully complete
66 if (write(fd, &val, sizeof val) != sizeof val) write_msr()
/linux-4.1.27/include/linux/i2c/
H A Ddm355evm_msp.h12 * Note that the firmware supports a flavor of write posting ... to be
13 * sure a write completes, issue another read or write.

Completed in 6051 milliseconds

1234567891011>>