Lines Matching full:bank

25 		BANK=`basename $FILE`
26 if [ "$BANK" = "live" -o "$BANK" = "dev_name" ]; then
30 LINES=`ls $CONFIGFS_DIR/$CHIP/$BANK/ | grep -E ^line`
33 if [ -e $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog ]; then
34 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE/hog || \
38 rmdir $CONFIGFS_DIR/$CHIP/$BANK/$LINE || \
43 rmdir $CONFIGFS_DIR/$CHIP/$BANK
63 local BANK=$2
65 mkdir $CONFIGFS_DIR/$CHIP/$BANK
70 local BANK=$2
73 echo $LABEL > $CONFIGFS_DIR/$CHIP/$BANK/label || fail "Unable to set the chip label"
78 local BANK=$2
81 echo $NUM_LINES > $CONFIGFS_DIR/$CHIP/$BANK/num_lines || \
87 local BANK=$2
90 local LINE_DIR=$CONFIGFS_DIR/$CHIP/$BANK/line$OFFSET
110 local BANK=$2
112 cat $CONFIGFS_DIR/$CHIP/$BANK/chip_name 2> /dev/null || \
125 local BANK=$2
127 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` num-lines || \
133 local BANK=$2
135 $BASE_DIR/gpio-chip-info /dev/`configfs_chip_name $CHIP $BANK` label || \
141 local BANK=$2
144 $BASE_DIR/gpio-line-name /dev/`configfs_chip_name $CHIP $BANK` $OFFSET || \
150 local BANK=$2
154 local CHIPNAME=`configfs_chip_name $DEV $BANK`
181 create_bank chip bank
183 test -n `cat $CONFIGFS_DIR/chip/bank/chip_name` || fail "chip_name doesn't work"
188 create_bank chip bank
189 test "`cat $CONFIGFS_DIR/chip/bank/chip_name`" = "none" || \
195 create_bank chip bank
204 create_bank chip bank
206 test "`get_chip_num_lines chip bank`" = "1" || fail "default number of lines is not 1"
211 create_bank chip bank
212 set_num_lines chip bank 16
214 test "`get_chip_num_lines chip bank`" = "16" || fail "number of lines is not 16"
219 create_bank chip bank
220 set_label chip bank foobar
222 test "`get_chip_label chip bank`" = "foobar" || fail "label is incorrect"
227 create_bank chip bank
229 test -z "`cat $CONFIGFS_DIR/chip/bank/label`" || fail "label is not empty"
234 create_bank chip bank
235 set_num_lines chip bank 16
236 set_line_name chip bank 0 foo
237 set_line_name chip bank 2 bar
239 test "`get_line_name chip bank 0`" = "foo" || fail "line name is incorrect"
240 test "`get_line_name chip bank 2`" = "bar" || fail "line name is incorrect"
245 create_bank chip bank
246 set_num_lines chip bank 2
247 set_line_name chip bank 5 foobar
249 test "`get_line_name chip bank 0`" = "" || fail "line name is incorrect"
250 test "`get_line_name chip bank 1`" = "" || fail "line name is incorrect"
255 create_bank chip bank
256 mkdir $CONFIGFS_DIR/chip/bank/line12foobar 2> /dev/null && \
258 mkdir $CONFIGFS_DIR/chip/bank/line_no_offset 2> /dev/null && \
266 create_bank $CHIP bank
275 create_bank chip bank
277 echo foobar > $CONFIGFS_DIR/chip/bank/label 2> /dev/null && \
279 echo 8 > $CONFIGFS_DIR/chip/bank/num_lines 2> /dev/null && \
285 create_bank chip bank
287 mkdir $CONFIGFS_DIR/chip/bank/line0 2> /dev/null && fail "Creating line item should fail"
292 create_bank chip bank
293 set_num_lines chip bank 99999
313 create_bank chip bank
314 set_num_lines chip bank 8
315 mkdir -p $CONFIGFS_DIR/chip/bank/line4/hog
317 $BASE_DIR/gpio-mockup-cdev -s 1 /dev/`configfs_chip_name chip bank` 4 2> /dev/null && \
325 create_bank chip bank
326 set_num_lines chip bank 8
328 sysfs_set_pull chip bank 0 pull-up
329 $BASE_DIR/gpio-mockup-cdev /dev/`configfs_chip_name chip bank` 0
331 sysfs_set_pull chip bank 0 pull-down
332 $BASE_DIR/gpio-mockup-cdev /dev/`configfs_chip_name chip bank` 1
338 create_bank chip bank
339 set_num_lines chip bank 8
342 CHIPNAME=`configfs_chip_name chip bank`
345 sysfs_set_pull chip bank 0 pull-up
351 create_bank chip bank
352 set_num_lines chip bank 8
355 CHIPNAME=`configfs_chip_name chip bank`
362 create_bank chip bank
365 CHIPNAME=`configfs_chip_name chip bank`
374 create_bank chip bank
375 set_num_lines chip bank 8
378 CHIPNAME=`configfs_chip_name chip bank`
381 $BASE_DIR/gpio-mockup-cdev -s 1 /dev/`configfs_chip_name chip bank` 0 &
389 create_bank chip bank
390 set_num_lines chip bank 8
393 CHIPNAME=`configfs_chip_name chip bank`
395 $BASE_DIR/gpio-mockup-cdev -b pull-up /dev/`configfs_chip_name chip bank` 0