/drivers/staging/comedi/drivers/ |
D | jr3_pci.h | 15 static inline s16 get_s16(const s32 __iomem *p) in get_s16() 20 static inline void set_s16(s32 __iomem *p, s16 val) in set_s16() 46 s32 raw_data; 47 s32 reserved[2]; 54 s32 fx; 55 s32 fy; 56 s32 fz; 57 s32 mx; 58 s32 my; 59 s32 mz; [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | phy.h | 32 s32 e1000e_check_downshift(struct e1000_hw *hw); 33 s32 e1000_check_polarity_m88(struct e1000_hw *hw); 34 s32 e1000_check_polarity_igp(struct e1000_hw *hw); 35 s32 e1000_check_polarity_ife(struct e1000_hw *hw); 36 s32 e1000e_check_reset_block_generic(struct e1000_hw *hw); 37 s32 e1000e_copper_link_setup_igp(struct e1000_hw *hw); 38 s32 e1000e_copper_link_setup_m88(struct e1000_hw *hw); 39 s32 e1000e_phy_force_speed_duplex_igp(struct e1000_hw *hw); 40 s32 e1000e_phy_force_speed_duplex_m88(struct e1000_hw *hw); 41 s32 e1000_phy_force_speed_duplex_ife(struct e1000_hw *hw); [all …]
|
D | mac.h | 32 s32 e1000e_blink_led_generic(struct e1000_hw *hw); 33 s32 e1000e_check_for_copper_link(struct e1000_hw *hw); 34 s32 e1000e_check_for_fiber_link(struct e1000_hw *hw); 35 s32 e1000e_check_for_serdes_link(struct e1000_hw *hw); 36 s32 e1000e_cleanup_led_generic(struct e1000_hw *hw); 37 s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw); 38 s32 e1000e_disable_pcie_master(struct e1000_hw *hw); 39 s32 e1000e_force_mac_fc(struct e1000_hw *hw); 40 s32 e1000e_get_auto_rd_done(struct e1000_hw *hw); 41 s32 e1000e_get_bus_info_pcie(struct e1000_hw *hw); [all …]
|
D | hw.h | 450 s32 (*id_led_init)(struct e1000_hw *); 451 s32 (*blink_led)(struct e1000_hw *); 453 s32 (*check_for_link)(struct e1000_hw *); 454 s32 (*cleanup_led)(struct e1000_hw *); 457 s32 (*get_bus_info)(struct e1000_hw *); 459 s32 (*get_link_up_info)(struct e1000_hw *, u16 *, u16 *); 460 s32 (*led_on)(struct e1000_hw *); 461 s32 (*led_off)(struct e1000_hw *); 463 s32 (*reset_hw)(struct e1000_hw *); 464 s32 (*init_hw)(struct e1000_hw *); [all …]
|
D | phy.c | 31 static s32 e1000_wait_autoneg(struct e1000_hw *hw); 32 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset, 35 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset, 68 s32 e1000e_check_reset_block_generic(struct e1000_hw *hw) in e1000e_check_reset_block_generic() 84 s32 e1000e_get_phy_id(struct e1000_hw *hw) in e1000e_get_phy_id() 87 s32 ret_val = 0; in e1000e_get_phy_id() 123 s32 e1000e_phy_reset_dsp(struct e1000_hw *hw) in e1000e_phy_reset_dsp() 125 s32 ret_val; in e1000e_phy_reset_dsp() 143 s32 e1000e_read_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 *data) in e1000e_read_phy_reg_mdic() 206 s32 e1000e_write_phy_reg_mdic(struct e1000_hw *hw, u32 offset, u16 data) in e1000e_write_phy_reg_mdic() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.h | 35 s32 ixgbe_init_ops_generic(struct ixgbe_hw *hw); 36 s32 ixgbe_init_hw_generic(struct ixgbe_hw *hw); 37 s32 ixgbe_start_hw_generic(struct ixgbe_hw *hw); 38 s32 ixgbe_start_hw_gen2(struct ixgbe_hw *hw); 39 s32 ixgbe_clear_hw_cntrs_generic(struct ixgbe_hw *hw); 40 s32 ixgbe_read_pba_string_generic(struct ixgbe_hw *hw, u8 *pba_num, 42 s32 ixgbe_get_mac_addr_generic(struct ixgbe_hw *hw, u8 *mac_addr); 45 s32 ixgbe_get_bus_info_generic(struct ixgbe_hw *hw); 47 s32 ixgbe_stop_adapter_generic(struct ixgbe_hw *hw); 49 s32 ixgbe_led_on_generic(struct ixgbe_hw *hw, u32 index); [all …]
|
D | ixgbe_phy.h | 98 s32 ixgbe_init_phy_ops_generic(struct ixgbe_hw *hw); 99 s32 ixgbe_identify_phy_generic(struct ixgbe_hw *hw); 100 s32 ixgbe_reset_phy_generic(struct ixgbe_hw *hw); 101 s32 ixgbe_read_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 103 s32 ixgbe_write_phy_reg_generic(struct ixgbe_hw *hw, u32 reg_addr, 105 s32 ixgbe_setup_phy_link_generic(struct ixgbe_hw *hw); 106 s32 ixgbe_setup_phy_link_speed_generic(struct ixgbe_hw *hw, 109 s32 ixgbe_get_copper_link_capabilities_generic(struct ixgbe_hw *hw, 114 s32 ixgbe_check_phy_link_tnx(struct ixgbe_hw *hw, 117 s32 ixgbe_setup_phy_link_tnx(struct ixgbe_hw *hw); [all …]
|
D | ixgbe_mbx.c | 43 s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_read_mbx() 46 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_read_mbx() 67 s32 ixgbe_write_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) in ixgbe_write_mbx() 70 s32 ret_val = 0; in ixgbe_write_mbx() 88 s32 ixgbe_check_for_msg(struct ixgbe_hw *hw, u16 mbx_id) in ixgbe_check_for_msg() 91 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_check_for_msg() 106 s32 ixgbe_check_for_ack(struct ixgbe_hw *hw, u16 mbx_id) in ixgbe_check_for_ack() 109 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_check_for_ack() 124 s32 ixgbe_check_for_rst(struct ixgbe_hw *hw, u16 mbx_id) in ixgbe_check_for_rst() 127 s32 ret_val = IXGBE_ERR_MBX; in ixgbe_check_for_rst() [all …]
|
/drivers/net/ethernet/intel/igb/ |
D | e1000_phy.h | 44 s32 igb_check_downshift(struct e1000_hw *hw); 45 s32 igb_check_reset_block(struct e1000_hw *hw); 46 s32 igb_copper_link_setup_igp(struct e1000_hw *hw); 47 s32 igb_copper_link_setup_m88(struct e1000_hw *hw); 48 s32 igb_copper_link_setup_m88_gen2(struct e1000_hw *hw); 49 s32 igb_phy_force_speed_duplex_igp(struct e1000_hw *hw); 50 s32 igb_phy_force_speed_duplex_m88(struct e1000_hw *hw); 51 s32 igb_get_cable_length_m88(struct e1000_hw *hw); 52 s32 igb_get_cable_length_m88_gen2(struct e1000_hw *hw); 53 s32 igb_get_cable_length_igp_2(struct e1000_hw *hw); [all …]
|
D | e1000_mac.h | 41 s32 igb_blink_led(struct e1000_hw *hw); 42 s32 igb_check_for_copper_link(struct e1000_hw *hw); 43 s32 igb_cleanup_led(struct e1000_hw *hw); 44 s32 igb_config_fc_after_link_up(struct e1000_hw *hw); 45 s32 igb_disable_pcie_master(struct e1000_hw *hw); 46 s32 igb_force_mac_fc(struct e1000_hw *hw); 47 s32 igb_get_auto_rd_done(struct e1000_hw *hw); 48 s32 igb_get_bus_info_pcie(struct e1000_hw *hw); 49 s32 igb_get_hw_semaphore(struct e1000_hw *hw); 50 s32 igb_get_speed_and_duplex_copper(struct e1000_hw *hw, u16 *speed, [all …]
|
D | e1000_hw.h | 321 s32 (*check_for_link)(struct e1000_hw *); 322 s32 (*reset_hw)(struct e1000_hw *); 323 s32 (*init_hw)(struct e1000_hw *); 325 s32 (*setup_physical_interface)(struct e1000_hw *); 327 s32 (*read_mac_addr)(struct e1000_hw *); 328 s32 (*get_speed_and_duplex)(struct e1000_hw *, u16 *, u16 *); 329 s32 (*acquire_swfw_sync)(struct e1000_hw *, u16); 332 s32 (*get_thermal_sensor_data)(struct e1000_hw *); 333 s32 (*init_thermal_sensor_thresh)(struct e1000_hw *); 339 s32 (*acquire)(struct e1000_hw *); [all …]
|
D | e1000_mbx.c | 39 s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_read_mbx() 42 s32 ret_val = -E1000_ERR_MBX; in igb_read_mbx() 63 s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) in igb_write_mbx() 66 s32 ret_val = 0; in igb_write_mbx() 84 s32 igb_check_for_msg(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_msg() 87 s32 ret_val = -E1000_ERR_MBX; in igb_check_for_msg() 102 s32 igb_check_for_ack(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_ack() 105 s32 ret_val = -E1000_ERR_MBX; in igb_check_for_ack() 120 s32 igb_check_for_rst(struct e1000_hw *hw, u16 mbx_id) in igb_check_for_rst() 123 s32 ret_val = -E1000_ERR_MBX; in igb_check_for_rst() [all …]
|
D | e1000_82575.c | 42 static s32 igb_get_invariants_82575(struct e1000_hw *); 43 static s32 igb_acquire_phy_82575(struct e1000_hw *); 45 static s32 igb_acquire_nvm_82575(struct e1000_hw *); 47 static s32 igb_check_for_link_82575(struct e1000_hw *); 48 static s32 igb_get_cfg_done_82575(struct e1000_hw *); 49 static s32 igb_init_hw_82575(struct e1000_hw *); 50 static s32 igb_phy_hw_reset_sgmii_82575(struct e1000_hw *); 51 static s32 igb_read_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16 *); 52 static s32 igb_read_phy_reg_82580(struct e1000_hw *, u32, u16 *); 53 static s32 igb_write_phy_reg_82580(struct e1000_hw *, u32, u16); [all …]
|
D | e1000_i210.h | 31 extern s32 igb_update_flash_i210(struct e1000_hw *hw); 32 extern s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw); 33 extern s32 igb_validate_nvm_checksum_i210(struct e1000_hw *hw); 34 extern s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, 36 extern s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, 38 extern s32 igb_read_invm_i211(struct e1000_hw *hw, u16 address, u16 *data); 39 extern s32 igb_acquire_swfw_sync_i210(struct e1000_hw *hw, u16 mask); 41 extern s32 igb_acquire_nvm_i210(struct e1000_hw *hw); 43 extern s32 igb_valid_led_default_i210(struct e1000_hw *hw, u16 *data); 44 extern s32 igb_read_nvm_i211(struct e1000_hw *hw, u16 offset, u16 words, [all …]
|
/drivers/macintosh/ |
D | windfarm_pid.h | 30 s32 gd, gp, gr; /* PID gains */ 31 s32 itarget; /* PID input target */ 32 s32 min,max; /* min and max target values */ 38 s32 target; /* current target value */ 39 s32 samples[WF_PID_MAX_HISTORY]; /* samples history buffer */ 40 s32 errors[WF_PID_MAX_HISTORY]; /* error history buffer */ 46 extern s32 wf_pid_run(struct wf_pid_state *st, s32 sample); 63 s32 gd, gp, gr; /* PID gains */ 64 s32 pmaxadj; /* PID max power adjust */ 65 s32 ttarget; /* PID input target */ [all …]
|
D | therm_pm72.h | 152 s32 G_d; 153 s32 G_p; 154 s32 G_r; 155 s32 input_target; 156 s32 output_min; 157 s32 output_max; 158 s32 interval; 166 s32 sample_history[BACKSIDE_PID_HISTORY_SIZE]; 167 s32 error_history[BACKSIDE_PID_HISTORY_SIZE]; 169 s32 last_temp; [all …]
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | vf.h | 47 s32 (*init_hw)(struct ixgbe_hw *); 48 s32 (*reset_hw)(struct ixgbe_hw *); 49 s32 (*start_hw)(struct ixgbe_hw *); 50 s32 (*clear_hw_cntrs)(struct ixgbe_hw *); 53 s32 (*get_mac_addr)(struct ixgbe_hw *, u8 *); 54 s32 (*stop_adapter)(struct ixgbe_hw *); 55 s32 (*get_bus_info)(struct ixgbe_hw *); 58 s32 (*setup_link)(struct ixgbe_hw *, ixgbe_link_speed, bool, bool); 59 s32 (*check_link)(struct ixgbe_hw *, ixgbe_link_speed *, bool *, bool); 60 s32 (*get_link_capabilities)(struct ixgbe_hw *, ixgbe_link_speed *, [all …]
|
D | mbx.c | 37 static s32 ixgbevf_poll_for_msg(struct ixgbe_hw *hw) in ixgbevf_poll_for_msg() 60 static s32 ixgbevf_poll_for_ack(struct ixgbe_hw *hw) in ixgbevf_poll_for_ack() 86 static s32 ixgbevf_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size) in ixgbevf_read_posted_mbx() 89 s32 ret_val = -IXGBE_ERR_MBX; in ixgbevf_read_posted_mbx() 112 static s32 ixgbevf_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size) in ixgbevf_write_posted_mbx() 115 s32 ret_val = -IXGBE_ERR_MBX; in ixgbevf_write_posted_mbx() 156 static s32 ixgbevf_check_for_bit_vf(struct ixgbe_hw *hw, u32 mask) in ixgbevf_check_for_bit_vf() 159 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_bit_vf() 175 static s32 ixgbevf_check_for_msg_vf(struct ixgbe_hw *hw) in ixgbevf_check_for_msg_vf() 177 s32 ret_val = IXGBE_ERR_MBX; in ixgbevf_check_for_msg_vf() [all …]
|
/drivers/net/wireless/brcm80211/brcmsmac/phy/ |
D | phy_qmath.c | 39 s32 result; in qm_muls16() 43 result = ((s32) (op1) * (s32) (op2)); in qm_muls16() 53 s32 qm_add32(s32 op1, s32 op2) in qm_add32() 55 s32 result; in qm_add32() 73 s32 temp = (s32) op1 + (s32) op2; in qm_add16() 74 if (temp > (s32) 0x7fff) in qm_add16() 76 else if (temp < (s32) 0xffff8000) in qm_add16() 92 s32 temp = (s32) op1 - (s32) op2; in qm_sub16() 93 if (temp > (s32) 0x7fff) in qm_sub16() 95 else if (temp < (s32) 0xffff8000) in qm_sub16() [all …]
|
/drivers/media/pci/cx88/ |
D | cx88-dsp.c | 31 #define INT_PI ((s32)(3.141592653589 * 32768.0)) 34 ((float)(((s32)((a)*100))%((s32)((b)*100)))/100.0) 36 #define baseband_freq(carrier, srate, tone) ((s32)( \ 52 #define FREQ_A2M_CARRIER ((s32)(2.114516 * 32768.0)) 53 #define FREQ_A2M_DUAL ((s32)(2.754916 * 32768.0)) 54 #define FREQ_A2M_STEREO ((s32)(2.462326 * 32768.0)) 56 #define FREQ_EIAJ_CARRIER ((s32)(1.963495 * 32768.0)) /* 5pi/8 */ 57 #define FREQ_EIAJ_DUAL ((s32)(2.562118 * 32768.0)) 58 #define FREQ_EIAJ_STEREO ((s32)(2.601053 * 32768.0)) 60 #define FREQ_BTSC_DUAL ((s32)(1.963495 * 32768.0)) /* 5pi/8 */ [all …]
|
/drivers/staging/winbond/ |
D | phy_calibration.c | 26 #define FIXED(X) ((s32)((X) * 32768.0)) 29 static const s32 Angles[] = { 45 s32 _s13_to_s32(u32 data) in _s13_to_s32() 54 return (s32) val; in _s13_to_s32() 57 u32 _s32_to_s13(s32 data) in _s32_to_s13() 72 s32 _s4_to_s32(u32 data) in _s4_to_s32() 74 s32 val; in _s4_to_s32() 84 u32 _s32_to_s4(s32 data) in _s32_to_s4() 99 s32 _s5_to_s32(u32 data) in _s5_to_s32() 101 s32 val; in _s5_to_s32() [all …]
|
/drivers/net/ethernet/intel/igbvf/ |
D | mbx.c | 36 static s32 e1000_poll_for_msg(struct e1000_hw *hw) in e1000_poll_for_msg() 62 static s32 e1000_poll_for_ack(struct e1000_hw *hw) in e1000_poll_for_ack() 91 static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size) in e1000_read_posted_mbx() 94 s32 ret_val = -E1000_ERR_MBX; in e1000_read_posted_mbx() 117 static s32 e1000_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size) in e1000_write_posted_mbx() 120 s32 ret_val = -E1000_ERR_MBX; in e1000_write_posted_mbx() 161 static s32 e1000_check_for_bit_vf(struct e1000_hw *hw, u32 mask) in e1000_check_for_bit_vf() 164 s32 ret_val = -E1000_ERR_MBX; in e1000_check_for_bit_vf() 180 static s32 e1000_check_for_msg_vf(struct e1000_hw *hw) in e1000_check_for_msg_vf() 182 s32 ret_val = -E1000_ERR_MBX; in e1000_check_for_msg_vf() [all …]
|
D | vf.h | 177 s32 (*init_params)(struct e1000_hw *); 178 s32 (*check_for_link)(struct e1000_hw *); 180 s32 (*get_bus_info)(struct e1000_hw *); 181 s32 (*get_link_up_info)(struct e1000_hw *, u16 *, u16 *); 183 s32 (*reset_hw)(struct e1000_hw *); 184 s32 (*init_hw)(struct e1000_hw *); 185 s32 (*setup_link)(struct e1000_hw *); 189 s32 (*read_mac_addr)(struct e1000_hw *); 190 s32 (*set_vfta)(struct e1000_hw *, u16, bool); 207 s32 (*init_params)(struct e1000_hw *hw); [all …]
|
/drivers/staging/tidspbridge/include/dspbridge/ |
D | dblldefs.h | 42 typedef s32 dbll_flags; 77 typedef s32(*dbll_alloc_fxn) (void *hdl, s32 space, u32 size, u32 align, 78 u32 *dsp_address, s32 seg_id, s32 req, 84 typedef s32(*dbll_f_close_fxn) (void *); 91 typedef bool(*dbll_free_fxn) (void *hdl, u32 addr, s32 space, u32 size, 111 typedef s32(*dbll_read_fxn) (void *, size_t, size_t, void *); 116 typedef s32(*dbll_seek_fxn) (void *, long, int); 138 typedef s32(*dbll_tell_fxn) (void *); 146 typedef s32(*dbll_write_fxn) (void *hdl, u32 dsp_address, void *buf, 147 u32 n, s32 mtype); [all …]
|
/drivers/net/wireless/brcm80211/brcmfmac/ |
D | fwil.h | 20 s32 brcmf_fil_cmd_data_set(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 21 s32 brcmf_fil_cmd_data_get(struct brcmf_if *ifp, u32 cmd, void *data, u32 len); 22 s32 brcmf_fil_cmd_int_set(struct brcmf_if *ifp, u32 cmd, u32 data); 23 s32 brcmf_fil_cmd_int_get(struct brcmf_if *ifp, u32 cmd, u32 *data); 25 s32 brcmf_fil_iovar_data_set(struct brcmf_if *ifp, char *name, void *data, 27 s32 brcmf_fil_iovar_data_get(struct brcmf_if *ifp, char *name, void *data, 29 s32 brcmf_fil_iovar_int_set(struct brcmf_if *ifp, char *name, u32 data); 30 s32 brcmf_fil_iovar_int_get(struct brcmf_if *ifp, char *name, u32 *data); 32 s32 brcmf_fil_bsscfg_data_set(struct brcmf_if *ifp, char *name, void *data, 34 s32 brcmf_fil_bsscfg_data_get(struct brcmf_if *ifp, char *name, void *data, [all …]
|