Home
last modified time | relevance | path

Searched full:cal (Results 1 – 25 of 363) sorted by relevance

12345678910>>...15

/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
Dcal.c3 * TI Camera Access Layer (CAL) - Driver
30 #include "cal.h"
33 MODULE_DESCRIPTION("TI CAL driver");
130 void cal_quickdump_regs(struct cal_dev *cal) in cal_quickdump_regs() argument
134 cal_info(cal, "CAL Registers @ 0x%pa:\n", &cal->res->start); in cal_quickdump_regs()
136 (__force const void *)cal->base, in cal_quickdump_regs()
137 resource_size(cal->res), false); in cal_quickdump_regs()
139 for (i = 0; i < ARRAY_SIZE(cal->phy); ++i) { in cal_quickdump_regs()
140 struct cal_camerarx *phy = cal->phy[i]; in cal_quickdump_regs()
145 cal_info(cal, "CSI2 Core %u Registers @ %pa:\n", i, in cal_quickdump_regs()
[all …]
Dcal.h3 * TI Camera Access Layer (CAL)
29 #define CAL_MODULE_NAME "cal"
85 * The Camera Adaptation Layer (CAL) module is paired with one or more complex
89 * The cal_dev structure represents the whole subsystem, including the CAL and
90 * the CAMERARX instances. Instances of struct cal_dev are named cal through the
107 struct cal_dev *cal; member
147 struct cal_dev *cal; member
184 #define cal_dbg(level, cal, fmt, arg...) \ argument
187 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
189 #define cal_info(cal, fmt, arg...) \ argument
[all …]
Dcal-camerarx.c3 * TI Camera Access Layer (CAL) - CAMERARX
25 #include "cal.h"
68 u32 val = cal_read(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance)); in cal_camerarx_lane_config()
89 cal_write(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), val); in cal_camerarx_lane_config()
96 u32 num_lanes = phy->cal->data->camerarx[phy->instance].num_lanes; in cal_camerarx_enable()
178 cal_write_field(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), in cal_camerarx_power()
184 current_state = cal_read_field(phy->cal, in cal_camerarx_power()
205 if (cal_read_field(phy->cal, in cal_camerarx_wait_reset()
213 if (cal_read_field(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), in cal_camerarx_wait_reset()
225 if (cal_read_field(phy->cal, in cal_camerarx_wait_stop_state()
[all …]
/kernel/linux/linux-6.6/drivers/media/platform/ti/cal/
Dcal.c3 * TI Camera Access Layer (CAL) - Driver
30 #include "cal.h"
33 MODULE_DESCRIPTION("TI CAL driver");
243 void cal_quickdump_regs(struct cal_dev *cal) in cal_quickdump_regs() argument
247 cal_info(cal, "CAL Registers @ 0x%pa:\n", &cal->res->start); in cal_quickdump_regs()
249 (__force const void *)cal->base, in cal_quickdump_regs()
250 resource_size(cal->res), false); in cal_quickdump_regs()
252 for (i = 0; i < cal->data->num_csi2_phy; ++i) { in cal_quickdump_regs()
253 struct cal_camerarx *phy = cal->phy[i]; in cal_quickdump_regs()
255 cal_info(cal, "CSI2 Core %u Registers @ %pa:\n", i, in cal_quickdump_regs()
[all …]
Dcal.h3 * TI Camera Access Layer (CAL)
31 #define CAL_MODULE_NAME "cal"
149 * The Camera Adaptation Layer (CAL) module is paired with one or more complex
153 * The cal_dev structure represents the whole subsystem, including the CAL and
154 * the CAMERARX instances. Instances of struct cal_dev are named cal through the
170 struct cal_dev *cal; member
225 struct cal_dev *cal; member
257 #define cal_dbg(level, cal, fmt, arg...) \ argument
260 dev_printk(KERN_DEBUG, (cal)->dev, fmt, ##arg); \
262 #define cal_info(cal, fmt, arg...) \ argument
[all …]
Dcal-camerarx.c3 * TI Camera Access Layer (CAL) - CAMERARX
25 #include "cal.h"
82 u32 val = cal_read(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance)); in cal_camerarx_lane_config()
103 cal_write(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), val); in cal_camerarx_lane_config()
110 u32 num_lanes = phy->cal->data->camerarx[phy->instance].num_lanes; in cal_camerarx_enable()
176 cal_write_field(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), in cal_camerarx_power()
182 current_state = cal_read_field(phy->cal, in cal_camerarx_power()
203 if (cal_read_field(phy->cal, in cal_camerarx_wait_reset()
211 if (cal_read_field(phy->cal, CAL_CSI2_COMPLEXIO_CFG(phy->instance), in cal_camerarx_wait_reset()
223 if (cal_read_field(phy->cal, in cal_camerarx_wait_stop_state()
[all …]
/kernel/linux/linux-5.10/drivers/media/tuners/
Dtda18218_priv.h53 #define R28_IRCAL1 0x28 /* IR CAL byte 1 */
54 #define R29_IRCAL2 0x29 /* IR CAL byte 2 */
55 #define R2A_IRCAL3 0x2a /* IR CAL byte 3 */
56 #define R2B_IRCAL4 0x2b /* IR CAL byte 4 */
57 #define R2C_RFCAL1 0x2c /* RF CAL byte 1 */
58 #define R2D_RFCAL2 0x2d /* RF CAL byte 2 */
59 #define R2E_RFCAL3 0x2e /* RF CAL byte 3 */
60 #define R2F_RFCAL4 0x2f /* RF CAL byte 4 */
61 #define R30_RFCAL5 0x30 /* RF CAL byte 5 */
62 #define R31_RFCAL6 0x31 /* RF CAL byte 6 */
[all …]
/kernel/linux/linux-6.6/drivers/media/tuners/
Dtda18218_priv.h53 #define R28_IRCAL1 0x28 /* IR CAL byte 1 */
54 #define R29_IRCAL2 0x29 /* IR CAL byte 2 */
55 #define R2A_IRCAL3 0x2a /* IR CAL byte 3 */
56 #define R2B_IRCAL4 0x2b /* IR CAL byte 4 */
57 #define R2C_RFCAL1 0x2c /* RF CAL byte 1 */
58 #define R2D_RFCAL2 0x2d /* RF CAL byte 2 */
59 #define R2E_RFCAL3 0x2e /* RF CAL byte 3 */
60 #define R2F_RFCAL4 0x2f /* RF CAL byte 4 */
61 #define R30_RFCAL5 0x30 /* RF CAL byte 5 */
62 #define R31_RFCAL6 0x31 /* RF CAL byte 6 */
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/broadcom/b43/
Dradio_2055.h44 #define B2055_CAL_MISC 0x24 /* CAL MISC */
45 #define B2055_CAL_COUT 0x25 /* CAL Counter out */
46 #define B2055_CAL_COUT2 0x26 /* CAL Counter out 2 */
47 #define B2055_CAL_CVARCTL 0x27 /* CAL CVAR Control */
48 #define B2055_CAL_RVARCTL 0x28 /* CAL RVAR Control */
49 #define B2055_CAL_LPOCTL 0x29 /* CAL LPO Control */
50 #define B2055_CAL_TS 0x2A /* CAL TS */
51 #define B2055_CAL_RCCALRTS 0x2B /* CAL RCCAL READ TS */
52 #define B2055_CAL_RCALRTS 0x2C /* CAL RCAL READ TS */
59 #define B2055_PLL_CALVTH 0x33 /* PLL CAL VTH */
[all …]
Dlo.c731 struct b43_lo_calib *cal; in b43_calibrate_lo_setting() local
769 cal = kmalloc(sizeof(*cal), GFP_KERNEL); in b43_calibrate_lo_setting()
770 if (!cal) { in b43_calibrate_lo_setting()
774 memcpy(&cal->bbatt, bbatt, sizeof(*bbatt)); in b43_calibrate_lo_setting()
775 memcpy(&cal->rfatt, rfatt, sizeof(*rfatt)); in b43_calibrate_lo_setting()
776 memcpy(&cal->ctl, &loctl, sizeof(loctl)); in b43_calibrate_lo_setting()
777 cal->calib_time = jiffies; in b43_calibrate_lo_setting()
778 INIT_LIST_HEAD(&cal->list); in b43_calibrate_lo_setting()
780 return cal; in b43_calibrate_lo_setting()
830 struct b43_lo_calib *cal; in b43_gphy_dc_lt_init() local
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/b43/
Dradio_2055.h44 #define B2055_CAL_MISC 0x24 /* CAL MISC */
45 #define B2055_CAL_COUT 0x25 /* CAL Counter out */
46 #define B2055_CAL_COUT2 0x26 /* CAL Counter out 2 */
47 #define B2055_CAL_CVARCTL 0x27 /* CAL CVAR Control */
48 #define B2055_CAL_RVARCTL 0x28 /* CAL RVAR Control */
49 #define B2055_CAL_LPOCTL 0x29 /* CAL LPO Control */
50 #define B2055_CAL_TS 0x2A /* CAL TS */
51 #define B2055_CAL_RCCALRTS 0x2B /* CAL RCCAL READ TS */
52 #define B2055_CAL_RCALRTS 0x2C /* CAL RCAL READ TS */
59 #define B2055_PLL_CALVTH 0x33 /* PLL CAL VTH */
[all …]
Dlo.c731 struct b43_lo_calib *cal; in b43_calibrate_lo_setting() local
769 cal = kmalloc(sizeof(*cal), GFP_KERNEL); in b43_calibrate_lo_setting()
770 if (!cal) { in b43_calibrate_lo_setting()
774 memcpy(&cal->bbatt, bbatt, sizeof(*bbatt)); in b43_calibrate_lo_setting()
775 memcpy(&cal->rfatt, rfatt, sizeof(*rfatt)); in b43_calibrate_lo_setting()
776 memcpy(&cal->ctl, &loctl, sizeof(loctl)); in b43_calibrate_lo_setting()
777 cal->calib_time = jiffies; in b43_calibrate_lo_setting()
778 INIT_LIST_HEAD(&cal->list); in b43_calibrate_lo_setting()
780 return cal; in b43_calibrate_lo_setting()
830 struct b43_lo_calib *cal; in b43_gphy_dc_lt_init() local
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dphy.c35 s8 *gain_adj = dev->cal.rx.high_gain; in mt76x2_apply_gain_adj()
209 if (!dev->cal.tssi_cal_done) in mt76x2_phy_tssi_compensate()
212 if (!dev->cal.tssi_comp_pending) { in mt76x2_phy_tssi_compensate()
216 dev->cal.tssi_comp_pending = true; in mt76x2_phy_tssi_compensate()
221 dev->cal.tssi_comp_pending = false; in mt76x2_phy_tssi_compensate()
234 if (t.pa_mode || dev->cal.dpd_cal_done || dev->ed_tx_blocked) in mt76x2_phy_tssi_compensate()
239 dev->cal.dpd_cal_done = true; in mt76x2_phy_tssi_compensate()
250 gain_val[0] = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
251 gain_val[1] = dev->cal.agc_gain_cur[1] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
276 u8 *gain = dev->cal.agc_gain_init; in mt76x2_phy_update_channel_gain()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
Dphy.c35 s8 *gain_adj = dev->cal.rx.high_gain; in mt76x2_apply_gain_adj()
209 if (!dev->cal.tssi_cal_done) in mt76x2_phy_tssi_compensate()
212 if (!dev->cal.tssi_comp_pending) { in mt76x2_phy_tssi_compensate()
216 dev->cal.tssi_comp_pending = true; in mt76x2_phy_tssi_compensate()
221 dev->cal.tssi_comp_pending = false; in mt76x2_phy_tssi_compensate()
234 if (t.pa_mode || dev->cal.dpd_cal_done || dev->ed_tx_blocked) in mt76x2_phy_tssi_compensate()
239 dev->cal.dpd_cal_done = true; in mt76x2_phy_tssi_compensate()
250 gain_val[0] = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
251 gain_val[1] = dev->cal.agc_gain_cur[1] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
276 u8 *gain = dev->cal.agc_gain_init; in mt76x2_phy_update_channel_gain()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/
Dmt76x02_phy.c171 u8 limit = dev->cal.low_gain > 0 ? 16 : 4; in mt76x02_phy_adjust_vga_gain()
177 dev->cal.false_cca = false_cca; in mt76x02_phy_adjust_vga_gain()
178 if (false_cca > 800 && dev->cal.agc_gain_adjust < limit) { in mt76x02_phy_adjust_vga_gain()
179 dev->cal.agc_gain_adjust += 2; in mt76x02_phy_adjust_vga_gain()
181 } else if ((false_cca < 10 && dev->cal.agc_gain_adjust > 0) || in mt76x02_phy_adjust_vga_gain()
182 (dev->cal.agc_gain_adjust >= limit && false_cca < 500)) { in mt76x02_phy_adjust_vga_gain()
183 dev->cal.agc_gain_adjust -= 2; in mt76x02_phy_adjust_vga_gain()
187 dev->cal.agc_lowest_gain = dev->cal.agc_gain_adjust >= limit; in mt76x02_phy_adjust_vga_gain()
195 dev->cal.agc_gain_init[0] = mt76_get_field(dev, MT_BBP(AGC, 8), in mt76x02_init_agc_gain()
197 dev->cal.agc_gain_init[1] = mt76_get_field(dev, MT_BBP(AGC, 9), in mt76x02_init_agc_gain()
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/
Dmt76x02_phy.c171 u8 limit = dev->cal.low_gain > 0 ? 16 : 4; in mt76x02_phy_adjust_vga_gain()
177 dev->cal.false_cca = false_cca; in mt76x02_phy_adjust_vga_gain()
178 if (false_cca > 800 && dev->cal.agc_gain_adjust < limit) { in mt76x02_phy_adjust_vga_gain()
179 dev->cal.agc_gain_adjust += 2; in mt76x02_phy_adjust_vga_gain()
181 } else if ((false_cca < 10 && dev->cal.agc_gain_adjust > 0) || in mt76x02_phy_adjust_vga_gain()
182 (dev->cal.agc_gain_adjust >= limit && false_cca < 500)) { in mt76x02_phy_adjust_vga_gain()
183 dev->cal.agc_gain_adjust -= 2; in mt76x02_phy_adjust_vga_gain()
187 dev->cal.agc_lowest_gain = dev->cal.agc_gain_adjust >= limit; in mt76x02_phy_adjust_vga_gain()
195 dev->cal.agc_gain_init[0] = mt76_get_field(dev, MT_BBP(AGC, 8), in mt76x02_init_agc_gain()
197 dev->cal.agc_gain_init[1] = mt76_get_field(dev, MT_BBP(AGC, 9), in mt76x02_init_agc_gain()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/media/
Dti,cal.yaml4 $id: http://devicetree.org/schemas/media/ti,cal.yaml#
7 title: Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL)
13 The Camera Adaptation Layer (CAL) is a key component for image capture
18 CAL supports 2 camera port nodes on MIPI bus.
24 - ti,dra72-cal
26 - ti,dra72-pre-es2-cal
28 - ti,dra76-cal
30 - ti,am654-cal
35 - description: The CAL main register region
127 cal: cal@4845b000 {
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/media/
Dti,cal.yaml4 $id: http://devicetree.org/schemas/media/ti,cal.yaml#
7 title: Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL) Device Tree Bindings
13 The Camera Adaptation Layer (CAL) is a key component for image capture
18 CAL supports 2 camera port nodes on MIPI bus. Each CSI2 camera port nodes
27 - ti,dra72-cal
29 - ti,dra72-pre-es2-cal
31 - ti,dra76-cal
33 - ti,am654-cal
38 - description: The CAL main register region
154 cal: cal@4845b000 {
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dtegra124-nyan-blaze-emc.dtsi78 nvidia,emc-auto-cal-config = <0xa1430000>;
79 nvidia,emc-auto-cal-config2 = <0x00000000>;
80 nvidia,emc-auto-cal-config3 = <0x00000000>;
81 nvidia,emc-auto-cal-interval = <0x001fffff>;
246 nvidia,emc-auto-cal-config = <0xa1430000>;
247 nvidia,emc-auto-cal-config2 = <0x00000000>;
248 nvidia,emc-auto-cal-config3 = <0x00000000>;
249 nvidia,emc-auto-cal-interval = <0x001fffff>;
414 nvidia,emc-auto-cal-config = <0xa1430000>;
415 nvidia,emc-auto-cal-config2 = <0x00000000>;
[all …]
Dtegra124-apalis-emc.dtsi94 nvidia,emc-auto-cal-config = <0xa1430000>;
95 nvidia,emc-auto-cal-config2 = <0x00000000>;
96 nvidia,emc-auto-cal-config3 = <0x00000000>;
97 nvidia,emc-auto-cal-interval = <0x001fffff>;
191 nvidia,emc-auto-cal-config = <0xa1430000>;
192 nvidia,emc-auto-cal-config2 = <0x00000000>;
193 nvidia,emc-auto-cal-config3 = <0x00000000>;
194 nvidia,emc-auto-cal-interval = <0x001fffff>;
288 nvidia,emc-auto-cal-config = <0xa1430000>;
289 nvidia,emc-auto-cal-config2 = <0x00000000>;
[all …]
Dtegra124-jetson-tk1-emc.dtsi89 nvidia,emc-auto-cal-config = <0xa1430000>;
90 nvidia,emc-auto-cal-config2 = <0x00000000>;
91 nvidia,emc-auto-cal-config3 = <0x00000000>;
92 nvidia,emc-auto-cal-interval = <0x001fffff>;
257 nvidia,emc-auto-cal-config = <0xa1430000>;
258 nvidia,emc-auto-cal-config2 = <0x00000000>;
259 nvidia,emc-auto-cal-config3 = <0x00000000>;
260 nvidia,emc-auto-cal-interval = <0x001fffff>;
425 nvidia,emc-auto-cal-config = <0xa1430000>;
426 nvidia,emc-auto-cal-config2 = <0x00000000>;
[all …]
/kernel/linux/linux-6.6/arch/arm/boot/dts/nvidia/
Dtegra124-apalis-emc.dtsi317 nvidia,emc-auto-cal-config = <0xa1430000>;
318 nvidia,emc-auto-cal-config2 = <0x00000000>;
319 nvidia,emc-auto-cal-config3 = <0x00000000>;
320 nvidia,emc-auto-cal-interval = <0x001fffff>;
414 nvidia,emc-auto-cal-config = <0xa1430000>;
415 nvidia,emc-auto-cal-config2 = <0x00000000>;
416 nvidia,emc-auto-cal-config3 = <0x00000000>;
417 nvidia,emc-auto-cal-interval = <0x001fffff>;
511 nvidia,emc-auto-cal-config = <0xa1430000>;
512 nvidia,emc-auto-cal-config2 = <0x00000000>;
[all …]
Dtegra124-jetson-tk1-emc.dtsi421 nvidia,emc-auto-cal-config = <0xa1430000>;
422 nvidia,emc-auto-cal-config2 = <0x00000000>;
423 nvidia,emc-auto-cal-config3 = <0x00000000>;
424 nvidia,emc-auto-cal-interval = <0x001fffff>;
589 nvidia,emc-auto-cal-config = <0xa1430000>;
590 nvidia,emc-auto-cal-config2 = <0x00000000>;
591 nvidia,emc-auto-cal-config3 = <0x00000000>;
592 nvidia,emc-auto-cal-interval = <0x001fffff>;
757 nvidia,emc-auto-cal-config = <0xa1430000>;
758 nvidia,emc-auto-cal-config2 = <0x00000000>;
[all …]
/kernel/linux/linux-5.10/drivers/input/gameport/
Dlightning.c107 static int l4_getcal(int port, int *cal) in l4_getcal() argument
130 cal[i] = inb(L4_PORT); in l4_getcal()
143 static int l4_setcal(int port, int *cal) in l4_setcal() argument
166 outb(cal[i], L4_PORT); in l4_setcal()
183 int cal[4]; in l4_calibrate() local
186 if (l4_getcal(l4->port, cal)) in l4_calibrate()
190 t = (max[i] * cal[i]) / 200; in l4_calibrate()
192 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
194 cal[i] = t; in l4_calibrate()
197 if (l4_setcal(l4->port, cal)) in l4_calibrate()
[all …]
/kernel/linux/linux-6.6/drivers/input/gameport/
Dlightning.c104 static int l4_getcal(int port, int *cal) in l4_getcal() argument
127 cal[i] = inb(L4_PORT); in l4_getcal()
140 static int l4_setcal(int port, int *cal) in l4_setcal() argument
163 outb(cal[i], L4_PORT); in l4_setcal()
180 int cal[4]; in l4_calibrate() local
183 if (l4_getcal(l4->port, cal)) in l4_calibrate()
187 t = (max[i] * cal[i]) / 200; in l4_calibrate()
189 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
191 cal[i] = t; in l4_calibrate()
194 if (l4_setcal(l4->port, cal)) in l4_calibrate()
[all …]

12345678910>>...15