Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 307) sorted by relevance

12345678910>>...13

/linux-2.4.37.9/net/wanrouter/
Dwanproc.c283 int cnt = sizeof(conf_hdr) - 1; in config_get_info() local
287 wandev && (cnt < (PROC_BUFSZ - 120)); in config_get_info()
289 if (wandev->state) cnt += sprintf(&buf[cnt], in config_get_info()
303 return cnt; in config_get_info()
313 int cnt = 0; in status_get_info() local
317 strcpy(&buf[cnt], stat_hdr); in status_get_info()
318 cnt += sizeof(stat_hdr) - 1; in status_get_info()
321 wandev && (cnt < (PROC_BUFSZ - 80)); in status_get_info()
324 cnt += sprintf(&buf[cnt], in status_get_info()
342 cnt += sprintf(&buf[cnt], "%-12s\n", "unconfigured"); in status_get_info()
[all …]
/linux-2.4.37.9/fs/
Ddquot.c378 int cnt; in vfs_quota_sync() local
407 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in vfs_quota_sync()
408 if ((cnt == type || type == -1) && sb_has_quota_enabled(sb, cnt)) in vfs_quota_sync()
409 dqopt->info[cnt].dqi_flags &= ~DQF_ANY_DQUOT_DIRTY; in vfs_quota_sync()
410 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in vfs_quota_sync()
411 if ((cnt == type || type == -1) && sb_has_quota_enabled(sb, cnt) && info_dirty(&dqopt->info[cnt])) in vfs_quota_sync()
412 dqopt->ops[cnt]->write_file_info(sb, cnt); in vfs_quota_sync()
421 int cnt, dirty; in get_super_to_sync() local
428 for (cnt = 0, dirty = 0; cnt < MAXQUOTAS; cnt++) in get_super_to_sync()
429 if ((type == cnt || type == -1) && sb_has_quota_enabled(sb, cnt) in get_super_to_sync()
[all …]
/linux-2.4.37.9/net/8021q/
Dvlanproc.c277 static int vlan_proc_get_vlan_info(char* buf, unsigned int cnt) in vlan_proc_get_vlan_info() argument
286 printk(VLAN_DBG __FUNCTION__ ": cnt == %i\n", cnt); in vlan_proc_get_vlan_info()
301 cnt += sprintf(buf + cnt, "Name-Type: %s\n", nm_type); in vlan_proc_get_vlan_info()
311 if ((cnt + 100) > VLAN_PROC_BUFSZ) { in vlan_proc_get_vlan_info()
312 if ((cnt+strlen(term_msg)) < VLAN_PROC_BUFSZ) in vlan_proc_get_vlan_info()
313 cnt += sprintf(buf+cnt, "%s", term_msg); in vlan_proc_get_vlan_info()
319 cnt += sprintf(buf + cnt, "%-15s| %d | %s\n", in vlan_proc_get_vlan_info()
329 return cnt; in vlan_proc_get_vlan_info()
359 int cnt = 0; in vlandev_get_info() local
367 cnt += sprintf(buf + cnt, "%s VID: %d REORDER_HDR: %i dev->priv_flags: %hx\n", in vlandev_get_info()
[all …]
/linux-2.4.37.9/arch/ia64/lib/
Dmemset.S25 #define cnt in2 macro
67 cmp.eq p_scr, p0 = cnt, r0
82 cmp.gt p_scr, p0 = 16, cnt // is it a minimalistic task?
91 (p_y) add cnt = -8, cnt //
98 (p_yy) add cnt = -4, cnt //
106 (p_y) add cnt = -2, cnt //
116 cmp.gt p_scr, p0 = tmp, cnt // is it a minimalistic task?
118 (p_yy) add cnt = -1, cnt //
124 shr.u linecnt = cnt, LSIZE_SH
130 and tmp = -(LINE_SIZE), cnt // compute end of range
[all …]
Dmemcpy.S46 # define cnt r16 macro
85 shr.u cnt=in2,3 // number of 8-byte words to copy
89 adds cnt=-1,cnt // br.ctop is repeat/until
95 mov ar.lc=cnt
137 adds cnt=-1,in2 // br.ctop is repeat/until
141 mov ar.lc=cnt
221 mov cnt=r0
226 (p3) adds cnt=1,cnt
230 (p4) adds cnt=2,cnt
233 (p5) adds cnt=4,cnt
[all …]
/linux-2.4.37.9/arch/mips/ite-boards/generic/
Dputs.c113 int cnt; in put64() local
116 cnt = 16; /* 16 nibbles in a 64 bit long */ in put64()
120 cnt--; in put64()
121 ch = (unsigned char) (ul >> cnt * 4) & 0x0F; in put64()
123 } while (cnt > 0); in put64()
128 int cnt; in put32() local
131 cnt = 8; /* 8 nibbles in a 32 bit long */ in put32()
135 cnt--; in put32()
136 ch = (unsigned char) (u >> cnt * 4) & 0x0F; in put32()
138 } while (cnt > 0); in put32()
/linux-2.4.37.9/arch/mips/au1000/common/
Dputs.c118 int cnt; in put64() local
121 cnt = 16; /* 16 nibbles in a 64 bit long */ in put64()
125 cnt--; in put64()
126 ch = (unsigned char)(ul >> cnt * 4) & 0x0F; in put64()
128 } while (cnt > 0); in put64()
134 int cnt; in put32() local
137 cnt = 8; /* 8 nibbles in a 32 bit long */ in put32()
141 cnt--; in put32()
142 ch = (unsigned char)(u >> cnt * 4) & 0x0F; in put32()
144 } while (cnt > 0); in put32()
/linux-2.4.37.9/arch/mips/jmr3927/common/
Dputs.c141 int cnt; in put64() local
144 cnt = 16; /* 16 nibbles in a 64 bit long */ in put64()
148 cnt--; in put64()
149 ch = (unsigned char)(ul >> cnt * 4) & 0x0F; in put64()
151 } while (cnt > 0); in put64()
157 int cnt; in put32() local
160 cnt = 8; /* 8 nibbles in a 32 bit long */ in put32()
164 cnt--; in put32()
165 ch = (unsigned char)(u >> cnt * 4) & 0x0F; in put32()
167 } while (cnt > 0); in put32()
/linux-2.4.37.9/arch/mips/galileo-boards/ev96100/
Dputs.c112 int cnt; in put64() local
115 cnt = 16; /* 16 nibbles in a 64 bit long */ in put64()
119 cnt--; in put64()
120 ch = (unsigned char) (ul >> cnt * 4) & 0x0F; in put64()
122 } while (cnt > 0); in put64()
127 int cnt; in put32() local
130 cnt = 8; /* 8 nibbles in a 32 bit long */ in put32()
134 cnt--; in put32()
135 ch = (unsigned char) (u >> cnt * 4) & 0x0F; in put32()
137 } while (cnt > 0); in put32()
/linux-2.4.37.9/arch/sh/stboards/
Dled.c35 static unsigned cnt = 0, period = 0, dist = 0; in heartbeat_harp() local
37 if (cnt == 0 || cnt == dist) in heartbeat_harp()
39 else if (cnt == 7 || cnt == dist+7) in heartbeat_harp()
42 if (++cnt > period) { in heartbeat_harp()
43 cnt = 0; in heartbeat_harp()
/linux-2.4.37.9/arch/sh/kernel/
Dled_bigsur.c37 static unsigned cnt = 0, period = 0, dist = 0; in heartbeat_bigsur() local
39 if (cnt == 0 || cnt == dist) in heartbeat_bigsur()
41 else if (cnt == 7 || cnt == dist+7) in heartbeat_bigsur()
44 if (++cnt > period) { in heartbeat_bigsur()
45 cnt = 0; in heartbeat_bigsur()
/linux-2.4.37.9/arch/sh/overdrive/
Dled.c42 static unsigned cnt = 0, period = 0, dist = 0; in heartbeat_od() local
44 if (cnt == 0 || cnt == dist) in heartbeat_od()
46 else if (cnt == 7 || cnt == dist+7) in heartbeat_od()
49 if (++cnt > period) { in heartbeat_od()
50 cnt = 0; in heartbeat_od()
/linux-2.4.37.9/arch/ppc/amiga/
Dtime.c39 static unsigned cnt = 0, period = 0, dist = 0; in apus_heartbeat() local
41 if (cnt == 0 || cnt == dist) in apus_heartbeat()
43 else if (cnt == 7 || cnt == dist+7) in apus_heartbeat()
46 if (++cnt > period) { in apus_heartbeat()
47 cnt = 0; in apus_heartbeat()
/linux-2.4.37.9/arch/sh64/kernel/
Dled.c48 static unsigned int cnt = 0, period = 0, dist = 0; in heartbeat() local
50 if (cnt == 0 || cnt == dist) { in heartbeat()
52 } else if (cnt == 7 || cnt == dist + 7) { in heartbeat()
56 if (++cnt > period) { in heartbeat()
57 cnt = 0; in heartbeat()
/linux-2.4.37.9/drivers/pci/
Dproc.c52 unsigned int cnt, size; in proc_bus_pci_read() local
73 cnt = nbytes; in proc_bus_pci_read()
75 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read()
78 if ((pos & 1) && cnt) { in proc_bus_pci_read()
84 cnt--; in proc_bus_pci_read()
87 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
93 cnt -= 2; in proc_bus_pci_read()
96 while (cnt >= 4) { in proc_bus_pci_read()
102 cnt -= 4; in proc_bus_pci_read()
105 if (cnt >= 2) { in proc_bus_pci_read()
[all …]
/linux-2.4.37.9/drivers/net/
Dapne.c372 int cnt; in apne_get_8390_hdr() local
395 for(cnt = 0; cnt < (sizeof(struct e8390_pkt_hdr)>>1); cnt++) in apne_get_8390_hdr()
399 for(cnt = 0; cnt < sizeof(struct e8390_pkt_hdr); cnt++) in apne_get_8390_hdr()
421 int cnt; in apne_block_input() local
440 for (cnt = 0; cnt < (count>>1); cnt++) in apne_block_input()
447 for (cnt = 0; cnt < count; cnt++) in apne_block_input()
463 int cnt; in apne_block_output() local
493 for (cnt = 0; cnt < count>>1; cnt++) in apne_block_output()
497 for (cnt = 0; cnt < count; cnt++) in apne_block_output()
/linux-2.4.37.9/arch/ppc64/kernel/
Dlmb.c44 for (i=r2; i < rgn->cnt-1 ;i++) { in lmb_coalesce_regions()
50 rgn->cnt--; in lmb_coalesce_regions()
67 _lmb->memory.cnt = 1; in lmb_init()
73 _lmb->reserved.cnt = 1; in lmb_init()
90 for (i=0; i < _lmb->memory.cnt ;i++) { in lmb_analyze()
110 for (i=0; i < _lmb->memory.cnt ;i++) { in lmb_analyze()
180 for (i=0; i < rgn->cnt ;i++) { in lmb_add_region()
203 if ((i < rgn->cnt-1) && lmb_regions_adjacent(rgn, i, i+1) ) { in lmb_add_region()
210 } else if ( rgn->cnt >= MAX_LMB_REGIONS ) { in lmb_add_region()
215 for (i=rgn->cnt-1; i >= 0 ;i--) { in lmb_add_region()
[all …]
/linux-2.4.37.9/drivers/input/
Duinput.c138 unsigned int cnt; in uinput_validate_absbits() local
141 for (cnt = 0; cnt < ABS_MAX; cnt++) { in uinput_validate_absbits()
142 if (!test_bit(cnt, dev->absbit)) in uinput_validate_absbits()
146 (dev->absmax[cnt] <= dev->absmin[cnt])) { in uinput_validate_absbits()
149 UINPUT_NAME, cnt, in uinput_validate_absbits()
150 dev->absmin[cnt], dev->absmax[cnt]); in uinput_validate_absbits()
155 if ((dev->absflat[cnt] < dev->absmin[cnt]) || in uinput_validate_absbits()
156 (dev->absflat[cnt] > dev->absmax[cnt])) { in uinput_validate_absbits()
160 UINPUT_NAME, cnt, dev->absflat[cnt], in uinput_validate_absbits()
161 dev->absmin[cnt], dev->absmax[cnt]); in uinput_validate_absbits()
/linux-2.4.37.9/drivers/block/
Damiflop.c488 int cnt; in fd_seek() local
509 cnt = unit[drive].track/2 - track/2; in fd_seek()
514 if (cnt < 0) { in fd_seek()
515 cnt = - cnt; in fd_seek()
522 if (cnt == 0) { in fd_seek()
534 } while (--cnt != 0); in fd_seek()
832 int cnt, to_cnt = 0; in encode_block() local
836 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
837 data = src[cnt] >> 1; in encode_block()
842 for (cnt = 0; cnt < len / 4; cnt++) { in encode_block()
[all …]
/linux-2.4.37.9/fs/hfsplus/
Dbfind.c126 int hfsplus_btree_move(struct hfsplus_find_data *fd, int cnt) in hfsplus_btree_move() argument
136 if (cnt < -0xFFFF || cnt > 0xFFFF) in hfsplus_btree_move()
139 if (cnt < 0) { in hfsplus_btree_move()
140 cnt = -cnt; in hfsplus_btree_move()
141 while (cnt > fd->record) { in hfsplus_btree_move()
142 cnt -= fd->record + 1; in hfsplus_btree_move()
156 fd->record -= cnt; in hfsplus_btree_move()
158 while (cnt >= bnode->num_recs - fd->record) { in hfsplus_btree_move()
159 cnt -= bnode->num_recs - fd->record; in hfsplus_btree_move()
173 fd->record += cnt; in hfsplus_btree_move()
/linux-2.4.37.9/drivers/net/bonding/
Dbonding.h106 #define bond_for_each_slave_from(bond, pos, cnt, start) \ argument
107 for (cnt = 0, pos = start; \
108 cnt < (bond)->slave_cnt; \
109 cnt++, pos = (pos)->next)
121 #define bond_for_each_slave_from_to(bond, pos, cnt, start, stop) \ argument
122 for (cnt = 0, pos = start; \
123 ((cnt < (bond)->slave_cnt) && (pos != (stop)->next)); \
124 cnt++, pos = (pos)->next)
134 #define bond_for_each_slave(bond, pos, cnt) \ argument
135 bond_for_each_slave_from(bond, pos, cnt, (bond)->first_slave)
/linux-2.4.37.9/arch/m68k/kernel/
Dtime.c68 static unsigned cnt = 0, period = 0, dist = 0; in timer_interrupt() local
70 if (cnt == 0 || cnt == dist) in timer_interrupt()
72 else if (cnt == 7 || cnt == dist+7) in timer_interrupt()
75 if (++cnt > period) { in timer_interrupt()
76 cnt = 0; in timer_interrupt()
/linux-2.4.37.9/drivers/sound/
Drme96xx.c623 int cnt; in rme96xx_getospace() local
629 cnt = (hwp - swptr); in rme96xx_getospace()
631 if (cnt < 0) { in rme96xx_getospace()
632 cnt = ((dma->s->fragsize<<1) - swptr); in rme96xx_getospace()
635 return cnt; in rme96xx_getospace()
640 int cnt; in rme96xx_getispace() local
646 cnt = (hwp - swptr); in rme96xx_getispace()
648 if (cnt < 0) { in rme96xx_getispace()
649 cnt = ((dma->s->fragsize<<1) - swptr); in rme96xx_getispace()
652 return cnt; in rme96xx_getispace()
[all …]
/linux-2.4.37.9/arch/mips/sgi-ip22/
Dip22-mc.c49 int i, j, found, cnt = 0; in probe_memory() local
59 bank[cnt].size = get_bank_size(tmp); in probe_memory()
60 bank[cnt].addr = get_bank_addr(tmp); in probe_memory()
62 i, bank[cnt].size / 1024 / 1024, bank[cnt].addr); in probe_memory()
63 cnt++; in probe_memory()
71 for (i = 1; i < cnt; i++) in probe_memory()
84 for (i = 0; i < cnt; i++) { in probe_memory()
/linux-2.4.37.9/drivers/telephony/
Dixj.c316 for(cnt=0; cnt<IXJMAX; cnt++) in ixj_alloc()
318 if(ixj[cnt] == NULL || !ixj[cnt]->DSPbase) in ixj_alloc()
323 ixj[cnt] = j; in ixj_alloc()
367 int cnt; in ixj_alloc() local
368 for(cnt=0; cnt<IXJMAX; cnt++) in ixj_alloc()
370 if(!ixj[cnt].DSPbase) in ixj_alloc()
372 return &ixj[cnt]; in ixj_alloc()
797 int cnt; in ixj_register() local
802 for (cnt = 0; cnt < IXJMAX; cnt++) { in ixj_register()
803 IXJ *j = get_ixj(cnt); in ixj_register()
[all …]

12345678910>>...13