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