aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/ctcm_mpc.c
diff options
context:
space:
mode:
authorPeter Tiedemann <ptiedem@de.ibm.com>2008-08-21 11:10:24 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-08-27 05:17:52 -0400
commit261893d30b0ddb5587f9143df18a6efed39a7ed6 (patch)
tree495dcda6ed7d774d816ed473df4a70837627e8f9 /drivers/s390/net/ctcm_mpc.c
parent6951df34d50330f1b117fd8371d7f7df39f43f6a (diff)
ctcm: netdev->priv vs. netdev->ml_priv
Use netdev->ml_priv instead of netdev->priv Signed-off-by: Peter Tiedemann <ptiedem@de.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/s390/net/ctcm_mpc.c')
-rw-r--r--drivers/s390/net/ctcm_mpc.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/s390/net/ctcm_mpc.c b/drivers/s390/net/ctcm_mpc.c
index 49ae1cd25caa..407f816f091b 100644
--- a/drivers/s390/net/ctcm_mpc.c
+++ b/drivers/s390/net/ctcm_mpc.c
@@ -313,10 +313,10 @@ static struct net_device *ctcmpc_get_dev(int port_num)
313 CTCM_FUNTAIL, device); 313 CTCM_FUNTAIL, device);
314 return NULL; 314 return NULL;
315 } 315 }
316 priv = dev->priv; 316 priv = dev->ml_priv;
317 if (priv == NULL) { 317 if (priv == NULL) {
318 CTCM_DBF_TEXT_(MPC_ERROR, CTC_DBF_ERROR, 318 CTCM_DBF_TEXT_(MPC_ERROR, CTC_DBF_ERROR,
319 "%s(%s): dev->priv is NULL", 319 "%s(%s): dev->ml_priv is NULL",
320 CTCM_FUNTAIL, device); 320 CTCM_FUNTAIL, device);
321 return NULL; 321 return NULL;
322 } 322 }
@@ -345,7 +345,7 @@ int ctc_mpc_alloc_channel(int port_num, void (*callback)(int, int))
345 dev = ctcmpc_get_dev(port_num); 345 dev = ctcmpc_get_dev(port_num);
346 if (dev == NULL) 346 if (dev == NULL)
347 return 1; 347 return 1;
348 priv = dev->priv; 348 priv = dev->ml_priv;
349 grp = priv->mpcg; 349 grp = priv->mpcg;
350 350
351 grp->allochanfunc = callback; 351 grp->allochanfunc = callback;
@@ -417,7 +417,7 @@ void ctc_mpc_establish_connectivity(int port_num,
417 dev = ctcmpc_get_dev(port_num); 417 dev = ctcmpc_get_dev(port_num);
418 if (dev == NULL) 418 if (dev == NULL)
419 return; 419 return;
420 priv = dev->priv; 420 priv = dev->ml_priv;
421 grp = priv->mpcg; 421 grp = priv->mpcg;
422 rch = priv->channel[READ]; 422 rch = priv->channel[READ];
423 wch = priv->channel[WRITE]; 423 wch = priv->channel[WRITE];
@@ -535,7 +535,7 @@ void ctc_mpc_dealloc_ch(int port_num)
535 dev = ctcmpc_get_dev(port_num); 535 dev = ctcmpc_get_dev(port_num);
536 if (dev == NULL) 536 if (dev == NULL)
537 return; 537 return;
538 priv = dev->priv; 538 priv = dev->ml_priv;
539 grp = priv->mpcg; 539 grp = priv->mpcg;
540 540
541 CTCM_DBF_TEXT_(MPC_SETUP, CTC_DBF_DEBUG, 541 CTCM_DBF_TEXT_(MPC_SETUP, CTC_DBF_DEBUG,
@@ -571,7 +571,7 @@ void ctc_mpc_flow_control(int port_num, int flowc)
571 dev = ctcmpc_get_dev(port_num); 571 dev = ctcmpc_get_dev(port_num);
572 if (dev == NULL) 572 if (dev == NULL)
573 return; 573 return;
574 priv = dev->priv; 574 priv = dev->ml_priv;
575 grp = priv->mpcg; 575 grp = priv->mpcg;
576 576
577 CTCM_DBF_TEXT_(MPC_TRACE, CTC_DBF_DEBUG, 577 CTCM_DBF_TEXT_(MPC_TRACE, CTC_DBF_DEBUG,
@@ -620,7 +620,7 @@ static void mpc_rcvd_sweep_resp(struct mpcg_info *mpcginfo)
620{ 620{
621 struct channel *rch = mpcginfo->ch; 621 struct channel *rch = mpcginfo->ch;
622 struct net_device *dev = rch->netdev; 622 struct net_device *dev = rch->netdev;
623 struct ctcm_priv *priv = dev->priv; 623 struct ctcm_priv *priv = dev->ml_priv;
624 struct mpc_group *grp = priv->mpcg; 624 struct mpc_group *grp = priv->mpcg;
625 struct channel *ch = priv->channel[WRITE]; 625 struct channel *ch = priv->channel[WRITE];
626 626
@@ -651,7 +651,7 @@ static void mpc_rcvd_sweep_resp(struct mpcg_info *mpcginfo)
651static void ctcmpc_send_sweep_resp(struct channel *rch) 651static void ctcmpc_send_sweep_resp(struct channel *rch)
652{ 652{
653 struct net_device *dev = rch->netdev; 653 struct net_device *dev = rch->netdev;
654 struct ctcm_priv *priv = dev->priv; 654 struct ctcm_priv *priv = dev->ml_priv;
655 struct mpc_group *grp = priv->mpcg; 655 struct mpc_group *grp = priv->mpcg;
656 int rc = 0; 656 int rc = 0;
657 struct th_sweep *header; 657 struct th_sweep *header;
@@ -713,7 +713,7 @@ static void mpc_rcvd_sweep_req(struct mpcg_info *mpcginfo)
713{ 713{
714 struct channel *rch = mpcginfo->ch; 714 struct channel *rch = mpcginfo->ch;
715 struct net_device *dev = rch->netdev; 715 struct net_device *dev = rch->netdev;
716 struct ctcm_priv *priv = dev->priv; 716 struct ctcm_priv *priv = dev->ml_priv;
717 struct mpc_group *grp = priv->mpcg; 717 struct mpc_group *grp = priv->mpcg;
718 struct channel *ch = priv->channel[WRITE]; 718 struct channel *ch = priv->channel[WRITE];
719 719
@@ -847,7 +847,7 @@ static int mpcg_fsm_len = ARRAY_SIZE(mpcg_fsm);
847static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg) 847static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg)
848{ 848{
849 struct net_device *dev = arg; 849 struct net_device *dev = arg;
850 struct ctcm_priv *priv = dev->priv; 850 struct ctcm_priv *priv = dev->ml_priv;
851 struct mpc_group *grp = priv->mpcg; 851 struct mpc_group *grp = priv->mpcg;
852 852
853 if (grp == NULL) { 853 if (grp == NULL) {
@@ -891,7 +891,7 @@ static void mpc_action_go_ready(fsm_instance *fsm, int event, void *arg)
891void mpc_group_ready(unsigned long adev) 891void mpc_group_ready(unsigned long adev)
892{ 892{
893 struct net_device *dev = (struct net_device *)adev; 893 struct net_device *dev = (struct net_device *)adev;
894 struct ctcm_priv *priv = dev->priv; 894 struct ctcm_priv *priv = dev->ml_priv;
895 struct mpc_group *grp = priv->mpcg; 895 struct mpc_group *grp = priv->mpcg;
896 struct channel *ch = NULL; 896 struct channel *ch = NULL;
897 897
@@ -947,7 +947,7 @@ void mpc_group_ready(unsigned long adev)
947void mpc_channel_action(struct channel *ch, int direction, int action) 947void mpc_channel_action(struct channel *ch, int direction, int action)
948{ 948{
949 struct net_device *dev = ch->netdev; 949 struct net_device *dev = ch->netdev;
950 struct ctcm_priv *priv = dev->priv; 950 struct ctcm_priv *priv = dev->ml_priv;
951 struct mpc_group *grp = priv->mpcg; 951 struct mpc_group *grp = priv->mpcg;
952 952
953 if (grp == NULL) { 953 if (grp == NULL) {
@@ -1057,7 +1057,7 @@ done:
1057static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb) 1057static void ctcmpc_unpack_skb(struct channel *ch, struct sk_buff *pskb)
1058{ 1058{
1059 struct net_device *dev = ch->netdev; 1059 struct net_device *dev = ch->netdev;
1060 struct ctcm_priv *priv = dev->priv; 1060 struct ctcm_priv *priv = dev->ml_priv;
1061 struct mpc_group *grp = priv->mpcg; 1061 struct mpc_group *grp = priv->mpcg;
1062 struct pdu *curr_pdu; 1062 struct pdu *curr_pdu;
1063 struct mpcg_info *mpcginfo; 1063 struct mpcg_info *mpcginfo;
@@ -1255,7 +1255,7 @@ void ctcmpc_bh(unsigned long thischan)
1255 struct channel *ch = (struct channel *)thischan; 1255 struct channel *ch = (struct channel *)thischan;
1256 struct sk_buff *skb; 1256 struct sk_buff *skb;
1257 struct net_device *dev = ch->netdev; 1257 struct net_device *dev = ch->netdev;
1258 struct ctcm_priv *priv = dev->priv; 1258 struct ctcm_priv *priv = dev->ml_priv;
1259 struct mpc_group *grp = priv->mpcg; 1259 struct mpc_group *grp = priv->mpcg;
1260 1260
1261 CTCM_PR_DEBUG("%s cp:%i enter: %s() %s\n", 1261 CTCM_PR_DEBUG("%s cp:%i enter: %s() %s\n",
@@ -1377,7 +1377,7 @@ static void mpc_action_go_inop(fsm_instance *fi, int event, void *arg)
1377 BUG_ON(dev == NULL); 1377 BUG_ON(dev == NULL);
1378 CTCM_PR_DEBUG("Enter %s: %s\n", __func__, dev->name); 1378 CTCM_PR_DEBUG("Enter %s: %s\n", __func__, dev->name);
1379 1379
1380 priv = dev->priv; 1380 priv = dev->ml_priv;
1381 grp = priv->mpcg; 1381 grp = priv->mpcg;
1382 grp->flow_off_called = 0; 1382 grp->flow_off_called = 0;
1383 fsm_deltimer(&grp->timer); 1383 fsm_deltimer(&grp->timer);
@@ -1483,7 +1483,7 @@ static void mpc_action_timeout(fsm_instance *fi, int event, void *arg)
1483 1483
1484 BUG_ON(dev == NULL); 1484 BUG_ON(dev == NULL);
1485 1485
1486 priv = dev->priv; 1486 priv = dev->ml_priv;
1487 grp = priv->mpcg; 1487 grp = priv->mpcg;
1488 wch = priv->channel[WRITE]; 1488 wch = priv->channel[WRITE];
1489 rch = priv->channel[READ]; 1489 rch = priv->channel[READ];
@@ -1521,7 +1521,7 @@ void mpc_action_discontact(fsm_instance *fi, int event, void *arg)
1521 if (ch) { 1521 if (ch) {
1522 dev = ch->netdev; 1522 dev = ch->netdev;
1523 if (dev) { 1523 if (dev) {
1524 priv = dev->priv; 1524 priv = dev->ml_priv;
1525 if (priv) { 1525 if (priv) {
1526 CTCM_DBF_TEXT_(MPC_TRACE, CTC_DBF_NOTICE, 1526 CTCM_DBF_TEXT_(MPC_TRACE, CTC_DBF_NOTICE,
1527 "%s: %s: %s\n", 1527 "%s: %s: %s\n",
@@ -1569,7 +1569,7 @@ static int mpc_validate_xid(struct mpcg_info *mpcginfo)
1569{ 1569{
1570 struct channel *ch = mpcginfo->ch; 1570 struct channel *ch = mpcginfo->ch;
1571 struct net_device *dev = ch->netdev; 1571 struct net_device *dev = ch->netdev;
1572 struct ctcm_priv *priv = dev->priv; 1572 struct ctcm_priv *priv = dev->ml_priv;
1573 struct mpc_group *grp = priv->mpcg; 1573 struct mpc_group *grp = priv->mpcg;
1574 struct xid2 *xid = mpcginfo->xid; 1574 struct xid2 *xid = mpcginfo->xid;
1575 int rc = 0; 1575 int rc = 0;
@@ -1866,7 +1866,7 @@ static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg)
1866{ 1866{
1867 struct channel *ch = arg; 1867 struct channel *ch = arg;
1868 struct net_device *dev = ch->netdev; 1868 struct net_device *dev = ch->netdev;
1869 struct ctcm_priv *priv = dev->priv; 1869 struct ctcm_priv *priv = dev->ml_priv;
1870 struct mpc_group *grp = priv->mpcg; 1870 struct mpc_group *grp = priv->mpcg;
1871 1871
1872 CTCM_PR_DEBUG("Enter %s: cp=%i ch=0x%p id=%s\n", 1872 CTCM_PR_DEBUG("Enter %s: cp=%i ch=0x%p id=%s\n",
@@ -1906,7 +1906,7 @@ static void mpc_action_doxid0(fsm_instance *fsm, int event, void *arg)
1906static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg) 1906static void mpc_action_doxid7(fsm_instance *fsm, int event, void *arg)
1907{ 1907{
1908 struct net_device *dev = arg; 1908 struct net_device *dev = arg;
1909 struct ctcm_priv *priv = dev->priv; 1909 struct ctcm_priv *priv = dev->ml_priv;
1910 struct mpc_group *grp = NULL; 1910 struct mpc_group *grp = NULL;
1911 int direction; 1911 int direction;
1912 int send = 0; 1912 int send = 0;
@@ -1983,7 +1983,7 @@ static void mpc_action_rcvd_xid0(fsm_instance *fsm, int event, void *arg)
1983 struct mpcg_info *mpcginfo = arg; 1983 struct mpcg_info *mpcginfo = arg;
1984 struct channel *ch = mpcginfo->ch; 1984 struct channel *ch = mpcginfo->ch;
1985 struct net_device *dev = ch->netdev; 1985 struct net_device *dev = ch->netdev;
1986 struct ctcm_priv *priv = dev->priv; 1986 struct ctcm_priv *priv = dev->ml_priv;
1987 struct mpc_group *grp = priv->mpcg; 1987 struct mpc_group *grp = priv->mpcg;
1988 1988
1989 CTCM_PR_DEBUG("%s: ch-id:%s xid2:%i xid7:%i xidt_p2:%i \n", 1989 CTCM_PR_DEBUG("%s: ch-id:%s xid2:%i xid7:%i xidt_p2:%i \n",
@@ -2045,7 +2045,7 @@ static void mpc_action_rcvd_xid7(fsm_instance *fsm, int event, void *arg)
2045 struct mpcg_info *mpcginfo = arg; 2045 struct mpcg_info *mpcginfo = arg;
2046 struct channel *ch = mpcginfo->ch; 2046 struct channel *ch = mpcginfo->ch;
2047 struct net_device *dev = ch->netdev; 2047 struct net_device *dev = ch->netdev;
2048 struct ctcm_priv *priv = dev->priv; 2048 struct ctcm_priv *priv = dev->ml_priv;
2049 struct mpc_group *grp = priv->mpcg; 2049 struct mpc_group *grp = priv->mpcg;
2050 2050
2051 CTCM_PR_DEBUG("Enter %s: cp=%i ch=0x%p id=%s\n", 2051 CTCM_PR_DEBUG("Enter %s: cp=%i ch=0x%p id=%s\n",
@@ -2097,7 +2097,7 @@ static int mpc_send_qllc_discontact(struct net_device *dev)
2097 __u32 new_len = 0; 2097 __u32 new_len = 0;
2098 struct sk_buff *skb; 2098 struct sk_buff *skb;
2099 struct qllc *qllcptr; 2099 struct qllc *qllcptr;
2100 struct ctcm_priv *priv = dev->priv; 2100 struct ctcm_priv *priv = dev->ml_priv;
2101 struct mpc_group *grp = priv->mpcg; 2101 struct mpc_group *grp = priv->mpcg;
2102 2102
2103 CTCM_PR_DEBUG("%s: GROUP STATE: %s\n", 2103 CTCM_PR_DEBUG("%s: GROUP STATE: %s\n",