Loading drivers/platform/msm/ipa/ipa_v3/ipa.c +18 −0 Original line number Diff line number Diff line Loading @@ -2483,6 +2483,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) } break; case IPA_IOC_FNR_COUNTER_ALLOC: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } if (copy_from_user(header, (const void __user *)arg, sizeof(struct ipa_ioc_flt_rt_counter_alloc))) { IPAERR("copy_from_user fails\n"); Loading Loading @@ -2526,6 +2532,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) break; case IPA_IOC_FNR_COUNTER_DEALLOC: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } hdl = (int)arg; if (hdl < 0) { IPAERR("IPA_FNR_COUNTER_DEALLOC failed: hdl %d\n", Loading @@ -2537,6 +2549,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) break; case IPA_IOC_FNR_COUNTER_QUERY: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } if (copy_from_user(header, (const void __user *)arg, sizeof(struct ipa_ioc_flt_rt_query))) { IPAERR_RL("copy_from_user fails\n"); Loading Loading
drivers/platform/msm/ipa/ipa_v3/ipa.c +18 −0 Original line number Diff line number Diff line Loading @@ -2483,6 +2483,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) } break; case IPA_IOC_FNR_COUNTER_ALLOC: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } if (copy_from_user(header, (const void __user *)arg, sizeof(struct ipa_ioc_flt_rt_counter_alloc))) { IPAERR("copy_from_user fails\n"); Loading Loading @@ -2526,6 +2532,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) break; case IPA_IOC_FNR_COUNTER_DEALLOC: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } hdl = (int)arg; if (hdl < 0) { IPAERR("IPA_FNR_COUNTER_DEALLOC failed: hdl %d\n", Loading @@ -2537,6 +2549,12 @@ static long ipa3_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) break; case IPA_IOC_FNR_COUNTER_QUERY: if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) { IPAERR("FNR stats not supported on IPA ver %d", ipa3_ctx->ipa_hw_type); retval = -EFAULT; break; } if (copy_from_user(header, (const void __user *)arg, sizeof(struct ipa_ioc_flt_rt_query))) { IPAERR_RL("copy_from_user fails\n"); Loading