Lines Matching refs:data
271 skb->data[0] = NLPID_IP;
278 skb->data[0] = 0;
279 skb->data[1] = NLPID_SNAP;
282 *((unsigned short*)&skb->data[5]) = htons(type);
308 int cnt = skb->data[0] ? 0 : 1; /* there may be a pad present */
311 switch (skb->data[cnt]) {
318 if (memcmp(&skb->data[cnt + 1], wanrouter_oui_ether,
323 skb->data[cnt+1], skb->data[cnt+2],
324 skb->data[cnt+3], dev->name);
327 ethertype = *((__be16*)&skb->data[cnt+4]);
336 wanrouter_modname, skb->data[cnt], dev->name);
360 void __user *data = (void __user *)arg; in wanrouter_ioctl() local
369 if ((dent == NULL) || (dent->data == NULL)) in wanrouter_ioctl()
372 wandev = dent->data; in wanrouter_ioctl()
379 err = wanrouter_device_setup(wandev, data); in wanrouter_ioctl()
387 err = wanrouter_device_stat(wandev, data); in wanrouter_ioctl()
391 err = wanrouter_device_new_if(wandev, data); in wanrouter_ioctl()
395 err = wanrouter_device_del_if(wandev, data); in wanrouter_ioctl()
427 void *data = NULL; in wanrouter_device_setup() local
458 if (conf->data_size && conf->data) { in wanrouter_device_setup()
467 data = vmalloc(conf->data_size); in wanrouter_device_setup()
468 if (!data) { in wanrouter_device_setup()
475 if (!copy_from_user(data, conf->data, conf->data_size)) { in wanrouter_device_setup()
476 conf->data = data; in wanrouter_device_setup()
484 vfree(data); in wanrouter_device_setup()