Searched defs:counter (Results 1 - 25 of 120) sorted by relevance

12345

/drivers/net/wireless/prism54/
H A Disl_38xx.c115 u32 counter = 0; local
146 counter++;
157 "%08li.%08li Device asleep counter %i\n",
159 counter);
H A Dislpci_dev.c555 unsigned counter; local
573 for (counter = 0; counter < ISL38XX_CB_QCOUNT; counter++) {
574 cb->driver_curr_frag[counter] = cpu_to_le32(0);
575 cb->device_curr_frag[counter] = cpu_to_le32(0);
579 for (counter = 0; counter < ISL38XX_CB_MGMT_QSIZE; counter++) {
580 isl38xx_fragment *frag = &cb->rx_data_mgmt[counter];
627 int counter; local
732 int counter; local
[all...]
/drivers/misc/
H A Duid_stat.c55 atomic_t *counter = m->private; local
57 bytes = (unsigned int) (atomic_read(counter) + INT_MIN);
H A Dphantom.c51 atomic_t counter; member in struct:phantom_device
71 atomic_set(&dev->counter, 0);
176 atomic_set(&dev->counter, 0);
237 atomic_set(&dev->counter, 0);
264 pr_debug("phantom_poll: %d\n", atomic_read(&dev->counter));
269 else if (atomic_read(&dev->counter))
272 pr_debug("phantom_poll end: %x/%d\n", mask, atomic_read(&dev->counter));
317 atomic_inc(&dev->counter);
/drivers/net/ethernet/altera/
H A Daltera_msgdma.c39 int counter; local
47 counter = 0;
48 while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
55 if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR)
69 counter = 0;
70 while (counter++ < ALTERA_TSE_SW_RESET_WATCHDOG_CNTR) {
77 if (counter >= ALTERA_TSE_SW_RESET_WATCHDOG_CNTR)
/drivers/staging/unisys/visorutil/
H A Dcharqueue.c115 int rc, counter = 0, c; local
127 counter++;
129 rc = counter;
/drivers/atm/
H A Didt77105.c59 * `counter' is one of the IDT77105_CTRSEL_* constants.
61 static u16 get_counter(struct atm_dev *dev, int counter) argument
65 /* write the counter bit into PHY register 6 */
66 PUT(counter, CTRSEL);
/drivers/infiniband/hw/ehca/
H A Dehca_cq.c129 u32 counter; local
202 for (counter = 0; counter < param.act_pages; counter++) {
224 "ehca_cq=%p cq_num=%x h_ret=%lli counter=%i "
226 h_ret, counter, param.act_pages);
231 if (counter == (param.act_pages - 1)) {
245 "counter=%i act_pages=%i",
247 h_ret, counter, param.act_pages);
H A Dehca_sqp.c71 int counter; local
105 for (counter = 0;
107 counter < ehca_port_act_time;
108 counter++) {
114 if (counter == ehca_port_act_time) {
/drivers/platform/x86/
H A Ddell-smo8800.c30 atomic_t counter; /* count after last read */ member in struct:smo8800_device
41 atomic_inc(&smo8800->counter);
98 atomic_set(&smo8800->counter, 0);
100 (data = atomic_xchg(&smo8800->counter, 0)));
127 atomic_set(&smo8800->counter, 0);
/drivers/staging/rtl8188eu/hal/
H A Dfw.c148 u32 counter = 0; local
155 } while (counter++ < POLLING_READY_TIMEOUT_COUNT);
157 if (counter >= POLLING_READY_TIMEOUT_COUNT) {
167 counter = 0;
178 } while (counter++ < POLLING_READY_TIMEOUT_COUNT);
/drivers/thunderbolt/
H A Dswitch.c165 * tb_port_clear_counter() - clear a counter in TB_CFG_COUNTER
169 int tb_port_clear_counter(struct tb_port *port, int counter) argument
172 tb_port_info(port, "clearing counter %d\n", counter);
173 return tb_port_write(port, zero, TB_CFG_COUNTERS, 3 * counter, 3);
/drivers/clocksource/
H A Darm_global_timer.c57 * 1. Read the upper 32-bit timer counter register
58 * 2. Read the lower 32-bit timer counter register
59 * 3. Read the upper 32-bit timer counter register again. If the value is
61 * Otherwise the 64-bit timer counter value is correct.
65 u64 counter; local
76 counter = upper;
77 counter <<= 32;
78 counter |= lower;
79 return counter;
92 u64 counter local
[all...]
/drivers/crypto/
H A Dgeode-aes.c50 u32 counter = AES_OP_TIMEOUT; local
62 } while (!(status & AES_INTRA_PENDING) && --counter);
66 return counter ? 0 : 1;
/drivers/input/joystick/
H A Dwalkera0701.c54 int counter; member in struct:walkera_dev
138 w->counter = NO_SYNC;
142 if (w->counter < NO_SYNC) {
145 w->buf[w->counter] = 8;
148 w->buf[w->counter] = 0;
150 if (w->counter == 24) { /* full frame */
152 w->counter = NO_SYNC;
154 w->counter = 0;
160 w->buf[w->counter++] |= (pulse_time & 7);
162 w->counter
[all...]
/drivers/media/rc/
H A Dir-rx51.c98 int counter; local
103 counter = omap_dm_timer_read_counter(lirc_rx51->pulse_timer);
105 counter = lirc_rx51->match;
107 counter += (u32)(lirc_rx51->fclk_khz * usec / (1000));
108 omap_dm_timer_set_match(lirc_rx51->pulse_timer, 1, counter);
112 counter)) {
/drivers/net/wireless/rtlwifi/rtl8723com/
H A Dfw_common.c203 u32 counter = 0; local
208 } while ((counter++ < max_count) &&
211 if (counter >= max_count) {
226 counter = 0;
240 } while (counter++ < max_count);
/drivers/staging/comedi/drivers/
H A Dni_tiocmd.c52 static void ni_tio_configure_dma(struct ni_gpct *counter, argument
55 struct ni_gpct_device *counter_dev = counter->counter_dev;
56 unsigned cidx = counter->counter_index;
69 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits);
83 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits);
92 struct ni_gpct *counter = s->private; local
100 spin_lock_irqsave(&counter->lock, flags);
101 if (counter->mite_chan)
102 mite_dma_arm(counter->mite_chan);
105 spin_unlock_irqrestore(&counter
116 struct ni_gpct *counter = s->private; local
157 struct ni_gpct *counter = s->private; local
173 struct ni_gpct *counter = s->private; local
198 struct ni_gpct *counter = s->private; local
229 struct ni_gpct *counter = s->private; local
297 ni_tio_cancel(struct ni_gpct *counter) argument
318 should_ack_gate(struct ni_gpct *counter) argument
345 ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, int *gate_error, int *tc_error, int *perm_stale_data, int *stale_data) argument
409 ni_tio_acknowledge(struct ni_gpct *counter) argument
415 ni_tio_handle_interrupt(struct ni_gpct *counter, struct comedi_subdevice *s) argument
463 ni_tio_set_mite_channel(struct ni_gpct *counter, struct mite_channel *mite_chan) argument
[all...]
/drivers/usb/phy/
H A Dphy-rcar-usb.c69 int counter; member in struct:rcar_usb_phy_priv
95 if (priv->counter++ == 0) {
173 if (priv->counter-- == 1) /* last user */
212 priv->counter = 0;
/drivers/watchdog/
H A Dsirfsoc_wdt.c44 u32 counter, match; local
49 counter = readl(wdt_base + SIRFSOC_TIMER_COUNTER_LO);
53 time_left = match - counter;
60 u32 counter, timeout_ticks; local
70 counter = readl(wdt_base + SIRFSOC_TIMER_LATCHED_LO);
72 counter += timeout_ticks;
74 writel(counter, wdt_base +
/drivers/infiniband/hw/nes/
H A Dnes_utils.c62 u32 counter; local
67 for (counter = 0; counter < NES_PAU_COUNTER; counter++) {
75 if (counter == NES_PAU_COUNTER) {
416 u32 counter; local
420 for (counter = 0; counter < 100 ; counter++) {
443 u32 counter; local
477 u32 counter; local
522 u32 counter; local
[all...]
/drivers/media/dvb-frontends/
H A Dnxt200x.c265 u8 buf, stopval, counter = 0; local
284 while (counter < 20) {
289 counter++;
309 u8 counter = 0; local
324 while (counter < 20) {
329 counter++;
/drivers/mtd/devices/
H A Dpmc551.c363 u8 bcmd, counter; local
374 counter = 0;
381 counter = 0;
383 while (counter++ < 100) {
386 counter = 0;
388 while (counter++ < 100) {
482 if (counter++ > 100)
499 counter = 0;
502 if (counter++ > 100)
514 counter
[all...]
/drivers/mtd/nand/
H A Dfsl_elbc_nand.c77 unsigned int counter; /* counter for the initializations */ member in struct:fsl_elbc_fcm_ctrl
867 elbc_fcm_ctrl->counter++;
934 elbc_fcm_ctrl->counter--;
935 if (!elbc_fcm_ctrl->counter) {
/drivers/net/ethernet/sfc/
H A Dqt202x_phy.c83 int counter; local
87 counter = ((reg >> PCS_FW_HEARTB_LBN) &
90 old_counter = counter;
91 else if (counter != old_counter)

Completed in 706 milliseconds

12345