Lines Matching defs:arg
168 struct sync_file_info arg;
171 errno_t retCode = memset_s(&arg, sizeof(struct sync_file_info), 0, sizeof(struct sync_file_info));
176 int32_t ret = ioctl(fenceFd_, SYNC_IOC_FILE_INFO, &arg);
181 if (arg.num_fences <= 0 || arg.num_fences > MAX_FENCE_NUM) {
182 UTILS_LOGD("GetFenceInfo arg.num_fences failed, num_fences: %{public}d", arg.num_fences);
186 if ((sizeMax - sizeof(struct sync_file_info)) / sizeof(struct sync_fence_info) < arg.num_fences) {
187 UTILS_LOGE("GetFenceInfo overflow, num_fences: %{public}d", arg.num_fences);
190 size_t syncFileInfoMemSize = sizeof(struct sync_file_info) + sizeof(struct sync_fence_info) * arg.num_fences;
202 infoPtr->num_fences = arg.num_fences;