Lines Matching defs:ipsp
635 iscsi_set_param(iscsi_login_params_t *params, iscsi_param_set_t *ipsp)
645 ipgp->g_param = ipsp->s_param;
652 if (ipsp->s_param == ISCSI_LOGIN_PARAM_HEADER_DIGEST ||
653 ipsp->s_param == ISCSI_LOGIN_PARAM_DATA_DIGEST ||
654 ipsp->s_param == ISCSI_LOGIN_PARAM_DEFAULT_TIME_2_RETAIN ||
655 ipsp->s_param == ISCSI_LOGIN_PARAM_DEFAULT_TIME_2_WAIT ||
656 ipsp->s_param == ISCSI_LOGIN_PARAM_MAX_RECV_DATA_SEGMENT_LENGTH ||
657 ipsp->s_param == ISCSI_LOGIN_PARAM_FIRST_BURST_LENGTH ||
658 ipsp->s_param == ISCSI_LOGIN_PARAM_MAX_BURST_LENGTH) {
660 if (ipsp->s_value.v_integer < ipgp->g_value.v_integer.i_min ||
661 ipsp->s_value.v_integer > ipgp->g_value.v_integer.i_max ||
662 (ipsp->s_value.v_integer %
673 switch (ipsp->s_param) {
679 params->data_sequence_in_order = ipsp->s_value.v_bool;
682 params->immediate_data = ipsp->s_value.v_bool;
685 params->initial_r2t = ipsp->s_value.v_bool;
688 params->data_pdu_in_order = ipsp->s_value.v_bool;
695 params->header_digest = ipsp->s_value.v_integer;
698 params->data_digest = ipsp->s_value.v_integer;
701 params->default_time_to_retain = ipsp->s_value.v_integer;
704 params->default_time_to_wait = ipsp->s_value.v_integer;
707 params->max_recv_data_seg_len = ipsp->s_value.v_integer;
710 if (ipsp->s_value.v_integer <= params->max_burst_length) {
711 params->first_burst_length = ipsp->s_value.v_integer;
717 if (ipsp->s_value.v_integer >= params->first_burst_length) {
718 params->max_burst_length = ipsp->s_value.v_integer;