Lines Matching refs:ahp
73 struct auerhisax *ahp; in auerisdn_d_l1l2() local
76 ahp = ip->ahp; in auerisdn_d_l1l2()
77 if (ahp) { in auerisdn_d_l1l2()
78 ahp->hisax_d_if.ifc.l1l2(&ahp->hisax_d_if.ifc, pr, arg); in auerisdn_d_l1l2()
185 struct auerhisax *ahp; in auerisdn_dispatch_dc() local
349 ahp = cp->isdn.ahp; in auerisdn_dispatch_dc()
350 if (!ahp) { in auerisdn_dispatch_dc()
354 spin_lock_irqsave(&ahp->seq_lock, flags); in auerisdn_dispatch_dc()
355 l2_header[l2_index++] = ahp->txseq; /* transmitt sequence number */ in auerisdn_dispatch_dc()
356 l2_header[l2_index++] = ahp->rxseq; /* receive sequence number */ in auerisdn_dispatch_dc()
357 ahp->txseq += 2; /* next paket gets next number */ in auerisdn_dispatch_dc()
358 spin_unlock_irqrestore(&ahp->seq_lock, flags); in auerisdn_dispatch_dc()
400 struct auerhisax *ahp; in auerisdn_d_l2l1() local
416 ahp = hisax_d_if->priv; in auerisdn_d_l2l1()
417 if (ahp) in auerisdn_d_l2l1()
418 cp = ahp->cp; in auerisdn_d_l2l1()
463 spin_lock_irqsave(&ahp->seq_lock, flags); in auerisdn_d_l2l1()
464 ahp->rxseq = c + 2; /* store new sequence info */ in auerisdn_d_l2l1()
465 spin_unlock_irqrestore(&ahp->seq_lock, in auerisdn_d_l2l1()
533 spin_lock_irqsave(&ahp->seq_lock, flags); in auerisdn_d_l2l1()
534 l2_header[l2_index++] = ahp->rxseq | 0x01; in auerisdn_d_l2l1()
535 spin_unlock_irqrestore(&ahp->seq_lock, in auerisdn_d_l2l1()
540 spin_lock_irqsave(&ahp->seq_lock, flags); in auerisdn_d_l2l1()
541 ahp->txseq = 0; in auerisdn_d_l2l1()
542 ahp->rxseq = 0; in auerisdn_d_l2l1()
543 spin_unlock_irqrestore(&ahp->seq_lock, in auerisdn_d_l2l1()
749 struct auerhisax *ahp; in auerisdn_probe() local
885 ahp = &auerhisax_table[u]; in auerisdn_probe()
886 if (!ahp->cp) { in auerisdn_probe()
899 if (ahp->last_close) { in auerisdn_probe()
900 unsigned long timeout = jiffies - ahp->last_close; in auerisdn_probe()
907 cp->isdn.ahp = ahp; in auerisdn_probe()
908 u = ahp->hisax_registered; in auerisdn_probe()
909 ahp->hisax_registered = 1; in auerisdn_probe()
910 ahp->cp = cp; in auerisdn_probe()
915 b_if[u] = &ahp->hisax_b_if[u]; in auerisdn_probe()
918 (&ahp->hisax_d_if, b_if, "auerswald_usb", in auerisdn_probe()
921 ahp->cp = NULL; in auerisdn_probe()
922 cp->isdn.ahp = NULL; in auerisdn_probe()
923 ahp->hisax_registered = 0; in auerisdn_probe()
944 struct auerhisax *ahp; in auerisdn_disconnect() local
968 ahp = cp->isdn.ahp; in auerisdn_disconnect()
969 if (ahp) { in auerisdn_disconnect()
971 ahp->cp = NULL; in auerisdn_disconnect()
972 cp->isdn.ahp = NULL; in auerisdn_disconnect()
976 ahp->last_close = jiffies; in auerisdn_disconnect()
978 ahp->last_close = 0; in auerisdn_disconnect()
1043 struct auerhisax *ahp; in auerisdn_init() local
1048 ahp = &auerhisax_table[u]; in auerisdn_init()
1049 spin_lock_init(&ahp->seq_lock); in auerisdn_init()
1050 ahp->hisax_d_if.ifc.priv = ahp; in auerisdn_init()
1051 ahp->hisax_d_if.ifc.l2l1 = auerisdn_d_l2l1; in auerisdn_init()
1052 ahp->hisax_b_if[0].ifc.priv = ahp; in auerisdn_init()
1053 ahp->hisax_b_if[0].ifc.l2l1 = auerisdn_b0_l2l1_wrapper; in auerisdn_init()
1054 ahp->hisax_b_if[1].ifc.priv = ahp; in auerisdn_init()
1055 ahp->hisax_b_if[1].ifc.l2l1 = auerisdn_b1_l2l1_wrapper; in auerisdn_init()
1062 struct auerhisax *ahp; in auerisdn_cleanup() local
1067 ahp = &auerhisax_table[i]; in auerisdn_cleanup()
1068 if (ahp->cp) { in auerisdn_cleanup()
1071 if (ahp->hisax_registered) { in auerisdn_cleanup()
1072 hisax_unregister(&ahp->hisax_d_if); in auerisdn_cleanup()