Lines Matching refs:rc
43 int rc = 0; in qeth_l2_do_ioctl() local
56 rc = qeth_snmp_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
73 rc = -EINVAL; in qeth_l2_do_ioctl()
79 rc = qeth_query_oat_command(card, rq->ifr_ifru.ifru_data); in qeth_l2_do_ioctl()
82 rc = -EOPNOTSUPP; in qeth_l2_do_ioctl()
84 if (rc) in qeth_l2_do_ioctl()
85 QETH_CARD_TEXT_(card, 2, "ioce%d", rc); in qeth_l2_do_ioctl()
86 return rc; in qeth_l2_do_ioctl()
93 int rc = 0; in qeth_l2_verify_dev() local
98 rc = QETH_REAL_CARD; in qeth_l2_verify_dev()
104 return rc; in qeth_l2_verify_dev()
131 int rc; in qeth_setdel_makerc() local
137 rc = 0; in qeth_setdel_makerc()
140 rc = -ENOSYS; in qeth_setdel_makerc()
143 rc = -ENOSPC; in qeth_setdel_makerc()
147 rc = -EEXIST; in qeth_setdel_makerc()
151 rc = -EPERM; in qeth_setdel_makerc()
154 rc = -ENOENT; in qeth_setdel_makerc()
157 rc = -ENOMEM; in qeth_setdel_makerc()
160 rc = -EIO; in qeth_setdel_makerc()
163 return rc; in qeth_setdel_makerc()
168 int rc; in qeth_l2_send_setgroupmac() local
171 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_setgroupmac()
173 if (rc == -EEXIST) in qeth_l2_send_setgroupmac()
176 else if (rc) in qeth_l2_send_setgroupmac()
178 mac, QETH_CARD_IFNAME(card), rc); in qeth_l2_send_setgroupmac()
179 return rc; in qeth_l2_send_setgroupmac()
184 int rc; in qeth_l2_send_delgroupmac() local
187 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_delgroupmac()
189 if (rc) in qeth_l2_send_delgroupmac()
192 mac, QETH_CARD_IFNAME(card), rc); in qeth_l2_send_delgroupmac()
193 return rc; in qeth_l2_send_delgroupmac()
199 int rc; in qeth_l2_add_mc() local
211 rc = qeth_setdel_makerc(card, in qeth_l2_add_mc()
214 rc = qeth_setdel_makerc(card, in qeth_l2_add_mc()
218 if (!rc) in qeth_l2_add_mc()
330 int rc; in qeth_l2_vlan_rx_add_vid() local
346 rc = qeth_l2_send_setdelvlan(card, vid, IPA_CMD_SETVLAN); in qeth_l2_vlan_rx_add_vid()
347 if (rc) { in qeth_l2_vlan_rx_add_vid()
349 return rc; in qeth_l2_vlan_rx_add_vid()
365 int rc = 0; in qeth_l2_vlan_rx_kill_vid() local
386 rc = qeth_l2_send_setdelvlan(card, vid, IPA_CMD_DELVLAN); in qeth_l2_vlan_rx_kill_vid()
390 return rc; in qeth_l2_vlan_rx_kill_vid()
395 int rc = 0; in qeth_l2_stop_card() local
430 return rc; in qeth_l2_stop_card()
579 int rc; in qeth_l2_send_setmac() local
582 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_setmac()
584 if (rc == 0) { in qeth_l2_send_setmac()
592 switch (rc) { in qeth_l2_send_setmac()
603 return rc; in qeth_l2_send_setmac()
608 int rc; in qeth_l2_send_delmac() local
613 rc = qeth_setdel_makerc(card, qeth_l2_send_setdelmac(card, mac, in qeth_l2_send_delmac()
615 if (rc == 0) in qeth_l2_send_delmac()
617 return rc; in qeth_l2_send_delmac()
622 int rc = 0; in qeth_l2_request_initial_mac() local
629 rc = qeth_query_setadapterparms(card); in qeth_l2_request_initial_mac()
630 if (rc) { in qeth_l2_request_initial_mac()
633 CARD_BUS_ID(card), rc); in qeth_l2_request_initial_mac()
641 rc = qeth_setadpparms_change_macaddr(card); in qeth_l2_request_initial_mac()
642 if (rc) { in qeth_l2_request_initial_mac()
644 "device %s: x%x\n", CARD_BUS_ID(card), rc); in qeth_l2_request_initial_mac()
645 QETH_DBF_TEXT_(SETUP, 2, "1err%04x", rc); in qeth_l2_request_initial_mac()
646 return rc; in qeth_l2_request_initial_mac()
660 int rc = 0; in qeth_l2_set_mac_address() local
680 rc = qeth_l2_send_delmac(card, &card->dev->dev_addr[0]); in qeth_l2_set_mac_address()
681 if (!rc || (rc == -ENOENT)) in qeth_l2_set_mac_address()
682 rc = qeth_l2_send_setmac(card, addr->sa_data); in qeth_l2_set_mac_address()
683 return rc ? -EINVAL : 0; in qeth_l2_set_mac_address()
714 int rc; in qeth_l2_hard_start_xmit() local
789 rc = qeth_do_send_packet(card, queue, new_skb, hdr, in qeth_l2_hard_start_xmit()
792 rc = qeth_do_send_packet_fast(card, queue, new_skb, hdr, in qeth_l2_hard_start_xmit()
794 if (!rc) { in qeth_l2_hard_start_xmit()
799 rc = NETDEV_TX_OK; in qeth_l2_hard_start_xmit()
804 if (rc == -EBUSY) { in qeth_l2_hard_start_xmit()
816 return rc; in qeth_l2_hard_start_xmit()
831 int rc = 0; in __qeth_l2_open() local
835 return rc; in __qeth_l2_open()
852 rc = -EIO; in __qeth_l2_open()
853 return rc; in __qeth_l2_open()
979 int rc = 0; in __qeth_l2_set_online() local
988 rc = qeth_core_hardsetup_card(card); in __qeth_l2_set_online()
989 if (rc) { in __qeth_l2_set_online()
990 QETH_DBF_TEXT_(SETUP, 2, "2err%04x", rc); in __qeth_l2_set_online()
991 rc = -ENODEV; in __qeth_l2_set_online()
1001 rc = -ENODEV; in __qeth_l2_set_online()
1024 rc = qeth_send_startlan(card); in __qeth_l2_set_online()
1025 if (rc) { in __qeth_l2_set_online()
1026 QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc); in __qeth_l2_set_online()
1027 if (rc == 0xe080) { in __qeth_l2_set_online()
1033 rc = -ENODEV; in __qeth_l2_set_online()
1042 rc = qeth_set_access_ctrl_online(card, 0); in __qeth_l2_set_online()
1043 if (rc) { in __qeth_l2_set_online()
1044 rc = -ENODEV; in __qeth_l2_set_online()
1055 rc = qeth_init_qdio_queues(card); in __qeth_l2_set_online()
1056 if (rc) { in __qeth_l2_set_online()
1057 QETH_DBF_TEXT_(SETUP, 2, "6err%d", rc); in __qeth_l2_set_online()
1058 rc = -ENODEV; in __qeth_l2_set_online()
1098 return rc; in __qeth_l2_set_online()
1110 int rc = 0, rc2 = 0, rc3 = 0; in __qeth_l2_set_offline() local
1126 rc = ccw_device_set_offline(CARD_DDEV(card)); in __qeth_l2_set_offline()
1129 if (!rc) in __qeth_l2_set_offline()
1130 rc = (rc2) ? rc2 : rc3; in __qeth_l2_set_offline()
1131 if (rc) in __qeth_l2_set_offline()
1132 QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc); in __qeth_l2_set_offline()
1151 int rc = 0; in qeth_l2_recover() local
1162 rc = __qeth_l2_set_online(card->gdev, 1); in qeth_l2_recover()
1163 if (!rc) in qeth_l2_recover()
1221 int rc = 0; in qeth_l2_pm_resume() local
1227 rc = __qeth_l2_set_online(card->gdev, 1); in qeth_l2_pm_resume()
1228 if (rc) { in qeth_l2_pm_resume()
1234 rc = __qeth_l2_set_online(card->gdev, 0); in qeth_l2_pm_resume()
1239 if (rc) in qeth_l2_pm_resume()
1242 return rc; in qeth_l2_pm_resume()
1286 int rc = 0; in qeth_osn_send_control_data() local
1295 rc = ccw_device_start(card->write.ccwdev, &card->write.ccw, in qeth_osn_send_control_data()
1298 if (rc) { in qeth_osn_send_control_data()
1300 "ccw_device_start rc = %i\n", rc); in qeth_osn_send_control_data()
1301 QETH_CARD_TEXT_(card, 2, " err%d", rc); in qeth_osn_send_control_data()
1306 return rc; in qeth_osn_send_control_data()
1330 int rc; in qeth_osn_assist() local
1342 rc = qeth_osn_send_ipa_cmd(card, iob, data_len); in qeth_osn_assist()
1343 return rc; in qeth_osn_assist()
1619 int rc; in qeth_bridgeport_makerc() local
1625 rc = 0; in qeth_bridgeport_makerc()
1628 rc = -ENOSYS; in qeth_bridgeport_makerc()
1631 rc = -ENODEV; /* maybe not the best code here? */ in qeth_bridgeport_makerc()
1638 rc = -EEXIST; in qeth_bridgeport_makerc()
1643 rc = -EBUSY; in qeth_bridgeport_makerc()
1648 rc = -EIO; in qeth_bridgeport_makerc()
1652 rc = -EBUSY; in qeth_bridgeport_makerc()
1657 rc = -EEXIST; in qeth_bridgeport_makerc()
1662 rc = -EBUSY; in qeth_bridgeport_makerc()
1667 rc = -EACCES; in qeth_bridgeport_makerc()
1672 rc = -EIO; in qeth_bridgeport_makerc()
1676 rc = -ENOSYS; in qeth_bridgeport_makerc()
1679 rc = -ENOSYS; in qeth_bridgeport_makerc()
1682 rc = -EIO; in qeth_bridgeport_makerc()
1684 if (rc) { in qeth_bridgeport_makerc()
1688 return rc; in qeth_bridgeport_makerc()
1784 int rc = 0; in qeth_bridgeport_query_ports() local
1809 rc = qeth_send_ipa_cmd(card, iob, qeth_bridgeport_query_ports_cb, in qeth_bridgeport_query_ports()
1811 if (rc) in qeth_bridgeport_query_ports()
1812 return rc; in qeth_bridgeport_query_ports()
1813 rc = qeth_bridgeport_makerc(card, &cbctl, IPA_SBP_QUERY_BRIDGE_PORTS); in qeth_bridgeport_query_ports()
1814 return rc; in qeth_bridgeport_query_ports()
1838 int rc = 0; in qeth_bridgeport_setrole() local
1875 rc = qeth_send_ipa_cmd(card, iob, qeth_bridgeport_set_cb, in qeth_bridgeport_setrole()
1877 if (rc) in qeth_bridgeport_setrole()
1878 return rc; in qeth_bridgeport_setrole()
1879 rc = qeth_bridgeport_makerc(card, &cbctl, setcmd); in qeth_bridgeport_setrole()
1880 return rc; in qeth_bridgeport_setrole()
1891 int rc; in qeth_anset_makerc() local
1896 rc = 0; in qeth_anset_makerc()
1901 rc = -ENOSYS; in qeth_anset_makerc()
1906 rc = -EAGAIN; in qeth_anset_makerc()
1909 rc = -EIO; in qeth_anset_makerc()
1912 rc = -EIO; in qeth_anset_makerc()
1914 if (rc) { in qeth_anset_makerc()
1918 return rc; in qeth_anset_makerc()
1954 int rc; in qeth_bridgeport_an_set() local
1968 rc = qdio_pnso_brinfo(schid, 1, &response, in qeth_bridgeport_an_set()
1971 rc = qdio_pnso_brinfo(schid, 0, &response, NULL, NULL); in qeth_bridgeport_an_set()
1972 return qeth_anset_makerc(card, rc, response); in qeth_bridgeport_an_set()