Lines Matching refs:device

54 	// ppp device
58 dprintf("[%s] not ppp device\n", name);
62 dprintf("[%s] is ppp device\n", name);
68 // ppp_device *device = new (std::nothrow) ppp_device;
82 ppp_device *device = (ppp_device *)pppInterface->Ifnet();
83 if (device == NULL) {
89 strcpy(device->name, name);
90 device->flags = (IFF_BROADCAST | IFF_LINK) & (~IFF_UP);
91 device->type = IFT_PPP;
92 device->mtu = 1492;
93 device->frame_size = 1500;
94 device->media = IFM_ACTIVE | IFM_ETHER;
95 device->header_length = PPP_HEADER_LENGTH;
97 status =sStackModule->init_fifo(&(device->ppp_fifo), "ppp_fifo", 10 * 1500);
103 *_device = device;
110 ppp_uninit(net_device *device)
113 ppp_device *ppp_dev=(ppp_device *)device;
129 ppp_device *device = (ppp_device *)_device;
131 if (device->KPPP_Interface == NULL) {
136 if (device->KPPP_Interface->Up() != true) {
141 device->mtu = device->frame_size - device->header_length;
142 // s_pppoe_dev = device;
144 dprintf("%s: congratulations! Find pppinterface (device->KPPP_Interface)\n", __func__);
154 ppp_device *device = (ppp_device *)_device;
155 device->KPPP_Interface->Down();
159 // if the device is still part of the list, remove it
160 if (device->GetDoublyLinkedListLink()->next != NULL
161 || device->GetDoublyLinkedListLink()->previous != NULL
162 || device == sCheckList.Head())
163 sCheckList.Remove(device);
165 // device->KPPP_Interface = NULL;
176 ppp_device *device = (ppp_device *)_device;
178 if (device->KPPP_Interface == NULL) {
183 return device->KPPP_Interface->Control(op, argument, length);
193 ppp_device *device = (ppp_device *)_device;
195 if (buffer->size > device->frame_size || buffer->size < device->header_length) {
200 if (device->KPPP_Interface == NULL) {
207 status_t status = device->KPPP_Interface->Send(buffer, 0x0021); // IP_PROTOCOL 0x0021
222 ppp_device *device = (ppp_device *)_device;
224 if (device->KPPP_Interface == NULL)
228 status_t status = sStackModule->fifo_dequeue_buffer(&(device->ppp_fifo), 0, 10000000, _buffer);
244 ppp_device *device = (ppp_device *)_device;
246 if (mtu > device->frame_size - ETHER_HEADER_LENGTH - 8
250 device->mtu = mtu;
263 ppp_set_media(net_device *device, uint32 media)
272 // ppp_device *device = (ppp_device *)_device;
288 // ppp_device *device = (ppp_device *)_device;