Changeset fafb8e5 in mainline for uspace/srv/devman/client_conn.c
- Timestamp:
- 2019-02-06T13:25:12Z (6 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/client_conn.c
reb13ef8 rfafb8e5 102 102 static void devman_fun_get_match_id(ipc_call_t *icall) 103 103 { 104 devman_handle_t handle = IPC_GET_ARG1(icall);105 size_t index = IPC_GET_ARG2(icall);104 devman_handle_t handle = ipc_get_arg1(icall); 105 size_t index = ipc_get_arg2(icall); 106 106 void *buffer = NULL; 107 107 … … 165 165 static void devman_fun_get_name(ipc_call_t *icall) 166 166 { 167 devman_handle_t handle = IPC_GET_ARG1(icall);167 devman_handle_t handle = ipc_get_arg1(icall); 168 168 169 169 fun_node_t *fun = find_fun_node(&device_tree, handle); … … 218 218 static void devman_fun_get_driver_name(ipc_call_t *icall) 219 219 { 220 devman_handle_t handle = IPC_GET_ARG1(icall);220 devman_handle_t handle = ipc_get_arg1(icall); 221 221 222 222 fun_node_t *fun = find_fun_node(&device_tree, handle); … … 283 283 static void devman_fun_get_path(ipc_call_t *icall) 284 284 { 285 devman_handle_t handle = IPC_GET_ARG1(icall);285 devman_handle_t handle = ipc_get_arg1(icall); 286 286 287 287 fun_node_t *fun = find_fun_node(&device_tree, handle); … … 340 340 fibril_rwlock_read_lock(&device_tree.rwlock); 341 341 342 dev = find_dev_node_no_lock(&device_tree, IPC_GET_ARG1(icall));342 dev = find_dev_node_no_lock(&device_tree, ipc_get_arg1(icall)); 343 343 if (dev == NULL || dev->state == DEVICE_REMOVED) { 344 344 fibril_rwlock_read_unlock(&device_tree.rwlock); … … 374 374 375 375 dev_node_t *dev = find_dev_node_no_lock(&device_tree, 376 IPC_GET_ARG1(icall));376 ipc_get_arg1(icall)); 377 377 if (dev == NULL || dev->state == DEVICE_REMOVED) { 378 378 fibril_rwlock_read_unlock(&device_tree.rwlock); … … 413 413 fibril_rwlock_read_lock(&device_tree.rwlock); 414 414 415 fun = find_fun_node_no_lock(&device_tree, IPC_GET_ARG1(icall));415 fun = find_fun_node_no_lock(&device_tree, ipc_get_arg1(icall)); 416 416 if (fun == NULL || fun->state == FUN_REMOVED) { 417 417 fibril_rwlock_read_unlock(&device_tree.rwlock); … … 442 442 errno_t rc; 443 443 444 fun = find_fun_node(&device_tree, IPC_GET_ARG1(icall));444 fun = find_fun_node(&device_tree, ipc_get_arg1(icall)); 445 445 if (fun == NULL) { 446 446 async_answer_0(icall, ENOENT); … … 467 467 errno_t rc; 468 468 469 fun = find_fun_node(&device_tree, IPC_GET_ARG1(icall));469 fun = find_fun_node(&device_tree, ipc_get_arg1(icall)); 470 470 if (fun == NULL) { 471 471 async_answer_0(icall, ENOENT); … … 484 484 fun_node_t *fun; 485 485 486 fun = find_loc_tree_function(&device_tree, IPC_GET_ARG1(icall));486 fun = find_loc_tree_function(&device_tree, ipc_get_arg1(icall)); 487 487 488 488 if (fun == NULL) { … … 550 550 } 551 551 552 driver_t *drv = driver_find(&drivers_list, IPC_GET_ARG1(icall));552 driver_t *drv = driver_find(&drivers_list, ipc_get_arg1(icall)); 553 553 if (drv == NULL) { 554 554 async_answer_0(&call, ENOENT); … … 604 604 static void devman_driver_get_match_id(ipc_call_t *icall) 605 605 { 606 devman_handle_t handle = IPC_GET_ARG1(icall);607 size_t index = IPC_GET_ARG2(icall);606 devman_handle_t handle = ipc_get_arg1(icall); 607 size_t index = ipc_get_arg2(icall); 608 608 609 609 driver_t *drv = driver_find(&drivers_list, handle); … … 655 655 static void devman_driver_get_name(ipc_call_t *icall) 656 656 { 657 devman_handle_t handle = IPC_GET_ARG1(icall);657 devman_handle_t handle = ipc_get_arg1(icall); 658 658 659 659 driver_t *drv = driver_find(&drivers_list, handle); … … 697 697 driver_t *drv; 698 698 699 drv = driver_find(&drivers_list, IPC_GET_ARG1(icall));699 drv = driver_find(&drivers_list, ipc_get_arg1(icall)); 700 700 if (drv == NULL) { 701 701 async_answer_0(icall, ENOENT); … … 712 712 errno_t rc; 713 713 714 drv = driver_find(&drivers_list, IPC_GET_ARG1(icall));714 drv = driver_find(&drivers_list, ipc_get_arg1(icall)); 715 715 if (drv == NULL) { 716 716 async_answer_0(icall, ENOENT); … … 731 731 errno_t rc; 732 732 733 drv = driver_find(&drivers_list, IPC_GET_ARG1(icall));733 drv = driver_find(&drivers_list, ipc_get_arg1(icall)); 734 734 if (drv == NULL) { 735 735 async_answer_0(icall, ENOENT); … … 754 754 async_get_call(&call); 755 755 756 if (! IPC_GET_IMETHOD(&call)) {756 if (!ipc_get_imethod(&call)) { 757 757 async_answer_0(&call, EOK); 758 758 break; 759 759 } 760 760 761 switch ( IPC_GET_IMETHOD(&call)) {761 switch (ipc_get_imethod(&call)) { 762 762 case DEVMAN_DEVICE_GET_HANDLE: 763 763 devman_function_get_handle(&call);
Note:
See TracChangeset
for help on using the changeset viewer.