Searched refs:count (Results 1 - 25 of 127) sorted by relevance

123456

/openwrt/package/network/services/ead/src/tinysrp/
H A Dt_truerand.c66 static unsigned volatile count variable
91 if (count) {
109 count ^= (count>>3) ^ (count>>6) ^ ocount;
110 count &= 0x7;
111 ocount=count;
112 buffer = (buffer<<3) ^ count;
119 count = 0;
126 count
[all...]
H A Dt_read.c53 int c, count = 0; local
62 if(count < max - 1) {
64 ++count;
68 return count;
H A Dt_sha.h18 uint32 count[2]; member in struct:__anon98
/openwrt/package/base-files/files/etc/uci-defaults/
H A D12_network-generate-ula5 r1=$(dd if=/dev/urandom bs=1 count=1 |hexdump -e '1/1 "%02x"')
6 r2=$(dd if=/dev/urandom bs=2 count=1 |hexdump -e '2/1 "%02x"')
7 r3=$(dd if=/dev/urandom bs=2 count=1 |hexdump -e '2/1 "%02x"')
/openwrt/package/network/services/ead/src/
H A Dlibbridge_init.c69 int i, count = 0; local
71 count = scandir(SYSFS_CLASS_NET, &namelist, isbridge, alphasort);
72 if (count < 0)
75 for (i = 0; i < count; i++) {
80 for (i = 0; i < count; i++)
84 return count;
103 int i, count; local
108 count = scandir(path, &namelist, 0, alphasort);
110 for (i = 0; i < count; i++) {
120 for (i = 0; i < count;
[all...]
/openwrt/target/linux/ipq806x/base-files/etc/hotplug.d/firmware/
H A D11-ath10k-caldata11 local count=$3
13 dd if=$source of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
20 local count=$3
27 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
36 macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=6 count=6
/openwrt/target/linux/lantiq/base-files/etc/hotplug.d/firmware/
H A D10-rt2x00-eeprom12 local count=$3
23 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=2 skip=$offset count=$count conv=swab || \
26 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
H A D11-ath10k-caldata20 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=2116 || \
28 conv=notrunc bs=1 seek=6 count=6
/openwrt/target/linux/brcm63xx/base-files/etc/hotplug.d/firmware/
H A D10-rt2x00-eeprom12 local count=$3
21 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count || \
/openwrt/target/linux/mpc85xx/base-files/etc/hotplug.d/firmware/
H A D10-ath9k-eeprom13 local count=$3
23 dd if=$mtd bs=$offset skip=1 count=1 2>/dev/null | dd of=$FW_FILE bs=$count count=1 2>/dev/null || \
38 macaddr_2bin $mac | dd bs=1 count=6 seek=2 conv=notrunc of=$FW_FILE 2>/dev/null
/openwrt/target/linux/ramips/base-files/lib/preinit/
H A D04_handle_checksumming20 dd if=$mtd of=$tmpfile bs=80 count=1 2>/dev/null
21 signature=$(dd if=$tmpfile bs=1 skip=24 count=20 2>/dev/null)
22 checksum=$(dd if=$tmpfile bs=1 count=4 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
30 dd if=$zeroes of=$tmpfile conv=notrunc bs=1 seek=0 count=4 2>/dev/null
32 dd if=$zeroes of=$tmpfile conv=notrunc bs=1 seek=60 count=4 2>/dev/null
46 local signature=$(dd if=$rootfs_mtd skip=$offset bs=1 count=4 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"')
48 dd conv=notrunc if=$rootfs_mtd skip=$offset of=$firmware_mtd bs=1 count=64 2>/dev/null
/openwrt/tools/firmware-utils/src/
H A Dsrec2bin.c292 int checksum(char *cp,int count) argument
306 cksum=count;
308 while(count)
311 if (count == 2)
314 count--;
352 int itmp,count,dat; local
367 count=gh(pSrecLine,2);
372 // printf("count %d, strlen(pSrecLine) = %d, pSrecLine =[%s]\n", count, strlen(pSrecLine), pSrecLine);
376 if ((count*
[all...]
H A Dencode_crc.c98 int count; // size of file in bytes local
99 char *p, *master = readfile(argv[1], &count);
108 for(z=0; z<count; z++)
123 for(z=0; z<count; z++) {
146 fwrite(master, count, sizeof(char), fp); // write content
/openwrt/target/linux/ramips/base-files/etc/hotplug.d/firmware/
H A D10-rt2x00-eeprom11 local count=$3
20 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
31 conv=notrunc bs=1 seek=4 count=6 2>/dev/null || \
/openwrt/tools/wrt350nv2-builder/src/
H A Dmd5.h68 md5_word_t count[2]; /* message length in bits, lsw first */ member in struct:md5_state_s
/openwrt/target/linux/ath25/base-files/lib/upgrade/
H A Dplatform.sh39 local md5_img=$(dd if="$1" bs=2 skip=9 count=16 2>/dev/null)
60 local kern_length=0x$(dd if="$1" bs=2 skip=1 count=4 2>/dev/null)
62 local root_blocks=$((0x$(dd if="$1" bs=2 skip=5 count=4 2>/dev/null) / $CI_BLKSZ))
72 ( dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null; \
73 dd if="$1" bs=$CI_BLKSZ skip=$((1+$kern_blocks)) count=$root_blocks 2>/dev/null ) | \
/openwrt/package/kernel/lantiq/ltq-hcd/src/
H A Difxusb_ctl.c243 static ssize_t procfs_version_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
271 static ssize_t procfs_dbglevel_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
280 static ssize_t procfs_dbglevel_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
294 return count;
311 static ssize_t sysfs_dbglevel_store( struct device *_dev, struct device_attribute *attr,const char *buffer, size_t count )
313 static ssize_t sysfs_dbglevel_store( struct device *_dev, const char *buffer, size_t count )
328 return count;
354 static ssize_t procfs_dump_params_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
359 static ssize_t procfs_dump_params_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
397 static ssize_t procfs_dump_params_show(char *buf, char **start, off_t offset, int count, in argument
441 procfs_mode_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
445 procfs_mode_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
485 procfs_mode_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
603 procfs_bandwidth_hs_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
607 procfs_bandwidth_fs_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
611 procfs_bandwidth_ls_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
615 procfs_bandwidth_hs_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
626 procfs_bandwidth_fs_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
637 procfs_bandwidth_ls_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
648 procfs_bandwidth_hs_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
652 procfs_bandwidth_fs_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
656 procfs_bandwidth_ls_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
660 procfs_bandwidth_hs_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
671 procfs_bandwidth_fs_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
682 procfs_bandwidth_ls_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
889 procfs_bandwidth_hs_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
893 procfs_bandwidth_fs_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
897 procfs_bandwidth_ls_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
901 procfs_bandwidth_hs_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
912 procfs_bandwidth_fs_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
923 procfs_bandwidth_ls_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1050 procfs_pkt_count_limit_bi_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1054 procfs_pkt_count_limit_bo_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1058 procfs_pkt_count_limit_bi_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1069 procfs_pkt_count_limit_bo_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1080 procfs_pkt_count_limit_bi_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1084 procfs_pkt_count_limit_bo_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1088 procfs_pkt_count_limit_bi_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1099 procfs_pkt_count_limit_bo_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1229 procfs_pkt_count_limit_bi_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1233 procfs_pkt_count_limit_bo_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1237 procfs_pkt_count_limit_bi_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1248 procfs_pkt_count_limit_bo_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1338 procfs_buspower_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1342 procfs_buspower_store_1(struct file *file, const char *buffer, unsigned long count, void *data) argument
1353 procfs_buspower_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1357 procfs_buspower_store_2(struct file *file, const char *buffer, unsigned long count, void *data) argument
1430 procfs_buspower_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1434 procfs_buspower_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
1490 procfs_bussuspend_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1494 procfs_bussuspend_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1523 procfs_bussuspend_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1557 procfs_busconnected_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1561 procfs_busconnected_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1590 procfs_busconnected_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1630 procfs_connectspeed_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1634 procfs_connectspeed_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1667 procfs_connectspeed_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1702 procfs_devspeed_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1727 procfs_enumspeed_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1760 procfs_dump_reg_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1765 procfs_dump_reg_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1800 procfs_dump_reg_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1836 procfs_dump_spram_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1841 procfs_dump_spram_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1877 procfs_dump_spram_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1904 procfs_dump_host_state_show_1(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1909 procfs_dump_host_state_show_2(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
1935 procfs_dump_host_state_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2021 procfs_suspend_host_2_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2049 procfs_suspend_host_1_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2080 procfs_suspend_host_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2145 procfs_probe_host_2_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2156 procfs_probe_host_2_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2184 procfs_probe_host_1_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2195 procfs_probe_host_1_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2235 procfs_probe_host_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2246 procfs_probe_host_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2328 procfs_suspend_device_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2379 procfs_probe_device_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2390 procfs_probe_device_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2427 procfs_autoprobe_timer2_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2439 procfs_autoprobe_timer2_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2472 procfs_autoprobe_timer1_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2484 procfs_autoprobe_timer1_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2517 procfs_probe_timer2_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2529 procfs_probe_timer2_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2562 procfs_probe_timer1_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2574 procfs_probe_timer1_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2611 procfs_autoprobe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2623 procfs_autoprobe_timer_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2655 procfs_probe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2667 procfs_probe_timer_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2706 procfs_autoprobe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2718 procfs_autoprobe_timer_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
2750 procfs_probe_timer_val_store(struct file *file, const char *buffer, unsigned long count, void *data) argument
2762 procfs_probe_timer_val_show(char *buf, char **start, off_t offset, int count, int *eof, void *data) argument
[all...]
/openwrt/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/
H A D11-ath10k-caldata11 local count=$3
13 dd if=$source of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
20 local count=$3
27 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
36 macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=6 count=6
H A D10-ath9k-eeprom17 local count=$3
24 dd if=$mtd of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
31 local count=$3
39 dd if=/dev/$ubi of=/lib/firmware/$FIRMWARE bs=1 skip=$offset count=$count 2>/dev/null || \
48 macaddr_2bin $mac | dd of=/lib/firmware/$FIRMWARE conv=notrunc bs=1 seek=2 count=6
/openwrt/target/linux/ar71xx/base-files/lib/upgrade/
H A Dopenmesh.sh102 img_board_target=$(trim $(dd if="$img_path" bs=4 skip=1 count=8 2>/dev/null))
103 img_num_files=$(trim $(dd if="$img_path" bs=2 skip=18 count=1 2>/dev/null))
118 cfg_name=$(trim $(dd if="$img_path" bs=2 skip=19 count=16 2>/dev/null))
125 kernel_name=$(trim $(dd if="$img_path" bs=2 skip=55 count=16 2>/dev/null))
132 rootfs_name=$(trim $(dd if="$img_path" bs=2 skip=91 count=16 2>/dev/null))
166 cfg_size=$(dd if="$img_path" bs=2 skip=35 count=4 2>/dev/null)
167 kernel_size=$(dd if="$img_path" bs=2 skip=71 count=4 2>/dev/null)
168 rootfs_size=$(dd if="$img_path" bs=2 skip=107 count=4 2>/dev/null)
170 img_board_target=$(trim $(dd if="$img_path" bs=4 skip=1 count=8 2>/dev/null))
171 cfg_content=$(dd if="$img_path" bs=1 skip=$data_offset count
[all...]
H A Ddir825.sh12 dd bs=1 count=2 skip=$pos if=$mtddev 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
73 local fw_length=0x$(dd if="$fw_file" bs=2 skip=1 count=4 2>/dev/null)
81 dd if="$fw_file" bs=64k skip=1 count=$fw_blocks 2>/dev/null | \
94 local md5_img=$(dd if="$1" bs=2 skip=9 count=16 2>/dev/null)
96 local fw_len=$(dd if="$1" bs=2 skip=1 count=4 2>/dev/null)
/openwrt/target/linux/mpc85xx/base-files/lib/upgrade/
H A Dplatform.sh16 dd if=$part bs=4 count=1 skip=81728 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
20 get_image "$@" | dd bs=4 count=1 skip=16 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
24 get_image "$@" | dd bs=4 count=1 skip=37 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"'
/openwrt/target/linux/cns3xxx/base-files/lib/upgrade/
H A Dplatform.sh40 local kern_length=0x$(dd if="$1" bs=2 skip=1 count=4 2>/dev/null)
42 local root_blocks=$((0x$(dd if="$1" bs=2 skip=5 count=4 2>/dev/null) / $CI_BLKSZ))
59 dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null | mtd write - kernel
60 dd if="$1" bs=$CI_BLKSZ skip=$((1+$kern_blocks)) count=$root_blocks 2>/dev/null | \
81 local md5_img=$(dd if="$1" bs=2 skip=9 count=16 2>/dev/null)
/openwrt/target/linux/ixp4xx/base-files/lib/upgrade/
H A Dplatform.sh54 local kern_length=0x$(dd if="$1" bs=2 skip=1 count=4 2>/dev/null)
56 local root_blocks=$((0x$(dd if="$1" bs=2 skip=5 count=4 2>/dev/null) / $CI_BLKSZ))
78 dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null | \
81 dd if="$1" bs=$CI_BLKSZ skip=$((1+$kern_blocks)) count=$root_blocks 2>/dev/null | \
94 local kern_length=0x$(dd if="$1" bs=2 skip=1 count=4 2>/dev/null)
112 local md5_img=$(dd if="$1" bs=2 skip=9 count=16 2>/dev/null)
/openwrt/package/system/mtd/src/
H A Dlinksys_bootcount.c41 uint32_t count; member in struct:bootcounter
77 last_count = curr->count;
80 /* no need to do writes when last boot count is already 0 */
103 curr->count = 0;

Completed in 111 milliseconds

123456