Lines Matching refs:tab
121 struct rtnl_link *tab; in rtnl_get_doit() local
124 tab = rtnl_msg_handlers[protocol]; in rtnl_get_doit()
126 tab = NULL; in rtnl_get_doit()
128 if (tab == NULL || tab[msgindex].doit == NULL) in rtnl_get_doit()
129 tab = rtnl_msg_handlers[PF_UNSPEC]; in rtnl_get_doit()
131 return tab[msgindex].doit; in rtnl_get_doit()
136 struct rtnl_link *tab; in rtnl_get_dumpit() local
139 tab = rtnl_msg_handlers[protocol]; in rtnl_get_dumpit()
141 tab = NULL; in rtnl_get_dumpit()
143 if (tab == NULL || tab[msgindex].dumpit == NULL) in rtnl_get_dumpit()
144 tab = rtnl_msg_handlers[PF_UNSPEC]; in rtnl_get_dumpit()
146 return tab[msgindex].dumpit; in rtnl_get_dumpit()
151 struct rtnl_link *tab; in rtnl_get_calcit() local
154 tab = rtnl_msg_handlers[protocol]; in rtnl_get_calcit()
156 tab = NULL; in rtnl_get_calcit()
158 if (tab == NULL || tab[msgindex].calcit == NULL) in rtnl_get_calcit()
159 tab = rtnl_msg_handlers[PF_UNSPEC]; in rtnl_get_calcit()
161 return tab[msgindex].calcit; in rtnl_get_calcit()
186 struct rtnl_link *tab; in __rtnl_register() local
192 tab = rtnl_msg_handlers[protocol]; in __rtnl_register()
193 if (tab == NULL) { in __rtnl_register()
194 tab = kcalloc(RTM_NR_MSGTYPES, sizeof(*tab), GFP_KERNEL); in __rtnl_register()
195 if (tab == NULL) in __rtnl_register()
198 rtnl_msg_handlers[protocol] = tab; in __rtnl_register()
202 tab[msgindex].doit = doit; in __rtnl_register()
205 tab[msgindex].dumpit = dumpit; in __rtnl_register()
208 tab[msgindex].calcit = calcit; in __rtnl_register()