Home
last modified time | relevance | path

Searched refs:old_fs (Results 1 – 25 of 32) sorted by relevance

12

/OK3568_Linux_fs/kernel/arch/s390/lib/
H A Duaccess.c65 mm_segment_t old_fs; in enable_sacf_uaccess() local
69 old_fs = current->thread.mm_segment; in enable_sacf_uaccess()
70 if (old_fs & 1) in enable_sacf_uaccess()
71 return old_fs; in enable_sacf_uaccess()
76 if (likely(old_fs == USER_DS)) { in enable_sacf_uaccess()
90 return old_fs; in enable_sacf_uaccess()
94 void disable_sacf_uaccess(mm_segment_t old_fs) in disable_sacf_uaccess() argument
96 current->thread.mm_segment = old_fs; in disable_sacf_uaccess()
97 if (old_fs == USER_DS && test_facility(27)) { in disable_sacf_uaccess()
138 mm_segment_t old_fs; in copy_from_user_mvcp() local
[all …]
/OK3568_Linux_fs/kernel/mm/
H A Dmaccess.c108 mm_segment_t old_fs = get_fs(); in copy_from_kernel_nofault() local
118 set_fs(old_fs); in copy_from_kernel_nofault()
138 mm_segment_t old_fs = get_fs(); in copy_to_kernel_nofault() local
144 set_fs(old_fs); in copy_to_kernel_nofault()
172 mm_segment_t old_fs = get_fs(); in strncpy_from_kernel_nofault() local
190 set_fs(old_fs); in strncpy_from_kernel_nofault()
208 mm_segment_t old_fs = force_uaccess_begin(); in copy_from_user_nofault() local
215 force_uaccess_end(old_fs); in copy_from_user_nofault()
235 mm_segment_t old_fs = force_uaccess_begin(); in copy_to_user_nofault() local
242 force_uaccess_end(old_fs); in copy_to_user_nofault()
[all …]
/OK3568_Linux_fs/kernel/arch/s390/include/asm/
H A Dfutex.h30 mm_segment_t old_fs; in arch_futex_atomic_op_inuser() local
32 old_fs = enable_sacf_uaccess(); in arch_futex_atomic_op_inuser()
57 disable_sacf_uaccess(old_fs); in arch_futex_atomic_op_inuser()
68 mm_segment_t old_fs; in futex_atomic_cmpxchg_inatomic() local
71 old_fs = enable_sacf_uaccess(); in futex_atomic_cmpxchg_inatomic()
81 disable_sacf_uaccess(old_fs); in futex_atomic_cmpxchg_inatomic()
H A Dmmu_context.h89 void disable_sacf_uaccess(mm_segment_t old_fs);
/OK3568_Linux_fs/kernel/arch/mips/kernel/
H A Dftrace.c76 mm_segment_t old_fs; in ftrace_modify_code() local
84 old_fs = get_fs(); in ftrace_modify_code()
87 set_fs(old_fs); in ftrace_modify_code()
97 mm_segment_t old_fs; in ftrace_modify_code_2() local
109 old_fs = get_fs(); in ftrace_modify_code_2()
112 set_fs(old_fs); in ftrace_modify_code_2()
121 mm_segment_t old_fs; in ftrace_modify_code_2r() local
133 old_fs = get_fs(); in ftrace_modify_code_2r()
136 set_fs(old_fs); in ftrace_modify_code_2r()
H A Dkgdb.c213 mm_segment_t old_fs; in kgdb_call_nmi_hook() local
215 old_fs = get_fs(); in kgdb_call_nmi_hook()
220 set_fs(old_fs); in kgdb_call_nmi_hook()
305 mm_segment_t old_fs; in kgdb_mips_notify() local
321 old_fs = get_fs(); in kgdb_mips_notify()
328 set_fs(old_fs); in kgdb_mips_notify()
340 set_fs(old_fs); in kgdb_mips_notify()
H A Dvpe.c751 mm_segment_t old_fs; in getcwd() local
754 old_fs = get_fs(); in getcwd()
759 set_fs(old_fs); in getcwd()
H A Dtraps.c204 mm_segment_t old_fs = get_fs(); in show_stack() local
226 set_fs(old_fs); in show_stack()
359 mm_segment_t old_fs = get_fs(); in show_registers() local
380 set_fs(old_fs); in show_registers()
1594 mm_segment_t old_fs = get_fs(); in do_mcheck() local
1610 set_fs(old_fs); in do_mcheck()
/OK3568_Linux_fs/kernel/arch/s390/pci/
H A Dpci_mmio.c96 mm_segment_t old_fs; in __memcpy_toio_inuser() local
101 old_fs = enable_sacf_uaccess(); in __memcpy_toio_inuser()
116 disable_sacf_uaccess(old_fs); in __memcpy_toio_inuser()
251 mm_segment_t old_fs; in __memcpy_fromio_inuser() local
253 old_fs = enable_sacf_uaccess(); in __memcpy_fromio_inuser()
265 disable_sacf_uaccess(old_fs); in __memcpy_fromio_inuser()
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Dtlbflush.h16 mm_segment_t old_fs = get_fs(); in flush_tlb_kernel_page() local
22 set_fs(old_fs); in flush_tlb_kernel_page()
88 mm_segment_t old_fs = force_uaccess_begin(); in flush_tlb_page() local
91 force_uaccess_end(old_fs); in flush_tlb_page()
/OK3568_Linux_fs/kernel/arch/sparc/kernel/
H A Dprocess_64.c112 mm_segment_t old_fs; in show_regwindow32() local
116 old_fs = get_fs(); in show_regwindow32()
119 set_fs (old_fs); in show_regwindow32()
123 set_fs (old_fs); in show_regwindow32()
142 mm_segment_t old_fs; in show_regwindow() local
151 old_fs = get_fs(); in show_regwindow()
154 set_fs (old_fs); in show_regwindow()
158 set_fs (old_fs); in show_regwindow()
/OK3568_Linux_fs/kernel/arch/m68k/mm/
H A Dcache.c110 mm_segment_t old_fs = get_fs(); in flush_icache_range() local
114 set_fs(old_fs); in flush_icache_range()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/
H A Defuse.c85 mm_segment_t old_fs; in write_mac_to_file() local
93 old_fs = get_fs(); in write_mac_to_file()
96 set_fs(old_fs); in write_mac_to_file()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_fwtrace.c209 mm_segment_t old_fs; in fwtrace_write_to_file() local
215 old_fs = get_fs(); in fwtrace_write_to_file()
265 set_fs(old_fs); in fwtrace_write_to_file()
H A Ddhd_pktlog.c1198 mm_segment_t old_fs; in dhd_pktlog_dump_write_file() local
1203 old_fs = get_fs(); in dhd_pktlog_dump_write_file()
1232 set_fs(old_fs); in dhd_pktlog_dump_write_file()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gt1x/
H A Dgt1x_update.c282 mm_segment_t old_fs;
285 old_fs = get_fs();
330 set_fs(old_fs);
499 update_info.old_fs = get_fs();
506 set_fs(update_info.old_fs);
561 set_fs(update_info.old_fs);
H A Dgt1x_generic.c287 mm_segment_t old_fs;
295 old_fs = get_fs();
357 set_fs(old_fs);
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/hyn_cst2xx/
H A Dhyn_cst2xx.c850 static void cst2xx_close_fw_file(struct file * filp,mm_segment_t old_fs) in cst2xx_close_fw_file() argument
852 set_fs(old_fs); in cst2xx_close_fw_file()
860 mm_segment_t old_fs; in cst2xx_read_fw_file() local
867 fp = cst2xx_open_fw_file(filename, &old_fs); in cst2xx_read_fw_file()
887 cst2xx_close_fw_file(fp, old_fs); in cst2xx_read_fw_file()
/OK3568_Linux_fs/kernel/arch/m68k/kernel/
H A Dtraps.c184 mm_segment_t old_fs = get_fs(); in probe040() local
195 set_fs(old_fs); in probe040()
204 mm_segment_t old_fs = get_fs(); in do_040writeback1() local
222 set_fs(old_fs); in do_040writeback1()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/gt9xx/
H A Dgt9xx_update.c104 mm_segment_t old_fs; member
954 update_msg.old_fs = get_fs(); in gup_check_update_file()
2463 if (update_msg.old_fs) in gup_update_proc()
2465 set_fs(update_msg.old_fs); in gup_update_proc()
3439 update_msg.old_fs = get_fs(); in gup_prepare_fl_fw()
3454 set_fs(update_msg.old_fs); in gup_prepare_fl_fw()
3466 set_fs(update_msg.old_fs); in gup_prepare_fl_fw()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/focaltech_test/
H A Dfocaltech_test_ini.c199 mm_segment_t old_fs; in fts_test_read_ini_data() local
220 old_fs = get_fs(); in fts_test_read_ini_data()
225 set_fs(old_fs); in fts_test_read_ini_data()
H A Dfocaltech_test.c1184 mm_segment_t old_fs; in fts_test_save_test_data() local
1197 old_fs = get_fs(); in fts_test_save_test_data()
1202 set_fs(old_fs); in fts_test_save_test_data()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/
H A Dfocaltech_flash.c1076 mm_segment_t old_fs; in fts_read_file() local
1106 old_fs = get_fs(); in fts_read_file()
1114 set_fs(old_fs); in fts_read_file()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch_ft5436/
H A Dfocaltech_flash.c1041 mm_segment_t old_fs; in fts_read_file() local
1071 old_fs = get_fs(); in fts_read_file()
1079 set_fs(old_fs); in fts_read_file()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_pktlog.c1198 mm_segment_t old_fs; in dhd_pktlog_dump_write_file() local
1203 old_fs = get_fs(); in dhd_pktlog_dump_write_file()
1232 set_fs(old_fs); in dhd_pktlog_dump_write_file()

12