Lines Matching refs:cnt
43 unsigned int irq_status, cnt; in tifm_7xx1_isr() local
55 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr()
56 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
58 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr()
60 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr()
84 int cnt; in tifm_7xx1_toggle_sock_power() local
88 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
93 msleep(cnt); in tifm_7xx1_toggle_sock_power()
112 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
117 msleep(cnt); in tifm_7xx1_toggle_sock_power()
146 unsigned int socket_change_set, cnt; in tifm_7xx1_switch_media() local
160 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media()
161 if (!(socket_change_set & (1 << cnt))) in tifm_7xx1_switch_media()
163 sock = fm->sockets[cnt]; in tifm_7xx1_switch_media()
167 dev_name(&fm->dev), fm->id, cnt); in tifm_7xx1_switch_media()
168 fm->sockets[cnt] = NULL; in tifm_7xx1_switch_media()
180 tifm_7xx1_sock_addr(fm->addr, cnt)); in tifm_7xx1_switch_media()
183 sock = tifm_alloc_device(fm, cnt, media_id); in tifm_7xx1_switch_media()
185 sock->addr = tifm_7xx1_sock_addr(fm->addr, cnt); in tifm_7xx1_switch_media()
189 if (!fm->sockets[cnt]) { in tifm_7xx1_switch_media()
190 fm->sockets[cnt] = sock; in tifm_7xx1_switch_media()
218 int cnt; in tifm_7xx1_suspend() local
222 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend()
223 if (fm->sockets[cnt]) in tifm_7xx1_suspend()
224 tifm_7xx1_sock_power_off(fm->sockets[cnt]->addr); in tifm_7xx1_suspend()
394 int cnt; in tifm_7xx1_remove() local
404 for (cnt = 0; cnt < fm->num_sockets; cnt++) in tifm_7xx1_remove()
405 tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt)); in tifm_7xx1_remove()