• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/misc/

Lines Matching refs:sock

37 static int tifm_dev_match(struct tifm_dev *sock, struct tifm_device_id *id)
39 if (sock->type == id->type)
46 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
53 if (tifm_dev_match(sock, ids))
63 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
65 if (add_uevent_var(env, "TIFM_CARD_TYPE=%s", tifm_media_type_name(sock->type, 1)))
73 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
80 rc = drv->probe(sock);
88 static void tifm_dummy_event(struct tifm_dev *sock)
95 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
100 sock->card_event = tifm_dummy_event;
101 sock->data_event = tifm_dummy_event;
102 drv->remove(sock);
103 sock->dev.driver = NULL;
114 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
119 return drv->suspend(sock, state);
125 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
130 return drv->resume(sock);
144 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
145 return sprintf(buf, "%x", sock->type);
244 struct tifm_dev *sock = container_of(dev, struct tifm_dev, dev);
245 kfree(sock);
252 struct tifm_dev *sock = NULL;
255 return sock;
257 sock = kzalloc(sizeof(struct tifm_dev), GFP_KERNEL);
258 if (sock) {
259 spin_lock_init(&sock->lock);
260 sock->type = type;
261 sock->socket_id = id;
262 sock->card_event = tifm_dummy_event;
263 sock->data_event = tifm_dummy_event;
265 sock->dev.parent = fm->dev.parent;
266 sock->dev.bus = &tifm_bus_type;
267 sock->dev.dma_mask = fm->dev.parent->dma_mask;
268 sock->dev.release = tifm_free_device;
270 dev_set_name(&sock->dev, "tifm_%s%u:%u",
276 return sock;
280 void tifm_eject(struct tifm_dev *sock)
282 struct tifm_adapter *fm = dev_get_drvdata(sock->dev.parent);
283 fm->eject(fm, sock);
287 int tifm_has_ms_pif(struct tifm_dev *sock)
289 struct tifm_adapter *fm = dev_get_drvdata(sock->dev.parent);
290 return fm->has_ms_pif(fm, sock);
294 int tifm_map_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
297 return pci_map_sg(to_pci_dev(sock->dev.parent), sg, nents, direction);
301 void tifm_unmap_sg(struct tifm_dev *sock, struct scatterlist *sg, int nents,
304 pci_unmap_sg(to_pci_dev(sock->dev.parent), sg, nents, direction);