| /components/drivers/usb/cherryusb/common/ |
| A D | usb_log.h | 106 unsigned int i, j; in usb_hexdump() local 113 for (j = 0; j < 16; j++) in usb_hexdump() 114 if (i + j < buflen) { in usb_hexdump() 115 if ((j % 8) == 0) { in usb_hexdump() 119 CONFIG_USB_PRINTF("%02X ", buf[i + j]); in usb_hexdump() 124 for (j = 0; j < 16; j++) in usb_hexdump() 125 if (i + j < buflen) in usb_hexdump() 126 CONFIG_USB_PRINTF("%c", ___is_print(buf[i + j]) ? buf[i + j] : '.'); in usb_hexdump()
|
| /components/net/at/src/ |
| A D | at_utils.c | 28 rt_size_t i, j; in at_print_raw_cmd() local 33 for (j = 0; j < WIDTH_SIZE; j++) in at_print_raw_cmd() 35 if (i + j < size) in at_print_raw_cmd() 37 rt_kprintf("%02X ", (unsigned char)buf[i + j]); in at_print_raw_cmd() 43 if ((j + 1) % 8 == 0) in at_print_raw_cmd() 49 for (j = 0; j < WIDTH_SIZE; j++) in at_print_raw_cmd() 51 if (i + j < size) in at_print_raw_cmd() 53 rt_kprintf("%c", __is_print(buf[i + j]) ? buf[i + j] : '.'); in at_print_raw_cmd()
|
| /components/dfs/dfs_v2/filesystems/procfs/ |
| A D | proc_pid.c | 387 for (int j = 0; j < sizeof(pid_dentry_base) / sizeof(struct pid_dentry); j++) in proc_pid() local 389 if (S_ISDIR(pid_dentry_base[j].mode)) in proc_pid() 391 ent = proc_mkdir_data(pid_dentry_base[j].name, pid_dentry_base[j].mode, dentry, in proc_pid() 392 pid_dentry_base[j].fops, pid_dentry_base[j].data); in proc_pid() 398 pid_dentry_base[j].data = "NULL"; in proc_pid() 401 ent = proc_symlink(pid_dentry_base[j].name, dentry, pid_dentry_base[j].data); in proc_pid() 405 ent = proc_create_data(pid_dentry_base[j].name, pid_dentry_base[j].mode, dentry, in proc_pid() 406 pid_dentry_base[j].fops, pid_dentry_base[j].data); in proc_pid() 411 if (pid_dentry_base[j].ops) in proc_pid() 416 if (pid_dentry_base[j].seq_ops) in proc_pid() [all …]
|
| /components/drivers/spi/sfud/src/ |
| A D | sfud_sfdp.c | 192 uint8_t table[BASIC_TABLE_LEN * 4] = { 0 }, i, j; in read_basic_table() local 307 for (i = 0, j = 0; i < SFUD_SFDP_ERASE_TYPE_MAX_NUM; i++) { in read_basic_table() 309 sfdp->eraser[j].size = 1L << table[28 + 2 * i]; in read_basic_table() 310 sfdp->eraser[j].cmd = table[28 + 2 * i + 1]; in read_basic_table() 312 sfdp->eraser[j].cmd); in read_basic_table() 313 j++; in read_basic_table() 319 for (j = i + 1; j < SFUD_SFDP_ERASE_TYPE_MAX_NUM; j++) { in read_basic_table() 320 if (sfdp->eraser[j].size != 0 && sfdp->eraser[i].size > sfdp->eraser[j].size) { in read_basic_table() 325 sfdp->eraser[i].cmd = sfdp->eraser[j].cmd; in read_basic_table() 326 sfdp->eraser[j].size = temp_size; in read_basic_table() [all …]
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/polarssl/ |
| A D | arc4.c | 50 int i, j, k, a; in arc4_setup() local 60 j = k = 0; in arc4_setup() 67 j = ( j + a + key[k] ) & 0xFF; in arc4_setup() 68 m[i] = m[j]; in arc4_setup() 69 m[j] = (unsigned char) a; in arc4_setup()
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/polarssl/ |
| A D | arc4.c | 50 int i, j, k, a; in arc4_setup() local 60 j = k = 0; in arc4_setup() 67 j = ( j + a + key[k] ) & 0xFF; in arc4_setup() 68 m[i] = m[j]; in arc4_setup() 69 m[j] = (unsigned char) a; in arc4_setup()
|
| /components/net/lwip/lwip-1.4.1/src/core/ |
| A D | memp.c | 283 u16_t i, j; in memp_overflow_check_all() local 289 for (j = 0; j < memp_num[i]; ++j) { in memp_overflow_check_all() 297 for (j = 0; j < memp_num[i]; ++j) { in memp_overflow_check_all() 310 u16_t i, j; in memp_overflow_init() local 317 for (j = 0; j < memp_num[i]; ++j) { in memp_overflow_init() 341 u16_t i, j; in memp_init() local 360 for (j = 0; j < memp_num[i]; ++j) { in memp_init()
|
| /components/fal/src/ |
| A D | fal_flash.c | 38 rt_size_t i, j, offset; in fal_flash_init() local 59 for (j = 0; j < FAL_DEV_BLK_MAX; j ++) in fal_flash_init() 61 const struct flash_blk *blk = &device_table[i]->blocks[j]; in fal_flash_init() 74 j, device_table[i]->addr + offset, blk_len, blk->size); in fal_flash_init()
|
| A D | fal_rtt.c | 573 rt_size_t i = 0, j = 0; in fal() local 680 for (j = 0; j < HEXDUMP_WIDTH; j++) in fal() 682 if (i + j < size) in fal() 684 rt_kprintf("%02X ", data[i + j]); in fal() 692 for (j = 0; j < HEXDUMP_WIDTH; j++) in fal() 694 if (i + j < size) in fal() 696 … rt_kprintf("%c", __is_print(data[i + j]) ? data[i + j] : '.'); in fal()
|
| /components/net/lwip/lwip-1.4.1/src/netif/ppp/ |
| A D | chpms.c | 248 int j, c; in Expand() local 253 for(j = 7; j >= 0; j--) { in Expand() 254 *out++ = (c >> j) & 01; in Expand() 265 int j; in Collapse() local 271 for (j = 7; j >= 0; j--, in++) { in Collapse() 272 c |= *in << j; in Collapse()
|
| /components/drivers/hwcrypto/ |
| A D | hw_bignum.c | 125 int cp_len, i, j; in rt_hwcrypto_bignum_export_bin() local 133 for(i = cp_len, j = 0; i > 0; i--, j++) in rt_hwcrypto_bignum_export_bin() 135 buf[i - 1] = n->p[j]; in rt_hwcrypto_bignum_export_bin() 152 int cp_len, i, j; in rt_hwcrypto_bignum_import_bin() local 175 for(i = cp_len, j = 0; i > 0; i--, j++) in rt_hwcrypto_bignum_import_bin() 177 n->p[j] = buf[i - 1]; in rt_hwcrypto_bignum_import_bin()
|
| /components/net/lwip/lwip-1.4.1/src/core/snmp/ |
| A D | mib_structs.c | 740 u8_t j; in snmp_expand_tree() local 746 j = (u8_t)i + 1; in snmp_expand_tree() 747 while ((j < an->maxlength) && (empty_table(an->nptr[j]))) in snmp_expand_tree() 749 j++; in snmp_expand_tree() 784 u8_t j; in snmp_expand_tree() local 786 j = 0; in snmp_expand_tree() 787 while ((j < an->maxlength) && empty_table(an->nptr[j])) in snmp_expand_tree() 789 j++; in snmp_expand_tree() 983 u8_t j; in snmp_expand_tree() local 989 j = (u8_t)i + 1; in snmp_expand_tree() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/httpd/makefsdata/ |
| A D | makefsdata | 58 for($j = 0; $j < length($file); $j++) { 59 printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1)));
|
| /components/net/lwip/lwip-2.1.2/src/apps/http/makefsdata/ |
| A D | makefsdata | 58 for($j = 0; $j < length($file); $j++) { 59 printf(OUTPUT "%#02x, ", unpack("C", substr($file, $j, 1)));
|
| /components/drivers/mtd/ |
| A D | mtd_nand.c | 168 int i, j; in mtd_dump_hex() local 172 for (j = 0; j < 16; j++) in mtd_dump_hex() 173 if (i + j < buflen) in mtd_dump_hex() 174 rt_kprintf("%02x ", buf[i + j]); in mtd_dump_hex() 178 for (j = 0; j < 16; j++) in mtd_dump_hex() 179 if (i + j < buflen) in mtd_dump_hex() 180 rt_kprintf("%c", __is_print(buf[i + j]) ? buf[i + j] : '.'); in mtd_dump_hex()
|
| /components/drivers/usb/cherryusb/class/audio/ |
| A D | usbh_audio.c | 76 for (uint8_t j = 1; j < audio_class->as_msg_table[i].num_of_altsetting; j++) { in usbh_audio_open() local 77 if (audio_class->as_msg_table[i].as_format[j].bBitResolution == bitresolution) { in usbh_audio_open() 78 … for (uint8_t k = 0; k < audio_class->as_msg_table[i].as_format[j].bSamFreqType; k++) { in usbh_audio_open() 81 … memcpy(&freq, &audio_class->as_msg_table[i].as_format[j].tSamFreq[3 * k], 3); in usbh_audio_open() 83 altsetting = j; in usbh_audio_open() 358 for (uint8_t j = 0; j < audio_class->as_msg_table[i].num_of_altsetting; j++) { in usbh_audio_list_module() local 359 if (j == 0) { in usbh_audio_list_module() 363 USB_LOG_RAW("\t\tAltsetting :%u\r\n", j); in usbh_audio_list_module() 364 … USB_LOG_RAW("\t\t\tbNrChannels :%u\r\n", audio_class->as_msg_table[i].as_format[j].bNrChannels); in usbh_audio_list_module() 368 for (uint8_t k = 0; k < audio_class->as_msg_table[i].as_format[j].bSamFreqType; k++) { in usbh_audio_list_module() [all …]
|
| /components/net/lwip/lwip-2.0.3/src/core/ipv6/ |
| A D | nd6.c | 812 for (j = 1; j < LWIP_IPV6_NUM_ADDRESSES; j++) { in nd6_tmr() 838 for (j = 1; j < LWIP_IPV6_NUM_ADDRESSES; j++) { in nd6_tmr() 1151 s8_t j; in nd6_new_neighbor_cache_entry() local 1193 j = -1; in nd6_new_neighbor_cache_entry() 1205 return j; in nd6_new_neighbor_cache_entry() 1210 j = -1; in nd6_new_neighbor_cache_entry() 1224 return j; in nd6_new_neighbor_cache_entry() 1229 j = -1; in nd6_new_neighbor_cache_entry() 1307 s8_t i, j; in nd6_new_destination_cache_entry() local 1322 j = i; in nd6_new_destination_cache_entry() [all …]
|
| /components/drivers/usb/cherryusb/core/ |
| A D | usbh_core.c | 307 for (uint8_t j = 0; j < hport->config.intf[i].altsetting_num; j++) { in usbh_print_hubport_info() local 309 …USB_LOG_RAW("\tbLength: 0x%02x \r\n", hport->config.intf[i].altsetting[j].intf_desc.bLe… in usbh_print_hubport_info() 310 …USB_LOG_RAW("\tbDescriptorType: 0x%02x \r\n", hport->config.intf[i].altsetting[j].intf_desc.bDe… in usbh_print_hubport_info() 313 …USB_LOG_RAW("\tbNumEndpoints: 0x%02x \r\n", hport->config.intf[i].altsetting[j].intf_desc.bNu… in usbh_print_hubport_info() 314 …USB_LOG_RAW("\tbInterfaceClass: 0x%02x \r\n", hport->config.intf[i].altsetting[j].intf_desc.bIn… in usbh_print_hubport_info() 317 …USB_LOG_RAW("\tiInterface: 0x%02x \r\n", hport->config.intf[i].altsetting[j].intf_desc.iIn… in usbh_print_hubport_info() 319 … for (uint8_t k = 0; k < hport->config.intf[i].altsetting[j].intf_desc.bNumEndpoints; k++) { in usbh_print_hubport_info() 744 uint16_t j = 0; in usbh_get_string_desc() local 767 dst[j] = src[i]; in usbh_get_string_desc() 769 j++; in usbh_get_string_desc() [all …]
|
| /components/lwp/arch/risc-v/rv64/ |
| A D | lwp_gcc.S | 85 j arch_ret_to_user_impl 132 j arch_signal_quit_ret_to_user 240 j arch_syscall_exit 251 j __move_stack_context 289 j arch_syscall_exit 300 j arch_ret_to_user
|
| /components/drivers/usb/cherryusb/class/video/ |
| A D | usbh_video.c | 171 for (uint8_t j = 0; j < video_class->format[i].num_of_frames; j++) { in usbh_video_open() local 172 if ((wWidth == video_class->format[i].frame[j].wWidth) && in usbh_video_open() 173 (wHeight == video_class->format[i].frame[j].wHeight)) { in usbh_video_open() 174 frameidx = j + 1; in usbh_video_open() 351 for (uint8_t j = 0; j < video_class->format[i].num_of_frames; j++) { in usbh_video_list_info() local 352 USB_LOG_RAW(" FrameIndex:%u\r\n", j + 1); in usbh_video_list_info() 354 video_class->format[i].frame[j].wWidth, in usbh_video_list_info() 355 video_class->format[i].frame[j].wHeight); in usbh_video_list_info()
|
| /components/drivers/wlan/ |
| A D | dev_wlan_cfg.c | 135 int len = 0, i, j; in rt_wlan_cfg_cache_refresh() local 196 for (j = 0; j < cfg_cache->num; j++) in rt_wlan_cfg_cache_refresh() 198 if ((cfg_cache->cfg_info[j].info.ssid.len == cfg_info[i].info.ssid.len) && in rt_wlan_cfg_cache_refresh() 199 … (rt_memcmp(&cfg_cache->cfg_info[j].info.ssid.val[0], &cfg_info[i].info.ssid.val[0], in rt_wlan_cfg_cache_refresh() 200 cfg_cache->cfg_info[j].info.ssid.len) == 0) && in rt_wlan_cfg_cache_refresh() 201 …(rt_memcmp(&cfg_cache->cfg_info[j].info.bssid[0], &cfg_info[i].info.bssid[0], RT_WLAN_BSSID_MAX_LE… in rt_wlan_cfg_cache_refresh()
|
| /components/net/lwip/lwip-2.1.2/src/core/ipv6/ |
| A D | nd6.c | 1052 for (j = 0; j < LWIP_ND6_NUM_DESTINATIONS; j++) { in nd6_tmr() 1443 s8_t j; in nd6_new_neighbor_cache_entry() local 1485 j = -1; in nd6_new_neighbor_cache_entry() 1497 return j; in nd6_new_neighbor_cache_entry() 1502 j = -1; in nd6_new_neighbor_cache_entry() 1516 return j; in nd6_new_neighbor_cache_entry() 1521 j = -1; in nd6_new_neighbor_cache_entry() 1533 return j; in nd6_new_neighbor_cache_entry() 1617 j = i; in nd6_new_destination_cache_entry() 1621 return j; in nd6_new_destination_cache_entry() [all …]
|
| /components/utilities/ulog/ |
| A D | ulog.c | 169 rt_size_t i = 0, j = 0, len = 0; in ulog_ultoa() local 178 for (i = 0, j = len - 1; i < j; ++i, --j) in ulog_ultoa() 181 s[i] = s[j]; in ulog_ultoa() 182 s[j] = swap; in ulog_ultoa() 456 static rt_size_t log_len, j; local 477 for (j = 0; j < width; j++) 479 if (j < size) 481 rt_snprintf(dump_string, sizeof(dump_string), "%02X ", buf[j]); 488 if ((j + 1) % 8 == 0) 495 for (j = 0; j < size; j++) [all …]
|
| /components/net/lwip/lwip-2.0.3/src/apps/snmp/ |
| A D | snmpv3_mbedtls.c | 152 size_t j; in snmpv3_crypt() local 156 for (j = 0; j < LWIP_ARRAYSIZE(in_bytes); j++) { in snmpv3_crypt() 157 snmp_pbuf_stream_read(&read_stream, &in_bytes[j]); in snmpv3_crypt()
|
| /components/net/lwip/lwip-2.1.2/src/apps/snmp/ |
| A D | snmpv3_mbedtls.c | 152 size_t j; in snmpv3_crypt() local 156 for (j = 0; j < LWIP_ARRAYSIZE(in_bytes); j++) { in snmpv3_crypt() 157 if (snmp_pbuf_stream_read(&read_stream, &in_bytes[j]) != ERR_OK) { in snmpv3_crypt()
|