Lines Matching refs:sock
25 struct tifm_dev *sock)
29 static void tifm_7xx1_eject(struct tifm_adapter *fm, struct tifm_dev *sock)
34 fm->socket_change_set |= 1 << sock->socket_id;
42 struct tifm_dev *sock;
56 sock = fm->sockets[cnt];
57 if (sock) {
59 sock->data_event(sock);
61 sock->card_event(sock);
142 struct tifm_dev *sock;
163 sock = fm->sockets[cnt];
164 if (sock) {
169 sock_addr = sock->addr;
171 device_unregister(&sock->dev);
183 sock = tifm_alloc_device(fm, cnt, media_id);
184 if (sock) {
185 sock->addr = tifm_7xx1_sock_addr(fm->addr, cnt);
187 if (!device_register(&sock->dev)) {
190 fm->sockets[cnt] = sock;
191 sock = NULL;
195 if (sock)
196 tifm_free_device(&sock->dev);
306 struct tifm_dev *sock)
311 static int tifm_7xx1_has_ms_pif(struct tifm_adapter *fm, struct tifm_dev *sock)
313 if (((fm->num_sockets == 4) && (sock->socket_id == 2))
314 || ((fm->num_sockets == 2) && (sock->socket_id == 0)))