Home
last modified time | relevance | path

Searched refs:s16 (Results 1 – 200 of 416) sorted by relevance

123

/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_qmath.c37 s16 qm_muls16(s16 op1, s16 op2) in qm_muls16()
40 if (op1 == (s16) 0x8000 && op2 == (s16) 0x8000) in qm_muls16()
45 return (s16) (result >> 15); in qm_muls16()
70 s16 qm_add16(s16 op1, s16 op2) in qm_add16()
72 s16 result; in qm_add16()
75 result = (s16) 0x7fff; in qm_add16()
77 result = (s16) 0xffff8000; in qm_add16()
79 result = (s16) temp; in qm_add16()
89 s16 qm_sub16(s16 op1, s16 op2) in qm_sub16()
91 s16 result; in qm_sub16()
[all …]
Dphy_qmath.h24 s16 qm_muls16(s16 op1, s16 op2);
28 s16 qm_add16(s16 op1, s16 op2);
30 s16 qm_sub16(s16 op1, s16 op2);
34 s16 qm_shl16(s16 op, int shift);
36 s16 qm_shr16(s16 op, int shift);
38 s16 qm_norm32(s32 op);
40 void qm_log10(s32 N, s16 qN, s16 *log10N, s16 *qLog10N);
Dphy_int.h311 s16 pre_badplcp_cnt;
312 s16 bphy_pre_badplcp_cnt;
324 s16 crsminpwr_index;
378 s16 a0;
379 s16 b0;
380 s16 a1;
381 s16 b1;
411 s16 pwrdet_2g_a1;
412 s16 pwrdet_2g_b0;
413 s16 pwrdet_2g_b1;
[all …]
Dphy_lcn.h50 s16 lcnphy_pa0b0;
51 s16 lcnphy_pa0b1;
52 s16 lcnphy_pa0b2;
79 s16 lcnphy_ofdmgainidxtableoffset;
80 s16 lcnphy_dsssgainidxtableoffset;
101 s16 lcnphy_cck_dig_filt_type;
102 s16 lcnphy_ofdm_dig_filt_type;
Dphy_lcn.c169 s16 a;
170 s16 b;
174 s16 re;
175 s16 im;
974 #define LCNPHY_TEMPSENSE(val) ((s16)((val > 255) ? (val - 512) : val))
1041 static int wlc_lcnphy_calc_floor(s16 coeff_x, int type) in wlc_lcnphy_calc_floor()
1249 s16 iq_nbits, qq_nbits, arsh, brsh; in wlc_lcnphy_calc_rx_iq_comp()
1387 s16 *ptr; in wlc_lcnphy_rx_iq_cal()
1390 ptr = kmalloc(sizeof(s16) * 131, GFP_ATOMIC); in wlc_lcnphy_rx_iq_cal()
1845 wlc_lcnphy_load_tx_iir_filter(struct brcms_phy *pi, bool is_ofdm, s16 filt_type) in wlc_lcnphy_load_tx_iir_filter()
[all …]
Dphy_n.c13318 static s16 nphy_def_lnagains[] = { -2, 10, 19, 25 };
13762 static s16 nphy_papd_padgain_dlt_2g_2057rev3n4[] = {
13769 static s16 nphy_papd_padgain_dlt_2g_2057rev5[] = {
13776 static s16 nphy_papd_padgain_dlt_2g_2057rev7[] = {
14665 static s32 get_rf_pwr_offset(struct brcms_phy *pi, s16 pga_gn, s16 pad_gn) in get_rf_pwr_offset()
14673 rfpwr_offset = (s16) in get_rf_pwr_offset()
14677 rfpwr_offset = (s16) in get_rf_pwr_offset()
14683 rfpwr_offset = (s16) in get_rf_pwr_offset()
14690 rfpwr_offset = (s16) in get_rf_pwr_offset()
14696 rfpwr_offset = (s16) in get_rf_pwr_offset()
[all …]
/linux-4.4.14/arch/arm/mach-omap2/
Dprm.h143 bool (*was_any_context_lost_old)(u8 part, s16 inst, u16 idx);
144 void (*clear_context_loss_flags_old)(u8 part, s16 inst, u16 idx);
146 int (*assert_hardreset)(u8 shift, u8 part, s16 prm_mod, u16 offset);
147 int (*deassert_hardreset)(u8 shift, u8 st_shift, u8 part, s16 prm_mod,
149 int (*is_hardreset_asserted)(u8 shift, u8 part, s16 prm_mod,
152 int (*clear_mod_irqs)(s16 module, u8 regs, u32 wkst_mask);
160 int omap_prm_assert_hardreset(u8 shift, u8 part, s16 prm_mod, u16 offset);
161 int omap_prm_deassert_hardreset(u8 shift, u8 st_shift, u8 part, s16 prm_mod,
163 int omap_prm_is_hardreset_asserted(u8 shift, u8 part, s16 prm_mod, u16 offset);
165 extern bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx);
[all …]
Dcm2xxx_3xxx.h53 static inline u32 omap2_cm_read_mod_reg(s16 module, u16 idx) in omap2_cm_read_mod_reg()
58 static inline void omap2_cm_write_mod_reg(u32 val, s16 module, u16 idx) in omap2_cm_write_mod_reg()
64 static inline u32 omap2_cm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module, in omap2_cm_rmw_mod_reg_bits()
65 s16 idx) in omap2_cm_rmw_mod_reg_bits()
78 static inline u32 omap2_cm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) in omap2_cm_read_mod_bits_shift()
89 static inline u32 omap2_cm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_cm_set_mod_reg_bits()
94 static inline u32 omap2_cm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_cm_clear_mod_reg_bits()
Dprm2xxx_3xxx.h56 static inline u32 omap2_prm_read_mod_reg(s16 module, u16 idx) in omap2_prm_read_mod_reg()
61 static inline void omap2_prm_write_mod_reg(u32 val, s16 module, u16 idx) in omap2_prm_write_mod_reg()
67 static inline u32 omap2_prm_rmw_mod_reg_bits(u32 mask, u32 bits, s16 module, in omap2_prm_rmw_mod_reg_bits()
68 s16 idx) in omap2_prm_rmw_mod_reg_bits()
81 static inline u32 omap2_prm_read_mod_bits_shift(s16 domain, s16 idx, u32 mask) in omap2_prm_read_mod_bits_shift()
92 static inline u32 omap2_prm_set_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_prm_set_mod_reg_bits()
97 static inline u32 omap2_prm_clear_mod_reg_bits(u32 bits, s16 module, s16 idx) in omap2_prm_clear_mod_reg_bits()
103 int omap2_prm_is_hardreset_asserted(u8 shift, u8 part, s16 prm_mod, u16 offset);
104 int omap2_prm_assert_hardreset(u8 shift, u8 part, s16 prm_mod,
107 s16 prm_mod, u16 reset_offset,
Dprminst44xx.h23 extern u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx);
24 extern void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx);
26 s16 inst, u16 idx);
30 extern int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst,
32 extern int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst,
35 s16 inst, u16 rstctrl_offs,
Dcm.h53 int (*split_idlest_reg)(void __iomem *idlest_reg, s16 *prcm_inst,
55 int (*wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg,
57 int (*wait_module_idle)(u8 part, s16 prcm_mod, u16 idlest_reg,
63 extern int cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst,
65 int omap_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_reg,
67 int omap_cm_wait_module_idle(u8 part, s16 prcm_mod, u16 idlest_reg,
Dprcm_mpu_44xx_54xx.h29 extern u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 idx);
30 extern void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 idx);
31 extern u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst,
32 s16 idx);
Dprcm_mpu44xx.c31 u32 omap4_prcm_mpu_read_inst_reg(s16 inst, u16 reg) in omap4_prcm_mpu_read_inst_reg()
36 void omap4_prcm_mpu_write_inst_reg(u32 val, s16 inst, u16 reg) in omap4_prcm_mpu_write_inst_reg()
41 u32 omap4_prcm_mpu_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) in omap4_prcm_mpu_rmw_inst_reg_bits()
Dprminst44xx.c59 u32 omap4_prminst_read_inst_reg(u8 part, s16 inst, u16 idx) in omap4_prminst_read_inst_reg()
68 void omap4_prminst_write_inst_reg(u32 val, u8 part, s16 inst, u16 idx) in omap4_prminst_write_inst_reg()
77 u32 omap4_prminst_rmw_inst_reg_bits(u32 mask, u32 bits, u8 part, s16 inst, in omap4_prminst_rmw_inst_reg_bits()
100 int omap4_prminst_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in omap4_prminst_is_hardreset_asserted()
124 int omap4_prminst_assert_hardreset(u8 shift, u8 part, s16 inst, in omap4_prminst_assert_hardreset()
153 int omap4_prminst_deassert_hardreset(u8 shift, u8 st_shift, u8 part, s16 inst, in omap4_prminst_deassert_hardreset()
Dprm33xx.c31 static u32 am33xx_prm_read_reg(s16 inst, u16 idx) in am33xx_prm_read_reg()
37 static void am33xx_prm_write_reg(u32 val, s16 inst, u16 idx) in am33xx_prm_write_reg()
43 static u32 am33xx_prm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_prm_rmw_reg_bits()
67 static int am33xx_prm_is_hardreset_asserted(u8 shift, u8 part, s16 inst, in am33xx_prm_is_hardreset_asserted()
93 static int am33xx_prm_assert_hardreset(u8 shift, u8 part, s16 inst, in am33xx_prm_assert_hardreset()
123 s16 inst, u16 rstctrl_offs, in am33xx_prm_deassert_hardreset()
Dcm2xxx.c46 static void _write_clktrctrl(u8 c, s16 module, u32 mask) in _write_clktrctrl()
56 static bool omap2xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) in omap2xxx_cm_is_clkdm_in_hwsup()
67 static void omap2xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) in omap2xxx_cm_clkdm_enable_hwsup()
72 static void omap2xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) in omap2xxx_cm_clkdm_disable_hwsup()
208 s16 *prcm_inst, in omap2xxx_cm_split_idlest_reg()
251 int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, in omap2xxx_cm_wait_module_ready()
Dcm33xx.c63 static inline u32 am33xx_cm_rmw_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx) in am33xx_cm_rmw_reg_bits()
218 static int am33xx_cm_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, in am33xx_cm_wait_module_ready()
241 static int am33xx_cm_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, in am33xx_cm_wait_module_idle()
Dcminst44xx.c134 s16 idx) in omap4_cminst_rmw_inst_reg_bits()
146 static u32 omap4_cminst_set_inst_reg_bits(u32 bits, u8 part, u16 inst, s16 idx) in omap4_cminst_set_inst_reg_bits()
152 s16 idx) in omap4_cminst_clear_inst_reg_bits()
157 static u32 omap4_cminst_read_inst_reg_bits(u8 part, u16 inst, s16 idx, u32 mask) in omap4_cminst_read_inst_reg_bits()
276 static int omap4_cminst_wait_module_ready(u8 part, s16 inst, u16 clkctrl_offs, in omap4_cminst_wait_module_ready()
302 static int omap4_cminst_wait_module_idle(u8 part, s16 inst, u16 clkctrl_offs, in omap4_cminst_wait_module_idle()
Dprm2xxx_3xxx.c36 int omap2_prm_is_hardreset_asserted(u8 shift, u8 part, s16 prm_mod, u16 offset) in omap2_prm_is_hardreset_asserted()
56 int omap2_prm_assert_hardreset(u8 shift, u8 part, s16 prm_mod, u16 offset) in omap2_prm_assert_hardreset()
86 s16 prm_mod, u16 rst_offset, u16 st_offset) in omap2_prm_deassert_hardreset()
Dprm_common.c408 bool prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx) in prm_was_any_context_lost_old()
432 void prm_clear_context_loss_flags_old(u8 part, s16 inst, u16 idx) in prm_clear_context_loss_flags_old()
450 int omap_prm_assert_hardreset(u8 shift, u8 part, s16 prm_mod, u16 offset) in omap_prm_assert_hardreset()
472 int omap_prm_deassert_hardreset(u8 shift, u8 st_shift, u8 part, s16 prm_mod, in omap_prm_deassert_hardreset()
494 int omap_prm_is_hardreset_asserted(u8 shift, u8 part, s16 prm_mod, u16 offset) in omap_prm_is_hardreset_asserted()
550 int omap_prm_clear_mod_irqs(s16 module, u8 regs, u32 wkst_mask) in omap_prm_clear_mod_irqs()
Dprm44xx.c92 static u32 omap4_prm_read_inst_reg(s16 inst, u16 reg) in omap4_prm_read_inst_reg()
98 static void omap4_prm_write_inst_reg(u32 val, s16 inst, u16 reg) in omap4_prm_write_inst_reg()
104 static u32 omap4_prm_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 reg) in omap4_prm_rmw_inst_reg_bits()
400 static bool omap44xx_prm_was_any_context_lost_old(u8 part, s16 inst, u16 idx) in omap44xx_prm_was_any_context_lost_old()
415 static void omap44xx_prm_clear_context_loss_flags_old(u8 part, s16 inst, in omap44xx_prm_clear_context_loss_flags_old()
Dcm_common.c68 int cm_split_idlest_reg(void __iomem *idlest_reg, s16 *prcm_inst, in cm_split_idlest_reg()
94 int omap_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_reg, in omap_cm_wait_module_ready()
120 int omap_cm_wait_module_idle(u8 part, s16 prcm_mod, u16 idlest_reg, in omap_cm_wait_module_idle()
Dcm3xxx.c35 static void _write_clktrctrl(u8 c, s16 module, u32 mask) in _write_clktrctrl()
45 static bool omap3xxx_cm_is_clkdm_in_hwsup(s16 module, u32 mask) in omap3xxx_cm_is_clkdm_in_hwsup()
56 static void omap3xxx_cm_clkdm_enable_hwsup(s16 module, u32 mask) in omap3xxx_cm_clkdm_enable_hwsup()
61 static void omap3xxx_cm_clkdm_disable_hwsup(s16 module, u32 mask) in omap3xxx_cm_clkdm_disable_hwsup()
66 static void omap3xxx_cm_clkdm_force_sleep(s16 module, u32 mask) in omap3xxx_cm_clkdm_force_sleep()
71 static void omap3xxx_cm_clkdm_force_wakeup(s16 module, u32 mask) in omap3xxx_cm_clkdm_force_wakeup()
91 static int omap3xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id, in omap3xxx_cm_wait_module_ready()
122 s16 *prcm_inst, in omap3xxx_cm_split_idlest_reg()
Dclockdomain.h93 s16 wkdep_usecount;
94 s16 sleepdep_usecount;
Domap_hwmod.h180 s16 irq;
194 s16 dma_req;
432 s16 module_offs;
Dcm2xxx.h57 int omap2xxx_cm_wait_module_ready(u8 part, s16 prcm_mod, u16 idlest_id,
Dprm2xxx.c126 static int omap2xxx_prm_clear_mod_irqs(s16 module, u8 regs, u32 wkst_mask) in omap2xxx_prm_clear_mod_irqs()
/linux-4.4.14/drivers/video/fbdev/
Dsticore.h82 s16 power; /* power calculation (in Watts) */
90 s16 onscreen_x; /* screen width in pixels */
91 s16 onscreen_y; /* screen height in pixels */
92 s16 offscreen_x; /* offset width in pixels */
93 s16 offscreen_y; /* offset height in pixels */
94 s16 total_x; /* frame buffer width in pixels */
95 s16 total_y; /* frame buffer height in pixels */
169 s16 onscreen_x; /* screen width in pixels */
170 s16 onscreen_y; /* screen height in pixels */
171 s16 offscreen_x; /* offscreen width in pixels */
[all …]
/linux-4.4.14/drivers/net/wireless/b43/
Dphy_g.h158 s16 max_lb_gain; /* Maximum Loopback gain in hdB */
159 s16 trsw_rx_gain; /* TRSW RX gain in hdB */
160 s16 lna_lod_gain; /* LNA lod */
161 s16 lna_gain; /* LNA */
162 s16 pga_gain; /* PGA */
177 s16 nrssi[2];
203 s16 pab0, s16 pab1, s16 pab2);
Dphy_g.c309 s16 first, s16 second, s16 third) in b43_set_all_gains()
373 static void b43_nrssi_hw_write(struct b43_wldev *dev, u16 offset, s16 val) in b43_nrssi_hw_write()
380 static s16 b43_nrssi_hw_read(struct b43_wldev *dev, u16 offset) in b43_nrssi_hw_read()
387 return (s16) val; in b43_nrssi_hw_read()
394 s16 tmp; in b43_nrssi_hw_update()
408 s16 i, delta; in b43_nrssi_mem_update()
425 s16 v47F; in b43_calc_nrssi_offset()
472 v47F = (s16) ((b43_phy_read(dev, 0x047F) >> 8) & 0x003F); in b43_calc_nrssi_offset()
480 (s16) ((b43_phy_read(dev, 0x047F) >> 8) & 0x003F); in b43_calc_nrssi_offset()
515 v47F = (s16) ((b43_phy_read(dev, 0x047F) >> 8) & 0x003F); in b43_calc_nrssi_offset()
[all …]
Dtables_nphy.h194 const s16 *b43_ntab_get_rf_pwr_offset_table(struct b43_wldev *dev);
213 extern const s16 tbl_tx_filter_coef_rev4[7][15];
Dphy_a.c323 s16 pab0, pab1, pab2; in b43_aphy_init_tssi2dbm_table()
325 pab0 = (s16) (dev->dev->bus_sprom->pa1b0); in b43_aphy_init_tssi2dbm_table()
326 pab1 = (s16) (dev->dev->bus_sprom->pa1b1); in b43_aphy_init_tssi2dbm_table()
327 pab2 = (s16) (dev->dev->bus_sprom->pa1b2); in b43_aphy_init_tssi2dbm_table()
Dtables_nphy.c2884 static const s16 b43_ntab_rf_pwr_offset_2057_rev9_2g[] = {
2895 static const s16 b43_ntab_rf_pwr_offset_2057_rev9_5g[] = {
2905 static const s16 b43_ntab_rf_pwr_offset_2057_rev14_2g[] = {
3077 const s16 tbl_tx_filter_coef_rev4[7][15] = {
3745 const s16 *b43_ntab_get_rf_pwr_offset_table(struct b43_wldev *dev) in b43_ntab_get_rf_pwr_offset_table()
Dphy_n.h891 s16 a0;
892 s16 b0;
893 s16 a1;
894 s16 b1;
/linux-4.4.14/drivers/media/dvb-frontends/drx39xyj/
Ddrxj.h292 s16 peak_filter; /* -8 .. 15 */
333 s16 coef0; /* -256 .. 255 */
334 s16 coef1; /* -256 .. 255 */
335 s16 coef2; /* -256 .. 255 */
336 s16 coef3; /* -256 .. 255 */};
383 s16 video_agc_gain; /* -75 .. 1972 in 0.1 dB steps */
384 s16 audio_agc_gain; /* -4 .. 1020 in 0.1 dB steps */
464 s16 atv_top_equ0[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU0__A */
465 s16 atv_top_equ1[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU1__A */
466 s16 atv_top_equ2[DRXJ_COEF_IDX_MAX]; /**< shadow of ATV_TOP_EQU2__A */
[all …]
Ddrx_driver.h457 #define DRX_S9TOS16(x) ((((u16)x)&0x100) ? ((s16)((u16)(x)|0xFF00)) : (x))
1051 s16 im;
1053 s16 re;
1479 s16 volume; /**< volume, range -114 to 12 dB */
1486 s16 strength_left; /**< quasi-peak, left speaker */
1487 s16 strength_right; /**< quasi-peak, right speaker */
1668 s16 nicam_gain;
1675 s16 volume; /* dB */
1847 s16 osc_clock_deviation;
/linux-4.4.14/drivers/media/dvb-frontends/
Dstb0899_priv.h176 s16 derot_freq; /* Current derotator frequency (Hz) */
177 s16 derot_percent;
179 s16 direction; /* Current derotator search direction */
180 s16 derot_step; /* Derotator step (binary value) */
181 s16 t_derot; /* Derotator time constant (ms) */
182 s16 t_data; /* Data recovery time constant (ms) */
183 s16 sub_dir; /* Direction of the next sub range */
185 s16 t_agc1; /* Agc1 time constant (ms) */
186 s16 t_agc2; /* Agc2 time constant (ms) */
197 s16 step_size; /* Carrier frequency search step size */
Ddrxd.h52 s16(*osc_deviation) (void *priv, s16 dev, int flag);
Ddib0090.c149 s16 wbd_target; /* in dB */
151 s16 rf_gain_limit; /* take-over-point: where to split between bb and rf gain */
152 s16 current_gain; /* keeps the currently programmed gain */
167 s16 adc_diff;
168 s16 min_adc_diff;
190 s16 temperature;
867 s16 range;
868 s16 slope;
870 static u16 slopes_to_scale(const struct slope *slopes, u8 num, s16 val) in slopes_to_scale()
892 static s16 dib0090_wbd_to_db(struct dib0090_state *state, u16 wbd) in dib0090_wbd_to_db()
[all …]
Ddib8000.c84 s16 ber_monitored_layer;
274 static const s16 coeff_2k_sb_1seg_dqpsk[8] = {
279 static const s16 coeff_2k_sb_1seg[8] = {
283 static const s16 coeff_2k_sb_3seg_0dqpsk_1dqpsk[8] = {
288 static const s16 coeff_2k_sb_3seg_0dqpsk[8] = {
293 static const s16 coeff_2k_sb_3seg_1dqpsk[8] = {
298 static const s16 coeff_2k_sb_3seg[8] = {
303 static const s16 coeff_4k_sb_1seg_dqpsk[8] = {
308 static const s16 coeff_4k_sb_1seg[8] = {
313 static const s16 coeff_4k_sb_3seg_0dqpsk_1dqpsk[8] = {
[all …]
Dcx24113.c94 s16 tuner_gain_thres;
202 s16 power_estimation) in cx24113_set_gain_settings()
506 s16 s, i; in cx24113_agc_callback()
Ddib3000mc.c97 static int dib3000mc_set_timing(struct dib3000mc_state *state, s16 nfft, u32 bw, u8 update_offset) in dib3000mc_set_timing()
111 s16 tim_offs = dib3000mc_read_word(state, 416); in dib3000mc_set_timing()
274 static void dib3000mc_set_impulse_noise(struct dib3000mc_state *state, u8 mode, s16 nfft) in dib3000mc_set_impulse_noise()
423 static void dib3000mc_set_adp_cfg(struct dib3000mc_state *state, s16 qam) in dib3000mc_set_adp_cfg()
Dm88rs2000.c131 static int m88rs2000_set_carrieroffset(struct dvb_frontend *fe, s16 offset) in m88rs2000_set_carrieroffset()
615 s16 offset = 0; in m88rs2000_set_frontend()
640 offset = (s16)((s32)tuner_freq - c->frequency); in m88rs2000_set_frontend()
Ddrxk_hard.h296 s16 m_atv_top_vid_peak;
/linux-4.4.14/drivers/iio/magnetometer/
Dbmc150_magn.c364 static s32 bmc150_magn_compensate_x(struct bmc150_magn_trim_regs *tregs, s16 x, in bmc150_magn_compensate_x()
367 s16 val; in bmc150_magn_compensate_x()
376 val = ((s16)(((u16)((((s32)xyz1) << 14) / rhall)) - ((u16)0x4000))); in bmc150_magn_compensate_x()
377 val = ((s16)((((s32)x) * ((((((((s32)tregs->xy2) * ((((s32)val) * in bmc150_magn_compensate_x()
379 ((s32)(((s16)tregs->xy1) << 7)))) >> 9) + ((s32)0x100000)) * in bmc150_magn_compensate_x()
380 ((s32)(((s16)tregs->x2) + ((s16)0xA0)))) >> 12)) >> 13)) + in bmc150_magn_compensate_x()
381 (((s16)tregs->x1) << 3); in bmc150_magn_compensate_x()
386 static s32 bmc150_magn_compensate_y(struct bmc150_magn_trim_regs *tregs, s16 y, in bmc150_magn_compensate_y()
389 s16 val; in bmc150_magn_compensate_y()
398 val = ((s16)(((u16)((((s32)xyz1) << 14) / rhall)) - ((u16)0x4000))); in bmc150_magn_compensate_y()
[all …]
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dtherm.h10 s16 slope_mult;
11 s16 slope_div;
12 s16 offset_num;
13 s16 offset_den;
Dvolt.h17 s16 step;
/linux-4.4.14/drivers/media/dvb-core/
Ddvb_filter.h165 s16 vbv_delay;
203 s16 last_frame_centre_horizontal_offset;
204 s16 last_frame_centre_vertical_offset;
214 s16 frame_centre_horizontal_offset[OFF_SIZE];
216 s16 frame_centre_vertical_offset[OFF_SIZE];
218 s16 temporal_reference[2];
/linux-4.4.14/drivers/dma/bestcomm/
Dfec.c45 s16 incr_bytes;
47 s16 incr_dst;
49 s16 incr_dst_ma;
66 s16 incr_bytes;
68 s16 incr_src;
70 s16 incr_src_ma;
135 inc->incr_bytes = -(s16)sizeof(u32); /* These should be in the */ in bcom_fec_rx_reset()
236 inc->incr_bytes = -(s16)sizeof(u32); /* These should be in the */ in bcom_fec_tx_reset()
Data.c45 s16 incr_bytes;
47 s16 incr_dst;
49 s16 incr_src;
109 inc->incr_bytes = -(s16)sizeof(u32); in bcom_ata_rx_prepare()
123 inc->incr_bytes = -(s16)sizeof(u32); in bcom_ata_tx_prepare()
Dgen_bd.c50 s16 incr_bytes;
52 s16 incr_dst;
68 s16 incr_bytes;
70 s16 incr_src;
72 s16 incr_src_ma;
142 inc->incr_bytes = -(s16)sizeof(u32); in bcom_gen_bd_rx_reset()
225 inc->incr_bytes = -(s16)sizeof(u32); in bcom_gen_bd_tx_reset()
/linux-4.4.14/drivers/iio/pressure/
Dbmp280.c171 ((s32)(s16)le16_to_cpu(buf[T2]))) >> 11; in bmp280_compensate_temp()
174 ((s32)(s16)le16_to_cpu(buf[T3]))) >> 14; in bmp280_compensate_temp()
203 var2 = var1 * var1 * (s64)(s16)le16_to_cpu(buf[P6]); in bmp280_compensate_press()
204 var2 += (var1 * (s64)(s16)le16_to_cpu(buf[P5])) << 17; in bmp280_compensate_press()
205 var2 += ((s64)(s16)le16_to_cpu(buf[P4])) << 35; in bmp280_compensate_press()
206 var1 = ((var1 * var1 * (s64)(s16)le16_to_cpu(buf[P3])) >> 8) + in bmp280_compensate_press()
207 ((var1 * (s64)(s16)le16_to_cpu(buf[P2])) << 12); in bmp280_compensate_press()
215 var1 = (((s64)(s16)le16_to_cpu(buf[P9])) * (p >> 13) * (p >> 13)) >> 25; in bmp280_compensate_press()
216 var2 = (((s64)(s16)le16_to_cpu(buf[P8])) * p) >> 19; in bmp280_compensate_press()
217 p = ((p + var1 + var2) >> 8) + (((s64)(s16)le16_to_cpu(buf[P7])) << 4); in bmp280_compensate_press()
Dmpl115.c32 s16 a0;
33 s16 b1, b2;
34 s16 c12;
Dt5403.c71 s16 t_r; in t5403_comp_pressure()
112 s16 t_r; in t5403_comp_temp()
/linux-4.4.14/fs/ntfs/
Dendian.h33 static inline s16 sle16_to_cpu(sle16 x) in sle16_to_cpu()
48 static inline s16 sle16_to_cpup(sle16 *x) in sle16_to_cpup()
63 static inline sle16 cpu_to_sle16(s16 x) in cpu_to_sle16()
78 static inline sle16 cpu_to_sle16p(s16 *x) in cpu_to_sle16p()
/linux-4.4.14/include/linux/platform_data/
Dedma.h58 const s16 (*rsv_chans)[2];
59 const s16 (*rsv_slots)[2];
78 const s16 (*xbar_chans)[2];
Dleds-omap.h14 s16 gpio;
18 s16 nr_leds;
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-dsp.c97 static u32 int_goertzel(s16 x[], u32 N, u32 freq) in int_goertzel()
126 static u32 freq_magnitude(s16 x[], u32 N, u32 freq) in freq_magnitude()
132 static u32 noise_magnitude(s16 x[], u32 N, u32 freq_start, u32 freq_end) in noise_magnitude()
155 static s32 detect_a2_a2m_eiaj(struct cx88_core *core, s16 x[], u32 N) in detect_a2_a2m_eiaj()
219 static s32 detect_btsc(struct cx88_core *core, s16 x[], u32 N) in detect_btsc()
231 static s16 *read_rds_samples(struct cx88_core *core, u32 *N) in read_rds_samples()
234 s16 *samples; in read_rds_samples()
249 samples = kmalloc(sizeof(s16)*sample_count, GFP_KERNEL); in read_rds_samples()
273 s16 *samples; in cx88_dsp_detect_stereo_sap()
/linux-4.4.14/drivers/pinctrl/
Dpinctrl-tegra.h134 s16 mux_reg;
135 s16 pupd_reg;
136 s16 tri_reg;
137 s16 drv_reg;
Dpinctrl-tegra.c306 s8 *bank, s16 *reg, s8 *bit, s8 *width) in tegra_pinconf_reg()
465 s16 reg; in tegra_pinconf_group_get()
494 s16 reg; in tegra_pinconf_group_set()
562 s16 reg; in tegra_pinconf_group_dbg_show()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Dphy.c1554 static void ath5k_hw_update_nfcal_hist(struct ath5k_hw *ah, s16 noise_floor) in ath5k_hw_update_nfcal_hist()
1565 static s16
1568 s16 sort[ATH5K_NF_CAL_HIST_MAX]; in ath5k_hw_get_median_noise_floor()
1569 s16 tmp; in ath5k_hw_get_median_noise_floor()
1602 s16 nf, threshold; in ath5k_hw_update_noise_floor()
2421 static s16
2422 ath5k_get_interpolated_value(s16 target, s16 x_left, s16 x_right, in ath5k_get_interpolated_value()
2423 s16 y_left, s16 y_right) in ath5k_get_interpolated_value()
2425 s16 ratio, result; in ath5k_get_interpolated_value()
2459 static s16
[all …]
Dath5k.h1171 s16 index; /* current index into nfval */
1172 s16 nfval[ATH5K_NF_CAL_HIST_MAX]; /* last few noise floors */
1421 s16 txp_min_pwr;
1422 s16 txp_max_pwr;
1423 s16 txp_cur_pwr;
1425 s16 txp_offset;
1426 s16 txp_ofdm;
1427 s16 txp_cck_ofdm_gainf_delta;
1429 s16 txp_cck_ofdm_pwr_delta;
Deeprom.h321 s16 *pd_pwr;
328 s16 max_pwr;
329 s16 min_pwr;
483 s16 ee_noise_floor_thr[AR5K_EEPROM_N_MODES];
/linux-4.4.14/arch/x86/include/asm/
Dnuma.h30 extern s16 __apicid_to_node[MAX_LOCAL_APIC];
36 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node()
44 static inline void set_apicid_to_node(int apicid, s16 node) in set_apicid_to_node()
/linux-4.4.14/include/sound/
Dwavefront.h69 typedef short s16; typedef
75 typedef s16 INT16;
269 s16 frequency_bias; /* ** THIS IS IN MOTOROLA FORMAT!! ** */
441 s16 FrequencyBias;
452 s16 NumberOfSamples; /* log2 of the number of samples */
453 s16 SampleNumber[NUM_MIDIKEYS];
457 s16 OriginalSample;
464 s16 FrequencyBias;
534 s16 key; /* Use WAVEFRONT_PATCH here */
/linux-4.4.14/arch/sparc/kernel/
Dvisemul.c460 s16 s1, s2; in pdist()
491 s16 src = (rs2 >> (byte * 16UL)) & 0xffffUL; in pformat()
603 s16 src2 = (rs2 >> (byte * 16)) & 0xffff; in pmul()
620 s16 src2; in pmul()
653 s16 src2; in pmul()
683 s16 src2; in pmul()
717 s16 a = (rs1 >> (i * 16)) & 0xffff; in pcmp()
718 s16 b = (rs2 >> (i * 16)) & 0xffff; in pcmp()
737 s16 a = (rs1 >> (i * 16)) & 0xffff; in pcmp()
738 s16 b = (rs2 >> (i * 16)) & 0xffff; in pcmp()
[all …]
/linux-4.4.14/drivers/staging/iio/accel/
Dadis16240_core.c37 s16 val = 0; in adis16240_spi_read_signed()
49 val = (s16)(val << shift) >> shift; in adis16240_spi_read_signed()
89 s16 val16; in adis16240_read_raw()
133 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16240_read_raw()
147 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16240_read_raw()
163 s16 val16; in adis16240_write_raw()
Dadis16204_core.c45 s16 val16; in adis16204_read_raw()
104 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16204_read_raw()
120 s16 val16; in adis16204_write_raw()
Dadis16209_core.c45 s16 val16; in adis16209_write_raw()
74 s16 val16; in adis16209_read_raw()
125 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16209_read_raw()
Dadis16201_core.c41 s16 val16; in adis16201_read_raw()
96 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16201_read_raw()
112 s16 val16; in adis16201_write_raw()
Dadis16203_core.c53 s16 val16; in adis16203_read_raw()
94 val16 = (s16)(val16 << (16 - bits)) >> (16 - bits); in adis16203_read_raw()
Dlis3l02dq_core.c106 s16 value) in lis3l02dq_spi_write_reg_s16()
140 s16 tempval; in lis3l02dq_read_reg_s16()
166 tempval = (s16)(st->rx[1]) | ((s16)(st->rx[3]) << 8); in lis3l02dq_read_reg_s16()
Dlis3l02dq_ring.c117 s16 *data = (s16 *)buf; in lis3l02dq_get_buffer_element()
Dadis16220_core.c271 s16 sval; in adis16220_read_raw()
319 sval = (s16)(sval << (16 - bits)) >> (16 - bits); in adis16220_read_raw()
/linux-4.4.14/drivers/net/wireless/libertas/
Dcmd.h102 int lbs_get_tx_power(struct lbs_private *priv, s16 *curlevel, s16 *minlevel,
103 s16 *maxlevel);
123 int lbs_set_tx_power(struct lbs_private *priv, s16 dbm);
Ddev.h175 s16 txpower_cur;
176 s16 txpower_min;
177 s16 txpower_max;
/linux-4.4.14/sound/firewire/oxfw/
Doxfw.h68 s16 volume[6];
69 s16 volume_min;
70 s16 volume_max;
Doxfw-control.c73 static int oxfw_volume_command(struct snd_oxfw *oxfw, s16 *value, in oxfw_volume_command()
197 s16 volume; in oxfw_volume_put()
/linux-4.4.14/drivers/net/wireless/ath/ath9k/
Dcalib.c60 static s16 ath9k_hw_get_default_nf(struct ath_hw *ah, in ath9k_hw_get_default_nf()
66 s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan, in ath9k_hw_getchan_noise()
67 s16 nf) in ath9k_hw_getchan_noise()
243 s16 default_nf = ath9k_hw_get_default_nf(ah, chan); in ath9k_hw_loadnf()
251 s16 nfval; in ath9k_hw_loadnf()
327 static void ath9k_hw_nf_sanitize(struct ath_hw *ah, s16 *nf) in ath9k_hw_nf_sanitize()
403 s16 default_nf; in ath9k_init_nfcal_hist_buffer()
Dcalib.h119 s16 ath9k_hw_getchan_noise(struct ath_hw *ah, struct ath9k_channel *chan,
120 s16 nf);
Dhw.h451 s16 noisefloor;
753 s16 max;
754 s16 min;
755 s16 nominal;
/linux-4.4.14/arch/arm/mach-davinci/
Dboard-omapl138-hawk.c73 static const s16 da850_dma0_rsv_chans[][2] = {
81 static const s16 da850_dma0_rsv_slots[][2] = {
89 static const s16 da850_dma1_rsv_chans[][2] = {
96 static const s16 da850_dma1_rsv_slots[][2] = {
Dboard-da830-evm.c503 static const s16 da830_dma_rsv_chans[][2] = {
512 static const s16 da830_dma_rsv_slots[][2] = {
Dboard-da850-evm.c1102 static const s16 da850_dma0_rsv_chans[][2] = {
1110 static const s16 da850_dma0_rsv_slots[][2] = {
1118 static const s16 da850_dma1_rsv_chans[][2] = {
1125 static const s16 da850_dma1_rsv_slots[][2] = {
Dboard-dm646x-evm.c730 static const s16 dm646x_dma_rsv_chans[][2] = {
740 static const s16 dm646x_dma_rsv_slots[][2] = {
/linux-4.4.14/drivers/pinctrl/freescale/
Dpinctrl-imx.h70 s16 mux_reg;
71 s16 conf_reg;
/linux-4.4.14/drivers/power/
Dds2782_battery.c88 s16 *val) in ds278x_read_reg16()
104 s16 raw; in ds278x_get_temp()
125 s16 raw; in ds2782_get_current()
151 s16 raw; in ds2782_get_voltage()
180 s16 raw; in ds2786_get_current()
191 s16 raw; in ds2786_get_voltage()
Dolpc_battery.c391 val->intval = (s16)be16_to_cpu(ec_word) * 9760L / 32; in olpc_bat_get_property()
399 val->intval = (s16)be16_to_cpu(ec_word) * 15625L / 120; in olpc_bat_get_property()
430 val->intval = (s16)be16_to_cpu(ec_word) * 100 / 256; in olpc_bat_get_property()
444 val->intval = (s16)be16_to_cpu(ec_word) * 6250 / 15; in olpc_bat_get_property()
Dds2780_battery.c76 static int ds2780_read16(struct ds2780_device_info *dev_info, s16 *val, in ds2780_read16()
168 s16 voltage_raw; in ds2780_get_voltage()
196 s16 temperature_raw; in ds2780_get_temperature()
227 s16 current_raw; in ds2780_get_current()
272 s16 current_raw; in ds2780_get_accumulated_current()
Dds2781_battery.c80 static int ds2781_read16(struct ds2781_device_info *dev_info, s16 *val, in ds2781_read16()
228 s16 current_raw; in ds2781_get_current()
273 s16 current_raw; in ds2781_get_accumulated_current()
/linux-4.4.14/sound/soc/omap/
Dmcbsp.h285 s16 taps[128]; /* Sidetone filter coefficients */
287 s16 ch0gain;
288 s16 ch1gain;
345 int omap_st_set_chgain(struct omap_mcbsp *mcbsp, int channel, s16 chgain);
346 int omap_st_get_chgain(struct omap_mcbsp *mcbsp, int channel, s16 *chgain);
/linux-4.4.14/drivers/ide/
Dqd65xx.h56 s16 active; /* active time */
57 s16 recovery; /* recovery time */
/linux-4.4.14/drivers/net/wireless/p54/
Dp54.h121 s16 mul;
122 s16 add;
123 s16 longbow_unkn;
124 s16 longbow_unk2;
Deeprom.c567 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); in p54_parse_rssical()
568 entry[i].add = (s16) le16_to_cpu(cal[i].add); in p54_parse_rssical()
585 entry[i].mul = (s16) le16_to_cpu(cal[i].mul); in p54_parse_rssical()
586 entry[i].add = (s16) le16_to_cpu(cal[i].add); in p54_parse_rssical()
846 *(dst++) = (s16) le16_to_cpu(*(src++)); in p54_parse_eeprom()
/linux-4.4.14/include/linux/
Dlis3lv02d.h122 s16 st_min_limits[3]; /* min pass limit x, y, z */
123 s16 st_max_limits[3]; /* max pass limit x, y, z */
Dkernel.h19 #define SHRT_MAX ((s16)(USHRT_MAX>>1))
20 #define SHRT_MIN ((s16)(-SHRT_MAX - 1))
36 #define S16_MAX ((s16)(U16_MAX>>1))
37 #define S16_MIN ((s16)(-S16_MAX - 1))
356 int __must_check kstrtos16(const char *s, unsigned int base, s16 *res);
367 int __must_check kstrtos16_from_user(const char __user *s, size_t count, unsigned int base, s16 *re…
Domapfb.h32 s16 nreset_gpio;
Dfsl_devices.h128 s16 bus_num;
Dmoduleparam.h324 s16 level_min,
325 s16 level_max,
Duwb.h767 s16 sigma;
782 s16 sigma; in stats_add_sample()
/linux-4.4.14/arch/s390/kernel/
Duprobes.c231 s16 s16[4]; member
284 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); in handle_insn_ril()
287 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
322 rc = emu_cmp_ril(regs, (s16 __user *)uptr, &rx->s64); in handle_insn_ril()
325 rc = emu_cmp_ril(regs, (s16 __user *)uptr, &rx->s32[1]); in handle_insn_ril()
/linux-4.4.14/drivers/staging/comedi/drivers/
Djr3_pci.h15 static inline s16 get_s16(const s32 __iomem *p) in get_s16()
17 return (s16)readl(p); in get_s16()
20 static inline void set_s16(s32 __iomem *p, s16 val) in set_s16()
Djr3_pci.c88 s16 link_amount;
174 s16 fx;
175 s16 fy;
176 s16 fz;
177 s16 mx;
178 s16 my;
179 s16 mz;
/linux-4.4.14/drivers/net/wireless/b43legacy/
Db43legacy.h455 s16 max_lb_gain; /* Maximum Loopback gain in hdB */
456 s16 trsw_rx_gain; /* TRSW RX gain in hdB */
457 s16 lna_lod_gain; /* LNA lod */
458 s16 lna_gain; /* LNA */
459 s16 pga_gain; /* PGA */
497 s16 nrssi[2];
Dradio.c149 s16 first, s16 second, s16 third) in b43legacy_set_all_gains()
333 void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val) in b43legacy_nrssi_hw_write()
341 s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset) in b43legacy_nrssi_hw_read()
348 return (s16)val; in b43legacy_nrssi_hw_read()
355 s16 tmp; in b43legacy_nrssi_hw_update()
369 s16 i; in b43legacy_nrssi_mem_update()
370 s16 delta; in b43legacy_nrssi_mem_update()
387 s16 v47F; in b43legacy_calc_nrssi_offset()
445 v47F = (s16)((b43legacy_phy_read(dev, 0x047F) >> 8) & 0x003F); in b43legacy_calc_nrssi_offset()
452 v47F = (s16)((b43legacy_phy_read(dev, 0x047F) >> 8) in b43legacy_calc_nrssi_offset()
[all …]
Dradio.h90 s16 b43legacy_nrssi_hw_read(struct b43legacy_wldev *dev, u16 offset);
91 void b43legacy_nrssi_hw_write(struct b43legacy_wldev *dev, u16 offset, s16 val);
Dphy.c359 b43legacy_nrssi_hw_write(dev, 0xBA98, (s16)0x7654); in b43legacy_phy_setupg()
1787 s16 desired_pwr; in b43legacy_phy_xmitpower()
1788 s16 estimated_pwr; in b43legacy_phy_xmitpower()
1789 s16 pwr_adjust; in b43legacy_phy_xmitpower()
1790 s16 radio_att_delta; in b43legacy_phy_xmitpower()
1791 s16 baseband_att_delta; in b43legacy_phy_xmitpower()
1792 s16 radio_attenuation; in b43legacy_phy_xmitpower()
1793 s16 baseband_attenuation; in b43legacy_phy_xmitpower()
1967 s8 b43legacy_tssi2dbm_entry(s8 entry [], u8 index, s16 pab0, s16 pab1, s16 pab2) in b43legacy_tssi2dbm_entry()
1997 s16 pab0; in b43legacy_phy_init_tssi2dbm_table()
[all …]
/linux-4.4.14/lib/
Dtest-kstrtox.c549 DECLARE_TEST_OK(s16, struct test_s16); in test_kstrtos16_ok()
569 TEST_OK(kstrtos16, s16, "%hd", test_s16_ok); in test_kstrtos16_ok()
598 TEST_FAIL(kstrtos16, s16, "%hd", test_s16_fail); in test_kstrtos16_fail()
Dkstrtox.c279 int kstrtos16(const char *s, unsigned int base, s16 *res) in kstrtos16()
287 if (tmp != (long long)(s16)tmp) in kstrtos16()
345 kstrto_from_user(kstrtos16_from_user, kstrtos16, s16);
/linux-4.4.14/drivers/hwmon/pmbus/
Dlm25066.c385 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
390 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
397 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
406 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
414 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
Dzl6100.c66 static long zl6100_l2d(s16 l) in zl6100_l2d()
68 s16 exponent; in zl6100_l2d()
73 mantissa = ((s16)((l & 0x7ff) << 5)) >> 5; in zl6100_l2d()
93 s16 exponent = 0, mantissa; in zl6100_d2l()
Dadm1275.c89 s16 m;
90 s16 b;
91 s16 R;
Dltc2978.c196 s16 e = ((s16)data) >> 11; in lin11_to_val()
197 s32 m = (((s16)(data << 5)) >> 5); in lin11_to_val()
/linux-4.4.14/drivers/hwmon/
Dlm92.c72 static inline int TEMP_FROM_REG(s16 reg) in TEMP_FROM_REG()
77 static inline s16 TEMP_TO_REG(long val) in TEMP_TO_REG()
84 static inline u8 ALARMS_FROM_REG(s16 reg) in ALARMS_FROM_REG()
114 s16 temp[t_num_regs]; /* index with enum temp_index */
Dlm75.h48 return ((s16)reg / 128) * 500; in LM75_TEMP_FROM_REG()
Dad7414.c46 s16 temp_input; /* Register values */
51 static inline int ad7414_temp_from_reg(s16 reg) in ad7414_temp_from_reg()
Dapplesmc.c150 static s16 rest_x;
151 static s16 rest_y;
473 static int applesmc_read_s16(const char *key, s16 *value) in applesmc_read_s16()
482 *value = ((s16)buffer[0] << 8) | buffer[1]; in applesmc_read_s16()
697 s16 x, y; in applesmc_idev_poll()
722 s16 x, y, z; in applesmc_position_show()
794 s16 value; in applesmc_show_temperature()
Dadt7x10.c77 s16 temp[4]; /* Register values,
211 static s16 ADT7X10_TEMP_TO_REG(long temp) in ADT7X10_TEMP_TO_REG()
217 static int ADT7X10_REG_TO_TEMP(struct adt7x10_data *data, s16 reg) in ADT7X10_REG_TO_TEMP()
Dtmp421.c79 s16 temp[4];
82 static int temp_from_s16(s16 reg) in temp_from_s16()
Dlm77.c81 static inline s16 LM77_TEMP_TO_REG(int temp) in LM77_TEMP_TO_REG()
86 static inline int LM77_TEMP_FROM_REG(s16 reg) in LM77_TEMP_FROM_REG()
Dina2xx.c262 val = DIV_ROUND_CLOSEST((s16)regval, data->config->shunt_div); in ina2xx_get_value()
274 val = (s16)regval; in ina2xx_get_value()
Dlm70.c64 s16 raw = 0; in lm70_sense_temp()
Dad7314.c62 s16 data; in ad7314_show_temperature()
Dlm75.c88 s16 temp[3]; /* Register values,
101 static inline long lm75_reg_to_mc(s16 temp, u8 resolution) in lm75_reg_to_mc()
/linux-4.4.14/drivers/input/
Dff-memless.c241 static inline s16 fixp_new16(s16 a) in fixp_new16()
246 static inline s16 fixp_mult(s16 a, s16 b) in fixp_mult()
262 s16 level; in ml_combine_effects()
/linux-4.4.14/fs/jfs/
Djfs_types.h100 s16 maxnpxd;
101 s16 npxd;
Djfs_xtree.h61 s16 maxnxad;
62 s16 nxad;
Djfs_btree.h113 s16 index; /* 2: */
114 s16 lastindex; /* 2: unused */
Djfs_txnmgr.h108 s16 lock[24]; /* 48: overlay area */
/linux-4.4.14/drivers/staging/iio/resolver/
Dad2s1200.c51 s16 vel; in ad2s1200_read_raw()
71 vel = (((s16)(st->rx[0])) << 4) | ((st->rx[1] & 0xF0) >> 4); in ad2s1200_read_raw()
/linux-4.4.14/drivers/firmware/
Ddcdbas.c474 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 0; in dcdbas_host_control()
479 *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 20; in dcdbas_host_control()
/linux-4.4.14/arch/m68k/include/asm/
Dmcfqspi.h45 s16 bus_num;
/linux-4.4.14/drivers/media/usb/gspca/stv06xx/
Dstv06xx_st6422.c66 static int setexposure(struct sd *sd, s16 expo);
252 static int setexposure(struct sd *sd, s16 expo) in setexposure()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/device_include/
Dvm_basic_types.h9 typedef s16 int16;
Dsvga_types.h33 typedef s16 int16;
/linux-4.4.14/drivers/input/misc/
Dmpu3050.c105 s16 x;
106 s16 y;
107 s16 z;
/linux-4.4.14/include/linux/input/
Dcyttsp.h54 s16 irq_gpio;
Dmt.h118 s16 x, y;
/linux-4.4.14/arch/microblaze/kernel/
Dunwind.c64 return abs((s16)(instr & 0xFFFF)); in get_frame_size()
87 s16 frame_size; in find_frame_creation()
/linux-4.4.14/include/linux/clk/
Dti.h232 int (*cm_wait_module_ready)(u8 part, s16 prcm_mod, u16 idlest_reg,
234 int (*cm_split_idlest_reg)(void __iomem *idlest_reg, s16 *prcm_inst,
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dfwsignal.h24 void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dtherm.c84 s16 value = nvbios_rd16(bios, entry + 1); in nvbios_therm_sensor_parse()
166 s16 value = nvbios_rd16(bios, entry + 1); in nvbios_therm_fan_parse()
/linux-4.4.14/arch/powerpc/boot/
Dtypes.h11 typedef short s16; typedef
/linux-4.4.14/drivers/misc/lis3lv02d/
Dlis3lv02d.c128 static s16 lis3lv02d_read_8(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_8()
137 static s16 lis3lv02d_read_12(struct lis3lv02d *lis3, int reg) in lis3lv02d_read_12()
144 return (s16)((hi << 8) | lo); in lis3lv02d_read_12()
148 static s16 lis331dlh_read_data(struct lis3lv02d *lis3, int reg) in lis331dlh_read_data()
157 return (s16) v >> lis3->shift_adj; in lis331dlh_read_data()
194 position[i] = (s16)le16_to_cpu(data[i]); in lis3lv02d_get_xyz()
268 static int lis3lv02d_selftest(struct lis3lv02d *lis3, s16 results[3]) in lis3lv02d_selftest()
271 s16 x, y, z; in lis3lv02d_selftest()
781 s16 values[3]; in lis3lv02d_selftest_show()
Dlis3lv02d.h289 s16 (*read_data) (struct lis3lv02d *lis3, int reg);
/linux-4.4.14/include/asm-generic/
Dint-ll64.h18 typedef signed short s16; typedef
/linux-4.4.14/drivers/macintosh/
Dwindfarm_pm81.c168 s16 offset0;
170 s16 offset1;
183 s16 offset0;
185 s16 offset1;
/linux-4.4.14/tools/include/linux/
Dtypes.h35 typedef __s16 s16; typedef
/linux-4.4.14/sound/mips/
Dsgio2audio.c366 s16 *dst; in snd_sgio2audio_dma_pull_frag()
386 dst = (s16 *)(dst_base + dst_pos); in snd_sgio2audio_dma_pull_frag()
393 dst_pos = (dst_pos + 2 * sizeof(s16)) & dst_mask; in snd_sgio2audio_dma_pull_frag()
415 s16 *src; in snd_sgio2audio_dma_push_frag()
433 src = (s16 *)(src_base + src_pos); in snd_sgio2audio_dma_push_frag()
443 src_pos = (src_pos + 2 * sizeof(s16)) & src_mask; in snd_sgio2audio_dma_push_frag()
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e.h428 s16 vlan;
690 u8 *macaddr, s16 vlan,
692 void i40e_del_filter(struct i40e_vsi *vsi, u8 *macaddr, s16 vlan,
766 int i40e_vsi_add_vlan(struct i40e_vsi *vsi, s16 vid);
767 int i40e_vsi_kill_vlan(struct i40e_vsi *vsi, s16 vid);
/linux-4.4.14/drivers/net/ethernet/qualcomm/
Dqca_framing.h106 s16 offset;
/linux-4.4.14/drivers/char/
Dapplicom.h35 s16 stjb_status; /* offset 02 */
/linux-4.4.14/net/ipv4/
Dfib_lookup.h16 s16 fa_default;
/linux-4.4.14/drivers/misc/
Dbmp085.c70 s16 AC1, AC2, AC3;
72 s16 B1, B2;
73 s16 MB, MC, MD;
/linux-4.4.14/include/net/
Dnetlink.h900 static inline int nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) in nla_put_s16()
902 return nla_put(skb, attrtype, sizeof(s16), &value); in nla_put_s16()
1099 static inline s16 nla_get_s16(const struct nlattr *nla) in nla_get_s16()
1101 return *(s16 *) nla_data(nla); in nla_get_s16()
/linux-4.4.14/drivers/mmc/card/
Dqueue.h32 s16 idx_failure;
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmsmac/
Dpub.h130 s16 RSSI; /* receive signal strength (in dBm) */
131 s16 SNR; /* receive signal SNR in dB */
Drate.h238 s16 brcms_c_rate_legacy_phyctl(uint rate);
/linux-4.4.14/arch/blackfin/kernel/
Dbfin_dma.c408 static void __dma_memcpy(u32 daddr, s16 dmod, u32 saddr, s16 smod, size_t cnt, u32 conf) in __dma_memcpy()
485 s16 mod; in _dma_memcpy()
/linux-4.4.14/drivers/staging/iio/
Diio_simple_dummy_buffer.c29 static const s16 fakedata[] = {
/linux-4.4.14/include/net/bluetooth/
Drfcomm.h339 s16 dev_id;
347 s16 id;
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Dphy.c601 static s16 lin2dBd(u16 linear) in lin2dBd()
633 mt7601u_set_initial_tssi(struct mt7601u_dev *dev, s16 tssi_db, s16 tssi_hvga_db) in mt7601u_set_initial_tssi()
649 s16 tssi_init_db, tssi_init_hvga_db; in mt7601u_tssi_dc_gain_cal()
787 static s16
790 static const s16 decode_tb[] = { 0, 8847, -5734, -5734 }; in mt7601u_phy_rf_pa_mode_val()
884 s16 tssi_m_dc, tssi_db; in mt7601u_tssi_cal()
/linux-4.4.14/net/batman-adv/
Dtypes.h106 s16 if_num;
283 s16 tt_buff_len;
544 s16 last_changeset_len;
/linux-4.4.14/drivers/media/pci/ngene/
Dngene-cards.c536 static s16 osc_deviation(void *priv, s16 deviation, int flag) in osc_deviation()
551 (s16) data); in osc_deviation()
554 return (s16) data; in osc_deviation()
/linux-4.4.14/drivers/net/wireless/mwifiex/
Dmain.h544 s16 data_rssi_last;
545 s16 data_nf_last;
546 s16 data_rssi_avg;
547 s16 data_nf_avg;
548 s16 bcn_rssi_last;
549 s16 bcn_nf_last;
550 s16 bcn_rssi_avg;
551 s16 bcn_nf_avg;
Dfw.h118 #define CAL_SNR(RSSI, NF) ((s16)((s16)(RSSI)-(s16)(NF)))
119 #define CAL_RSSI(SNR, NF) ((s16)((s16)(SNR)+(s16)(NF)))
/linux-4.4.14/drivers/net/wireless/ti/wlcore/
Dtestmode.c115 s16 radio_status = (s16) le16_to_cpu(params->radio_status); in wl1271_tm_cmd_test()
/linux-4.4.14/drivers/media/i2c/
Dmt9v011.c60 s16 red_bal, blue_bal;
136 static u16 calc_mt9v011_gain(s16 lineargain) in calc_mt9v011_gain()
178 s16 bal; in set_balance()
/linux-4.4.14/kernel/
Dparams.c125 s16 min_level, in parse_one()
126 s16 max_level, in parse_one()
220 s16 min_level, in parse_args()
221 s16 max_level, in parse_args()
455 s16 level, in param_array()
/linux-4.4.14/drivers/misc/altera-stapl/
Daltera-comp.c124 offset = altera_read_packed(in, altera_bits_req((s16) in altera_shrink()
/linux-4.4.14/arch/arm/vfp/
Dvfp.h153 s16 exponent;
258 s16 exponent;
/linux-4.4.14/drivers/iio/gyro/
Dadxrs450.c166 static int adxrs450_spi_sensor_data(struct iio_dev *indio_dev, s16 *val) in adxrs450_spi_sensor_data()
311 s16 t; in adxrs450_read_raw()
Ditg3200_buffer.c39 .len = ITG3200_SCAN_ELEMENTS * sizeof(s16), in itg3200_read_all_channels()
/linux-4.4.14/drivers/gpu/drm/omapdrm/
Dtcm-sita.c278 s16 start_x, end_x, start_y, end_y, found_x = -1; in scan_r2l_t2b()
352 s16 start_x, end_x, start_y, end_y, found_x = -1; in scan_l2r_t2b()
428 s16 x, y; in scan_r2l_b2t_one_dim()
672 s16 x = 0, y = 0; in get_neighbor_stats()
/linux-4.4.14/arch/powerpc/include/asm/
Dpaca.h82 s16 hw_cpu_id; /* Physical processor number */
Dcompat.h31 typedef s16 compat_nlink_t;
/linux-4.4.14/sound/soc/intel/atom/
Dsst-atom-controls.h401 s16 cell_gain_left;
402 s16 cell_gain_right;
706 s16 l_gain;
707 s16 r_gain;
/linux-4.4.14/sound/drivers/opl4/
Dopl4_local.h136 s16 pitch_offset;
/linux-4.4.14/arch/mn10300/kernel/
Dkgdb.c205 x = pc + (s16)arg; in kgdb_arch_do_singlestep()
292 x = pc + (s16)arg; in kgdb_arch_do_singlestep()
/linux-4.4.14/drivers/media/usb/gspca/
Dsn9c20x.c296 static const s16 hsv_red_x[] = {
344 static const s16 hsv_red_y[] = {
392 static const s16 hsv_green_x[] = {
440 static const s16 hsv_green_y[] = {
488 static const s16 hsv_blue_x[] = {
536 static const s16 hsv_blue_y[] = {
2087 s16 new_exp; in do_autoexposure()
/linux-4.4.14/drivers/input/touchscreen/
Drohm_bu21023.c565 pos[0].x = ((s16)READ_POS_BUF(POS_X1_H) << 2) | in rohm_ts_soft_irq()
567 pos[0].y = ((s16)READ_POS_BUF(POS_Y1_H) << 2) | in rohm_ts_soft_irq()
569 pos[1].x = ((s16)READ_POS_BUF(POS_X2_H) << 2) | in rohm_ts_soft_irq()
571 pos[1].y = ((s16)READ_POS_BUF(POS_Y2_H) << 2) | in rohm_ts_soft_irq()
/linux-4.4.14/drivers/usb/host/
Dohci-hub.c611 #define tick_before(t1,t2) ((s16)(((s16)(t1))-((s16)(t2))) < 0)
/linux-4.4.14/drivers/net/wireless/ath/ath6kl/
Dcore.h502 s16 noise_floor_calib;
503 s16 cs_rssi;
504 s16 cs_ave_beacon_rssi;
/linux-4.4.14/drivers/video/fbdev/aty/
Dmach64_accel.c186 static inline void draw_rect(s16 x, s16 y, u16 width, u16 height, in draw_rect()
/linux-4.4.14/arch/powerpc/sysdev/
Dfsl_pci.c961 regs->gpr[ra] += (s16)d; in mcheck_handle_load()
970 regs->gpr[ra] += (s16)d; in mcheck_handle_load()
979 regs->gpr[ra] += (s16)d; in mcheck_handle_load()
988 regs->gpr[ra] += (s16)d; in mcheck_handle_load()
/linux-4.4.14/include/linux/netfilter/
Dnf_conntrack_sip.h118 unsigned int protoff, s16 off);
/linux-4.4.14/drivers/clk/ti/
Dclkt_dflt.c96 s16 prcm_mod; in _omap2_module_wait_ready()
/linux-4.4.14/drivers/media/platform/vivid/
Dvivid-tpg.h121 s16 hue;
286 s16 hue) in tpg_s_hue()
/linux-4.4.14/drivers/misc/cxl/
Dtrace.h84 TP_PROTO(struct cxl_context *ctx, u64 wed, s16 num_interrupts, u64 amr),
95 __field(s16, num_interrupts)
/linux-4.4.14/drivers/video/fbdev/omap2/dss/
Dmanager-sysfs.c397 s16 *arr; in manager_cpr_coef_store()
408 arr = (s16[]){ coefs.rr, coefs.rg, coefs.rb, in manager_cpr_coef_store()
/linux-4.4.14/include/video/
Domapdss.h380 s16 rr, rg, rb;
381 s16 gr, gg, gb;
382 s16 br, bg, bb;
/linux-4.4.14/drivers/net/ethernet/amd/
Dlance.c215 s16 buf_length; /* This length is 2s complement (negative)! */
216 s16 msg_length; /* This length is "normal". */
221 s16 length; /* Length is 2s complement (negative)! */
222 s16 misc;
/linux-4.4.14/drivers/dma/
Dedma.c1930 s16 (*xbar_chans)[2]; in edma_xbar_event_map()
1931 size_t nelm = sz / sizeof(s16); in edma_xbar_event_map()
1935 xbar_chans = devm_kcalloc(dev, nelm + 2, sizeof(s16), GFP_KERNEL); in edma_xbar_event_map()
1966 pdata->xbar_chans = (const s16 (*)[2]) xbar_chans; in edma_xbar_event_map()
2019 s16 (*rsv_slots)[2]; in edma_setup_info_from_dt()
2059 info->rsv->rsv_slots = (const s16 (*)[2])rsv_slots; in edma_setup_info_from_dt()
2123 const s16 (*rsv_slots)[2]; in edma_probe()
2124 const s16 (*xbar_chans)[2]; in edma_probe()
/linux-4.4.14/arch/sparc/include/asm/
Dcompat.h25 typedef s16 compat_nlink_t;
/linux-4.4.14/arch/nios2/kernel/
Dmisaligned.c71 s16 imm16; in handle_unaligned_c()
/linux-4.4.14/arch/x86/kvm/
Dlapic.h31 s16 isr_count;
/linux-4.4.14/drivers/spi/
Dspi-mpc52xx-psc.c367 u32 size, unsigned int irq, s16 bus_num) in mpc52xx_psc_spi_do_probe()
457 s16 id = -1; in mpc52xx_psc_spi_of_probe()
/linux-4.4.14/drivers/input/mouse/
Dsynaptics_usb.c110 x = (s16)(be16_to_cpup((__be16 *)&synusb->data[2]) << 3) >> 7; in synusb_report_stick()
111 y = (s16)(be16_to_cpup((__be16 *)&synusb->data[4]) << 3) >> 7; in synusb_report_stick()
/linux-4.4.14/arch/arm64/include/asm/
Dcompat.h58 typedef s16 compat_short_t;
/linux-4.4.14/drivers/net/ethernet/intel/fm10k/
Dfm10k_tlv.h143 fm10k_tlv_attr_get_value(attr, ptr, sizeof(s16))

123