Home
last modified time | relevance | path

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

12345678910>>...12

/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 …]
DMakefile14 obj-$(CONFIG_VIDEO_TI_CAL) += ti-cal.o
16 ti-cal-y := cal.o cal-camerarx.o cal-video.o
/kernel/linux/linux-4.19/drivers/net/wireless/mediatek/mt76/
Dmt76x2_phy.c41 dev->cal.tssi_cal_done = true; in mt76x2_phy_tssi_init_cal()
51 if (dev->cal.channel_cal_done) in mt76x2_phy_channel_calibrate()
57 if (!dev->cal.tssi_cal_done) in mt76x2_phy_channel_calibrate()
77 dev->cal.channel_cal_done = true; in mt76x2_phy_channel_calibrate()
165 gain_val[0] = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
166 gain_val[1] = dev->cal.agc_gain_cur[1] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
188 u8 limit = dev->cal.low_gain > 0 ? 16 : 4; in mt76x2_phy_adjust_vga_gain()
191 dev->cal.false_cca = false_cca; in mt76x2_phy_adjust_vga_gain()
192 if (false_cca > 800 && dev->cal.agc_gain_adjust < limit) in mt76x2_phy_adjust_vga_gain()
193 dev->cal.agc_gain_adjust += 2; in mt76x2_phy_adjust_vga_gain()
[all …]
Dmt76x2u_phy.c81 if (!dev->cal.tssi_cal_done) in mt76x2u_phy_tssi_compensate()
84 if (!dev->cal.tssi_comp_pending) { in mt76x2u_phy_tssi_compensate()
88 dev->cal.tssi_comp_pending = true; in mt76x2u_phy_tssi_compensate()
93 dev->cal.tssi_comp_pending = false; in mt76x2u_phy_tssi_compensate()
106 if (t.pa_mode || dev->cal.dpd_cal_done) in mt76x2u_phy_tssi_compensate()
111 dev->cal.dpd_cal_done = true; in mt76x2u_phy_tssi_compensate()
145 dev->cal.avg_rssi_all = mt76x2_phy_get_min_avg_rssi(dev); in mt76x2u_phy_update_channel_gain()
150 dev->cal.avg_rssi_all, false_cca); in mt76x2u_phy_update_channel_gain()
195 dev->cal.channel_cal_done = false; in mt76x2u_phy_set_channel()
246 mt76x2u_mcu_init_gain(dev, channel, dev->cal.rx.mcu_gain, true); in mt76x2u_phy_set_channel()
[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-4.19/drivers/media/tuners/
Dtda18218_priv.h62 #define R28_IRCAL1 0x28 /* IR CAL byte 1 */
63 #define R29_IRCAL2 0x29 /* IR CAL byte 2 */
64 #define R2A_IRCAL3 0x2a /* IR CAL byte 3 */
65 #define R2B_IRCAL4 0x2b /* IR CAL byte 4 */
66 #define R2C_RFCAL1 0x2c /* RF CAL byte 1 */
67 #define R2D_RFCAL2 0x2d /* RF CAL byte 2 */
68 #define R2E_RFCAL3 0x2e /* RF CAL byte 3 */
69 #define R2F_RFCAL4 0x2f /* RF CAL byte 4 */
70 #define R30_RFCAL5 0x30 /* RF CAL byte 5 */
71 #define R31_RFCAL6 0x31 /* RF CAL byte 6 */
[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-4.19/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.c744 struct b43_lo_calib *cal; in b43_calibrate_lo_setting() local
782 cal = kmalloc(sizeof(*cal), GFP_KERNEL); in b43_calibrate_lo_setting()
783 if (!cal) { in b43_calibrate_lo_setting()
787 memcpy(&cal->bbatt, bbatt, sizeof(*bbatt)); in b43_calibrate_lo_setting()
788 memcpy(&cal->rfatt, rfatt, sizeof(*rfatt)); in b43_calibrate_lo_setting()
789 memcpy(&cal->ctl, &loctl, sizeof(loctl)); in b43_calibrate_lo_setting()
790 cal->calib_time = jiffies; in b43_calibrate_lo_setting()
791 INIT_LIST_HEAD(&cal->list); in b43_calibrate_lo_setting()
793 return cal; in b43_calibrate_lo_setting()
843 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-4.19/Documentation/devicetree/bindings/media/
Dti-cal.txt1 Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL)
4 The Camera Adaptation Layer (CAL) is a key component for image capture
10 - compatible: must be "ti,dra72-cal"
11 - reg: CAL Top level, Receiver Core #0, Receiver Core #1 and Camera RX
15 - interrupts: should contain IRQ line for the CAL;
17 CAL supports 2 camera port nodes on MIPI bus. Each CSI2 camera port nodes
23 cal: cal@4845b000 {
24 compatible = "ti,dra72-cal";
25 ti,hwmods = "cal";
/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-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-4.19/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-nyan-big-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-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 …]
Dtegra124-apalis-emc.dtsi129 nvidia,emc-auto-cal-config = <0xa1430000>;
130 nvidia,emc-auto-cal-config2 = <0x00000000>;
131 nvidia,emc-auto-cal-config3 = <0x00000000>;
132 nvidia,emc-auto-cal-interval = <0x001fffff>;
226 nvidia,emc-auto-cal-config = <0xa1430000>;
227 nvidia,emc-auto-cal-config2 = <0x00000000>;
228 nvidia,emc-auto-cal-config3 = <0x00000000>;
229 nvidia,emc-auto-cal-interval = <0x001fffff>;
323 nvidia,emc-auto-cal-config = <0xa1430000>;
324 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-4.19/drivers/input/gameport/
Dlightning.c119 static int l4_getcal(int port, int *cal) in l4_getcal() argument
142 cal[i] = inb(L4_PORT); in l4_getcal()
155 static int l4_setcal(int port, int *cal) in l4_setcal() argument
178 outb(cal[i], L4_PORT); in l4_setcal()
195 int cal[4]; in l4_calibrate() local
198 if (l4_getcal(l4->port, cal)) in l4_calibrate()
202 t = (max[i] * cal[i]) / 200; in l4_calibrate()
204 axes[i] = (axes[i] < 0) ? -1 : (axes[i] * cal[i]) / t; in l4_calibrate()
206 cal[i] = t; in l4_calibrate()
209 if (l4_setcal(l4->port, cal)) in l4_calibrate()
[all …]

12345678910>>...12