Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/clk/imx/
Dclk-scu.c49 u16 rsrc_id; member
67 u16 rsrc_id; member
179 static bool imx_scu_clk_is_valid(u32 rsrc_id) in imx_scu_clk_is_valid() argument
186 p = bsearch(&rsrc_id, rsrc_table->rsrc, rsrc_table->num, in imx_scu_clk_is_valid()
240 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_recalc_rate()
295 if (clk->rsrc_id == IMX_SC_R_A35 || clk->rsrc_id == IMX_SC_R_A53) in clk_scu_atf_set_cpu_rate()
297 else if (clk->rsrc_id == IMX_SC_R_A72) in clk_scu_atf_set_cpu_rate()
331 msg.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_set_rate()
349 msg.data.req.resource = cpu_to_le16(clk->rsrc_id); in clk_scu_get_parent()
376 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.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dmcs_rvu_if.c650 rc = mcs_free_rsrc(&map->flow_ids, map->flowid2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
651 mcs_ena_dis_flowid_entry(mcs, req->rsrc_id, req->dir, false); in rvu_mbox_handler_mcs_free_resources()
654 rc = mcs_free_rsrc(&map->secy, map->secy2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
655 mcs_clear_secy_plcy(mcs, req->rsrc_id, req->dir); in rvu_mbox_handler_mcs_free_resources()
658 rc = mcs_free_rsrc(&map->sc, map->sc2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
661 mcs_ena_dis_sc_cam_entry(mcs, req->rsrc_id, false); in rvu_mbox_handler_mcs_free_resources()
664 rc = mcs_free_rsrc(&map->sa, map->sa2pf_map, req->rsrc_id, pcifunc); in rvu_mbox_handler_mcs_free_resources()
679 int rsrc_id, i; in rvu_mbox_handler_mcs_alloc_resources() local
694 rsrc_id = mcs_alloc_all_rsrc(mcs, &rsp->flow_ids[0], in rvu_mbox_handler_mcs_alloc_resources()
706 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.h1841 u8 rsrc_id; /* Index of the entry to be freed */ member
/linux-6.6.21/drivers/remoteproc/
Dimx_rproc.c114 u32 rsrc_id; /* resource id */ member
401 ret = imx_sc_pm_cpu_start(priv->ipc_handle, priv->rsrc_id, true, priv->entry); in imx_rproc_start()
443 ret = imx_sc_pm_cpu_start(priv->ipc_handle, priv->rsrc_id, false, priv->entry); in imx_rproc_stop()
652 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) in imx_rproc_detach()
855 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) { in imx_rproc_put_scu()
975 ret = of_property_read_u32(dev->of_node, "fsl,resource-id", &priv->rsrc_id); in imx_rproc_detect_mode()
981 if (priv->rsrc_id == IMX_SC_R_M4_1_PID0) in imx_rproc_detect_mode()
990 if (imx_sc_rm_is_resource_owned(priv->ipc_handle, priv->rsrc_id)) { in imx_rproc_detect_mode()
1002 ret = imx_sc_rm_get_resource_owner(priv->ipc_handle, priv->rsrc_id, &pt); in imx_rproc_detect_mode()
/linux-6.6.21/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.6.21/drivers/net/can/flexcan/
Dflexcan-core.c515 u32 rsrc_id, val; in flexcan_stop_mode_enable_scfw() local
517 rsrc_id = IMX_SC_R_CAN(idx); in flexcan_stop_mode_enable_scfw()
525 return imx_sc_misc_set_control(priv->sc_ipc_handle, rsrc_id, in flexcan_stop_mode_enable_scfw()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dfec_main.c1240 u32 rsrc_id, val; in fec_enet_ipg_stop_set() local
1249 rsrc_id = idx ? IMX_SC_R_ENET_1 : IMX_SC_R_ENET_0; in fec_enet_ipg_stop_set()
1252 imx_sc_misc_set_control(fep->ipc_handle, rsrc_id, IMX_SC_C_IPG_STOP, val); in fec_enet_ipg_stop_set()
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_sli.c6410 uint16_t rsrc_id, rsrc_start, j, k; in lpfc_sli4_alloc_extent() local
6590 rsrc_id = bf_get(lpfc_mbx_rsrc_id_word4_0, in lpfc_sli4_alloc_extent()
6593 rsrc_id = bf_get(lpfc_mbx_rsrc_id_word4_1, in lpfc_sli4_alloc_extent()
6603 rsrc_blks->rsrc_start = rsrc_id; in lpfc_sli4_alloc_extent()
6606 rsrc_start = rsrc_id; in lpfc_sli4_alloc_extent()
6612 while (rsrc_id < (rsrc_start + rsrc_size)) { in lpfc_sli4_alloc_extent()
6613 ids[j] = rsrc_id; in lpfc_sli4_alloc_extent()
6614 rsrc_id++; in lpfc_sli4_alloc_extent()