Lines Matching refs:DIR

29 if printf '\000' >"$DIR"/trigger_request 2> /dev/null; then
34 if [ ! -e "$DIR"/trigger_async_request ]; then
38 if printf '\000' >"$DIR"/trigger_async_request 2> /dev/null; then
45 if echo -n "nope-$NAME" >"$DIR"/trigger_request 2> /dev/null; then
60 if ! echo -n "$NAME" >"$DIR"/trigger_request ; then
74 if [ ! -e "$DIR"/trigger_async_request ]; then
78 if ! echo -n "$NAME" >"$DIR"/trigger_async_request ; then
93 if [ ! -e "$DIR"/trigger_request_platform ]; then
96 if printf '\000' >"$DIR"/trigger_request_platform 2> /dev/null; then
105 if ! echo -n "nope-$NAME" >"$DIR"/trigger_request_platform ; then
118 if [ ! -f $DIR/reset ]; then
132 echo 1 > $DIR/reset
137 echo 1 > $DIR/release_all_firmware
142 echo -n $1 > $DIR/config_name
147 echo 1 > $DIR/config_into_buf
152 echo 0 > $DIR/config_into_buf
157 echo $1 > $DIR/config_buf_size
162 echo $1 > $DIR/config_file_offset
167 echo 1 > $DIR/config_partial
172 echo 0 > $DIR/config_partial
177 echo 1 > $DIR/config_sync_direct
182 echo 0 > $DIR/config_sync_direct
187 echo 1 > $DIR/config_send_uevent
192 echo 0 > $DIR/config_send_uevent
197 echo -n 1 > $DIR/trigger_batched_requests 2>/dev/null
202 echo -n 1 > $DIR/trigger_batched_requests_async 2> /dev/null
207 echo -n $1 > $DIR/config_read_fw_idx 2> /dev/null
212 if [ "$(cat $DIR/config_into_buf)" == "1" ]; then
226 if ! diff -q -Z "$fwfile" $DIR/read_firmware 2>/dev/null ; then
235 if [ "$(cat $DIR/config_into_buf)" == "1" ]; then
252 read_firmware="$(cat $DIR/read_firmware)"
267 if diff -q -Z "$FW" $DIR/read_firmware 2>/dev/null ; then
340 while [ ! -e "$DIR"/"$name"/loading ]; do
345 echo "$DIR/$name/loading" >&2
349 echo -1 >"$DIR"/"$name"/loading