Lines Matching refs:path
83 # Helper to print sysfs path for the given card index and freq info.
96 local i=0 vendor path
104 path=$(print_freq_sysfs_path "" ${i})
105 path=${path%/*}/device/vendor
107 [ -r "${path}" ] && read vendor < "${path}" && \
124 local var val info path print=0 ret=0
133 path=$(print_freq_sysfs_path "${info}")
135 [ -r ${path} ] && read ${var} < ${path} || {
136 log ERROR "Failed to read freq info from: %s" "${path}"
142 log ERROR "Got empty freq info from: %s" "${path}"
422 local path cpu_index
425 for path in $(grep 1 ${CPU_SYSFS_PREFIX}/cpu*/online); do
426 cpu_index=${path##*/cpu}
432 # Helper to print sysfs path for the given CPU index and freq info.
450 local var val info path cpu_index print=0 ret=0
460 path=$(print_cpu_freq_sysfs_path "${info}" ${cpu_index})
462 [ -r ${path} ] && read ${var} < ${path} || {
463 log ERROR "Failed to read CPU freq info from: %s" "${path}"
469 log ERROR "Got empty CPU freq info from: %s" "${path}"