Lines Matching full:line
78 local LINE=$2
80 mkdir "$CONFIGFS_AGG_DIR/$CHIP/$LINE"
85 local LINE=$2
87 rmdir "$CONFIGFS_AGG_DIR/$CHIP/$LINE"
92 local LINE=$2
95 echo "$KEY" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/key" || fail "Unable to set the lookup key"
100 local LINE=$2
103 echo "$OFFSET" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/offset" || \
109 local LINE=$2
112 echo "$NAME" > "$CONFIGFS_AGG_DIR/$CHIP/$LINE/name" || fail "Unable to set the line name"
166 local N_DIR=$(ls -d $CONFIGFS_AGG_DIR/$CHIP/line[0-9]* 2> /dev/null | wc -l)
193 local NAME_CONFIGFS=$(cat "$CONFIGFS_AGG_DIR/$CHIP/line${OFFSET}/name")
200 $BASE_DIR/gpio-line-name \
202 ) || fail "Unable to read the line name from the character device"
204 fail "Discrepancy between two sources for the name of line"
243 LINE_DIR="$CONFIGFS_SIM_DIR/$CHIP/$BANK/line$IDX"
245 echo "$LINE_NAME" > "$LINE_DIR/name" || fail "unable to set the line name"
266 test "$(agg_get_line_name agg0 0)" = "test0" || fail "line name is unset"
294 test "$(agg_get_line_name agg0 0)" = "test0" || fail "line name is unset"
295 test "$(agg_get_line_name agg0 1)" = "test1" || fail "line name is unset"
296 test "$(agg_get_line_name agg0 2)" = "test2" || fail "line name is unset"
297 test "$(agg_get_line_name agg0 3)" = "test3" || fail "line name is unset"
305 echo "1.1.3. Can't instantiate a chip without any line"
351 test "$(agg_get_line_name _sysfs.0 0)" = "" || fail "line name is unset"
363 test "$(agg_get_line_name _sysfs.0 0)" = "" || fail "line name is unset"
364 test "$(agg_get_line_name _sysfs.0 1)" = "" || fail "line name is unset"
365 test "$(agg_get_line_name _sysfs.0 2)" = "" || fail "line name is unset"
382 test "$(agg_get_line_name _sysfs.0 0)" = "" || fail "line name unexpectedly set"
413 echo "2.1.1.1. Line can be added/removed"
423 echo "2.1.1.2. Line key can be modified"
431 echo "2.1.1.3. Line name can be modified"
437 test "$(agg_get_line_name agg0 0)" = "new0" || fail "line name is unset"
438 test "$(agg_get_line_name agg0 1)" = "new1" || fail "line name is unset"
441 echo "2.1.1.4. Line offset can be modified"
477 echo "2.1.2.1. Can't add/remove line"
479 mkdir "$CONFIGFS_AGG_DIR/agg0/line2" 2> /dev/null && fail "line unexpectedly added"
480 rmdir "$CONFIGFS_AGG_DIR/agg0/line1" 2> /dev/null && fail "line unexpectedly removed"
483 echo "2.1.2.2. Can't modify line key"
489 echo "2.1.2.3. Can't modify line name"
495 echo "2.1.2.4. Can't modify line offset"
517 echo "2.2.1.2. Can't add/remove line"
519 mkdir "$CONFIGFS_AGG_DIR/_sysfs.0/line2" 2> /dev/null && fail "line unexpectedly added"
520 rmdir "$CONFIGFS_AGG_DIR/_sysfs.0/line1" 2> /dev/null && fail "line unexpectedly removed"
523 echo "2.2.1.3. Can't modify line key"
529 echo "2.2.1.4. Can't modify line name"
535 echo "2.2.1.5. Can't modify line offset"
543 echo "2.2.2.1. Can't add/remove line despite live = 0"
546 mkdir "$CONFIGFS_AGG_DIR/_sysfs.0/line2" 2> /dev/null && fail "line unexpectedly added"
547 rmdir "$CONFIGFS_AGG_DIR/_sysfs.0/line1" 2> /dev/null && fail "line unexpectedly removed"
551 echo "2.2.2.2. Can't modify line key"
559 echo "2.2.2.3. Can't modify line name"
567 echo "2.2.2.4. Can't modify line offset"
585 echo "2.2.3.1. Can't add/remove line despite live = 0"
588 mkdir "$CONFIGFS_AGG_DIR/_sysfs.0/line2" 2> /dev/null && fail "line unexpectedly added"
589 rmdir "$CONFIGFS_AGG_DIR/_sysfs.0/line1" 2> /dev/null && fail "line unexpectedly removed"
592 echo "2.2.3.2. Line key can be modified"
600 echo "2.2.3.3. Line name can be modified"
606 test "$(agg_get_line_name _sysfs.0 0)" = "new0" || fail "line name is unset"
607 test "$(agg_get_line_name _sysfs.0 1)" = "new1" || fail "line name is unset"
610 echo "2.2.3.4. Line offset can be modified"
662 LINE=$(echo "$SETTING" | cut -d: -f3)
663 agg_create_line agg0 "line${OFFSET}"
664 agg_set_key agg0 "line${OFFSET}" "$(sim_get_chip_label "$CHIP" "$BANK")"
665 agg_set_offset agg0 "line${OFFSET}" "$LINE"
680 LINE=$(echo "$SETTING" | cut -d: -f3)
683 VAL_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio${LINE}/value"
700 LINE=$(echo "$SETTING" | cut -d: -f3)
703 VAL_PATH="/sys/devices/platform/$DEVNAME/$CHIPNAME/sim_gpio${LINE}/value"