Lines Matching refs:proto
41 struct datalink_proto *proto; in register_8022_client() local
43 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_8022_client()
44 if (proto) { in register_8022_client()
45 proto->type[0] = type; in register_8022_client()
46 proto->header_length = 3; in register_8022_client()
47 proto->request = p8022_request; in register_8022_client()
48 proto->sap = llc_sap_open(type, func); in register_8022_client()
49 if (!proto->sap) { in register_8022_client()
50 kfree(proto); in register_8022_client()
51 proto = NULL; in register_8022_client()
54 return proto; in register_8022_client()
57 void unregister_8022_client(struct datalink_proto *proto) in unregister_8022_client() argument
59 llc_sap_put(proto->sap); in unregister_8022_client()
60 kfree(proto); in unregister_8022_client()