Lines Matching refs:skt

1214 	struct pcmcia_socket *skt = _data;  in pcmcia_bus_suspend_callback()  local
1217 if (p_dev->socket != skt || p_dev->suspended) in pcmcia_bus_suspend_callback()
1225 struct pcmcia_socket *skt = _data; in pcmcia_bus_resume_callback() local
1228 if (p_dev->socket != skt || !p_dev->suspended) in pcmcia_bus_resume_callback()
1236 static int pcmcia_bus_resume(struct pcmcia_socket *skt) in pcmcia_bus_resume() argument
1238 dev_dbg(&skt->dev, "resuming socket %d\n", skt->sock); in pcmcia_bus_resume()
1239 bus_for_each_dev(&pcmcia_bus_type, NULL, skt, pcmcia_bus_resume_callback); in pcmcia_bus_resume()
1243 static int pcmcia_bus_suspend(struct pcmcia_socket *skt) in pcmcia_bus_suspend() argument
1245 dev_dbg(&skt->dev, "suspending socket %d\n", skt->sock); in pcmcia_bus_suspend()
1246 if (bus_for_each_dev(&pcmcia_bus_type, NULL, skt, in pcmcia_bus_suspend()
1248 pcmcia_bus_resume(skt); in pcmcia_bus_suspend()
1254 static int pcmcia_bus_remove(struct pcmcia_socket *skt) in pcmcia_bus_remove() argument
1256 atomic_set(&skt->present, 0); in pcmcia_bus_remove()
1257 pcmcia_card_remove(skt, NULL); in pcmcia_bus_remove()
1259 mutex_lock(&skt->ops_mutex); in pcmcia_bus_remove()
1260 destroy_cis_cache(skt); in pcmcia_bus_remove()
1261 pcmcia_cleanup_irq(skt); in pcmcia_bus_remove()
1262 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_remove()
1267 static int pcmcia_bus_add(struct pcmcia_socket *skt) in pcmcia_bus_add() argument
1269 atomic_set(&skt->present, 1); in pcmcia_bus_add()
1271 mutex_lock(&skt->ops_mutex); in pcmcia_bus_add()
1272 skt->pcmcia_pfc = 0; in pcmcia_bus_add()
1273 destroy_cis_cache(skt); /* to be on the safe side... */ in pcmcia_bus_add()
1274 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_add()
1276 pcmcia_card_add(skt); in pcmcia_bus_add()
1281 static int pcmcia_bus_early_resume(struct pcmcia_socket *skt) in pcmcia_bus_early_resume() argument
1283 if (!verify_cis_cache(skt)) in pcmcia_bus_early_resume()
1286 dev_dbg(&skt->dev, "cis mismatch - different card\n"); in pcmcia_bus_early_resume()
1289 pcmcia_bus_remove(skt); in pcmcia_bus_early_resume()
1291 mutex_lock(&skt->ops_mutex); in pcmcia_bus_early_resume()
1292 destroy_cis_cache(skt); in pcmcia_bus_early_resume()
1293 kfree(skt->fake_cis); in pcmcia_bus_early_resume()
1294 skt->fake_cis = NULL; in pcmcia_bus_early_resume()
1295 skt->functions = 0; in pcmcia_bus_early_resume()
1296 mutex_unlock(&skt->ops_mutex); in pcmcia_bus_early_resume()
1299 pcmcia_bus_add(skt); in pcmcia_bus_early_resume()