From nobody Fri Oct 3 11:22:26 2025 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A76842E173B for ; Tue, 2 Sep 2025 07:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797562; cv=none; b=dskt/jAdhRoiIdHunVxpTXcLx1sK6ikgW/umy7VppHW5pgLGP2eeoAbKzEZ0s7K7rH18yAnNUYqFfQgJJTDznJyXzb2RrljnMu5OgOowVeKP0IrI2FkpnzvVJApSCtbckK7PFugROOYFKYF2hJpgEWDzC5W7SRejWCCm2R2tEGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797562; c=relaxed/simple; bh=32DTjO7qjxKOvL3amKcERtyKwvz65XaqH4dROuOpLPo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=csrwmrGSo4DpgUMZMi4NnBngT/RCvKjRQIwkcLSViZL6ooVU5b2ARl2nRMgRg+SLsyiF7YTgTn6OVT6Hy5h4n843j1dKVWecPXLOdOQ0JwVPkas5/DRSkIbOFFalyVQFu/iYb+5louGyWBmlwOyAZZIFrVL71WDD+C3n0YIJ9Xg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=rrzEUgWx; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="rrzEUgWx" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-45b869d3562so22770545e9.1 for ; Tue, 02 Sep 2025 00:19:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1756797559; x=1757402359; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=4MO71ArN1mhEwmcVWMgSdyViUKfjpUyop6LWKe1mWCU=; b=rrzEUgWxEnZAznDpzQ62xnvLIjtDYiUut1QVh1hXqYbPhvCByLpFhR/V/z99qdk+KP vsyS6sDT/LZ3PBPFpAwwUQfxQ7SKSYQ+yFYg3/ICAp+ej7JunkGZNEQGx7mFv3Oij11V U8MLo3SfXluF7UzigbTHBIUHtZ/1xayp+gdO/k1HXS31gvJ+c33/aT2D2wFFkBk85vnX O9zQzHBNaS2uc2IQqExdLUNWU87B0ud2GLb6lY0RBWQK4RKO4xRoW8qpz45JsK+Jb+Ud cAR+SvKhd3lMLXksiRiDFqOcHTrlFJwA/Kyi0IRzfWGn68H47pFAE4JDo6sUSLF84vL9 PkQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756797559; x=1757402359; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=4MO71ArN1mhEwmcVWMgSdyViUKfjpUyop6LWKe1mWCU=; b=R+232OhiXl1+/pSLrAUB0yYObAbFrgeUzdIUcqpsBXYWbBP4CyFJTb3+R2Ux53DHS8 4x8eswd+euG9eEnzZzrydHiErfSPBW/twikjg+4JNNEGaI7I+QxnLnmuFuGDE8y/VMzo xcN98PEBnlK63TCZcoYljy5faY0ofFmaR6Fs/f2o5MwQtv7x7loDwQ7Q7btwspIHxFMg DGUSsAu0360pK3D7V2oslrLjTtCaGKbtNrSLkLefT250eEqFjevx8xkLja90bRqnmiWe Kv4VM79MSkxX1xCDUH/ixAajn3IJ7XieEoZUKNvUiJcWpxnVTzizsDlTkSWdQGqLdBIY 5Ibg== X-Forwarded-Encrypted: i=1; AJvYcCWpsjpne43mRLCHn0Ki4Dp+u8WSgueYpuvUU/XZhH9Pq8ahIoVOF6qXAjontMxqAQCWRYrMHl71pO6xtHQ=@vger.kernel.org X-Gm-Message-State: AOJu0YzZRGt2suU4MbXg5NFe4ifzLPCwT779cb38eRCwlzDSGAxFkhFc Pnsp5a1V60DIj8zQtenMi2ZMTkmNRhpZ+IhIuLkkwvF1fYnprqAdp64d6GnTno2/hVo5j7ddDxc kjwWtoIYCJw== X-Google-Smtp-Source: AGHT+IFyFbgVn55iGg2zl4rVa/8dYxXzrwEiXoCnfFWi5pUvxT2OYebO2o0A+wWvDMIj4GUnnJ4rXq0gkmGY X-Received: from wmti4.prod.google.com ([2002:a05:600c:8b84:b0:45b:9c34:e57e]) (user=abarnas job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:1c92:b0:45b:9291:320d with SMTP id 5b1f17b1804b1-45b98fbf106mr8636085e9.31.1756797559123; Tue, 02 Sep 2025 00:19:19 -0700 (PDT) Date: Tue, 2 Sep 2025 07:18:45 +0000 In-Reply-To: <20250902071847.2330409-1-abarnas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250902071847.2330409-1-abarnas@google.com> X-Mailer: git-send-email 2.51.0.318.gd7df087d1a-goog Message-ID: <20250902071847.2330409-2-abarnas@google.com> Subject: [PATCH v2 1/3] staging: media: atomisp: Remove typedefs for basic types in vmem.c From: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" To: Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko , Greg Kroah-Hartman , Dan Carpenter , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Cleared typedefs hiding unsigned long long type, to align with kernel coding style. Signed-off-by: Adrian Barna=C5=9B --- .../pci/hive_isp_css_common/host/vmem.c | 42 +++++++++---------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vme= m.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c index 722b684fbc37..fd640e100591 100644 --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c @@ -13,35 +13,33 @@ #endif #include "assert_support.h" =20 -typedef unsigned long long hive_uedge; -typedef hive_uedge *hive_wide; =20 /* Copied from SDK: sim_semantics.c */ =20 /* subword bits move like this: MSB[____xxxx____]LSB -> MSB[000000= 00xxxx]LSB */ -static inline hive_uedge -subword(hive_uedge w, unsigned int start, unsigned int end) +static inline unsigned long long +subword(unsigned long long w, unsigned int start, unsigned int end) { return (w & (((1ULL << (end - 1)) - 1) << 1 | 1)) >> start; } =20 /* inverse subword bits move like this: MSB[xxxx____xxxx]LSB -> MSB[xxxx00= 00xxxx]LSB */ -static inline hive_uedge -inv_subword(hive_uedge w, unsigned int start, unsigned int end) +static inline unsigned long long +inv_subword(unsigned long long w, unsigned int start, unsigned int end) { return w & (~(((1ULL << (end - 1)) - 1) << 1 | 1) | ((1ULL << start) - 1)= ); } =20 -#define uedge_bits (8 * sizeof(hive_uedge)) +#define uedge_bits (8 * sizeof(unsigned long long)) #define move_lower_bits(target, target_bit, src, src_bit) move_subword(tar= get, target_bit, src, 0, src_bit) #define move_upper_bits(target, target_bit, src, src_bit) move_subword(tar= get, target_bit, src, src_bit, uedge_bits) #define move_word(target, target_bit, src) move_subword(target, target_bit= , src, 0, uedge_bits) =20 static void move_subword( - hive_uedge *target, + unsigned long long *target, unsigned int target_bit, - hive_uedge src, + unsigned long long src, unsigned int src_start, unsigned int src_end) { @@ -49,18 +47,18 @@ move_subword( unsigned int start_bit =3D target_bit % uedge_bits; unsigned int subword_width =3D src_end - src_start; =20 - hive_uedge src_subword =3D subword(src, src_start, src_end); + unsigned long long src_subword =3D subword(src, src_start, src_end); =20 if (subword_width + start_bit > uedge_bits) { /* overlap */ - hive_uedge old_val1; - hive_uedge old_val0 =3D inv_subword(target[start_elem], start_bit, uedge= _bits); + unsigned long long old_val1; + unsigned long long old_val0 =3D inv_subword(target[start_elem], start_bi= t, uedge_bits); =20 target[start_elem] =3D old_val0 | (src_subword << start_bit); old_val1 =3D inv_subword(target[start_elem + 1], 0, subword_width + start_bit - uedge_bits); target[start_elem + 1] =3D old_val1 | (src_subword >> (uedge_bits - star= t_bit)); } else { - hive_uedge old_val =3D inv_subword(target[start_elem], start_bit, + unsigned long long old_val =3D inv_subword(target[start_elem], start_bit, start_bit + subword_width); =20 target[start_elem] =3D old_val | (src_subword << start_bit); @@ -69,8 +67,8 @@ move_subword( =20 static void hive_sim_wide_unpack( - hive_wide vector, - hive_wide elem, + unsigned long long *vector, + unsigned long long *elem, hive_uint elem_bits, hive_uint index) { @@ -103,8 +101,8 @@ hive_sim_wide_unpack( =20 static void hive_sim_wide_pack( - hive_wide vector, - hive_wide elem, + unsigned long long *vector, + unsigned long long *elem, hive_uint elem_bits, hive_uint index) { @@ -136,7 +134,7 @@ static void load_vector( const t_vmem_elem *from) { unsigned int i; - hive_uedge *data; + unsigned long long *data; unsigned int size =3D sizeof(short) * ISP_NWAY; =20 VMEM_ARRAY(v, 2 * ISP_NWAY); /* Need 2 vectors to work around vmem hss bu= g */ @@ -146,9 +144,9 @@ static void load_vector( #else hrt_master_port_load(ISP_BAMEM_BASE[ID] + (unsigned long)from, &v[0][0], = size); #endif - data =3D (hive_uedge *)v; + data =3D (unsigned long long *)v; for (i =3D 0; i < ISP_NWAY; i++) { - hive_uedge elem =3D 0; + unsigned long long elem =3D 0; =20 hive_sim_wide_unpack(data, &elem, ISP_VEC_ELEMBITS, i); to[i] =3D elem; @@ -166,10 +164,10 @@ static void store_vector( =20 VMEM_ARRAY(v, 2 * ISP_NWAY); /* Need 2 vectors to work around vmem hss bu= g */ //load_vector (&v[1][0], &to[ISP_NWAY]); /* Fetch the next vector, since = it will be overwritten. */ - hive_uedge *data =3D (hive_uedge *)v; + unsigned long long *data =3D (unsigned long long *)v; =20 for (i =3D 0; i < ISP_NWAY; i++) { - hive_sim_wide_pack(data, (hive_wide)&from[i], ISP_VEC_ELEMBITS, i); + hive_sim_wide_pack(data, (unsigned long long *)&from[i], ISP_VEC_ELEMBIT= S, i); } assert(ISP_BAMEM_BASE[ID] !=3D (hrt_address) - 1); #if !defined(HRT_MEMORY_ACCESS) --=20 2.51.0.318.gd7df087d1a-goog From nobody Fri Oct 3 11:22:26 2025 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E75C2E62B4 for ; Tue, 2 Sep 2025 07:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797563; cv=none; b=ZiC5q43y27DvYEjqHIAA8JhJSJgZXluv7+k44TnqDbPnxP9gw53aK0muv9KZ8S70XUDKh1Vgcl5JITPBL5+uqd8YYOE7ApjhNUZ6BRi+DNYDtObwepDVloQS7pgq2zfJdyF2p7ISa/d/Us2A28Ywz2qpz3plDEhu9XvqAhs2t1Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797563; c=relaxed/simple; bh=YTfRT7nZucuC+rOqT8u2JhzeMS4C8wWEnl7OQP5jGSg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=KCh/5kQXyc97yMvvlraT9odgc0BTl9kr9lEjgeGGcxzDNez7qH4t02VCdU2IJ0TBbglchoqkqbFo2g+2hZcisC0Q2eN52U65cu4lLceamweEudlSMngoj3I1CU5xwWfge2068OAXF/+05oi/ne/6lkE4w4iuVFh/DdOo6aJEPdM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=IuXX+fRw; arc=none smtp.client-ip=209.85.128.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IuXX+fRw" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-45b72ef3455so18764575e9.3 for ; Tue, 02 Sep 2025 00:19:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1756797560; x=1757402360; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=K1NlE9a+9Bxy62hv5W1CTcG6yDEPlaJidN+buC/iKCU=; b=IuXX+fRwqLZUveEYqTeMzzTXap8mAfEhhI4OO4o7h+kohK4xNqjLjyrFbPWYZnHZzl YOMnFwzWdJWfNHYdpH90lH2CSbiRKyo/Edx8fsNqfeSPNF/Ly9lX7RO3rrjufEE4joFX KLZyTTTd1Iy4IpSlJawqy6CPscFvJG8BmGtv8UFqTPja3o0TXBWMSiskllR2UNb8qXf9 sBCCMtkzWp75hs3kAI3u9nanlzzyFI3h1feNa7j1f2Piz9zHhsTwrwE3o8q5cZPF7ocO 2tl2vHbu23NIMRhCuII6PxExYe1pVDxvh4B4RqOlw3sK1eKAzWHN9OdJXHA0oJ8LA8ia LC8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756797560; x=1757402360; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=K1NlE9a+9Bxy62hv5W1CTcG6yDEPlaJidN+buC/iKCU=; b=ovhrRRl77EM1y/vlGMl9ETGiI29fzRHomkuGjJwh+t9FrqLQq9hhrLxEwF7oO5V/y+ otFwMbb7NPii3ss8PiZa6vPb4lcHWihzxosCY+Boqv17Zzk87oKqeJ8gEGtoqObAccgl mZPsDLr+DFXlhasaK06/cHZ4St+uU+ZINARNT3Oaj4p0c/rS7vmHPQh+HjMEwqlwdBNU YYs69WGS7fJVnxS5AeB1jURODoVYHSlRHgXZX/YvAJTV5jIUSSmUGsaxeZaObcbrSfLP VhaSAkWQbz7vLbrZMnbxuzOSIXYq9SlU6H6T6iyxBNXBuR3eDHf2uONVv9Ky46ovOaj0 znjA== X-Forwarded-Encrypted: i=1; AJvYcCXkTwtWyMypL2DZPE0ozMrkKxWa3BCaxhGVT18U6wY6pDVzhLgDjL5YKPfoT53doBJH+sNV9YXi+bcafUY=@vger.kernel.org X-Gm-Message-State: AOJu0YwLbVM99oDa7KNgJbLfbURO37EBzbPYqKTLk6lw5RIFUqXcxEUb EI4crCMTEUan8RtQJPNjDFva/L3uFpW24gvKEfIEn22PKM+Wl8sBDJ3HvY/hoTnu8irvS/dGXTo iPASBAvemsA== X-Google-Smtp-Source: AGHT+IF9+pEVGxeluwE6Cu/shEOucLgY1/21K2rB/PuNxx8VUUO6XEcsQ8Es/nbAGtAXGwUqiHT7PGj6FScm X-Received: from wmsr1.prod.google.com ([2002:a05:600c:8b01:b0:45b:8501:3c72]) (user=abarnas job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:418c:b0:45b:72a6:4861 with SMTP id 5b1f17b1804b1-45b855fa346mr64547185e9.24.1756797560190; Tue, 02 Sep 2025 00:19:20 -0700 (PDT) Date: Tue, 2 Sep 2025 07:18:46 +0000 In-Reply-To: <20250902071847.2330409-1-abarnas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250902071847.2330409-1-abarnas@google.com> X-Mailer: git-send-email 2.51.0.318.gd7df087d1a-goog Message-ID: <20250902071847.2330409-3-abarnas@google.com> Subject: [PATCH v2 2/3] staging: media: atomisp: Whitespaces cleanup in vmem.c From: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" To: Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko , Greg Kroah-Hartman , Dan Carpenter , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Whitespaces cleanup to conform with kernel style and improve readability. Signed-off-by: Adrian Barna=C5=9B --- .../pci/hive_isp_css_common/host/vmem.c | 83 +++++-------------- 1 file changed, 23 insertions(+), 60 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vme= m.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c index fd640e100591..aa67638a09a5 100644 --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c @@ -13,7 +13,6 @@ #endif #include "assert_support.h" =20 - /* Copied from SDK: sim_semantics.c */ =20 /* subword bits move like this: MSB[____xxxx____]LSB -> MSB[000000= 00xxxx]LSB */ @@ -35,13 +34,8 @@ inv_subword(unsigned long long w, unsigned int start, un= signed int end) #define move_upper_bits(target, target_bit, src, src_bit) move_subword(tar= get, target_bit, src, src_bit, uedge_bits) #define move_word(target, target_bit, src) move_subword(target, target_bit= , src, 0, uedge_bits) =20 -static void -move_subword( - unsigned long long *target, - unsigned int target_bit, - unsigned long long src, - unsigned int src_start, - unsigned int src_end) +static void move_subword(unsigned long long *target, unsigned int target_b= it, + unsigned long long src, unsigned int src_start, unsigned int src_end) { unsigned int start_elem =3D target_bit / uedge_bits; unsigned int start_bit =3D target_bit % uedge_bits; @@ -51,7 +45,8 @@ move_subword( =20 if (subword_width + start_bit > uedge_bits) { /* overlap */ unsigned long long old_val1; - unsigned long long old_val0 =3D inv_subword(target[start_elem], start_bi= t, uedge_bits); + unsigned long long old_val0 =3D inv_subword(target[start_elem], + start_bit, uedge_bits); =20 target[start_elem] =3D old_val0 | (src_subword << start_bit); old_val1 =3D inv_subword(target[start_elem + 1], 0, @@ -59,18 +54,14 @@ move_subword( target[start_elem + 1] =3D old_val1 | (src_subword >> (uedge_bits - star= t_bit)); } else { unsigned long long old_val =3D inv_subword(target[start_elem], start_bit, - start_bit + subword_width); + start_bit + subword_width); =20 target[start_elem] =3D old_val | (src_subword << start_bit); } } =20 -static void -hive_sim_wide_unpack( - unsigned long long *vector, - unsigned long long *elem, - hive_uint elem_bits, - hive_uint index) +static void hive_sim_wide_unpack(unsigned long long *vector, unsigned long= long *elem, + hive_uint elem_bits, hive_uint index) { /* pointers into wide_type: */ unsigned int start_elem =3D (elem_bits * index) / uedge_bits; @@ -99,12 +90,8 @@ hive_sim_wide_unpack( } } =20 -static void -hive_sim_wide_pack( - unsigned long long *vector, - unsigned long long *elem, - hive_uint elem_bits, - hive_uint index) +static void hive_sim_wide_pack(unsigned long long *vector, unsigned long l= ong *elem, + hive_uint elem_bits, hive_uint index) { /* pointers into wide_type: */ unsigned int start_elem =3D (elem_bits * index) / uedge_bits; @@ -128,10 +115,7 @@ hive_sim_wide_pack( } } =20 -static void load_vector( - const isp_ID_t ID, - t_vmem_elem *to, - const t_vmem_elem *from) +static void load_vector(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_e= lem *from) { unsigned int i; unsigned long long *data; @@ -154,10 +138,7 @@ static void load_vector( udelay(1); /* Spend at least 1 cycles per vector */ } =20 -static void store_vector( - const isp_ID_t ID, - t_vmem_elem *to, - const t_vmem_elem *from) +static void store_vector(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_= elem *from) { unsigned int i; unsigned int size =3D sizeof(short) * ISP_NWAY; @@ -166,9 +147,9 @@ static void store_vector( //load_vector (&v[1][0], &to[ISP_NWAY]); /* Fetch the next vector, since = it will be overwritten. */ unsigned long long *data =3D (unsigned long long *)v; =20 - for (i =3D 0; i < ISP_NWAY; i++) { + for (i =3D 0; i < ISP_NWAY; i++) hive_sim_wide_pack(data, (unsigned long long *)&from[i], ISP_VEC_ELEMBIT= S, i); - } + assert(ISP_BAMEM_BASE[ID] !=3D (hrt_address) - 1); #if !defined(HRT_MEMORY_ACCESS) ia_css_device_store(ISP_BAMEM_BASE[ID] + (unsigned long)to, &v, size); @@ -179,11 +160,8 @@ static void store_vector( udelay(1); /* Spend at least 1 cycles per vector */ } =20 -void isp_vmem_load( - const isp_ID_t ID, - const t_vmem_elem *from, - t_vmem_elem *to, - unsigned int elems) /* In t_vmem_elem */ +void isp_vmem_load(const isp_ID_t ID, const t_vmem_elem *from, t_vmem_elem= *to, + unsigned int elems) /* In t_vmem_elem */ { unsigned int c; const t_vmem_elem *vp =3D from; @@ -197,11 +175,8 @@ void isp_vmem_load( } } =20 -void isp_vmem_store( - const isp_ID_t ID, - t_vmem_elem *to, - const t_vmem_elem *from, - unsigned int elems) /* In t_vmem_elem */ +void isp_vmem_store(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_elem = *from, + unsigned int elems) /* In t_vmem_elem */ { unsigned int c; t_vmem_elem *vp =3D to; @@ -215,15 +190,9 @@ void isp_vmem_store( } } =20 -void isp_vmem_2d_load( - const isp_ID_t ID, - const t_vmem_elem *from, - t_vmem_elem *to, - unsigned int height, - unsigned int width, - unsigned int stride_to, /* In t_vmem_elem */ - - unsigned stride_from /* In t_vmem_elem */) +void isp_vmem_2d_load(const isp_ID_t ID, const t_vmem_elem *from, t_vmem_e= lem *to, + unsigned int height, unsigned int width, + unsigned int stride_to, unsigned int stride_from) /* In t_vmem_ele= m */ { unsigned int h; =20 @@ -244,15 +213,9 @@ void isp_vmem_2d_load( } } =20 -void isp_vmem_2d_store( - const isp_ID_t ID, - t_vmem_elem *to, - const t_vmem_elem *from, - unsigned int height, - unsigned int width, - unsigned int stride_to, /* In t_vmem_elem */ - - unsigned stride_from /* In t_vmem_elem */) +void isp_vmem_2d_store(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_el= em *from, + unsigned int height, unsigned int width, + unsigned int stride_to, unsigned int stride_from) /* In t_vmem_el= em */ { unsigned int h; =20 --=20 2.51.0.318.gd7df087d1a-goog From nobody Fri Oct 3 11:22:26 2025 Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3D742874FE for ; Tue, 2 Sep 2025 07:19:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797564; cv=none; b=A124J78B0yCq8Rj5JmNQsylMdDxp+CFT1FvyTNfFM/hi7rQJBVCZSWsqTGtWCs666oYDh0V4qG+rO9XDW26pYQs+bZ84TP/s25IlrDMhtKbmkiYOpfwlwUSvRj7h2BCjaba7zaBprewe7ozQBXnSWaKNwVmmPydr/HNXDEGnqMQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756797564; c=relaxed/simple; bh=740BcyIhKfKfRRxyo0ai5JUQmNTeZhlHh8EQv6Fx4lY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=UA3EhDkszKQsLsxaATmD8BwnicN+oPyy0+Vb4KiVcrLsfqfx62uAWuW2yuA92zL7rbmYgPq9yeFxC58RQ2UnMFo5TyU+mVv3/+6Fa0aKD8Ztv8pf9LFhxSePpxz0riygiZfD6rAmfQPVkfHozgrOZm7SI5d6AuFCltLDddzb7UU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Eo0OeJED; arc=none smtp.client-ip=209.85.208.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--abarnas.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Eo0OeJED" Received: by mail-ed1-f73.google.com with SMTP id 4fb4d7f45d1cf-61d0976931aso4629402a12.2 for ; Tue, 02 Sep 2025 00:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1756797561; x=1757402361; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=W/K4EAZLbBVfhRbNqsGgmHLXOOZw/G+x8hknE2VHBmo=; b=Eo0OeJED2liFTBqkMuJV4XF3t+NRZZcZ/usN1BizoUyWtcXg4MiwSe9eGD2Ubyge/y TJCaM+19v50LKyvKAlW8WfUJWXvXfI2hm/wak9DVPXcl+RkAZc30F5/IjFuX7L+HF59e 2Rl1+A63C1SPEEImAGWBqUZQb0tUdCsDZ2rUf3sAroT2vSa2OzP0kCLIUClgMyhR30HF 8px9pJ+DHY7VhujdpJvCP4NTSYYUR9ScDMC0Zp5fE5jAQgo/5AJUsEr9ZdqtAJ9ODfXU GFEK0c914YsfXM65CaSCj0eHpJHA60osNCDq1KCkosiTHwMo5d1BHO4nIBgjyOtPl8hB /8mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756797561; x=1757402361; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=W/K4EAZLbBVfhRbNqsGgmHLXOOZw/G+x8hknE2VHBmo=; b=U5Tr6P0uvINZuzi2Yh/F7QP9C8nwiFxmkblutHKKmbttq+LaBjAbkZQ69yNuFbN9jO qqCAs6MCtG7jmzUG9gUFq46LPebfdrHQgK0RCvk0igLhbEFpTR3+aZfN1s+L89nD1RP9 OhxU6XuFhX8zIg4WaNJufSVJ/8gq28gfHD+42i0i/km68ginkIf/OJEaQ4CtY6LO45mf Mh68gf24erAm+wn8dVaWxGU1U2dQpLYidrx+GRL9OX3VxwWFF/9eOgEMLegOnNSY95jE TyfIpQPgXYxgeP7Jr9JHozhYCBwdN47toUQQXxcK7hvwzu4iNOlrBSeEWM6kagNS69Tw 4SOw== X-Forwarded-Encrypted: i=1; AJvYcCWIVoMj7W3Q4CcX6jN1Do3CuXVmJUJvnft0UFzrWgKIICpkAwhSwTCd6WjxhsZ4dqcxA1NzeTDrOC5Hz1A=@vger.kernel.org X-Gm-Message-State: AOJu0YzCuaSpoewEaBRmSDiH0pV0u3tNWqIIt9yD2e1NlBtiXq8bG0T9 PGybJsNihkcwiu8GUbCm6zQN7a76phIACIJbv/oYoTDWea/DRlKvFAAB1KvCznH+k5LHsIG1V0k DgDvzJnmXug== X-Google-Smtp-Source: AGHT+IHu2RMCHU3NLYzXEdHLc3fvO1cupuIIfSxhMcWwMgEIP0sFksi/5BBq6DCJB2k0Nf4r8SmzBphWIWRX X-Received: from edbfi13.prod.google.com ([2002:a05:6402:550d:b0:61c:5514:9cb7]) (user=abarnas job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6402:90a:b0:61c:e9b5:74af with SMTP id 4fb4d7f45d1cf-61d270e811amr9136642a12.36.1756797561020; Tue, 02 Sep 2025 00:19:21 -0700 (PDT) Date: Tue, 2 Sep 2025 07:18:47 +0000 In-Reply-To: <20250902071847.2330409-1-abarnas@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250902071847.2330409-1-abarnas@google.com> X-Mailer: git-send-email 2.51.0.318.gd7df087d1a-goog Message-ID: <20250902071847.2330409-4-abarnas@google.com> Subject: [PATCH v2 3/3] staging: media: atomisp: Remove trailing comments From: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" To: Hans de Goede , Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko , Greg Kroah-Hartman , Dan Carpenter , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Cc: "=?UTF-8?q?Adrian=20Barna=C5=9B?=" Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Remove trailing comments in pci/hive_isp_css_common/host/vmem.c. Signed-off-by: Adrian Barna=C5=9B --- .../media/atomisp/pci/hive_isp_css_common/host/vmem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vme= m.c b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c index aa67638a09a5..547cc480c105 100644 --- a/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c +++ b/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/vmem.c @@ -161,7 +161,7 @@ static void store_vector(const isp_ID_t ID, t_vmem_elem= *to, const t_vmem_elem * } =20 void isp_vmem_load(const isp_ID_t ID, const t_vmem_elem *from, t_vmem_elem= *to, - unsigned int elems) /* In t_vmem_elem */ + unsigned int elems) { unsigned int c; const t_vmem_elem *vp =3D from; @@ -176,7 +176,7 @@ void isp_vmem_load(const isp_ID_t ID, const t_vmem_elem= *from, t_vmem_elem *to, } =20 void isp_vmem_store(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_elem = *from, - unsigned int elems) /* In t_vmem_elem */ + unsigned int elems) { unsigned int c; t_vmem_elem *vp =3D to; @@ -192,7 +192,7 @@ void isp_vmem_store(const isp_ID_t ID, t_vmem_elem *to,= const t_vmem_elem *from, =20 void isp_vmem_2d_load(const isp_ID_t ID, const t_vmem_elem *from, t_vmem_e= lem *to, unsigned int height, unsigned int width, - unsigned int stride_to, unsigned int stride_from) /* In t_vmem_ele= m */ + unsigned int stride_to, unsigned int stride_from) { unsigned int h; =20 @@ -215,7 +215,7 @@ void isp_vmem_2d_load(const isp_ID_t ID, const t_vmem_e= lem *from, t_vmem_elem *t =20 void isp_vmem_2d_store(const isp_ID_t ID, t_vmem_elem *to, const t_vmem_el= em *from, unsigned int height, unsigned int width, - unsigned int stride_to, unsigned int stride_from) /* In t_vmem_el= em */ + unsigned int stride_to, unsigned int stride_from) { unsigned int h; =20 --=20 2.51.0.318.gd7df087d1a-goog