/AliOS-Things-master/components/lwip/lwip2.0.0/netif/ppp/ |
A D | fsm.c | 128 (*f->callbacks->starting)(f); in fsm_lowerdown() 146 (*f->callbacks->down)(f); in fsm_lowerdown() 165 (*f->callbacks->starting)(f); in fsm_open() 210 fsm_sdata(f, TERMREQ, f->reqid = ++f->id, in terminate_layer() 279 (*f->callbacks->finished)(f); in fsm_timeout() 282 fsm_sdata(f, TERMREQ, f->reqid = ++f->id, in fsm_timeout() 296 (*f->callbacks->finished)(f); in fsm_timeout() 301 (*f->callbacks->retransmit)(f); in fsm_timeout() 347 f->protocol, f->state)); in fsm_input() 697 PROTO_NAME(f), f->state)); in fsm_protreject() [all …]
|
/AliOS-Things-master/components/py_engine/tests/io/ |
A D | file1.py | 2 print(f.read(5)) 3 print(f.readline()) 4 print(f.read()) 19 f.write("x") 22 f.close() 27 f.read(1) 30 f.close() 35 f.read(1) 38 f.close() 43 f.read() [all …]
|
A D | file_seek.py | 2 print(f.seek(6)) 3 print(f.read(5)) 4 print(f.tell()) 7 print(f.read(4)) 8 print(f.tell()) 12 print(f.tell()) 16 print(f.tell()) 18 f.close() 25 f.close() 29 f.close() [all …]
|
A D | open_plus.py | 25 f.seek(0) 26 print(f.read()) 27 f.close() 31 f.write(b"abcdefg") 32 f.seek(0) 33 print(f.read()) 34 f.close() 38 f.write(b"1234") 39 f.seek(0) 40 print(f.read()) [all …]
|
A D | open_append.py | 17 f = open("testfile", "a") variable 18 f.write("foo") 19 f.close() 21 f = open("testfile") variable 22 print(f.read()) 23 f.close() 26 f.write("bar") 27 f.close() 29 f = open("testfile") variable 30 print(f.read()) [all …]
|
A D | file_readline.py | 1 f = open("io/data/file1") variable 2 print(f.readline()) 3 print(f.readline(3)) 4 print(f.readline(4)) 5 print(f.readline(5)) 6 print(f.readline()) 9 f = open("io/data/file1", "ab") variable 11 f.readline() 14 f.close()
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | fun_kwonly.py | 4 def f(*, a): function 7 f(a=1) 10 def f(*, a, b): function 13 f(a=1, b=2) 14 f(b=1, a=2) 25 f(1) 43 f(1, b=2) 50 f(b=1, c=2) 57 f(1, c=2) 64 print(f()) [all …]
|
A D | try_finally_return2.py | 5 def f(): function 12 print(f()) 15 def f(): function 26 print(f()) 29 def f(): function 40 print(f()) 43 def f(): function 58 def f(): function 72 def f(): function 87 def f(): function [all …]
|
A D | try_finally_return3.py | 5 def f(): function 14 print(f()) 17 def f(): function 30 print(f()) 33 def f(): function 47 print(f()) 50 def f(): function 59 print(f()) 62 def f(): function 74 def f(): function [all …]
|
A D | try_finally_break.py | 4 def f(): function 15 f() 18 def f(): function 28 f() 31 def f(): function 42 print(f()) 45 def f(): function 59 print(f()) 62 def f(): function 76 print(f()) [all …]
|
A D | try_finally_return4.py | 5 def f(x): function 19 print(f(0)) 20 print(f(1)) 23 def f(x): function 38 print(f(0)) 39 print(f(1)) 42 def f(x): function 58 print(f(0)) 67 def f(x): function 82 print(f(0)) [all …]
|
A D | lambda_defargs.py | 3 f = lambda x=1: x function 4 print(f(), f(2), f(x=3)) 7 f = lambda x=y: x function 8 print(f()) 10 f = lambda x, y=[]: (x, y) function 11 f(0)[1].append(1) 12 print(f(1), f(x=2), f(3, 4), f(4, y=5))
|
A D | async_for2.py.exp | 4 f start: 20 7 f returned: 23 10 f start: 20 13 f returned: 23 16 f start: 20 19 f returned: 23 22 f start: 20 25 f returned: 23 28 f start: 20 31 f returned: 23
|
/AliOS-Things-master/components/websocket/src/ |
A D | rws_frame.c | 194 if (f->is_masked) in litews_frame_create_bin_header() 209 f->data_size = data_size + f->header_size; in rws_frame_fill_with_send_data() 210 f->data = rws_malloc(f->data_size); in rws_frame_fill_with_send_data() 248 f->data_size = data_size + f->header_size; in litews_frame_fill_with_send_bin_data() 249 f->data = rws_malloc(f->data_size); in litews_frame_fill_with_send_bin_data() 262 if (f->is_masked) in litews_frame_fill_with_send_bin_data() 309 return f; in rws_frame_create() 313 if (f) { in rws_frame_delete() 315 rws_free(f); in rws_frame_delete() 320 if (f) { in rws_frame_delete_clean() [all …]
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | vfs_lfs_file.py | 49 print(f) 51 f.close() 54 f.close() 58 print(f) 60 f.flush() 61 f.close() 65 f.write("more") 66 f.close() 70 f.close() 100 f.seek(3, 0) [all …]
|
/AliOS-Things-master/components/vfs/ |
A D | vfs.c | 300 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_open() 784 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_stat() 1017 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_unlink() 1087 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_remove() 1227 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_opendir() 1402 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_mkdir() 1472 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_rmdir() 1665 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_statfs() 1735 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_access() 1845 strncpy(f->filename, path, sizeof(f->filename) - 1); in vfs_pathconf() [all …]
|
A D | vfs_file.c | 28 vfs_file_t *f; in vfs_file_get_helper() local 37 f = &g_files[real_fd]; in vfs_file_get_helper() 41 return f; in vfs_file_get_helper() 45 rfd = f->redirect_fd; in vfs_file_get_helper() 60 return f->node ? f : NULL; in vfs_file_get_helper() 76 vfs_file_t *f; in vfs_file_new() local 90 f->redirect_fd = -1; in vfs_file_new() 91 f->node = node; in vfs_file_new() 92 f->f_arg = NULL; in vfs_file_new() 93 f->offset = 0; in vfs_file_new() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/tests/ |
A D | test_std.js | 41 f = std.tmpfile(); 43 f.puts(str); 50 size = f.tell(); 61 f.close(); 77 f.close(); 100 assert(f.eof()); 103 f.close(); 112 f.puts(content); 113 f.close(); 121 f.close(); [all …]
|
/AliOS-Things-master/components/SDL2/src/libm/ |
A D | e_log.c | 87 double hfsq,f,s,z,R,w,t1,t2,dk; in __ieee754_log() local 107 f = x-1.0; in __ieee754_log() 112 R = f*f*(0.5-0.33333333333333333*f); in __ieee754_log() 113 if(k==0) return f-R; else {dk=(double)k; in __ieee754_log() 114 return dk*ln2_hi-((R-dk*ln2_lo)-f);} in __ieee754_log() 116 s = f/(2.0+f); in __ieee754_log() 127 hfsq=0.5*f*f; in __ieee754_log() 128 if(k==0) return f-(hfsq-s*(hfsq+R)); else in __ieee754_log() 129 return dk*ln2_hi-((hfsq-(s*(hfsq+R)+dk*ln2_lo))-f); in __ieee754_log() 131 if(k==0) return f-s*(f-R); else in __ieee754_log() [all …]
|
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/train/speech_commands/ |
A D | wav_to_features.py | 80 with gfile.GFile(output_c_file, 'w') as f: 81 f.write('/* File automatically created by\n') 89 f.write(' * --quantize=1 \\\n') 93 f.write(' */\n\n') 94 f.write('const int g_%s_width = %d;\n' % 96 f.write('const int g_%s_height = %d;\n' % 111 f.write('\n ') 112 f.write('%d, ' % (quantized_value)) 119 f.write('\n ') 120 f.write('%f, ' % value) [all …]
|
/AliOS-Things-master/components/py_engine/engine/lib/libm/ |
A D | log1pf.c | 32 union {float f; uint32_t i;} u = {x}; in log1pf() member 33 float_t hfsq,f,c,s,z,R,w,t1,t2,dk; in log1pf() local 54 f = x; in log1pf() 59 u.f = 1 + x; in log1pf() 65 c = k >= 2 ? 1-(u.f-x) : x-(u.f-1); in log1pf() 66 c /= u.f; in log1pf() 72 f = u.f - 1; in log1pf() 74 s = f/(2.0f + f); in log1pf() 80 hfsq = 0.5f*f*f; in log1pf() 82 return s*(hfsq+R) + (dk*ln2_lo+c) - hfsq + f + dk*ln2_hi; in log1pf()
|
/AliOS-Things-master/components/py_engine/engine/lib/libm_dbl/ |
A D | libm.h | 39 union {double f; uint64_t i;} __u; \ 40 __u.f = (d); \ 48 union {double f; uint64_t i;} __u; \ 49 __u.f = (d); \ 56 union {double f; uint64_t i;} __u; \ 57 __u.f = (d); \ 64 union {double f; uint64_t i;} __u; \ 66 (d) = __u.f; \ 72 union {double f; uint64_t i;} __u; \ 73 __u.f = (d); \ [all …]
|
A D | log1p.c | 71 union {double f; uint64_t i;} u = {x}; in log1p() member 72 double_t hfsq,f,c,s,z,R,w,t1,t2,dk; in log1p() local 93 f = x; in log1p() 98 u.f = 1 + x; in log1p() 104 c = k >= 2 ? 1-(u.f-x) : x-(u.f-1); in log1p() 105 c /= u.f; in log1p() 111 f = u.f - 1; in log1p() 113 hfsq = 0.5*f*f; in log1p() 114 s = f/(2.0+f); in log1p() 121 return s*(hfsq+R) + (dk*ln2_lo+c) - hfsq + f + dk*ln2_hi; in log1p()
|
/AliOS-Things-master/components/drivers/peripheral/flash/src/ |
A D | flash_dev.c | 37 size_t offset = f->offset; in flash_device_read() 49 if ((f->offset - offset) != size) { in flash_device_read() 53 s = f->offset - offset; in flash_device_read() 65 size_t offset = f->offset; in flash_device_write() 78 if ((f->offset - offset) != size) { in flash_device_write() 82 s = f->offset - offset; in flash_device_write() 91 off = f->offset + off; in flash_device_lseek() 95 f->offset = off; in flash_device_lseek() 108 uint32_t offset = f->offset; in flash_device_ioctl() 186 int flash_device_open (inode_t *node, file_t *f) { in flash_device_open() argument [all …]
|
/AliOS-Things-master/components/py_engine/tests/unicode/ |
A D | file2.py | 9 f = open("unicode/data/utf-8_2.txt", mode=mode, encoding=enc) 10 print(f.read(1)) 11 print(f.read(1)) 12 print(f.read(2)) 13 print(f.read(4)) 16 f.readline() 19 print(f.read(1 if mode == "rt" else 3)) 22 print(f.read(1 if mode == "rt" else 4)) 24 f.close()
|