| .. | .. |
|---|
| 307 | 307 | ch->ccw[1].count = ch->trans_skb->len; |
|---|
| 308 | 308 | fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch); |
|---|
| 309 | 309 | ch->prof.send_stamp = jiffies; |
|---|
| 310 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 311 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 310 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 312 | 311 | ch->prof.doios_multi++; |
|---|
| 313 | 312 | if (rc != 0) { |
|---|
| 314 | 313 | priv->stats.tx_dropped += i; |
|---|
| .. | .. |
|---|
| 417 | 416 | if (ctcm_checkalloc_buffer(ch)) |
|---|
| 418 | 417 | return; |
|---|
| 419 | 418 | ch->ccw[1].count = ch->max_bufsize; |
|---|
| 420 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 421 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 419 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 422 | 420 | if (rc != 0) |
|---|
| 423 | 421 | ctcm_ccw_check_rc(ch, rc, "normal RX"); |
|---|
| 424 | 422 | } |
|---|
| .. | .. |
|---|
| 478 | 476 | |
|---|
| 479 | 477 | fsm_newstate(fi, (CHANNEL_DIRECTION(ch->flags) == CTCM_READ) |
|---|
| 480 | 478 | ? CTC_STATE_RXINIT : CTC_STATE_TXINIT); |
|---|
| 481 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 482 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 479 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 483 | 480 | if (rc != 0) { |
|---|
| 484 | 481 | fsm_deltimer(&ch->timer); |
|---|
| 485 | 482 | fsm_newstate(fi, CTC_STATE_SETUPWAIT); |
|---|
| .. | .. |
|---|
| 527 | 524 | return; |
|---|
| 528 | 525 | ch->ccw[1].count = ch->max_bufsize; |
|---|
| 529 | 526 | fsm_newstate(fi, CTC_STATE_RXIDLE); |
|---|
| 530 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 531 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 527 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 532 | 528 | if (rc != 0) { |
|---|
| 533 | 529 | fsm_newstate(fi, CTC_STATE_RXINIT); |
|---|
| 534 | 530 | ctcm_ccw_check_rc(ch, rc, "initial RX"); |
|---|
| .. | .. |
|---|
| 571 | 567 | /* Such conditional locking is undeterministic in |
|---|
| 572 | 568 | * static view. => ignore sparse warnings here. */ |
|---|
| 573 | 569 | |
|---|
| 574 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[6], |
|---|
| 575 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 570 | + rc = ccw_device_start(ch->cdev, &ch->ccw[6], 0, 0xff, 0); |
|---|
| 576 | 571 | if (event == CTC_EVENT_TIMER) /* see above comments */ |
|---|
| 577 | 572 | spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 578 | 573 | if (rc != 0) { |
|---|
| .. | .. |
|---|
| 637 | 632 | fsm_newstate(fi, CTC_STATE_STARTWAIT); |
|---|
| 638 | 633 | fsm_addtimer(&ch->timer, 1000, CTC_EVENT_TIMER, ch); |
|---|
| 639 | 634 | spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 640 | | - rc = ccw_device_halt(ch->cdev, (unsigned long)ch); |
|---|
| 635 | + rc = ccw_device_halt(ch->cdev, 0); |
|---|
| 641 | 636 | spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 642 | 637 | if (rc != 0) { |
|---|
| 643 | 638 | if (rc != -EBUSY) |
|---|
| .. | .. |
|---|
| 672 | 667 | * static view. => ignore sparse warnings here. */ |
|---|
| 673 | 668 | oldstate = fsm_getstate(fi); |
|---|
| 674 | 669 | fsm_newstate(fi, CTC_STATE_TERM); |
|---|
| 675 | | - rc = ccw_device_halt(ch->cdev, (unsigned long)ch); |
|---|
| 670 | + rc = ccw_device_halt(ch->cdev, 0); |
|---|
| 676 | 671 | |
|---|
| 677 | 672 | if (event == CTC_EVENT_STOP) |
|---|
| 678 | 673 | spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| .. | .. |
|---|
| 799 | 794 | fsm_addtimer(&ch->timer, CTCM_TIME_5_SEC, CTC_EVENT_TIMER, ch); |
|---|
| 800 | 795 | if (!IS_MPC(ch) && |
|---|
| 801 | 796 | (CHANNEL_DIRECTION(ch->flags) == CTCM_READ)) { |
|---|
| 802 | | - int rc = ccw_device_halt(ch->cdev, (unsigned long)ch); |
|---|
| 797 | + int rc = ccw_device_halt(ch->cdev, 0); |
|---|
| 803 | 798 | if (rc != 0) |
|---|
| 804 | 799 | ctcm_ccw_check_rc(ch, rc, |
|---|
| 805 | 800 | "HaltIO in chx_setuperr"); |
|---|
| .. | .. |
|---|
| 851 | 846 | /* Such conditional locking is a known problem for |
|---|
| 852 | 847 | * sparse because its undeterministic in static view. |
|---|
| 853 | 848 | * Warnings should be ignored here. */ |
|---|
| 854 | | - rc = ccw_device_halt(ch->cdev, (unsigned long)ch); |
|---|
| 849 | + rc = ccw_device_halt(ch->cdev, 0); |
|---|
| 855 | 850 | if (event == CTC_EVENT_TIMER) |
|---|
| 856 | 851 | spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 857 | 852 | if (rc != 0) { |
|---|
| .. | .. |
|---|
| 947 | 942 | ch2 = priv->channel[CTCM_WRITE]; |
|---|
| 948 | 943 | fsm_newstate(ch2->fsm, CTC_STATE_DTERM); |
|---|
| 949 | 944 | |
|---|
| 950 | | - ccw_device_halt(ch->cdev, (unsigned long)ch); |
|---|
| 951 | | - ccw_device_halt(ch2->cdev, (unsigned long)ch2); |
|---|
| 945 | + ccw_device_halt(ch->cdev, 0); |
|---|
| 946 | + ccw_device_halt(ch2->cdev, 0); |
|---|
| 952 | 947 | } |
|---|
| 953 | 948 | |
|---|
| 954 | 949 | /** |
|---|
| .. | .. |
|---|
| 1041 | 1036 | ctcmpc_dumpit((char *)&ch->ccw[3], |
|---|
| 1042 | 1037 | sizeof(struct ccw1) * 3); |
|---|
| 1043 | 1038 | |
|---|
| 1044 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[3], |
|---|
| 1045 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 1039 | + rc = ccw_device_start(ch->cdev, &ch->ccw[3], 0, 0xff, 0); |
|---|
| 1046 | 1040 | if (event == CTC_EVENT_TIMER) |
|---|
| 1047 | 1041 | spin_unlock_irqrestore(get_ccwdev_lock(ch->cdev), |
|---|
| 1048 | 1042 | saveflags); |
|---|
| .. | .. |
|---|
| 1361 | 1355 | ch->prof.send_stamp = jiffies; |
|---|
| 1362 | 1356 | if (do_debug_ccw) |
|---|
| 1363 | 1357 | ctcmpc_dumpit((char *)&ch->ccw[0], sizeof(struct ccw1) * 3); |
|---|
| 1364 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 1365 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 1358 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 1366 | 1359 | ch->prof.doios_multi++; |
|---|
| 1367 | 1360 | if (rc != 0) { |
|---|
| 1368 | 1361 | priv->stats.tx_dropped += i; |
|---|
| .. | .. |
|---|
| 1462 | 1455 | if (dolock) |
|---|
| 1463 | 1456 | spin_lock_irqsave( |
|---|
| 1464 | 1457 | get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 1465 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 1466 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 1458 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 1467 | 1459 | if (dolock) /* see remark about conditional locking */ |
|---|
| 1468 | 1460 | spin_unlock_irqrestore( |
|---|
| 1469 | 1461 | get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| .. | .. |
|---|
| 1569 | 1561 | if (event == CTC_EVENT_START) |
|---|
| 1570 | 1562 | /* see remark about conditional locking */ |
|---|
| 1571 | 1563 | spin_lock_irqsave(get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| 1572 | | - rc = ccw_device_start(ch->cdev, &ch->ccw[0], |
|---|
| 1573 | | - (unsigned long)ch, 0xff, 0); |
|---|
| 1564 | + rc = ccw_device_start(ch->cdev, &ch->ccw[0], 0, 0xff, 0); |
|---|
| 1574 | 1565 | if (event == CTC_EVENT_START) |
|---|
| 1575 | 1566 | spin_unlock_irqrestore( |
|---|
| 1576 | 1567 | get_ccwdev_lock(ch->cdev), saveflags); |
|---|
| .. | .. |
|---|
| 1704 | 1695 | grp->changed_side = 2; |
|---|
| 1705 | 1696 | break; |
|---|
| 1706 | 1697 | } |
|---|
| 1698 | + fallthrough; |
|---|
| 1707 | 1699 | case MPCG_STATE_XID0IOWAIX: |
|---|
| 1708 | 1700 | case MPCG_STATE_XID7INITW: |
|---|
| 1709 | 1701 | case MPCG_STATE_XID7INITX: |
|---|
| .. | .. |
|---|
| 1824 | 1816 | |
|---|
| 1825 | 1817 | spin_lock_irqsave(get_ccwdev_lock(wch->cdev), saveflags); |
|---|
| 1826 | 1818 | wch->prof.send_stamp = jiffies; |
|---|
| 1827 | | - rc = ccw_device_start(wch->cdev, &wch->ccw[3], |
|---|
| 1828 | | - (unsigned long) wch, 0xff, 0); |
|---|
| 1819 | + rc = ccw_device_start(wch->cdev, &wch->ccw[3], 0, 0xff, 0); |
|---|
| 1829 | 1820 | spin_unlock_irqrestore(get_ccwdev_lock(wch->cdev), saveflags); |
|---|
| 1830 | 1821 | |
|---|
| 1831 | 1822 | if ((grp->sweep_req_pend_num == 0) && |
|---|