Lines Matching +full:case +full:- +full:sensitive

1 // SPDX-License-Identifier: GPL-2.0-or-later
28 * functions aren't performance sensitive, so this conversion isn't an
34 case H_SUCCESS: in hvcs_convert()
36 case H_PARAMETER: in hvcs_convert()
37 return -EINVAL; in hvcs_convert()
38 case H_HARDWARE: in hvcs_convert()
39 return -EIO; in hvcs_convert()
40 case H_BUSY: in hvcs_convert()
41 case H_LONG_BUSY_ORDER_1_MSEC: in hvcs_convert()
42 case H_LONG_BUSY_ORDER_10_MSEC: in hvcs_convert()
43 case H_LONG_BUSY_ORDER_100_MSEC: in hvcs_convert()
44 case H_LONG_BUSY_ORDER_1_SEC: in hvcs_convert()
45 case H_LONG_BUSY_ORDER_10_SEC: in hvcs_convert()
46 case H_LONG_BUSY_ORDER_100_SEC: in hvcs_convert()
47 return -EBUSY; in hvcs_convert()
48 case H_FUNCTION: in hvcs_convert()
50 return -EPERM; in hvcs_convert()
55 * hvcs_free_partner_info - free pi allocated by hvcs_get_partner_info
68 return -EINVAL; in hvcs_free_partner_info()
71 element = head->next; in hvcs_free_partner_info()
95 * hvcs_get_partner_info - Get all of the partner info for a vty-server adapter
96 * @unit_address: The unit_address of the vty-server adapter for which this
100 * @pi_buff: A page sized buffer pre-allocated prior to calling this function
104 * This function returns non-zero on success, or if there is no partner info.
106 * The pi_buff is pre-allocated prior to calling this function because this
134 return -EINVAL; in hvcs_get_partner_info()
170 return -ENOMEM; in hvcs_get_partner_info()
173 next_partner_info->unit_address in hvcs_get_partner_info()
175 next_partner_info->partition_ID in hvcs_get_partner_info()
178 /* copy the Null-term char too */ in hvcs_get_partner_info()
179 strscpy(&next_partner_info->location_code[0], in hvcs_get_partner_info()
181 sizeof(next_partner_info->location_code)); in hvcs_get_partner_info()
183 list_add_tail(&(next_partner_info->node), head); in hvcs_get_partner_info()
193 * hvcs_register_connection - establish a connection between this vty-server and
195 * @unit_address: The unit address of the vty-server adapter that is to be
198 * @p_unit_address: The unit address of the vty adapter to which the vty-server
201 * If this function is called once and -EINVAL is returned it may
205 * for a second time, -EINVAL is returned then it indicates that
207 * different vty-server adapter. It is also possible that a second
208 * -EINVAL may indicate that one of the parms is not valid, for
209 * instance if the link was removed between the vty-server adapter
224 * hvcs_free_connection - free the connection between a vty-server and vty
225 * @unit_address: The unit address of the vty-server that is to have its
228 * This function is used to free the partner connection between a vty-server
231 * If -EBUSY is returned continue to call this function until 0 is returned.