Lines Matching defs:pg
268 iscsi_param_get_t pg;
280 (void) memset(&pg, 0, sizeof (iscsi_param_get_t));
281 pg.g_vers = ISCSI_INTERFACE_VERSION;
282 pg.g_param = ISCSI_LOGIN_PARAM_INITIATOR_NAME;
284 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) {
287 if (strlen((char *)pg.g_value.v_name) > 0) {
289 (char *)pg.g_value.v_name,
297 (void) memset(&pg, 0, sizeof (iscsi_param_get_t));
298 pg.g_vers = ISCSI_INTERFACE_VERSION;
299 pg.g_param = ISCSI_LOGIN_PARAM_INITIATOR_ALIAS;
302 if (ioctl(fd, ISCSI_PARAM_GET, &pg) == -1) {
305 if (strlen((char *)pg.g_value.v_name) > 0) {
307 (char *)pg.g_value.v_name,
2298 iscsi_param_get_t pg;
2306 (void) memset(&pg, 0, sizeof (iscsi_param_get_t));
2307 pg.g_vers = ISCSI_INTERFACE_VERSION;
2308 pg.g_oid = (uint32_t)oid->objectSequenceNumber;
2309 pg.g_param = paramIndex;
2310 pg.g_param_type = ISCSI_SESS_PARAM;
2312 if (ioctl(fd, ISCSI_PARAM_GET, &pg) != 0) {
2327 (pg.g_value.v_valid == B_TRUE) ?
2329 mp->currentValue = pg.g_value.v_integer.i_current;
2330 mp->defaultValue = pg.g_value.v_integer.i_default;
2331 mp->minimumValue = pg.g_value.v_integer.i_min;
2332 mp->maximumValue = pg.g_value.v_integer.i_max;
2333 mp->incrementValue = pg.g_value.v_integer.i_incr;
2339 (pg.g_value.v_valid == B_TRUE) ?
2341 bp->currentValue = pg.g_value.v_bool.b_current;
2342 bp->defaultValue = pg.g_value.v_bool.b_default;
3288 iscsi_tunable_object_t pg;
3295 (void) memset(&pg, 0, sizeof (iscsi_tunable_object_t));
3296 pg.t_param = param->tunable_objectType;
3297 pg.t_oid = (uint32_t)oid.objectSequenceNumber;
3298 if (ioctl(fd, ISCSI_TUNABLE_PARAM_GET, &pg) == -1) {
3306 if (pg.t_set == B_FALSE) {
3311 value = (long long)pg.t_value.v_integer;