Home
last modified time | relevance | path

Searched refs:if_id (Results 1 – 25 of 75) sorted by relevance

123

/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dddr3_training_pbs.c48 u32 pup = 0, bit = 0, if_id = 0, all_lock = 0, cs_num = 0; in ddr3_tip_pbs() local
58 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_pbs()
59 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_pbs()
63 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
68 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_pbs()
88 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_pbs()
89 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_pbs()
90 min_adll_per_pup[if_id][pup] = in ddr3_tip_pbs()
92 pup_state[if_id][pup] = 0x3; in ddr3_tip_pbs()
93 adll_shift_lock[if_id][pup] = 1; in ddr3_tip_pbs()
[all …]
H A Dddr3_training_hw_algo.c43 int ddr3_tip_write_additional_odt_setting(u32 dev_num, u32 if_id) in ddr3_tip_write_additional_odt_setting() argument
55 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
58 CHECK_STATUS(ddr3_tip_if_read(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
61 val = data_read[if_id]; in ddr3_tip_write_additional_odt_setting()
77 (dev_num, if_id, in ddr3_tip_write_additional_odt_setting()
101 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
105 CHECK_STATUS(ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_write_additional_odt_setting()
113 int get_valid_win_rx(u32 dev_num, u32 if_id, u8 res[4]) in get_valid_win_rx() argument
126 CHECK_STATUS(ddr3_tip_bus_read(dev_num, if_id, in get_valid_win_rx()
162 u32 pup = 0, if_id = 0, num_pup = 0, rep = 0; in ddr3_tip_vref() local
[all …]
H A Dddr3_training_leveling.c25 static int ddr3_tip_wl_supp_align_phase_shift(u32 dev_num, u32 if_id,
27 static int ddr3_tip_xsb_compare_test(u32 dev_num, u32 if_id, u32 bus_id,
41 u32 bus_num, if_id, cl_val; in ddr3_tip_dynamic_read_leveling() local
55 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) in ddr3_tip_dynamic_read_leveling()
56 rl_values[effective_cs][bus_num][if_id] = 0; in ddr3_tip_dynamic_read_leveling()
59 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_dynamic_read_leveling()
60 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_dynamic_read_leveling()
61 training_result[training_stage][if_id] = TEST_SUCCESS; in ddr3_tip_dynamic_read_leveling()
65 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_dynamic_read_leveling()
70 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_dynamic_read_leveling()
[all …]
H A Dddr3_training_centralization.c56 u32 if_id, pattern_id, bit_id; in ddr3_tip_centralization() local
80 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_centralization()
81 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_centralization()
84 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_centralization()
88 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_centralization()
103 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_centralization()
104 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_centralization()
108 centralization_state[if_id][bus_id] = 0; in ddr3_tip_centralization()
109 bus_end_window[mode][if_id][bus_id] = in ddr3_tip_centralization()
111 bus_start_window[mode][if_id][bus_id] = 0; in ddr3_tip_centralization()
[all …]
H A Dddr3_debug.c113 u32 if_id, reg_addr, data_value, bus_id; in ddr3_tip_reg_dump() local
121 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_reg_dump()
122 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_reg_dump()
125 if_id, reg_addr, read_data, in ddr3_tip_reg_dump()
127 printf("0x%x ", read_data[if_id]); in ddr3_tip_reg_dump()
135 for (if_id = 0; if_id <= MAX_INTERFACE_NUM - 1; if_id++) { in ddr3_tip_reg_dump()
136 VALIDATE_IF_ACTIVE(tm->if_act_mask, if_id); in ddr3_tip_reg_dump()
142 (dev_num, if_id, in ddr3_tip_reg_dump()
153 (dev_num, if_id, in ddr3_tip_reg_dump()
345 u32 if_id = 0; in ddr3_tip_print_log() local
[all …]
H A Dddr3_training.c94 u32 if_id, u32 cl_value, u32 cwl_value);
102 u32 if_id, enum mv_ddr_freq frequency);
104 u32 if_id, enum mv_ddr_freq frequency);
228 static int ddr3_tip_rank_control(u32 dev_num, u32 if_id);
279 int ddr3_tip_configure_cs(u32 dev_num, u32 if_id, u32 cs_num, u32 enable) in ddr3_tip_configure_cs() argument
286 data = (tm->interface_params[if_id].bus_width == in ddr3_tip_configure_cs()
289 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_configure_cs()
292 mem_index = tm->interface_params[if_id].memory_size; in ddr3_tip_configure_cs()
296 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_configure_cs()
303 (dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_configure_cs()
[all …]
H A Dddr3_training_ip_engine.c572 u32 if_id, enum hws_pattern pattern, in ddr3_tip_load_pattern_to_odpg() argument
584 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
590 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
597 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
603 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
610 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
616 (dev_num, access_type, if_id, in ddr3_tip_load_pattern_to_odpg()
626 u32 if_id, enum hws_dir direction, u32 tx_phases, in ddr3_tip_configure_odpg() argument
638 ret = ddr3_tip_if_write(dev_num, access_type, if_id, in ddr3_tip_configure_odpg()
692 int ddr3_tip_read_training_result(u32 dev_num, u32 if_id, in ddr3_tip_read_training_result() argument
[all …]
H A Dddr3_training_ip_flow.h61 int ddr3_tip_write_leveling_static_config(u32 dev_num, u32 if_id,
64 int ddr3_tip_read_leveling_static_config(u32 dev_num, u32 if_id,
68 u32 if_id, u32 reg_addr, u32 data_value, u32 mask);
70 u32 if_id, u32 exp_value, u32 mask, u32 offset,
73 u32 if_id, u32 reg_addr, u32 *data, u32 mask);
76 u32 if_id, u32 phy_id,
79 int ddr3_tip_bus_read(u32 dev_num, u32 if_id, enum hws_access_type phy_access,
83 u32 if_id, enum hws_access_type e_phy_access, u32 phy_id,
86 int ddr3_tip_freq_set(u32 dev_num, enum hws_access_type e_access, u32 if_id,
90 int ddr3_tip_ext_read(u32 dev_num, u32 if_id, u32 reg_addr,
[all …]
H A Dddr3_training_ip_prv_if.h25 u8 dev_num, enum hws_access_type interface_access, u32 if_id,
28 u8 dev_num, enum hws_access_type interface_access, u32 if_id,
38 u8 dev_num, u32 if_id, enum mv_ddr_freq freq);
47 u32 dev_num, enum hws_access_type dunit_access_type, u32 if_id,
51 u32 dev_num, u32 if_id, enum hws_access_type phy_access_type,
56 u32 dev_num, enum hws_access_type access_type, u32 if_id,
68 enum hws_static_config_type static_config_type, u32 if_id);
70 u32 dev_num, u32 if_id, u32 ddr_addr, u32 num_bursts, u32 *data);
72 u32 dev_num, u32 if_id, u32 ddr_addr, u32 num_bursts, u32 *data);
81 u32 dev_num, u32 if_id, struct bist_result *pst_bist_result);
H A Dddr3_training_bist.c14 u32 if_id,
74 int ddr3_tip_bist_read_result(u32 dev_num, u32 if_id, in ddr3_tip_bist_read_result() argument
81 if (IS_IF_ACTIVE(tm->if_act_mask, if_id) == 0) in ddr3_tip_bist_read_result()
85 if_id)); in ddr3_tip_bist_read_result()
86 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
91 pst_bist_result->bist_fail_high = read_data[if_id]; in ddr3_tip_bist_read_result()
92 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
97 pst_bist_result->bist_fail_low = read_data[if_id]; in ddr3_tip_bist_read_result()
99 ret = ddr3_tip_if_read(dev_num, ACCESS_TYPE_UNICAST, if_id, in ddr3_tip_bist_read_result()
104 pst_bist_result->bist_last_fail_addr = read_data[if_id]; in ddr3_tip_bist_read_result()
[all …]
H A Dddr3_training_ip_engine.h42 int ddr3_tip_read_training_result(u32 dev_num, u32 if_id,
64 u32 if_id,
77 u8 mv_ddr_tip_sub_phy_byte_status_get(u32 if_id, u32 subphy_id);
78 void mv_ddr_tip_sub_phy_byte_status_set(u32 if_id, u32 subphy_id, u8 byte_status_data);
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_wwan.c31 int if_id; member
53 int if_id = priv->if_id; in ipc_wwan_link_open() local
55 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_open()
56 if_id >= ARRAY_SIZE(ipc_wwan->sub_netlist)) in ipc_wwan_link_open()
60 priv->ch_id = ipc_imem_sys_wwan_open(ipc_wwan->ipc_imem, if_id); in ipc_wwan_link_open()
65 if_id); in ipc_wwan_link_open()
73 priv->ch_id, priv->if_id); in ipc_wwan_link_open()
85 ipc_imem_sys_wwan_close(priv->ipc_wwan->ipc_imem, priv->if_id, in ipc_wwan_link_stop()
99 int if_id = priv->if_id; in ipc_wwan_link_transmit() local
105 if (if_id < IP_MUX_SESSION_START || in ipc_wwan_link_transmit()
[all …]
H A Diosm_ipc_mux.c44 static void ipc_mux_session_free(struct iosm_mux *ipc_mux, int if_id) in ipc_mux_session_free() argument
48 if_entry = &ipc_mux->session[if_id]; in ipc_mux_session_free()
55 ipc_mux_session_open_send(struct iosm_mux *ipc_mux, int if_id) in ipc_mux_session_open_send() argument
71 if (ipc_mux_dl_acb_send_cmds(ipc_mux, MUX_CMD_OPEN_SESSION, if_id, 0, in ipc_mux_session_open_send()
76 if_id); in ipc_mux_session_open_send()
83 "if_id %d,session open failed,response=%d", if_id, in ipc_mux_session_open_send()
96 int if_id; in ipc_mux_session_open() local
99 if_id = le32_to_cpu(session_open->if_id); in ipc_mux_session_open()
100 if (if_id < 0 || if_id >= IPC_MEM_MUX_IP_SESSION_ENTRIES) { in ipc_mux_session_open()
101 dev_err(ipc_mux->dev, "invalid interface id=%d", if_id); in ipc_mux_session_open()
[all …]
H A Diosm_ipc_mux_codec.c85 cmdh->if_id = acb->if_id; in ipc_mux_acb_add_cmd()
109 cmdh->if_id = acb->if_id; in ipc_mux_lite_add_cmd()
145 int ipc_mux_dl_acb_send_cmds(struct iosm_mux *ipc_mux, u32 cmd_type, u8 if_id, in ipc_mux_dl_acb_send_cmds() argument
153 acb->if_id = if_id; in ipc_mux_dl_acb_send_cmds()
188 __le32 command_type, u8 if_id, in ipc_mux_dl_cmdresps_decode_process() argument
208 if_id, le32_to_cpu(transaction_id)); in ipc_mux_dl_cmdresps_decode_process()
232 __le32 command_type, u8 if_id, in ipc_mux_dl_cmds_decode_process() argument
239 if_id, le32_to_cpu(command_type)); in ipc_mux_dl_cmds_decode_process()
245 if (if_id >= IPC_MEM_MUX_IP_SESSION_ENTRIES) { in ipc_mux_dl_cmds_decode_process()
247 if_id); in ipc_mux_dl_cmds_decode_process()
[all …]
H A Diosm_ipc_mux_codec.h103 u8 if_id; member
160 u8 if_id; member
185 u8 if_id; member
209 u8 if_id; member
237 u8 if_id; member
278 int ipc_mux_dl_acb_send_cmds(struct iosm_mux *ipc_mux, u32 cmd_type, u8 if_id,
301 int ipc_mux_ul_trigger_encode(struct iosm_mux *ipc_mux, int if_id,
H A Diosm_ipc_imem_ops.h66 int ipc_imem_sys_wwan_open(struct iosm_imem *ipc_imem, int if_id);
75 void ipc_imem_sys_wwan_close(struct iosm_imem *ipc_imem, int if_id,
87 int ipc_imem_sys_wwan_transmit(struct iosm_imem *ipc_imem, int if_id,
H A Diosm_ipc_mux.h74 __le32 if_id; member
80 __le32 if_id; member
187 int if_id; /* i/f id for session open message.*/ member
247 u8 if_id; member
303 int if_id; /* Session id. */ member
H A Diosm_ipc_imem_ops.c16 int ipc_imem_sys_wwan_open(struct iosm_imem *ipc_imem, int if_id) in ipc_imem_sys_wwan_open() argument
19 ipc_imem_phase_get_string(ipc_imem->phase), if_id); in ipc_imem_sys_wwan_open()
23 dev_err(ipc_imem->dev, "net:%d : refused phase %s", if_id, in ipc_imem_sys_wwan_open()
28 return ipc_mux_open_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_open()
32 void ipc_imem_sys_wwan_close(struct iosm_imem *ipc_imem, int if_id, in ipc_imem_sys_wwan_close() argument
35 if (ipc_imem->mux && if_id >= IP_MUX_SESSION_START && in ipc_imem_sys_wwan_close()
36 if_id <= IP_MUX_SESSION_END) in ipc_imem_sys_wwan_close()
37 ipc_mux_close_session(ipc_imem->mux, if_id); in ipc_imem_sys_wwan_close()
58 int if_id, int channel_id, struct sk_buff *skb) in ipc_imem_sys_wwan_transmit() argument
74 ret = ipc_mux_ul_trigger_encode(ipc_imem->mux, if_id, skb); in ipc_imem_sys_wwan_transmit()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpsw.c343 int dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_link_cfg() argument
354 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_link_cfg()
373 u16 if_id, struct dpsw_link_state *state) in dpsw_if_get_link_state() argument
385 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_link_state()
411 int dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_tci() argument
423 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_tci()
443 int dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_get_tci() argument
456 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_get_tci()
485 int dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id, in dpsw_if_set_stp() argument
496 cmd_params->if_id = cpu_to_le16(if_id); in dpsw_if_set_stp()
[all …]
H A Ddpsw.h269 int dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
285 u16 if_id, struct dpsw_link_state *state);
306 int dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
309 int dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
339 int dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
388 u16 if_id, enum dpsw_counter type, u64 *counter);
390 int dpsw_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id);
392 int dpsw_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id);
420 u16 if_id, struct dpsw_if_attr *attr);
423 u16 if_id, u16 frame_length);
[all …]
H A Ddpsw-cmd.h234 __le16 if_id; member
240 __le16 if_id; member
254 __le16 if_id; member
264 __le16 if_id; member
275 __le16 if_id; member
301 __le16 if_id; member
307 __le16 if_id; member
317 __le16 if_id; member
347 __le64 if_id; member
356 __le64 if_id; member
[all …]
/openbmc/linux/net/xfrm/
H A Dxfrm_interface_bpf.c26 u32 if_id; member
51 to->if_id = info->if_id; in bpf_skb_get_xfrm_info()
86 info->if_id = from->if_id; in bpf_skb_set_xfrm_info()
H A Dxfrm_interface_core.c102 info->if_id = nla_get_u32(tb[LWT_XFRM_IF_ID]); in xfrmi_build_state()
116 if (nla_put_u32(skb, LWT_XFRM_IF_ID, info->if_id) || in xfrmi_fill_encap_info()
149 static u32 xfrmi_hash(u32 if_id) in xfrmi_hash() argument
151 return hash_32(if_id, XFRMI_HASH_BITS); in xfrmi_hash()
159 for_each_xfrmi_rcu(xfrmn->xfrmi[xfrmi_hash(x->if_id)], xi) { in xfrmi_lookup()
160 if (x->if_id == xi->p.if_id && in xfrmi_lookup()
209 res->if_id = xfrm_input_state(skb)->if_id; in xfrmi_decode_session()
211 res->if_id = xi->p.if_id; in xfrmi_decode_session()
217 struct xfrm_if __rcu **xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_link()
228 for (xip = &xfrmn->xfrmi[xfrmi_hash(xi->p.if_id)]; in xfrmi_unlink()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c138 const char *ipv4_remote, int if_id) in setup_xfrm_tunnel_ns() argument
142 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_local, ipv4_remote, if_id); in setup_xfrm_tunnel_ns()
146 ESP_DUMMY_PARAMS "if_id %d", ns, ipv4_remote, ipv4_local, if_id); in setup_xfrm_tunnel_ns()
151 if_id, ipv4_local, ipv4_remote, if_id); in setup_xfrm_tunnel_ns()
156 if_id, ipv4_remote, ipv4_local, if_id); in setup_xfrm_tunnel_ns()
278 static int test_xfrm_ping(struct xfrm_info *skel, u32 if_id) in test_xfrm_ping() argument
280 skel->bss->req_if_id = if_id; in test_xfrm_ping()
284 if (!ASSERT_EQ(skel->bss->resp_if_id, if_id, "if_id")) in test_xfrm_ping()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dxfrm_info.c7 u32 if_id; member
22 struct bpf_xfrm_info___local info = { .if_id = req_if_id }; in set_xfrm_info()
35 resp_if_id = info.if_id; in get_xfrm_info()

123