Lines Matching refs:skt

1212 	struct pcmcia_socket *skt = _data;  in pcmcia_bus_suspend_callback()  local
1215 if (p_dev->socket != skt || p_dev->suspended) in pcmcia_bus_suspend_callback()
1223 struct pcmcia_socket *skt = _data; in pcmcia_bus_resume_callback() local
1226 if (p_dev->socket != skt || !p_dev->suspended) in pcmcia_bus_resume_callback()
1234 static int pcmcia_bus_resume(struct pcmcia_socket *skt) in pcmcia_bus_resume() argument
1236 dev_dbg(&skt->dev, "resuming socket %d\n", skt->sock); in pcmcia_bus_resume()
1237 bus_for_each_dev(&pcmcia_bus_type, NULL, skt, pcmcia_bus_resume_callback); in pcmcia_bus_resume()
1241 static int pcmcia_bus_suspend(struct pcmcia_socket *skt) in pcmcia_bus_suspend() argument
1243 dev_dbg(&skt->dev, "suspending socket %d\n", skt->sock); in pcmcia_bus_suspend()
1244 if (bus_for_each_dev(&pcmcia_bus_type, NULL, skt, in pcmcia_bus_suspend()
1246 pcmcia_bus_resume(skt); in pcmcia_bus_suspend()
1252 static int pcmcia_bus_remove(struct pcmcia_socket *skt) in pcmcia_bus_remove() argument
1254 atomic_set(&skt->present, 0); in pcmcia_bus_remove()
1255 pcmcia_card_remove(skt, NULL); in pcmcia_bus_remove()
1257 mutex_lock(&skt->ops_mutex); in pcmcia_bus_remove()
1258 destroy_cis_cache(skt); in pcmcia_bus_remove()
1259 pcmcia_cleanup_irq(skt); in pcmcia_bus_remove()
1260 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_remove()
1265 static int pcmcia_bus_add(struct pcmcia_socket *skt) in pcmcia_bus_add() argument
1267 atomic_set(&skt->present, 1); in pcmcia_bus_add()
1269 mutex_lock(&skt->ops_mutex); in pcmcia_bus_add()
1270 skt->pcmcia_pfc = 0; in pcmcia_bus_add()
1271 destroy_cis_cache(skt); /* to be on the safe side... */ in pcmcia_bus_add()
1272 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_add()
1274 pcmcia_card_add(skt); in pcmcia_bus_add()
1279 static int pcmcia_bus_early_resume(struct pcmcia_socket *skt) in pcmcia_bus_early_resume() argument
1281 if (!verify_cis_cache(skt)) in pcmcia_bus_early_resume()
1284 dev_dbg(&skt->dev, "cis mismatch - different card\n"); in pcmcia_bus_early_resume()
1287 pcmcia_bus_remove(skt); in pcmcia_bus_early_resume()
1289 mutex_lock(&skt->ops_mutex); in pcmcia_bus_early_resume()
1290 destroy_cis_cache(skt); in pcmcia_bus_early_resume()
1291 kfree(skt->fake_cis); in pcmcia_bus_early_resume()
1292 skt->fake_cis = NULL; in pcmcia_bus_early_resume()
1293 skt->functions = 0; in pcmcia_bus_early_resume()
1294 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_early_resume()
1297 pcmcia_bus_add(skt); in pcmcia_bus_early_resume()