Lines Matching refs:digipeat
55 kfree(s->digipeat); in ax25_rt_device_down()
61 kfree(s->digipeat); in ax25_rt_device_down()
89 kfree(ax25_rt->digipeat); in ax25_rt_add()
90 ax25_rt->digipeat = NULL; in ax25_rt_add()
92 if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { in ax25_rt_add()
96 ax25_rt->digipeat->lastrepeat = -1; in ax25_rt_add()
97 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add()
99 ax25_rt->digipeat->repeated[i] = 0; in ax25_rt_add()
100 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add()
117 ax25_rt->digipeat = NULL; in ax25_rt_add()
120 if ((ax25_rt->digipeat = kmalloc(sizeof(ax25_digi), GFP_ATOMIC)) == NULL) { in ax25_rt_add()
125 ax25_rt->digipeat->lastrepeat = -1; in ax25_rt_add()
126 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add()
128 ax25_rt->digipeat->repeated[i] = 0; in ax25_rt_add()
129 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add()
141 kfree(ax25_rt->digipeat); in __ax25_put_route()
313 if (ax25_rt->digipeat != NULL) in ax25_rt_seq_show()
314 for (i = 0; i < ax25_rt->digipeat->ndigi; i++) in ax25_rt_seq_show()
316 ax2asc(buf, &ax25_rt->digipeat->calls[i])); in ax25_rt_seq_show()
373 static inline void ax25_adjust_path(ax25_address *addr, ax25_digi *digipeat) in ax25_adjust_path() argument
377 for (k = 0; k < digipeat->ndigi; k++) { in ax25_adjust_path()
378 if (ax25cmp(addr, &digipeat->calls[k]) == 0) in ax25_adjust_path()
382 digipeat->ndigi = k; in ax25_adjust_path()
418 if (ax25_rt->digipeat != NULL) { in ax25_rt_autobind()
419 ax25->digipeat = kmemdup(ax25_rt->digipeat, sizeof(ax25_digi), in ax25_rt_autobind()
421 if (ax25->digipeat == NULL) { in ax25_rt_autobind()
425 ax25_adjust_path(addr, ax25->digipeat); in ax25_rt_autobind()
476 kfree(s->digipeat); in ax25_rt_free()