Lines Matching full:iface

204 	struct atalk_iface **iface = &atalk_interfaces;  in atif_drop_device()  local
208 while ((tmp = *iface) != NULL) { in atif_drop_device()
210 *iface = tmp->next; in atif_drop_device()
215 iface = &tmp->next; in atif_drop_device()
223 struct atalk_iface *iface = kzalloc(sizeof(*iface), GFP_KERNEL); in atif_add_device() local
225 if (!iface) in atif_add_device()
229 iface->dev = dev; in atif_add_device()
230 dev->atalk_ptr = iface; in atif_add_device()
231 iface->address = *sa; in atif_add_device()
232 iface->status = 0; in atif_add_device()
235 iface->next = atalk_interfaces; in atif_add_device()
236 atalk_interfaces = iface; in atif_add_device()
239 return iface; in atif_add_device()
337 struct atalk_iface *iface = dev->atalk_ptr; in atalk_find_dev_addr() local
338 return iface ? &iface->address : NULL; in atalk_find_dev_addr()
345 struct atalk_iface *iface; in atalk_find_primary() local
352 for (iface = atalk_interfaces; iface; iface = iface->next) { in atalk_find_primary()
353 if (!fiface && !(iface->dev->flags & IFF_LOOPBACK)) in atalk_find_primary()
354 fiface = iface; in atalk_find_primary()
355 if (!(iface->dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT))) { in atalk_find_primary()
356 retval = &iface->address; in atalk_find_primary()
378 struct atalk_iface *iface = dev->atalk_ptr; in atalk_find_anynet() local
380 if (!iface || iface->status & ATIF_PROBE) in atalk_find_anynet()
384 iface->address.s_node != node && in atalk_find_anynet()
388 return iface; in atalk_find_anynet()
390 iface = NULL; in atalk_find_anynet()
397 struct atalk_iface *iface; in atalk_find_interface() local
400 for (iface = atalk_interfaces; iface; iface = iface->next) { in atalk_find_interface()
403 iface->address.s_node == node) && in atalk_find_interface()
404 iface->address.s_net == net && in atalk_find_interface()
405 !(iface->status & ATIF_PROBE)) in atalk_find_interface()
408 /* XXXX.0 -- net.0 returns the iface associated with net */ in atalk_find_interface()
410 ntohs(iface->nets.nr_firstnet) <= ntohs(net) && in atalk_find_interface()
411 ntohs(net) <= ntohs(iface->nets.nr_lastnet)) in atalk_find_interface()
415 return iface; in atalk_find_interface()
501 struct atalk_iface *iface, *riface; in atrtr_create() local
532 for (iface = atalk_interfaces; iface; iface = iface->next) { in atrtr_create()
535 ntohs(iface->nets.nr_firstnet) && in atrtr_create()
537 ntohs(iface->nets.nr_lastnet)) in atrtr_create()
538 riface = iface; in atrtr_create()
540 if (ga->sat_addr.s_net == iface->address.s_net && in atrtr_create()
541 ga->sat_addr.s_node == iface->address.s_node) in atrtr_create()
542 riface = iface; in atrtr_create()
637 * delete our use of them (iface and route).
695 * if this is a point-to-point iface, and we already in atif_ioctl()
696 * have an iface for this AppleTalk address, then we in atif_ioctl()
767 "iface.\n"); in atif_ioctl()
1334 * Can it ever happen that a packet is from a PPP iface and in atalk_route_packet()
1339 "packet received from PPP iface\n"); in atalk_route_packet()
1477 * AppleTalk iface in atalk_rcv()