Home
last modified time | relevance | path

Searched refs:rsrc_id (Results 1 – 11 of 11) sorted by relevance

/linux-6.12.1/drivers/clk/imx/
Dclk-scu.c51 u16 rsrc_id; member
69 u16 rsrc_id; member
181 static bool imx_scu_clk_is_valid(u32 rsrc_id) in imx_scu_clk_is_valid() argument
188 p = bsearch(&rsrc_id, rsrc_table->rsrc, rsrc_table->num, in imx_scu_clk_is_valid()
242 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_recalc_rate()
297 if (clk->rsrc_id == IMX_SC_R_A35 || clk->rsrc_id == IMX_SC_R_A53) in clk_scu_atf_set_cpu_rate()
299 else if (clk->rsrc_id == IMX_SC_R_A72) in clk_scu_atf_set_cpu_rate()
333 msg.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_set_rate()
351 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_get_parent()
378 msg.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_set_parent()
[all …]
Dclk-scu.h34 int num_parents, u32 rsrc_id, u8 clk_type);
38 u32 rsrc_id, u8 clk_type);
48 int num_parents, u32 rsrc_id, u8 gpr_id, u8 flags,
51 static inline struct clk_hw *imx_clk_scu(const char *name, u32 rsrc_id, in imx_clk_scu() argument
54 return imx_clk_scu_alloc_dev(name, NULL, 0, rsrc_id, clk_type); in imx_clk_scu()
58 int num_parents, u32 rsrc_id, u8 clk_type) in imx_clk_scu2() argument
60 return imx_clk_scu_alloc_dev(name, parents, num_parents, rsrc_id, clk_type); in imx_clk_scu2()
80 u32 rsrc_id, u8 gpr_id, bool invert) in imx_clk_gate_gpr_scu() argument
82 return __imx_clk_gpr_scu(name, &parent_name, 1, rsrc_id, gpr_id, in imx_clk_gate_gpr_scu()
87 u32 rsrc_id, u8 gpr_id) in imx_clk_divider_gpr_scu() argument
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c655 rc = mcs_free_rsrc(&map->flow_ids, map->flowid2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
656 mcs_ena_dis_flowid_entry(mcs, req->rsrc_id, req->dir, false); in rvu_mbox_handler_mcs_free_resources()
659 rc = mcs_free_rsrc(&map->secy, map->secy2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
660 mcs_clear_secy_plcy(mcs, req->rsrc_id, req->dir); in rvu_mbox_handler_mcs_free_resources()
663 rc = mcs_free_rsrc(&map->sc, map->sc2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
666 mcs_ena_dis_sc_cam_entry(mcs, req->rsrc_id, false); in rvu_mbox_handler_mcs_free_resources()
669 rc = mcs_free_rsrc(&map->sa, map->sa2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
684 int rsrc_id, i; in rvu_mbox_handler_mcs_alloc_resources() local
699 rsrc_id = mcs_alloc_all_rsrc(mcs, &rsp->flow_ids[0], in rvu_mbox_handler_mcs_alloc_resources()
711 rsrc_id = mcs_alloc_rsrc(&map->flow_ids, map->flowid2pf_map, pcifunc); in rvu_mbox_handler_mcs_alloc_resources()
[all …]
Dmcs.c567 int rsrc_id; in mcs_alloc_ctrlpktrule() local
572 rsrc_id = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, offset, 1, 0); in mcs_alloc_ctrlpktrule()
573 if (rsrc_id >= rsrc->max) in mcs_alloc_ctrlpktrule()
576 bitmap_set(rsrc->bmap, rsrc_id, 1); in mcs_alloc_ctrlpktrule()
577 pf_map[rsrc_id] = pcifunc; in mcs_alloc_ctrlpktrule()
579 return rsrc_id; in mcs_alloc_ctrlpktrule()
700 int mcs_free_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, int rsrc_id, u16 pcifunc) in mcs_free_rsrc() argument
703 if (pf_map[rsrc_id] != pcifunc) in mcs_free_rsrc()
706 rvu_free_rsrc(rsrc, rsrc_id); in mcs_free_rsrc()
707 pf_map[rsrc_id] = 0; in mcs_free_rsrc()
[all …]
Dmcs.h182 int mcs_free_rsrc(struct rsrc_bmap *rsrc, u16 *pf_map, int rsrc_id, u16 pcifunc);
Dmbox.h1940 u8 rsrc_id; /* Index of the entry to be freed */ member
/linux-6.12.1/drivers/remoteproc/
Dimx_rproc.c114 u32 rsrc_id; /* resource id */ member
394 ret = imx_sc_pm_cpu_start(priv->ipc_handle, priv->rsrc_id, true, priv->entry); in imx_rproc_start()
436 ret = imx_sc_pm_cpu_start(priv->ipc_handle, priv->rsrc_id, false, priv->entry); in imx_rproc_stop()
645 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) in imx_rproc_detach()
865 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) { in imx_rproc_put_scu()
933 ret = of_property_read_u32(dev->of_node, "fsl,resource-id", &priv->rsrc_id); in imx_rproc_detect_mode()
939 if (priv->rsrc_id == IMX_SC_R_M4_1_PID0) in imx_rproc_detect_mode()
948 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) { in imx_rproc_detect_mode()
960 ret = imx_sc_rm_get_resource_owner(priv->ipc_handle, priv->rsrc_id, &pt); in imx_rproc_detect_mode()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c142 enum mcs_rsrc_type type, u16 *rsrc_id) in cn10k_mcs_alloc_rsrc() argument
173 *rsrc_id = rsp->flow_ids[0]; in cn10k_mcs_alloc_rsrc()
176 *rsrc_id = rsp->sc_ids[0]; in cn10k_mcs_alloc_rsrc()
179 *rsrc_id = rsp->secy_ids[0]; in cn10k_mcs_alloc_rsrc()
182 *rsrc_id = rsp->sa_ids[0]; in cn10k_mcs_alloc_rsrc()
221 req->rsrc_id = hw_rsrc_id; in cn10k_mcs_free_rsrc()
/linux-6.12.1/drivers/net/can/flexcan/
Dflexcan-core.c523 u32 rsrc_id, val; in flexcan_stop_mode_enable_scfw() local
525 rsrc_id = IMX_SC_R_CAN(idx); in flexcan_stop_mode_enable_scfw()
533 return imx_sc_misc_set_control(priv->sc_ipc_handle, rsrc_id, in flexcan_stop_mode_enable_scfw()
/linux-6.12.1/drivers/net/ethernet/freescale/
Dfec_main.c1279 u32 rsrc_id, val; in fec_enet_ipg_stop_set() local
1288 rsrc_id = idx ? IMX_SC_R_ENET_1 : IMX_SC_R_ENET_0; in fec_enet_ipg_stop_set()
1291 imx_sc_misc_set_control(fep->ipc_handle, rsrc_id, IMX_SC_C_IPG_STOP, val); in fec_enet_ipg_stop_set()
/linux-6.12.1/drivers/scsi/lpfc/
Dlpfc_sli.c6427 uint16_t rsrc_id, rsrc_start, j, k; in lpfc_sli4_alloc_extent() local
6607 rsrc_id = bf_get(lpfc_mbx_rsrc_id_word4_0, in lpfc_sli4_alloc_extent()
6610 rsrc_id = bf_get(lpfc_mbx_rsrc_id_word4_1, in lpfc_sli4_alloc_extent()
6620 rsrc_blks->rsrc_start = rsrc_id; in lpfc_sli4_alloc_extent()
6623 rsrc_start = rsrc_id; in lpfc_sli4_alloc_extent()
6629 while (rsrc_id < (rsrc_start + rsrc_size)) { in lpfc_sli4_alloc_extent()
6630 ids[j] = rsrc_id; in lpfc_sli4_alloc_extent()
6631 rsrc_id++; in lpfc_sli4_alloc_extent()