Lines Matching refs:args

62 	nvlist_t	*args;
78 if ((args = i_hp_set_args(HP_CMD_GETINFO, path, connection, flags,
86 rv = i_hp_call_hotplugd(args, &results);
89 nvlist_free(args);
646 nvlist_t *args;
681 if ((args = i_hp_set_args(HP_CMD_SET_CEILING, path, connection,
686 rv = i_hp_call_hotplugd(args, &results);
689 nvlist_free(args);
719 nvlist_t *args;
754 if ((args = i_hp_set_args(HP_CMD_CLEAR_CEILING, path, connection, flags,
759 rv = i_hp_call_hotplugd(args, &results);
762 nvlist_free(args);
785 nvlist_t *args;
839 if ((args = i_hp_set_args(HP_CMD_CHANGESTATE, path, connection, flags,
844 rv = i_hp_call_hotplugd(args, &results);
847 nvlist_free(args);
870 nvlist_t *args;
899 if ((args = i_hp_set_args(HP_CMD_SETPRIVATE, path, connection, 0,
904 rv = i_hp_call_hotplugd(args, &results);
907 nvlist_free(args);
930 nvlist_t *args;
959 if ((args = i_hp_set_args(HP_CMD_GETPRIVATE, path, connection, 0,
964 rv = i_hp_call_hotplugd(args, &results);
967 nvlist_free(args);
989 nvlist_t *args;
1015 if ((args = i_hp_set_args(HP_CMD_INSTALL, path, connection, flags,
1020 rv = i_hp_call_hotplugd(args, &results);
1023 nvlist_free(args);
1045 nvlist_t *args;
1071 if ((args = i_hp_set_args(HP_CMD_UNINSTALL, path, connection, flags,
1076 rv = i_hp_call_hotplugd(args, &results);
1079 nvlist_free(args);
1096 nvlist_t *args;
1113 if ((args = i_hp_set_args(HP_CMD_CREATE_PORT, path, cn_name, 0,
1121 rv = i_hp_call_hotplugd(args, &results);
1124 nvlist_free(args);
1140 nvlist_t *args;
1157 if ((args = i_hp_set_args(HP_CMD_REMOVE_PORT, path, connection, 0,
1165 rv = i_hp_call_hotplugd(args, &results);
1168 nvlist_free(args);
1696 i_hp_call_hotplugd(nvlist_t *args, nvlist_t **resultsp)
1717 if ((rv = nvlist_pack(args, &buf, &len, NV_ENCODE_NATIVE, 0)) != 0) {
1809 nvlist_t *args;
1812 if (nvlist_alloc(&args, NV_UNIQUE_NAME_TYPE, 0) != 0)
1816 if ((nvlist_add_int32(args, HPD_CMD, cmd) != 0) ||
1817 (nvlist_add_string(args, HPD_PATH, path) != 0)) {
1818 nvlist_free(args);
1824 (nvlist_add_string(args, HPD_CONNECTION, connection) != 0)) {
1825 nvlist_free(args);
1830 if ((flags != 0) && (nvlist_add_uint32(args, HPD_FLAGS, flags) != 0)) {
1831 nvlist_free(args);
1837 (nvlist_add_uint32(args, HPD_HANDLE, handle) != 0)) {
1838 nvlist_free(args);
1844 (nvlist_add_string(args, HPD_OPTIONS, options) != 0)) {
1845 nvlist_free(args);
1851 (nvlist_add_int32(args, HPD_STATE, state) != 0)) {
1852 nvlist_free(args);
1856 return (args);