Lines Matching refs:path
59 char path[32]; in rmtfs_mem_open_rfsa() local
63 sprintf(path, "/dev/qcom_rmtfs_mem%d", client_id); in rmtfs_mem_open_rfsa()
65 fd = open(path, O_RDWR); in rmtfs_mem_open_rfsa()
68 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa()
76 fprintf(stderr, "failed to stat %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa()
97 fprintf(stderr, "failed to parse phys_addr of %s\n", path); in rmtfs_mem_open_rfsa()
104 fprintf(stderr, "failed to parse size of %s\n", path); in rmtfs_mem_open_rfsa()
129 char path[32]; in rmtfs_mem_open_uio() local
133 snprintf(path, sizeof(path), "/dev/qcom_rmtfs_uio%d", client_id); in rmtfs_mem_open_uio()
135 fd = open(path, O_RDWR); in rmtfs_mem_open_uio()
138 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_uio()
146 fprintf(stderr, "failed to stat %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_uio()
167 fprintf(stderr, "failed to parse phys_addr of %s\n", path); in rmtfs_mem_open_uio()
174 fprintf(stderr, "failed to parse size of %s\n", path); in rmtfs_mem_open_uio()
208 char path[PATH_MAX]; in rmtfs_mem_open_rfsa() local
214 snprintf(path, sizeof(path), "/dev/qcom_rmtfs_mem%d", client_id); in rmtfs_mem_open_rfsa()
215 rmem->fd = open(path, O_RDWR); in rmtfs_mem_open_rfsa()
218 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa()
222 snprintf(path, sizeof(path), "/sys/class/rmtfs/qcom_rmtfs_mem%d/phys_addr", client_id); in rmtfs_mem_open_rfsa()
223 fd = open(path, O_RDONLY); in rmtfs_mem_open_rfsa()
226 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa()
237 snprintf(path, sizeof(path), "/sys/class/rmtfs/qcom_rmtfs_mem%d/size", client_id); in rmtfs_mem_open_rfsa()
238 fd = open(path, O_RDONLY); in rmtfs_mem_open_rfsa()
241 fprintf(stderr, "failed to open %s: %s\n", path, strerror(errno)); in rmtfs_mem_open_rfsa()