Changeset fafb8e5 in mainline for uspace/lib/drv


Ignore:
Timestamp:
2019-02-06T13:25:12Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
95a47b0
Parents:
eb13ef8
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-02 14:10:59)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-06 13:25:12)
Message:

Mechanically lowercase IPC_SET_*/IPC_GET_*

Location:
uspace/lib/drv/generic
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    reb13ef8 rfafb8e5  
    119119static void driver_dev_add(ipc_call_t *icall)
    120120{
    121         devman_handle_t dev_handle = IPC_GET_ARG1(icall);
    122         devman_handle_t parent_fun_handle = IPC_GET_ARG2(icall);
     121        devman_handle_t dev_handle = ipc_get_arg1(icall);
     122        devman_handle_t parent_fun_handle = ipc_get_arg2(icall);
    123123
    124124        char *dev_name = NULL;
     
    173173static void driver_dev_remove(ipc_call_t *icall)
    174174{
    175         devman_handle_t devh = IPC_GET_ARG1(icall);
     175        devman_handle_t devh = ipc_get_arg1(icall);
    176176
    177177        fibril_mutex_lock(&devices_mutex);
     
    206206static void driver_dev_gone(ipc_call_t *icall)
    207207{
    208         devman_handle_t devh = IPC_GET_ARG1(icall);
     208        devman_handle_t devh = ipc_get_arg1(icall);
    209209
    210210        fibril_mutex_lock(&devices_mutex);
     
    239239static void driver_fun_online(ipc_call_t *icall)
    240240{
    241         devman_handle_t funh = IPC_GET_ARG1(icall);
     241        devman_handle_t funh = ipc_get_arg1(icall);
    242242
    243243        /*
     
    274274static void driver_fun_offline(ipc_call_t *icall)
    275275{
    276         devman_handle_t funh = IPC_GET_ARG1(icall);
     276        devman_handle_t funh = ipc_get_arg1(icall);
    277277
    278278        /*
     
    343343                async_get_call(&call);
    344344
    345                 if (!IPC_GET_IMETHOD(&call)) {
     345                if (!ipc_get_imethod(&call)) {
    346346                        async_answer_0(&call, EOK);
    347347                        break;
    348348                }
    349349
    350                 switch (IPC_GET_IMETHOD(&call)) {
     350                switch (ipc_get_imethod(&call)) {
    351351                case DRIVER_DEV_ADD:
    352352                        driver_dev_add(&call);
     
    385385         * the device to which the client connected.
    386386         */
    387         devman_handle_t handle = IPC_GET_ARG2(icall);
     387        devman_handle_t handle = ipc_get_arg2(icall);
    388388
    389389        fibril_mutex_lock(&functions_mutex);
     
    429429                async_get_call(&call);
    430430
    431                 sysarg_t method = IPC_GET_IMETHOD(&call);
     431                sysarg_t method = ipc_get_imethod(&call);
    432432
    433433                if (!method) {
     
    483483
    484484                /* get the method of the remote interface */
    485                 sysarg_t iface_method_idx = IPC_GET_ARG1(&call);
     485                sysarg_t iface_method_idx = ipc_get_arg1(&call);
    486486                remote_iface_func_ptr_t iface_method_ptr =
    487487                    get_remote_method(rem_iface, iface_method_idx);
  • uspace/lib/drv/generic/remote_ieee80211.c

    reb13ef8 rfafb8e5  
    276276        memset(&scan_results, 0, sizeof(ieee80211_scan_results_t));
    277277
    278         bool now = IPC_GET_ARG2(call);
     278        bool now = ipc_get_arg2(call);
    279279
    280280        errno_t rc = ieee80211_iface->get_scan_results(fun, &scan_results, now);
  • uspace/lib/drv/generic/remote_nic.c

    reb13ef8 rfafb8e5  
    10101010        async_wait_for(message_id, &res);
    10111011
    1012         *id = IPC_GET_ARG1(&result);
     1012        *id = ipc_get_arg1(&result);
    10131013        return res;
    10141014}
     
    13851385        assert(nic_iface->set_state);
    13861386
    1387         nic_device_state_t state = (nic_device_state_t) IPC_GET_ARG2(call);
     1387        nic_device_state_t state = (nic_device_state_t) ipc_get_arg2(call);
    13881388
    13891389        errno_t rc = nic_iface->set_state(dev, state);
     
    15691569        }
    15701570
    1571         int speed = (int) IPC_GET_ARG2(call);
    1572         nic_channel_mode_t duplex = (nic_channel_mode_t) IPC_GET_ARG3(call);
    1573         nic_role_t role = (nic_role_t) IPC_GET_ARG4(call);
     1571        int speed = (int) ipc_get_arg2(call);
     1572        nic_channel_mode_t duplex = (nic_channel_mode_t) ipc_get_arg3(call);
     1573        nic_role_t role = (nic_role_t) ipc_get_arg4(call);
    15741574
    15751575        errno_t rc = nic_iface->set_operation_mode(dev, speed, duplex, role);
     
    15861586        }
    15871587
    1588         uint32_t advertisement = (uint32_t) IPC_GET_ARG2(call);
     1588        uint32_t advertisement = (uint32_t) ipc_get_arg2(call);
    15891589
    15901590        errno_t rc = nic_iface->autoneg_enable(dev, advertisement);
     
    16641664        }
    16651665
    1666         int allow_send = (int) IPC_GET_ARG2(call);
    1667         int allow_receive = (int) IPC_GET_ARG3(call);
    1668         uint16_t pause = (uint16_t) IPC_GET_ARG4(call);
     1666        int allow_send = (int) ipc_get_arg2(call);
     1667        int allow_receive = (int) ipc_get_arg3(call);
     1668        uint16_t pause = (uint16_t) ipc_get_arg4(call);
    16691669
    16701670        errno_t rc = nic_iface->set_pause(dev, allow_send, allow_receive,
     
    16821682        }
    16831683
    1684         size_t max_count = IPC_GET_ARG2(call);
     1684        size_t max_count = ipc_get_arg2(call);
    16851685        nic_address_t *address_list = NULL;
    16861686
     
    17331733
    17341734        size_t length;
    1735         nic_unicast_mode_t mode = IPC_GET_ARG2(call);
    1736         size_t address_count = IPC_GET_ARG3(call);
     1735        nic_unicast_mode_t mode = ipc_get_arg2(call);
     1736        size_t address_count = ipc_get_arg3(call);
    17371737        nic_address_t *address_list = NULL;
    17381738
     
    17851785        }
    17861786
    1787         size_t max_count = IPC_GET_ARG2(call);
     1787        size_t max_count = ipc_get_arg2(call);
    17881788        nic_address_t *address_list = NULL;
    17891789
     
    18351835        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    18361836
    1837         nic_multicast_mode_t mode = IPC_GET_ARG2(call);
    1838         size_t address_count = IPC_GET_ARG3(call);
     1837        nic_multicast_mode_t mode = ipc_get_arg2(call);
     1838        size_t address_count = ipc_get_arg3(call);
    18391839        nic_address_t *address_list = NULL;
    18401840
     
    19031903        }
    19041904
    1905         nic_broadcast_mode_t mode = IPC_GET_ARG2(call);
     1905        nic_broadcast_mode_t mode = ipc_get_arg2(call);
    19061906
    19071907        errno_t rc = nic_iface->broadcast_set_mode(dev, mode);
     
    19331933        }
    19341934
    1935         uint32_t mode = IPC_GET_ARG2(call);
     1935        uint32_t mode = ipc_get_arg2(call);
    19361936
    19371937        errno_t rc = nic_iface->defective_set_mode(dev, mode);
     
    19481948        }
    19491949
    1950         size_t max_count = IPC_GET_ARG2(call);
     1950        size_t max_count = ipc_get_arg2(call);
    19511951        nic_address_t *address_list = NULL;
    19521952
     
    19981998
    19991999        size_t length;
    2000         size_t address_count = IPC_GET_ARG2(call);
     2000        size_t address_count = ipc_get_arg2(call);
    20012001        nic_address_t *address_list = NULL;
    20022002
     
    20812081        nic_vlan_mask_t vlan_mask;
    20822082        nic_vlan_mask_t *vlan_mask_pointer = NULL;
    2083         bool vlan_mask_set = (bool) IPC_GET_ARG2(call);
     2083        bool vlan_mask_set = (bool) ipc_get_arg2(call);
    20842084
    20852085        if (vlan_mask_set) {
     
    21242124        }
    21252125
    2126         uint16_t tag = (uint16_t) IPC_GET_ARG2(call);
    2127         bool add = (int) IPC_GET_ARG3(call);
    2128         bool strip = (int) IPC_GET_ARG4(call);
     2126        uint16_t tag = (uint16_t) ipc_get_arg2(call);
     2127        bool add = (int) ipc_get_arg3(call);
     2128        bool strip = (int) ipc_get_arg4(call);
    21292129
    21302130        errno_t rc = nic_iface->vlan_set_tag(dev, tag, add, strip);
     
    21372137        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    21382138
    2139         int send_data = (int) IPC_GET_ARG3(call);
     2139        int send_data = (int) ipc_get_arg3(call);
    21402140        ipc_call_t data;
    21412141
     
    21752175
    21762176        nic_wv_id_t id = 0;
    2177         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(call);
     2177        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
    21782178
    21792179        errno_t rc = nic_iface->wol_virtue_add(dev, type, virtue, length, &id);
     
    21922192        }
    21932193
    2194         nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(call);
     2194        nic_wv_id_t id = (nic_wv_id_t) ipc_get_arg2(call);
    21952195
    21962196        errno_t rc = nic_iface->wol_virtue_remove(dev, id);
     
    22082208        }
    22092209
    2210         nic_wv_id_t id = (nic_wv_id_t) IPC_GET_ARG2(call);
    2211         size_t max_length = IPC_GET_ARG3(call);
     2210        nic_wv_id_t id = (nic_wv_id_t) ipc_get_arg2(call);
     2211        size_t max_length = ipc_get_arg3(call);
    22122212        nic_wv_type_t type = NIC_WV_NONE;
    22132213        size_t length = 0;
     
    22592259        }
    22602260
    2261         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(call);
    2262         size_t max_count = IPC_GET_ARG3(call);
     2261        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
     2262        size_t max_count = ipc_get_arg3(call);
    22632263        size_t count = 0;
    22642264        nic_wv_id_t *id_list = NULL;
     
    23102310
    23112311        int count = -1;
    2312         nic_wv_type_t type = (nic_wv_type_t) IPC_GET_ARG2(call);
     2312        nic_wv_type_t type = (nic_wv_type_t) ipc_get_arg2(call);
    23132313
    23142314        errno_t rc = nic_iface->wol_virtue_get_caps(dev, type, &count);
     
    23252325        }
    23262326
    2327         size_t max_length = (size_t) IPC_GET_ARG2(call);
     2327        size_t max_length = (size_t) ipc_get_arg2(call);
    23282328        size_t frame_length = 0;
    23292329        nic_wv_type_t type = NIC_WV_NONE;
     
    23862386        }
    23872387
    2388         uint32_t mask = (uint32_t) IPC_GET_ARG2(call);
    2389         uint32_t active = (uint32_t) IPC_GET_ARG3(call);
     2388        uint32_t mask = (uint32_t) ipc_get_arg2(call);
     2389        uint32_t active = (uint32_t) ipc_get_arg3(call);
    23902390
    23912391        errno_t rc = nic_iface->offload_set(dev, mask, active);
     
    24032403
    24042404        nic_poll_mode_t mode = NIC_POLL_IMMEDIATE;
    2405         int request_data = IPC_GET_ARG2(call);
     2405        int request_data = ipc_get_arg2(call);
    24062406        struct timespec period = {
    24072407                .tv_sec = 0,
     
    24382438        nic_iface_t *nic_iface = (nic_iface_t *) iface;
    24392439
    2440         nic_poll_mode_t mode = IPC_GET_ARG2(call);
    2441         int has_period = IPC_GET_ARG3(call);
     2440        nic_poll_mode_t mode = ipc_get_arg2(call);
     2441        int has_period = ipc_get_arg3(call);
    24422442        struct timespec period_buf;
    24432443        struct timespec *period = NULL;
  • uspace/lib/drv/generic/remote_usbhc.c

    reb13ef8 rfafb8e5  
    221221
    222222        if (transferred)
    223                 *transferred = IPC_GET_ARG1(&call);
     223                *transferred = ipc_get_arg1(&call);
    224224
    225225        return (errno_t) opening_request_rc;
     
    265265        }
    266266
    267         const bool reserve = IPC_GET_ARG2(call);
     267        const bool reserve = ipc_get_arg2(call);
    268268        const errno_t ret = usbhc_iface->default_address_reservation(fun, reserve);
    269269        async_answer_0(call, ret);
  • uspace/lib/drv/generic/remote_usbhid.c

    reb13ef8 rfafb8e5  
    190190                return (errno_t) opening_request_rc;
    191191
    192         size_t act_size = IPC_GET_ARG2(&data_request_call);
     192        size_t act_size = ipc_get_arg2(&data_request_call);
    193193
    194194        /* Copy the individual items. */
     
    199199
    200200        if (event_nr != NULL)
    201                 *event_nr = IPC_GET_ARG1(&opening_request_call);
     201                *event_nr = ipc_get_arg1(&opening_request_call);
    202202
    203203        return EOK;
     
    275275                return (errno_t) opening_request_rc;
    276276
    277         size_t act_size = IPC_GET_ARG2(&data_request_call);
     277        size_t act_size = ipc_get_arg2(&data_request_call);
    278278
    279279        if (actual_size != NULL)
Note: See TracChangeset for help on using the changeset viewer.