Lines Matching refs:ibendport

16 				 ocontext_t **ibendport,  in ibendport_from_record()  argument
29 &tmp_ibendport->u.ibendport.dev_name) < 0) in ibendport_from_record()
37 strncpy(tmp_ibendport->u.ibendport.dev_name, ibdev_name, IB_DEVICE_NAME_MAX); in ibendport_from_record()
42 tmp_ibendport->u.ibendport.port = port; in ibendport_from_record()
53 *ibendport = tmp_ibendport; in ibendport_from_record()
73 ocontext_t *ibendport, in ibendport_to_record() argument
76 int port = ibendport->u.ibendport.port; in ibendport_to_record()
77 context_struct_t *con = &ibendport->context[0]; in ibendport_to_record()
86 ibendport->u.ibendport.dev_name) < 0) in ibendport_to_record()
139 const char *ibdev_name2 = c->u.ibendport.dev_name; in sepol_ibendport_exists()
140 int port2 = c->u.ibendport.port; in sepol_ibendport_exists()
167 const char *ibdev_name2 = c->u.ibendport.dev_name; in sepol_ibendport_query()
168 int port2 = c->u.ibendport.port; in sepol_ibendport_query()
194 ocontext_t *ibendport = NULL; in sepol_ibendport_modify() local
200 if (ibendport_from_record(handle, policydb, &ibendport, data) < 0) in sepol_ibendport_modify()
204 ibendport->next = policydb->ocontexts[OCON_IBENDPORT]; in sepol_ibendport_modify()
205 policydb->ocontexts[OCON_IBENDPORT] = ibendport; in sepol_ibendport_modify()
212 if (ibendport) { in sepol_ibendport_modify()
213 context_destroy(&ibendport->context[0]); in sepol_ibendport_modify()
214 free(ibendport); in sepol_ibendport_modify()
221 int (*fn)(const sepol_ibendport_t *ibendport, in sepol_ibendport_iterate() argument
226 sepol_ibendport_t *ibendport = NULL; in sepol_ibendport_iterate() local
232 if (ibendport_to_record(handle, policydb, c, &ibendport) < 0) in sepol_ibendport_iterate()
236 status = fn(ibendport, arg); in sepol_ibendport_iterate()
240 sepol_ibendport_free(ibendport); in sepol_ibendport_iterate()
241 ibendport = NULL; in sepol_ibendport_iterate()
252 sepol_ibendport_free(ibendport); in sepol_ibendport_iterate()