Lines Matching refs:ccp
636 c7000_error(struct c7000_controller *ccp) in c7000_error() argument
640 struct net_device *dev = ccp->dev; in c7000_error()
643 cup = &ccp->cunits[i]; in c7000_error()
651 CPrintk(0, "c7000: c7000_error: base unit 0x%x is down\n", ccp->base_addr); in c7000_error()
854 struct c7000_controller *ccp = cup->cntlp; in c7000_bld_wrt_chpgm() local
857 ccwp->cmd_code = C7000_WRITE_CCW | (ccp->linkid << 3); in c7000_bld_wrt_chpgm()
977 struct c7000_controller *ccp = (struct c7000_controller *) dev->priv; in c7000_alloc_buffers() local
981 cup = &ccp->cunits[i]; in c7000_alloc_buffers()
1050 struct c7000_controller *ccp = (struct c7000_controller *) dev->priv; in c7000_free_buffers() local
1054 cup = &ccp->cunits[i]; in c7000_free_buffers()
1286 struct c7000_controller *ccp; in c7000_irq_bh() local
1294 ccp = cup->cntlp; in c7000_irq_bh()
1295 dev = ccp->dev; in c7000_irq_bh()
1343 ccp->stats.rx_packets++; in c7000_irq_bh()
1344 ccp->stats.rx_bytes += skb->len; in c7000_irq_bh()
1347 ccp->stats.rx_dropped++; in c7000_irq_bh()
1414 struct c7000_controller *ccp = cup->cntlp; in c7000_send_sysval() local
1426 ctlblkp->link_id = ccp->linkid; in c7000_send_sysval()
1427 ctlblkp->ver = ccp->version; in c7000_send_sysval()
1428 memcpy(ctlblkp->hostname, ccp->lhost, NAMLEN); in c7000_send_sysval()
1429 memcpy(ctlblkp->unitname, ccp->uhost, NAMLEN); in c7000_send_sysval()
1459 struct c7000_controller *ccp = cup->cntlp; in c7000_send_sysval_resp() local
1472 ctlblkp->link_id = ccp->linkid; in c7000_send_sysval_resp()
1473 ctlblkp->ver = ccp->version; in c7000_send_sysval_resp()
1474 memcpy(ctlblkp->hostname, ccp->lhost, NAMLEN); in c7000_send_sysval_resp()
1475 memcpy(ctlblkp->unitname, ccp->uhost, NAMLEN); in c7000_send_sysval_resp()
1504 struct c7000_controller *ccp = cup->cntlp; in c7000_checkinfo() local
1508 if (memcmp(ccp->lhost, ctlblkp->hostname, NAMLEN) || in c7000_checkinfo()
1509 memcmp(ccp->uhost, ctlblkp->unitname, NAMLEN)) in c7000_checkinfo()
1512 if (ctlblkp->ver != ccp->version) in c7000_checkinfo()
1531 struct c7000_controller *ccp = cup->cntlp; in c7000_get_sysval_resp() local
1593 if (c7000_send_sysval_resp(&ccp->cunits[C7000_WR], cup->control_blk.correlator, ret_code) != 0) in c7000_get_sysval_resp()
1625 struct c7000_controller *ccp = cup->cntlp; in c7000_conn_confrm() local
1636 ctlblkp->ver = ccp->version; in c7000_conn_confrm()
1641 memcpy(ctlblkp->hostname, ccp->lappl, NAMLEN); in c7000_conn_confrm()
1642 memcpy(ctlblkp->unitname, ccp->uappl, NAMLEN); in c7000_conn_confrm()
1670 struct c7000_controller *ccp = cup->cntlp; in c7000_send_conn() local
1681 ctlblkp->ver = ccp->version; in c7000_send_conn()
1686 memcpy(ctlblkp->hostname, ccp->lappl, NAMLEN); in c7000_send_conn()
1687 memcpy(ctlblkp->unitname, ccp->uappl, NAMLEN); in c7000_send_conn()
1716 struct c7000_controller *ccp = cup->cntlp; in c7000_send_disc() local
1727 ctlblkp->ver = ccp->version; in c7000_send_disc()
1732 memcpy(ctlblkp->hostname, ccp->lappl, NAMLEN); in c7000_send_disc()
1733 memcpy(ctlblkp->unitname, ccp->uappl, NAMLEN); in c7000_send_disc()
1764 struct c7000_controller *ccp = cup->cntlp; in c7000_resolve_race() local
1783 ccp->linkid = local_linkid; in c7000_resolve_race()
1796 if (c7000_conn_confrm(&ccp->cunits[C7000_WR], cup->control_blk.correlator, remote_linkid) != 0) { in c7000_resolve_race()
1801 ccp->linkid = remote_linkid; in c7000_resolve_race()
1803 ccp->linkid = local_linkid; in c7000_resolve_race()
1818 struct c7000_controller *ccp = cup->cntlp; in c7000_get_conn() local
1825 ccp->linkid = 0; in c7000_get_conn()
1893 if (c7000_send_disc(&ccp->cunits[C7000_WR], remote_linkid) != 0) { in c7000_get_conn()
1929 if (ccp->linkid == 0) in c7000_get_conn()
1942 struct c7000_controller *ccp = (struct c7000_controller *)dev->priv; in c7000_stats() local
1944 return(&ccp->stats); in c7000_stats()
1955 struct c7000_controller *ccp = (struct c7000_controller *)dev->priv; in c7000_open() local
1979 cup = &ccp->cunits[i]; in c7000_open()
2014 cup = &ccp->cunits[i]; in c7000_open()
2041 cup = &ccp->cunits[C7000_WR]; in c7000_open()
2054 cup = &ccp->cunits[C7000_RD]; in c7000_open()
2063 ccp->cunits[C7000_RD].state = ccp->cunits[C7000_WR].state = C7000_CONNECT; in c7000_open()
2065 cup = &ccp->cunits[C7000_WR]; in c7000_open()
2077 cup = &ccp->cunits[C7000_RD]; in c7000_open()
2091 ccp->cunits[C7000_RD].state = ccp->cunits[C7000_WR].state = C7000_READY; in c7000_open()
2097 memset(&ccp->stats, '\0', sizeof(struct net_device_stats)); in c7000_open()
2136 struct c7000_controller *ccp = (struct c7000_controller *)dev->priv; in c7000_stop() local
2146 ccp->cunits[C7000_RD].state = ccp->cunits[C7000_WR].state = C7000_DISC; in c7000_stop()
2147 cup = &ccp->cunits[C7000_WR]; in c7000_stop()
2149 if (c7000_send_disc(cup, ccp->linkid) != 0) { in c7000_stop()
2160 cup = &ccp->cunits[i]; in c7000_stop()
2196 struct c7000_controller *ccp = (struct c7000_controller *)dev->priv; in c7000_xmit() local
2212 ccp->stats.tx_dropped++; in c7000_xmit()
2216 cup = &ccp->cunits[C7000_WR]; in c7000_xmit()
2483 struct c7000_controller *ccp = cup->cntlp; in c7000_proc_wintr() local
2507 ccp->stats.tx_bytes += buf->len; in c7000_proc_wintr()
2508 ccp->stats.tx_packets++; in c7000_proc_wintr()
2526 struct c7000_controller *ccp = NULL; in c7000_intr() local
2558 ccp = cup->cntlp; in c7000_intr()
2560 if (ccp == NULL) { in c7000_intr()
2565 dev = ccp->dev; in c7000_intr()
2568 …0_intr: device pointer is NULL in c7000_controller structure %p for unit 0x%x\n", ccp, cup->devno); in c7000_intr()
2693 ccp->stats.rx_errors++; in c7000_intr()
2756 ccp->stats.tx_errors++; in c7000_intr()
2877 struct c7000_controller *ccp; in c7000_init() local
2925 if ((ccp = dev->priv = kmalloc(sizeof(struct c7000_controller), GFP_KERNEL)) == NULL) { in c7000_init()
2930 CPrintk(1, "c7000: c7000_init: allocated a c7000_controller structure at address %p\n", ccp); in c7000_init()
2931 memset(ccp, '\0', sizeof(struct c7000_controller)); in c7000_init()
2932 ccp->dev = dev; in c7000_init()
2933 ccp->base_addr = dev->base_addr; in c7000_init()
2939 c7000_fill_name(ccp->lappl, C7000_DFLT_LAPPL); in c7000_init()
2940 c7000_fill_name(ccp->lhost, C7000_DFLT_LHOST); in c7000_init()
2941 c7000_fill_name(ccp->uappl, C7000_DFLT_UAPPL); in c7000_init()
2942 c7000_fill_name(ccp->uhost, C7000_DFLT_UHOST); in c7000_init()
2951 c7000_fill_name(ccp->lappl, lappl0); in c7000_init()
2954 c7000_fill_name(ccp->lhost, lhost0); in c7000_init()
2957 c7000_fill_name(ccp->uappl, uappl0); in c7000_init()
2960 c7000_fill_name(ccp->uhost, uhost0); in c7000_init()
2965 c7000_fill_name(ccp->lappl, lappl1); in c7000_init()
2968 c7000_fill_name(ccp->lhost, lhost1); in c7000_init()
2971 c7000_fill_name(ccp->uappl, uappl1); in c7000_init()
2974 c7000_fill_name(ccp->uhost, uhost1); in c7000_init()
2979 c7000_fill_name(ccp->lappl, lappl2); in c7000_init()
2982 c7000_fill_name(ccp->lhost, lhost2); in c7000_init()
2985 c7000_fill_name(ccp->uappl, uappl2); in c7000_init()
2988 c7000_fill_name(ccp->uhost, uhost2); in c7000_init()
2993 c7000_fill_name(ccp->lappl, lappl3); in c7000_init()
2996 c7000_fill_name(ccp->lhost, lhost3); in c7000_init()
2999 c7000_fill_name(ccp->uappl, uappl3); in c7000_init()
3002 c7000_fill_name(ccp->uhost, uhost3); in c7000_init()
3006 …uappl = %8.8s uhost = %8.8s for base unit 0x%x\n", ccp->lappl, ccp->lhost, ccp->uappl, ccp->uhost,… in c7000_init()
3007 ccp->version = 2; in c7000_init()
3008 ccp->linkid = 0; in c7000_init()
3023 if ((irq = ccp->cunits[i].irq = get_irq_by_devno(unitaddr)) == -1) { in c7000_init()
3032 if (request_irq(irq, c7000_intr, SA_INTERRUPT, dev->name, &ccp->cunits[i].devstat) != 0) { in c7000_init()
3038 ccp->cunits[i].devno = unitaddr; in c7000_init()
3039 ccp->cunits[i].IO_active = 0; in c7000_init()
3040 ccp->cunits[i].state = C7000_INIT; in c7000_init()
3041 ccp->cunits[i].cntlp = ccp; in c7000_init()
3194 struct c7000_controller *ccp; in cleanup_module() local
3208 ccp = (struct c7000_controller *) c7000_devices[i].priv; in cleanup_module()
3210 if (ccp != NULL) { in cleanup_module()
3213 …(1, "c7000: clean_module: free subchannel 0x%x for unit 0x%x\n", ccp->cunits[j].irq, ccp->cunits[j… in cleanup_module()
3214 free_irq(ccp->cunits[j].irq, &ccp->cunits[j].devstat); in cleanup_module()
3217 CPrintk(1, "c7000: clean_module: free a c7000_controller structure at address %p\n", ccp); in cleanup_module()
3218 kfree(ccp); in cleanup_module()