• Home
  • Raw
  • Download

Lines Matching refs:cnt

40 	unsigned int irq_status, cnt;  in tifm_7xx1_isr()  local
52 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr()
53 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
55 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr()
57 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr()
81 int cnt; in tifm_7xx1_toggle_sock_power() local
85 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
90 msleep(cnt); in tifm_7xx1_toggle_sock_power()
109 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
114 msleep(cnt); in tifm_7xx1_toggle_sock_power()
143 unsigned int socket_change_set, cnt; in tifm_7xx1_switch_media() local
157 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_switch_media()
158 if (!(socket_change_set & (1 << cnt))) in tifm_7xx1_switch_media()
160 sock = fm->sockets[cnt]; in tifm_7xx1_switch_media()
164 dev_name(&fm->dev), fm->id, cnt); in tifm_7xx1_switch_media()
165 fm->sockets[cnt] = NULL; in tifm_7xx1_switch_media()
177 tifm_7xx1_sock_addr(fm->addr, cnt)); in tifm_7xx1_switch_media()
180 sock = tifm_alloc_device(fm, cnt, media_id); in tifm_7xx1_switch_media()
182 sock->addr = tifm_7xx1_sock_addr(fm->addr, cnt); in tifm_7xx1_switch_media()
186 if (!fm->sockets[cnt]) { in tifm_7xx1_switch_media()
187 fm->sockets[cnt] = sock; in tifm_7xx1_switch_media()
214 int cnt; in tifm_7xx1_suspend() local
218 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_suspend()
219 if (fm->sockets[cnt]) in tifm_7xx1_suspend()
220 tifm_7xx1_sock_power_off(fm->sockets[cnt]->addr); in tifm_7xx1_suspend()
382 int cnt; in tifm_7xx1_remove() local
391 for (cnt = 0; cnt < fm->num_sockets; cnt++) in tifm_7xx1_remove()
392 tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt)); in tifm_7xx1_remove()