Lines Matching refs:tmp
86 ix25_pdata_t *tmp = kmalloc(sizeof(ix25_pdata_t), GFP_KERNEL); in isdn_x25iface_proto_new() local
88 if (tmp) { in isdn_x25iface_proto_new()
89 tmp->magic = ISDN_X25IFACE_MAGIC; in isdn_x25iface_proto_new()
90 tmp->state = WAN_UNCONFIGURED; in isdn_x25iface_proto_new()
93 spin_lock_init(&tmp->priv.lock); in isdn_x25iface_proto_new()
94 tmp->priv.dops = NULL; in isdn_x25iface_proto_new()
95 tmp->priv.net_dev = NULL; in isdn_x25iface_proto_new()
96 tmp->priv.pops = &ix25_pops; in isdn_x25iface_proto_new()
97 tmp->priv.flags = 0; in isdn_x25iface_proto_new()
98 tmp->priv.proto_data = tmp; in isdn_x25iface_proto_new()
99 return (&(tmp->priv)); in isdn_x25iface_proto_new()
108 ix25_pdata_t *tmp; in isdn_x25iface_proto_close() local
121 tmp = cprot->proto_data; in isdn_x25iface_proto_close()
122 if (pdata_is_bad(tmp)) { in isdn_x25iface_proto_close()
125 tmp->state = WAN_UNCONFIGURED; in isdn_x25iface_proto_close()
135 ix25_pdata_t *tmp; in isdn_x25iface_proto_del() local
143 tmp = cprot->proto_data; in isdn_x25iface_proto_del()
144 if (tmp == NULL) { in isdn_x25iface_proto_del()
153 tmp->magic = 0; in isdn_x25iface_proto_del()
156 kfree(tmp); in isdn_x25iface_proto_del()