/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/ |
A D | genpng.c | 301 switch (arg->check_fn(arg, x, y)) in alpha_calc() 368 return square_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2); in inside_square_filled() 386 double cx = (arg->x1+arg->x2)/2; in square_check_line() 387 double wx = fabs(arg->x1-arg->x2)/2; in square_check_line() 388 double cy = (arg->y1+arg->y2)/2; in square_check_line() 485 return circle_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2); in inside_circle_filled() 495 double cx = (arg->x1+arg->x2)/2; in circle_check_line() 497 double cy = (arg->y1+arg->y2)/2; in circle_check_line() 603 return line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2, 0); in inside_line() 612 if (line_check(x, y, arg->x1, arg->y1, arg->x2, arg->y2, arg->width/2, in check_line() [all …]
|
A D | cvtcolor.c | 34 component(const char *prog, const char *arg, int issRGB) in component() argument 37 unsigned long c = strtoul(arg, &ep, 0); in component() 39 if (ep <= arg || *ep || c > 65535 || (issRGB && c > 255)) in component() 41 fprintf(stderr, "%s: %s: invalid component value (%lu)\n", prog, arg, c); in component() 66 const char *arg = 1+*argv++; in main() local 68 if (strcmp(arg, "sRGB") == 0) in main() 71 else if (strcmp(arg, "linear") == 0) in main() 74 else if (strcmp(arg, "gray") == 0) in main() 77 else if (strcmp(arg, "color") == 0) in main()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | obj.c | 151 bool mp_obj_is_true(mp_obj_t arg) { in mp_obj_is_true() argument 152 if (arg == mp_const_false) { in mp_obj_is_true() 154 } else if (arg == mp_const_true) { in mp_obj_is_true() 156 } else if (arg == mp_const_none) { in mp_obj_is_true() 294 if (arg == mp_const_false) { in mp_obj_get_int() 309 if (mp_obj_is_int(arg)) { in mp_obj_get_int_truncated() 312 return mp_obj_get_int(arg); in mp_obj_get_int_truncated() 320 if (arg == mp_const_false) { in mp_obj_get_int_maybe() 338 if (arg == mp_const_false) { in mp_obj_get_float_maybe() 349 val = mp_obj_float_get(arg); in mp_obj_get_float_maybe() [all …]
|
A D | profile.c | 287 mp_obj_t arg; member 346 args->arg = mp_const_none; in mp_prof_frame_enter() 392 args->arg = mp_const_none; in mp_prof_instr_tick() 465 mp_uint_t arg; member 477 instruction->arg = 0; in mp_prof_opcode_decode() 504 instruction->arg = num; in mp_prof_opcode_decode() 511 instruction->arg = qst; in mp_prof_opcode_decode() 541 instruction->arg = qst; in mp_prof_opcode_decode() 551 instruction->arg = qst; in mp_prof_opcode_decode() 561 instruction->arg = qst; in mp_prof_opcode_decode() [all …]
|
/AliOS-Things-master/components/py_engine/tests/basics/ |
A D | class_bind_self.py | 4 def __init__(self, arg): argument 5 self.val = arg 8 def __call__(self, arg): argument 9 return 'A.__call__', arg 10 def foo(self, arg): argument 11 return 'A.foo', self.val, arg 22 def f1(self, arg): argument 23 return 'C.f1', self is c, arg 24 f2 = lambda self, arg: ('C.f2', self is c, arg) argument 26 def f4(self, arg): # generator argument [all …]
|
/AliOS-Things-master/components/drivers/peripheral/wifi/src/ |
A D | vfs_wifi_drv.c | 34 ddkc_info("cmd:0x%x, arg:0x%lx\r\n", cmd, arg); in wifi_device_ioctl() 44 wifi_mode_t mode = (wifi_mode_t)(arg); in wifi_device_ioctl() 50 wifi_mode_t *mode = (wifi_mode_t*)(arg); in wifi_device_ioctl() 67 const uint8_t *mac = (const uint8_t *)(arg); in wifi_device_ioctl() 78 wifi_lpm_mode_t mode = (wifi_lpm_mode_t )arg; in wifi_device_ioctl() 99 wifi_config = (wifi_scan_config_t *)arg; in wifi_device_ioctl() 111 wifi_config = (wifi_config_t *)arg; in wifi_device_ioctl() 150 raw_frame_t *raw = (raw_frame_t*)arg; in wifi_device_ioctl() 156 int channel = (int )(arg); in wifi_device_ioctl() 162 int *channel = (int *)(arg); in wifi_device_ioctl() [all …]
|
/AliOS-Things-master/components/osal_aos/example/ |
A D | workqueue_example.c | 61 static void work0_func(void *arg) { printf("--%s--\n", (char *)arg); } in work0_func() argument 63 static void work1_func(void *arg) { printf("--%s--\n", (char *)arg); } in work1_func() argument 65 static void work2_func(void *arg) { printf("--%s--\n", (char *)arg); } in work2_func() argument 67 static void work3_func(void *arg) { printf("--%s--\n", (char *)arg); } in work3_func() argument 69 static void work4_func(void *arg) in work4_func() argument 71 printf("--%s--\n", (char *)arg); in work4_func() 75 static void work5_func(void *arg) in work5_func() argument 77 printf("--%s--\n", (char *)arg); in work5_func() 81 static void work6_func(void *arg) { printf("--%s--\n", (char *)arg); } in work6_func() argument
|
/AliOS-Things-master/components/http/internal/ |
A D | http_wrappers.h | 13 #define http_info(fmt, arg...) do { HAL_Printf("[%s %d] "fmt" \r\n", __func__, __LINE__, ##arg); … argument 14 #define http_err(fmt, arg...) do { HAL_Printf("[%s %d] "fmt" \r\n", __func__, __LINE__, ##arg); … argument 15 #define http_debug(fmt, arg...) do { HAL_Printf("[%s %d] "fmt" \r\n", __func__, __LINE__, ##arg);… argument 17 #define http_info(fmt, arg...) argument 18 #define http_err(fmt, arg...) do { HAL_Printf("[%s %d] "fmt" \r\n", __func__, __LINE__, ##arg); … argument 19 #define http_debug(fmt, arg...) argument
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/unused/ |
A D | cjpeg.c | 224 char * arg; in parse_switches() local 244 arg = argv[argn]; in parse_switches() 245 if (*arg != '-') { in parse_switches() 255 if (keymatch(arg, "arithmetic", 1)) { in parse_switches() 269 } else if (keymatch(arg, "block", 2)) { in parse_switches() 288 } else if (keymatch(arg, "dct", 2)) { in parse_switches() 301 } else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) { in parse_switches() 313 } else if (keymatch(arg, "grayscale", 2) || keymatch(arg, "greyscale",2)) { in parse_switches() 317 } else if (keymatch(arg, "rgb", 3) || keymatch(arg, "rgb1", 4)) { in parse_switches() 327 } else if (keymatch(arg, "bgycc", 5)) { in parse_switches() [all …]
|
A D | djpeg.c | 176 char * arg; in parse_switches() local 186 arg = argv[argn]; in parse_switches() 187 if (*arg != '-') { in parse_switches() 197 if (keymatch(arg, "bmp", 1)) { in parse_switches() 201 } else if (keymatch(arg, "colors", 1) || keymatch(arg, "colours", 1) || in parse_switches() 202 keymatch(arg, "quantize", 1) || keymatch(arg, "quantise", 1)) { in parse_switches() 213 } else if (keymatch(arg, "dct", 2)) { in parse_switches() 239 } else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) { in parse_switches() 260 } else if (keymatch(arg, "gif", 1)) { in parse_switches() 264 } else if (keymatch(arg, "grayscale", 2) || keymatch(arg, "greyscale",2)) { in parse_switches() [all …]
|
A D | jpegtran.c | 133 char * arg; in parse_switches() local 152 arg = argv[argn]; in parse_switches() 153 if (*arg != '-') { in parse_switches() 163 if (keymatch(arg, "arithmetic", 1)) { in parse_switches() 173 } else if (keymatch(arg, "copy", 2)) { in parse_switches() 186 } else if (keymatch(arg, "crop", 2)) { in parse_switches() 201 } else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) { in parse_switches() 213 } else if (keymatch(arg, "flip", 1)) { in parse_switches() 224 } else if (keymatch(arg, "grayscale", 1) || keymatch(arg, "greyscale",1)) { in parse_switches() 245 } else if (keymatch(arg, "optimize", 1) || keymatch(arg, "optimise", 1)) { in parse_switches() [all …]
|
/AliOS-Things-master/components/drivers/peripheral/spi/src/ |
A D | spi_dev.c | 28 void *arg; member 68 int control = arg & SPI_SLAVE; in _arg_to_role() 88 int control = arg & SPI_LSB; in _arg_to_firstbit() 201 static spi_cs_e _arg_to_cs (int arg) { in _arg_to_cs() argument 203 int control = arg & SPI_NO_CS; in _arg_to_cs() 261 config->freq = arg; in spi_device_ioctl() 310 config->serial_len = arg; in spi_device_ioctl() 398 spi_poll->arg = NULL; in spi_rx_notify() 430 spi_poll->arg = NULL; in spi_device_poll() 440 spi_poll->arg = arg; in spi_device_poll() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | timeouts.c | 125 tcpip_tcp_timer(void *arg) in tcpip_tcp_timer() argument 127 LWIP_UNUSED_ARG(arg); in tcpip_tcp_timer() 164 cyclic_timer(void *arg) in cyclic_timer() argument 171 sys_timeout(cyclic->interval_ms, cyclic_timer, arg); in cyclic_timer() 226 timeout->arg = arg; in sys_timeout_debug() 273 sys_untimeout(sys_timeout_handler handler, void *arg) in sys_untimeout() argument 282 if ((t->h == handler) && (t->arg == arg)) { in sys_untimeout() 319 void *arg; in sys_check_timeouts() local 337 arg = tmptimeout->arg; in sys_check_timeouts() 341 tmptimeout->handler_name, arg)); in sys_check_timeouts() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/zlib-1.2.11/contrib/puff/ |
A D | pufftest.c | 92 char *arg, *name = NULL; in main() local 98 while (arg = *++argv, --argc) in main() 99 if (arg[0] == '-') { in main() 100 if (arg[1] == 'w' && arg[2] == 0) in main() 102 else if (arg[1] == 'f' && arg[2] == 0) in main() 104 else if (arg[1] >= '0' && arg[1] <= '9') in main() 105 skip = (unsigned)atoi(arg + 1); in main() 107 fprintf(stderr, "invalid option %s\n", arg); in main() 116 name = arg; in main()
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/settings/src/ |
A D | settings_runtime.c | 20 struct read_cb_arg *arg = (struct read_cb_arg *)cb_arg; in settings_runtime_read_cb() local 22 memcpy(data, arg->data, MIN(arg->len, len)); in settings_runtime_read_cb() 23 return MIN(arg->len, len); in settings_runtime_read_cb() 30 struct read_cb_arg arg; in settings_runtime_set() local 37 arg.data = data; in settings_runtime_set() 38 arg.len = len; in settings_runtime_set() 39 return ch->h_set(name_key, len, settings_runtime_read_cb, (void *)&arg); in settings_runtime_set()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/mbed/hal_ext/ |
A D | nfc_api.h | 47 typedef void (*nfc_read_cb)(void *arg, void *buf, unsigned int page); 48 typedef void(*nfc_write_cb)(void *arg, unsigned int page, uint32_t pgdat); 49 typedef void(*nfc_event_cb)(void *arg, unsigned int event); 50 typedef void(*nfc_cache_read_cb)(void *arg, void *buf, unsigned int page); 53 void nfc_read(nfctag_t *obj, nfc_read_cb handler, void *arg); 54 void nfc_write(nfctag_t *obj, nfc_write_cb handler, void *arg); 55 void nfc_event(nfctag_t *obj, nfc_event_cb handler, void *arg, unsigned int event_mask); 58 int nfc_cache_raed(nfctag_t *obj, nfc_cache_read_cb handler, void *arg, unsigned int start_pg);
|
/AliOS-Things-master/components/drivers/peripheral/uart/src/ |
A D | uart_dev.c | 29 void *arg; member 111 int bits = arg & CBAUD; in _arg_to_baudrate() 211 arg); in _arg_to_baudrate() 250 if (arg & PARENB) in _arg_to_parity() 252 else if (arg & PARODD) in _arg_to_parity() 260 int bits = arg & CSIZE; in _arg_to_data_width() 277 arg); in _arg_to_data_width() 437 uart_poll->arg = NULL; in uart_rx_notify() 482 uart_poll->arg = arg; in uart_device_poll() 491 (*notify)(fd, arg); in uart_device_poll() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/ |
A D | timeouts.h | 84 typedef void (* sys_timeout_handler)(void *arg); 90 void *arg; member 99 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_nam… 100 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) argument 102 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg); 105 void sys_untimeout(sys_timeout_handler handler, void *arg);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/ |
A D | timeouts.h | 84 typedef void (* sys_timeout_handler)(void *arg); 90 void *arg; member 99 void sys_timeout_debug(u32_t msecs, sys_timeout_handler handler, void *arg, const char* handler_nam… 100 #define sys_timeout(msecs, handler, arg) sys_timeout_debug(msecs, handler, arg, #handler) argument 102 void sys_timeout(u32_t msecs, sys_timeout_handler handler, void *arg); 105 void sys_untimeout(sys_timeout_handler handler, void *arg);
|
/AliOS-Things-master/components/lwip/lwip2.0.0/apps/iperf/ |
A D | iperf_cli.c | 43 static void iperf_udp_run_server_thread( void* arg ); 44 static void iperf_tcp_run_server_thread( void* arg ); 45 static void iperf_udp_run_client_thread( void* arg ); 46 static void iperf_tcp_run_client_thread( void* arg ); 60 static void iperf_udp_run_server_thread( void* arg ) in iperf_udp_run_server_thread() argument 62 iperf_udp_run_server( (char **) arg ); in iperf_udp_run_server_thread() 65 static void iperf_tcp_run_server_thread( void* arg ) in iperf_tcp_run_server_thread() argument 67 iperf_tcp_run_server( (char **) arg ); in iperf_tcp_run_server_thread() 70 static void iperf_udp_run_client_thread( void* arg ) in iperf_udp_run_client_thread() argument 72 iperf_udp_run_client( (char **) arg ); in iperf_udp_run_client_thread() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | rdswitch.c | 279 if (*arg) { in set_quality_ratings() 281 if (sscanf(arg, "%d%c", &val, &ch) < 1) in set_quality_ratings() 287 while (*arg && *arg++ != ',') /* advance to next segment of arg string */ in set_quality_ratings() 300 set_quant_slots (j_compress_ptr cinfo, char *arg) in set_quant_slots() argument 311 if (*arg) { in set_quant_slots() 313 if (sscanf(arg, "%d%c", &val, &ch) < 1) in set_quant_slots() 323 while (*arg && *arg++ != ',') /* advance to next segment of arg string */ in set_quant_slots() 335 set_sample_factors (j_compress_ptr cinfo, char *arg) in set_sample_factors() argument 345 if (*arg) { in set_sample_factors() 347 if (sscanf(arg, "%d%c%d%c", &val1, &ch1, &val2, &ch2) < 3) in set_sample_factors() [all …]
|
/AliOS-Things-master/components/SDL2/src/gfx/ |
A D | depcomp | 126 for arg 128 case $arg in 505 for arg 507 case $arg in 555 for arg 566 case "$arg" in 608 for arg 610 case $arg in 650 for arg 652 case "$arg" in [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testplatform.c | 151 static int TST_allmul (void *a, void *b, int arg, void *result, void *expected) in TST_allmul() argument 157 static int TST_alldiv (void *a, void *b, int arg, void *result, void *expected) in TST_alldiv() argument 163 static int TST_allrem (void *a, void *b, int arg, void *result, void *expected) in TST_allrem() argument 169 static int TST_ualldiv (void *a, void *b, int arg, void *result, void *expected) in TST_ualldiv() argument 181 static int TST_allshl (void *a, void *b, int arg, void *result, void *expected) in TST_allshl() argument 183 (*(long long *)result) = (*(long long *)a) << arg; in TST_allshl() 189 (*(unsigned long long *)result) = (*(unsigned long long *)a) << arg; in TST_aullshl() 193 static int TST_allshr (void *a, void *b, int arg, void *result, void *expected) in TST_allshr() argument 195 (*(long long *)result) = (*(long long *)a) >> arg; in TST_allshr() 201 (*(unsigned long long *)result) = (*(unsigned long long *)a) >> arg; in TST_aullshr() [all …]
|
/AliOS-Things-master/components/py_engine/tests/misc/ |
A D | sys_settrace_features.py | 36 def trace_tick(self, frame, event, arg): argument 46 def trace_tick_handler_alice(frame, event, arg): argument 48 __prof__.trace_tick(frame, event, arg) 55 def trace_tick_handler_bob(frame, event, arg): argument 57 __prof__.trace_tick(frame, event, arg) 61 def trace_tick_handler(frame, event, arg): argument 69 __prof__.trace_tick(frame, event, arg)
|
/AliOS-Things-master/components/websocket/include/ |
A D | librws.h | 40 #define DBG(format, arg...) LOGD(WEBSOC_TAG, format, ##arg) argument 41 #define WRN(format,arg...) LOGW(WEBSOC_TAG, format, ##arg) argument 42 #define ERR(format,arg...) LOGE(WEBSOC_TAG, format, ##arg) argument 44 #define DBG(format,arg...) LOGD(WEBSOC_TAG, format, ##arg) argument 45 #define WRN(format,arg...) LOGW(WEBSOC_TAG, format, ##arg) argument 46 #define ERR(format,arg...) LOGE(WEBSOC_TAG, format, ##arg) argument
|