• Home
  • Raw
  • Download

Lines Matching refs:cpspec

1046 	ppd->cpspec->chase_timer.expires = 0;  in reenable_7220_chase()
1070 if (ppd->cpspec->chase_end && in handle_7220_chase()
1071 time_after(tnow, ppd->cpspec->chase_end)) { in handle_7220_chase()
1072 ppd->cpspec->chase_end = 0; in handle_7220_chase()
1076 ppd->cpspec->chase_timer.expires = jiffies + in handle_7220_chase()
1078 add_timer(&ppd->cpspec->chase_timer); in handle_7220_chase()
1079 } else if (!ppd->cpspec->chase_end) in handle_7220_chase()
1080 ppd->cpspec->chase_end = tnow + QIB_CHASE_TIME; in handle_7220_chase()
1084 ppd->cpspec->chase_end = 0; in handle_7220_chase()
1519 qib_write_kreg(dd, kr_ibcctrl, ppd->cpspec->ibcctrl | mod_wd); in qib_set_ib_7220_lstate()
1546 ppd->cpspec->ibdeltainprog = 1; in qib_7220_bringup_serdes()
1547 ppd->cpspec->ibsymsnap = read_7220_creg32(dd, cr_ibsymbolerr); in qib_7220_bringup_serdes()
1548 ppd->cpspec->iblnkerrsnap = in qib_7220_bringup_serdes()
1571 ppd->cpspec->ibcctrl = ibc; /* without linkcmd or linkinitcmd! */ in qib_7220_bringup_serdes()
1574 val = ppd->cpspec->ibcctrl | (QLOGIC_IB_IBCC_LINKINITCMD_DISABLE << in qib_7220_bringup_serdes()
1578 if (!ppd->cpspec->ibcddrctrl) { in qib_7220_bringup_serdes()
1580 ppd->cpspec->ibcddrctrl = qib_read_kreg64(dd, kr_ibcddrctrl); in qib_7220_bringup_serdes()
1583 ppd->cpspec->ibcddrctrl |= in qib_7220_bringup_serdes()
1587 ppd->cpspec->ibcddrctrl |= in qib_7220_bringup_serdes()
1592 ppd->cpspec->ibcddrctrl |= IBA7220_IBC_WIDTH_AUTONEG; in qib_7220_bringup_serdes()
1594 ppd->cpspec->ibcddrctrl |= in qib_7220_bringup_serdes()
1600 ppd->cpspec->ibcddrctrl |= in qib_7220_bringup_serdes()
1602 ppd->cpspec->ibcddrctrl |= in qib_7220_bringup_serdes()
1606 ppd->cpspec->ibcddrctrl |= IBA7220_IBC_LANE_REV_SUPPORTED; in qib_7220_bringup_serdes()
1611 qib_write_kreg(dd, kr_ibcddrctrl, ppd->cpspec->ibcddrctrl); in qib_7220_bringup_serdes()
1662 ppd->cpspec->chase_end = 0; in qib_7220_quiet_serdes()
1663 if (ppd->cpspec->chase_timer.data) /* if initted */ in qib_7220_quiet_serdes()
1664 del_timer_sync(&ppd->cpspec->chase_timer); in qib_7220_quiet_serdes()
1666 if (ppd->cpspec->ibsymdelta || ppd->cpspec->iblnkerrdelta || in qib_7220_quiet_serdes()
1667 ppd->cpspec->ibdeltainprog) { in qib_7220_quiet_serdes()
1675 if (ppd->cpspec->ibsymdelta || ppd->cpspec->ibdeltainprog) { in qib_7220_quiet_serdes()
1677 if (ppd->cpspec->ibdeltainprog) in qib_7220_quiet_serdes()
1678 val -= val - ppd->cpspec->ibsymsnap; in qib_7220_quiet_serdes()
1679 val -= ppd->cpspec->ibsymdelta; in qib_7220_quiet_serdes()
1682 if (ppd->cpspec->iblnkerrdelta || ppd->cpspec->ibdeltainprog) { in qib_7220_quiet_serdes()
1684 if (ppd->cpspec->ibdeltainprog) in qib_7220_quiet_serdes()
1685 val -= val - ppd->cpspec->iblnkerrsnap; in qib_7220_quiet_serdes()
1686 val -= ppd->cpspec->iblnkerrdelta; in qib_7220_quiet_serdes()
1698 wake_up(&ppd->cpspec->autoneg_wait); in qib_7220_quiet_serdes()
1699 cancel_delayed_work_sync(&ppd->cpspec->autoneg_work); in qib_7220_quiet_serdes()
2113 dd->pport->cpspec->ibdeltainprog = 0; in qib_setup_7220_reset()
2114 dd->pport->cpspec->ibsymdelta = 0; in qib_setup_7220_reset()
2115 dd->pport->cpspec->iblnkerrdelta = 0; in qib_setup_7220_reset()
2164 if (dd->pport->cpspec->ibcddrctrl & IBA7220_IBC_IBTA_1_2_MASK) in qib_setup_7220_reset()
2399 ret = SYM_FIELD(ppd->cpspec->ibcctrl, IBCCtrl, in qib_7220_get_ib_cfg()
2404 ret = SYM_FIELD(ppd->cpspec->ibcctrl, IBCCtrl, in qib_7220_get_ib_cfg()
2410 ret = (ppd->cpspec->ibcctrl & in qib_7220_get_ib_cfg()
2432 ret = (int)((ppd->cpspec->ibcddrctrl >> lsb) & maskr); in qib_7220_get_ib_cfg()
2491 if ((ppd->cpspec->ibcddrctrl & IBA7220_IBC_IBTA_1_2_MASK) && in qib_7220_set_ib_cfg()
2532 maskr = SYM_FIELD(ppd->cpspec->ibcctrl, IBCCtrl, in qib_7220_set_ib_cfg()
2535 ppd->cpspec->ibcctrl &= in qib_7220_set_ib_cfg()
2537 ppd->cpspec->ibcctrl |= (u64) val << in qib_7220_set_ib_cfg()
2539 qib_write_kreg(dd, kr_ibcctrl, ppd->cpspec->ibcctrl); in qib_7220_set_ib_cfg()
2545 maskr = SYM_FIELD(ppd->cpspec->ibcctrl, IBCCtrl, in qib_7220_set_ib_cfg()
2548 ppd->cpspec->ibcctrl &= in qib_7220_set_ib_cfg()
2550 ppd->cpspec->ibcctrl |= (u64) val << in qib_7220_set_ib_cfg()
2552 qib_write_kreg(dd, kr_ibcctrl, ppd->cpspec->ibcctrl); in qib_7220_set_ib_cfg()
2567 ppd->cpspec->ibcctrl &= in qib_7220_set_ib_cfg()
2570 ppd->cpspec->ibcctrl |= in qib_7220_set_ib_cfg()
2572 qib_write_kreg(dd, kr_ibcctrl, ppd->cpspec->ibcctrl); in qib_7220_set_ib_cfg()
2585 ppd->cpspec->ibcctrl &= ~SYM_MASK(IBCCtrl, MaxPktLen); in qib_7220_set_ib_cfg()
2586 ppd->cpspec->ibcctrl |= (u64)val << SYM_LSB(IBCCtrl, MaxPktLen); in qib_7220_set_ib_cfg()
2587 qib_write_kreg(dd, kr_ibcctrl, ppd->cpspec->ibcctrl); in qib_7220_set_ib_cfg()
2595 if (!ppd->cpspec->ibdeltainprog && in qib_7220_set_ib_cfg()
2597 ppd->cpspec->ibdeltainprog = 1; in qib_7220_set_ib_cfg()
2598 ppd->cpspec->ibsymsnap = in qib_7220_set_ib_cfg()
2600 ppd->cpspec->iblnkerrsnap = in qib_7220_set_ib_cfg()
2633 ppd->cpspec->chase_end = 0; in qib_7220_set_ib_cfg()
2638 if (ppd->cpspec->chase_timer.expires) { in qib_7220_set_ib_cfg()
2639 del_timer_sync(&ppd->cpspec->chase_timer); in qib_7220_set_ib_cfg()
2640 ppd->cpspec->chase_timer.expires = 0; in qib_7220_set_ib_cfg()
2654 tmp = (ppd->cpspec->ibcddrctrl >> lsb) & maskr; in qib_7220_set_ib_cfg()
2662 ppd->cpspec->ibcddrctrl &= ~(maskr << lsb); in qib_7220_set_ib_cfg()
2663 ppd->cpspec->ibcddrctrl |= in qib_7220_set_ib_cfg()
2667 ppd->cpspec->ibcddrctrl); in qib_7220_set_ib_cfg()
2688 ppd->cpspec->ibcddrctrl &= ~(maskr << lsb); in qib_7220_set_ib_cfg()
2689 ppd->cpspec->ibcddrctrl |= (((u64) val & maskr) << lsb); in qib_7220_set_ib_cfg()
2690 qib_write_kreg(dd, kr_ibcddrctrl, ppd->cpspec->ibcddrctrl); in qib_7220_set_ib_cfg()
2707 ppd->cpspec->ibcctrl |= SYM_MASK(IBCCtrl, Loopback); in qib_7220_set_loopback()
2712 ppd->cpspec->ibcctrl &= ~SYM_MASK(IBCCtrl, Loopback); in qib_7220_set_loopback()
2721 qib_write_kreg(ppd->dd, kr_ibcctrl, ppd->cpspec->ibcctrl); in qib_7220_set_loopback()
2722 ddr = ppd->cpspec->ibcddrctrl & ~(IBA7220_IBC_HRTBT_MASK in qib_7220_set_loopback()
2724 ppd->cpspec->ibcddrctrl = ddr | val; in qib_7220_set_loopback()
2726 ppd->cpspec->ibcddrctrl); in qib_7220_set_loopback()
3005 if (dd->pport->cpspec->ibdeltainprog) in qib_portcntr_7220()
3006 ret -= ret - ppd->cpspec->ibsymsnap; in qib_portcntr_7220()
3007 ret -= dd->pport->cpspec->ibsymdelta; in qib_portcntr_7220()
3009 if (dd->pport->cpspec->ibdeltainprog) in qib_portcntr_7220()
3010 ret -= ret - ppd->cpspec->iblnkerrsnap; in qib_portcntr_7220()
3011 ret -= dd->pport->cpspec->iblnkerrdelta; in qib_portcntr_7220()
3508 ppd->cpspec->ibcddrctrl &= ~(IBA7220_IBC_SPEED_AUTONEG_MASK | in set_7220_ibspeed_fast()
3512 ppd->cpspec->ibcddrctrl |= IBA7220_IBC_SPEED_AUTONEG_MASK | in set_7220_ibspeed_fast()
3515 ppd->cpspec->ibcddrctrl |= speed == QIB_IB_DDR ? in set_7220_ibspeed_fast()
3518 qib_write_kreg(ppd->dd, kr_ibcddrctrl, ppd->cpspec->ibcddrctrl); in set_7220_ibspeed_fast()
3547 queue_delayed_work(ib_wq, &ppd->cpspec->autoneg_work, in try_7220_autoneg()
3586 if (wait_event_timeout(ppd->cpspec->autoneg_wait, in autoneg_7220_work()
3594 if (wait_event_timeout(ppd->cpspec->autoneg_wait, in autoneg_7220_work()
3606 wait_event_timeout(ppd->cpspec->autoneg_wait, in autoneg_7220_work()
3693 if (!ppd->cpspec->ibdeltainprog) { in qib_7220_ib_updown()
3694 ppd->cpspec->ibdeltainprog = 1; in qib_7220_ib_updown()
3695 ppd->cpspec->ibsymsnap = read_7220_creg32(dd, in qib_7220_ib_updown()
3697 ppd->cpspec->iblnkerrsnap = read_7220_creg32(dd, in qib_7220_ib_updown()
3721 wake_up(&ppd->cpspec->autoneg_wait); in qib_7220_ib_updown()
3734 ppd->cpspec->ibcddrctrl |= in qib_7220_ib_updown()
3765 if (ppd->cpspec->ibdeltainprog) { in qib_7220_ib_updown()
3766 ppd->cpspec->ibdeltainprog = 0; in qib_7220_ib_updown()
3767 ppd->cpspec->ibsymdelta += read_7220_creg32(ppd->dd, in qib_7220_ib_updown()
3768 cr_ibsymbolerr) - ppd->cpspec->ibsymsnap; in qib_7220_ib_updown()
3769 ppd->cpspec->iblnkerrdelta += read_7220_creg32(ppd->dd, in qib_7220_ib_updown()
3770 cr_iblinkerrrecov) - ppd->cpspec->iblnkerrsnap; in qib_7220_ib_updown()
3773 !ppd->cpspec->ibdeltainprog && in qib_7220_ib_updown()
3775 ppd->cpspec->ibdeltainprog = 1; in qib_7220_ib_updown()
3776 ppd->cpspec->ibsymsnap = read_7220_creg32(ppd->dd, in qib_7220_ib_updown()
3778 ppd->cpspec->iblnkerrsnap = read_7220_creg32(ppd->dd, in qib_7220_ib_updown()
4002 struct qib_chippport_specific *cpspec; in qib_init_7220_variables() local
4007 cpspec = (struct qib_chippport_specific *)(dd + 1); in qib_init_7220_variables()
4008 ppd = &cpspec->pportdata; in qib_init_7220_variables()
4012 dd->cspec = (struct qib_chip_specific *)(cpspec + dd->num_pports); in qib_init_7220_variables()
4013 ppd->cpspec = cpspec; in qib_init_7220_variables()
4061 init_waitqueue_head(&cpspec->autoneg_wait); in qib_init_7220_variables()
4062 INIT_DELAYED_WORK(&cpspec->autoneg_work, autoneg_7220_work); in qib_init_7220_variables()
4083 init_timer(&ppd->cpspec->chase_timer); in qib_init_7220_variables()
4084 ppd->cpspec->chase_timer.function = reenable_7220_chase; in qib_init_7220_variables()
4085 ppd->cpspec->chase_timer.data = (unsigned long)ppd; in qib_init_7220_variables()
4393 u32 ret = ppd->cpspec->last_delay_mult; in qib_7220_setpbc_control()
4395 ppd->cpspec->last_delay_mult = (rcv_mult > snd_mult) ? in qib_7220_setpbc_control()