Lines Matching refs:cb

24 extern u32 elink_cb_reg_read(struct elink_dev *cb, u32 reg_addr);
25 extern void elink_cb_reg_write(struct elink_dev *cb, u32 reg_addr, u32 val);
27 extern void elink_cb_reg_wb_write(struct elink_dev *cb, u32 offset,
29 extern void elink_cb_reg_wb_read(struct elink_dev *cb, u32 offset,
33 extern u8 elink_cb_gpio_write(struct elink_dev *cb,
36 extern u8 elink_cb_gpio_mult_write(struct elink_dev *cb,
40 extern u32 elink_cb_gpio_read(struct elink_dev *cb, u16 gpio_num, u8 port);
41 extern u8 elink_cb_gpio_int_write(struct elink_dev *cb,
45 extern u32 elink_cb_fw_command(struct elink_dev *cb, u32 command, u32 param);
48 extern void elink_cb_udelay(struct elink_dev *cb, u32 microsecond);
52 extern void elink_cb_download_progress(struct elink_dev *cb, u32 cur, u32 total);
72 extern void elink_cb_event_log(struct elink_dev *cb, const elink_log_id_t log_id, ...);
76 extern u8 elink_cb_path_id(struct elink_dev *cb);
78 extern void elink_cb_notify_link_changed(struct elink_dev *cb);
86 #define elink_cb_event_log(cb, level, ...)
87 #define elink_cb_get_friendly_name(cb) ''
96 #define ELINK_DEBUG_P0(cb, fmt) DbgMessage(cb, WARNelink, fmt)
97 #define ELINK_DEBUG_P1(cb, fmt, arg1) DbgMessage(cb, WARNelink, fmt, arg1)
98 #define ELINK_DEBUG_P2(cb, fmt, arg1, arg2) DbgMessage(cb, WARNelink, fmt, arg1, arg2)
99 #define ELINK_DEBUG_P3(cb, fmt, arg1, arg2, arg3) \
100 DbgMessage(cb, WARNelink, fmt, arg1, arg2, arg3)
102 extern void elink_cb_dbg(struct elink_dev *cb, _In_ char *fmt);
103 extern void elink_cb_dbg1(struct elink_dev *cb, _In_ char *fmt, u32 arg1);
104 extern void elink_cb_dbg2(struct elink_dev *cb, _In_ char *fmt, u32 arg1, u32 arg2);
105 extern void elink_cb_dbg3(struct elink_dev *cb, _In_ char *fmt, u32 arg1, u32 arg2,
108 #define ELINK_DEBUG_P0(cb, fmt) elink_cb_dbg(cb, fmt)
109 #define ELINK_DEBUG_P1(cb, fmt, arg1) elink_cb_dbg1(cb, fmt, arg1)
110 #define ELINK_DEBUG_P2(cb, fmt, arg1, arg2) elink_cb_dbg2(cb, fmt, arg1, arg2)
111 #define ELINK_DEBUG_P3(cb, fmt, arg1, arg2, arg3) \
112 elink_cb_dbg3(cb, fmt, arg1, arg2, arg3)
116 #define ELINK_DEBUG_P0(cb, fmt)
117 #define ELINK_DEBUG_P1(cb, fmt, arg1)
118 #define ELINK_DEBUG_P2(cb, fmt, arg1, arg2)
119 #define ELINK_DEBUG_P3(cb, fmt, arg1, arg2, arg3)
454 struct elink_dev *cb;
568 elink_status_t elink_common_init_phy(struct elink_dev *cb, u32 shmem_base_path[],
572 void elink_ext_phy_hw_reset(struct elink_dev *cb, u8 port);
576 void elink_sfx7101_sp_sw_reset(struct elink_dev *cb, struct elink_phy *phy);
594 u8 elink_fan_failure_det_req(struct elink_dev *cb, u32 shmem_base,
690 void elink_init_mod_abs_int(struct elink_dev *cb, struct elink_vars *vars,
708 elink_status_t elink_pre_init_phy(struct elink_dev *cb,
723 void set_cfg_pin(struct elink_dev *cb, u32 pin_cfg, u32 val);
724 int get_cfg_pin(struct elink_dev *cb, u32 pin_cfg, u32 *val);