Home
last modified time | relevance | path

Searched +full:sc +full:- +full:resource (Results 1 – 25 of 108) sorted by relevance

12345

/openbmc/linux/drivers/net/wireless/ath/ath9k/
H A Dahb.c2 * Copyright (c) 2008-2011 Atheros Communications Inc.
75 struct ath_softc *sc; in ath_ahb_probe() local
77 struct resource *res; in ath_ahb_probe()
84 if (!dev_get_platdata(&pdev->dev)) { in ath_ahb_probe()
85 dev_err(&pdev->dev, "no platform data specified\n"); in ath_ahb_probe()
86 return -EINVAL; in ath_ahb_probe()
91 dev_err(&pdev->dev, "no memory resource found\n"); in ath_ahb_probe()
92 return -ENXIO; in ath_ahb_probe()
95 mem = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in ath_ahb_probe()
97 dev_err(&pdev->dev, "ioremap failed\n"); in ath_ahb_probe()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/display/bridge/
H A Dfsl,imx8qxp-pxl2dpi.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/display/bridge/fsl,imx8qxp-pxl2dpi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Liu Ying <victor.liu@nxp.com>
14 interfaces the pixel link 36-bit data output and the DSI controller’s
15 MIPI-DPI 24-bit data input, and inputs of LVDS Display Bridge(LDB) module
25 const: fsl,imx8qxp-pxl2dpi
27 fsl,sc-resource:
29 description: The SCU resource ID associated with this PXL2DPI instance.
[all …]
/openbmc/linux/Documentation/devicetree/bindings/gpio/
H A Dfsl,imx8qxp-sc-gpio.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/gpio/fsl,imx8qxp-sc-gpio.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Shenwei Wang <shenwei.wang@nxp.com>
14 resource pins in SCU domain on i.MX8 platforms.
19 - fsl,imx8qxp-sc-gpio
21 "#gpio-cells":
24 gpio-controller: true
27 - compatible
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dquota.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2017-2023 Oracle. All Rights Reserved.
24 struct xfs_scrub *sc) in xchk_quota_to_dqtype() argument
26 switch (sc->sm->sm_type) { in xchk_quota_to_dqtype()
41 struct xfs_scrub *sc) in xchk_setup_quota() argument
46 if (!XFS_IS_QUOTA_ON(sc->mp)) in xchk_setup_quota()
47 return -ENOENT; in xchk_setup_quota()
49 dqtype = xchk_quota_to_dqtype(sc); in xchk_setup_quota()
51 return -EINVAL; in xchk_setup_quota()
53 if (!xfs_this_quota_on(sc->mp, dqtype)) in xchk_setup_quota()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/firmware/
H A Dfsl,scu.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Dong Aisheng <aisheng.dong@nxp.com>
13 The System Controller Firmware (SCFW) is a low-level system function
14 which runs on a dedicated Cortex-M core to provide power, clock, and
15 resource management. It exists on some i.MX8 processors. e.g. i.MX8QM
17 The AP communicates with the SC using a multi-ported MU module found
19 5 remote AP connections to the SC to support up to 5 execution environments
20 (TZ, HV, standard Linux, etc.). The SC side of this MU module interfaces
[all …]
/openbmc/linux/drivers/media/platform/ti/vpe/
H A Dsc.h1 /* SPDX-License-Identifier: GPL-2.0-only */
187 struct resource *res;
189 dma_addr_t loaded_coeff_h; /* loaded h coeffs in SC */
190 dma_addr_t loaded_coeff_v; /* loaded v coeffs in SC */
192 bool load_coeff_h; /* have new h SC coeffs */
193 bool load_coeff_v; /* have new v SC coeffs */
198 void sc_dump_regs(struct sc_data *sc);
199 void sc_set_hs_coeffs(struct sc_data *sc, void *addr, unsigned int src_w,
201 void sc_set_vs_coeffs(struct sc_data *sc, void *addr, unsigned int src_h,
203 void sc_config_scaler(struct sc_data *sc, u32 *sc_reg0, u32 *sc_reg8,
/openbmc/linux/arch/mips/include/asm/
H A Datomic.h3 * resource counting etc..
22 #include <asm/cpu-features.h>
29 return READ_ONCE(v->counter); \
34 WRITE_ONCE(v->counter, i); \
44 #define ATOMIC_OP(pfx, op, type, c_op, asm_op, ll, sc) \ argument
53 v->counter c_op i; \
64 " " #sc " %0, %1 \n" \
67 : "=&r" (temp), "+" GCC_OFF_SMALL_ASM() (v->counter) \
71 #define ATOMIC_OP_RETURN(pfx, op, type, c_op, asm_op, ll, sc) \ argument
81 result = v->counter; \
[all …]
/openbmc/linux/drivers/firmware/imx/
H A Drm.c1 // SPDX-License-Identifier: GPL-2.0+
5 * File containing client-side RPC functions for the RM service. These
6 * function are ported to clients that communicate to the SC.
13 u16 resource; member
17 * This function check @resource is owned by current partition or not
20 * @param[in] resource resource the control is associated with
24 bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource) in imx_sc_rm_is_resource_owned() argument
29 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_rm_is_resource_owned()
30 hdr->svc = IMX_SC_RPC_SVC_RM; in imx_sc_rm_is_resource_owned()
31 hdr->func = IMX_SC_RM_FUNC_IS_RESOURCE_OWNED; in imx_sc_rm_is_resource_owned()
[all …]
H A Dmisc.c1 // SPDX-License-Identifier: GPL-2.0+
7 * File containing client-side RPC functions for the MISC service. These
8 * function are ported to clients that communicate to the SC.
18 u16 resource; member
25 u16 resource; member
32 u16 resource; member
44 * @param[in] resource resource the control is associated with
51 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_misc_set_control() argument
57 hdr->ver = IMX_SC_RPC_VERSION; in imx_sc_misc_set_control()
58 hdr->svc = (uint8_t)IMX_SC_RPC_SVC_MISC; in imx_sc_misc_set_control()
[all …]
/openbmc/linux/include/linux/firmware/imx/svc/
H A Drm.h1 /* SPDX-License-Identifier: GPL-2.0+ */
4 * Copyright 2017-2020 NXP
6 * Header file containing the public API for the System Controller (SC)
7 * Resource Management (RM) function. This includes functions for
10 * RM_SVC (SVC) Resource Management Service
12 * Module for the Resource Management (RM) service.
61 bool imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource);
62 int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt);
65 imx_sc_rm_is_resource_owned(struct imx_sc_ipc *ipc, u16 resource) in imx_sc_rm_is_resource_owned() argument
69 static inline int imx_sc_rm_get_resource_owner(struct imx_sc_ipc *ipc, u16 resource, u8 *pt) in imx_sc_rm_get_resource_owner() argument
[all …]
H A Dmisc.h1 /* SPDX-License-Identifier: GPL-2.0+ */
6 * Header file containing the public API for the System Controller (SC)
50 int imx_sc_misc_set_control(struct imx_sc_ipc *ipc, u32 resource,
53 int imx_sc_misc_get_control(struct imx_sc_ipc *ipc, u32 resource,
56 int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource,
60 u32 resource, u8 ctrl, u32 val) in imx_sc_misc_set_control() argument
62 return -ENOTSUPP; in imx_sc_misc_set_control()
66 u32 resource, u8 ctrl, u32 *val) in imx_sc_misc_get_control() argument
68 return -ENOTSUPP; in imx_sc_misc_get_control()
71 static inline int imx_sc_pm_cpu_start(struct imx_sc_ipc *ipc, u32 resource, in imx_sc_pm_cpu_start() argument
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dsdhci-s3c.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* linux/drivers/mmc/host/sdhci-s3c.c
14 #include <linux/dma-mapping.h>
16 #include <linux/platform_data/mmc-sdhci-s3c.h>
104 * struct sdhci_s3c - S3C SDHCI instance
107 * @ioarea: The resource created when we claimed the IO area.
114 * @no_divider: No or non-standard internal clock divider.
119 struct resource *ioarea;
132 * struct sdhci_s3c_drv_data - S3C SDHCI platform specific driver data
134 * @no_divider: no or non-standard internal clock divider.
[all …]
/openbmc/linux/include/linux/
H A Ddio.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Maybe this should handle DIO-II later?
19 * range from 0-63 (DIO) and 132-255 (DIO-II).
20 * The DIO board with select code sc is located at physical address
21 * 0x600000 + sc * 0x10000
22 * So DIO cards cover [0x600000-0x800000); the areas [0x200000-0x400000) and
23 * [0x800000-0x1000000) are for additional space required by things
24 * like framebuffers. [0x400000-0x600000) is for miscellaneous internal I/O.
27 * DIO-II boards are at 0x1000000 + (sc - 132) * 0x400000
28 * which is address range [0x1000000-0x20000000) -- too big to map completely,
[all …]
/openbmc/linux/tools/perf/pmu-events/arch/x86/amdzen2/
H A Dother.json5 "BriefDescription": "Cycles where the Micro-Op Queue is empty."
28 …alid but does not get dispatched due to a token stall. FP Miscellaneous resource unavailable. Appl…
34 …is valid but does not get dispatched due to a token stall. FP scheduler resource stall. Applies to…
40 …s not get dispatched due to a token stall. Floating point register file resource stall. Applies to…
46 …up is valid but does not get dispatched due to a token stall. Taken branch buffer resource stall.",
52 …but does not get dispatched due to a token stall. Integer Scheduler miscellaneous resource stall.",
58 … is valid but does not get dispatched due to a token stall. Store queue resource stall. Applies to…
64 …p is valid but does not get dispatched due to a token stall. Load queue resource stall. Applies to…
70 …not get dispatched due to a token stall. Integer Physical Register File resource stall. Applies to…
76 … dispatch group is valid but does not get dispatched due to a token stall. SC AGU dispatch stall.",
/openbmc/linux/drivers/scsi/cxlflash/
H A Dcommon.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
33 #define CHAN2BANKPORT(_x) ((_x) & (CXLFLASH_NUM_FC_PORTS_PER_BANK - 1))
37 #define PORTNUM2CHAN(_x) ((_x) - 1) /* port number to channel */
108 * Each context has its own set of resource handles that is visible
149 bool ws_unmap; /* Write-same unmap supported */
169 /* As per the SISLITE spec the IOARCB EA has to be 16-byte aligned.
175 static inline struct afu_cmd *sc_to_afuc(struct scsi_cmnd *sc) in sc_to_afuc() argument
177 return PTR_ALIGN(scsi_cmd_priv(sc), __alignof__(struct afu_cmd)); in sc_to_afuc()
180 static inline struct afu_cmd *sc_to_afuci(struct scsi_cmnd *sc) in sc_to_afuci() argument
182 struct afu_cmd *afuc = sc_to_afuc(sc); in sc_to_afuci()
[all …]
/openbmc/linux/drivers/gpu/drm/exynos/
H A Dexynos_drm_fimc.c1 // SPDX-License-Identifier: GPL-2.0-or-later
26 #include "regs-fimc.h"
91 * @sc: scaler infomations.
108 struct fimc_scaler sc; member
115 return readl(ctx->regs + reg); in fimc_read()
120 writel(val, ctx->regs + reg); in fimc_write()
125 void __iomem *r = ctx->regs + reg; in fimc_set_bits()
132 void __iomem *r = ctx->regs + reg; in fimc_clear_bits()
186 DRM_DEV_DEBUG_KMS(ctx->dev, "enable[%d]\n", enable); in fimc_handle_jpeg()
201 DRM_DEV_DEBUG_KMS(ctx->dev, "enable[%d]\n", enable); in fimc_mask_irq()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-sunxi-nmi.c11 #define DRV_NAME "sunxi-nmi"
30 * For deprecated sun6i-a31-sc-nmi compatible.
99 struct irq_chip_type *ct = gc->chip_types; in sunxi_sc_nmi_set_type()
101 u32 ctrl_off = ct->regs.type; in sunxi_sc_nmi_set_type()
124 data->irq); in sunxi_sc_nmi_set_type()
125 return -EBADR; in sunxi_sc_nmi_set_type()
131 for (i = 0; i < gc->num_ct; i++, ct++) in sunxi_sc_nmi_set_type()
132 if (ct->type & flow_type) in sunxi_sc_nmi_set_type()
133 ctrl_off = ct->regs.type; in sunxi_sc_nmi_set_type()
158 return -ENOMEM; in sunxi_sc_nmi_irq_init()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ptp.c4 * Copyright (c) 2003-2017 Chelsio Communications, Inc. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
54 * cxgb4_ptp_is_ptp_tx - determine whether TX packet is PTP or not
63 return skb->len >= PTP_MIN_LENGTH && in cxgb4_ptp_is_ptp_tx()
64 skb->len <= PTP_IN_TRANSMIT_PACKET_MAXNUM && in cxgb4_ptp_is_ptp_tx()
65 likely(skb->protocol == htons(ETH_P_IP)) && in cxgb4_ptp_is_ptp_tx()
66 ip_hdr(skb)->protocol == IPPROTO_UDP && in cxgb4_ptp_is_ptp_tx()
67 uh->dest == htons(PTP_EVENT_PORT); in cxgb4_ptp_is_ptp_tx()
75 return (pi->ptp_enable && cxgb4_xmit_with_hwtstamp(skb) && in is_ptp_enabled()
[all …]
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Dsb1250-mac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
6 * This driver is designed for the Broadcom SiByte SOC built-in
48 /* A few user-configurable values which may be modified when a driver
116 sbmac_duplex_none = -1,
142 #define SBDMA_NEXTBUF(d,f) ((((d)->f+1) == (d)->sbdma_dscrtable_end) ? \
143 (d)->sbdma_dscrtable : (d)->f+1)
222 * Linux-specific things
232 * Controller-specific things
272 static int sbdma_add_rcvbuffer(struct sbmac_softc *sc, struct sbmacdma *d,
276 static void sbdma_fillring(struct sbmac_softc *sc, struct sbmacdma *d);
[all …]
/openbmc/linux/drivers/scsi/
H A Dxen-scsifront.c95 #define RSLT_RESET_ERR -1
98 struct scsi_cmnd *sc; member
139 info->wait_ring_available = 0; in scsifront_wake_up()
140 wake_up(&info->wq_sync); in scsifront_wake_up()
148 spin_lock_irqsave(&info->shadow_lock, flags); in scsifront_get_rqid()
150 free = find_first_bit(info->shadow_free_bitmap, VSCSIIF_MAX_REQS); in scsifront_get_rqid()
151 __clear_bit(free, info->shadow_free_bitmap); in scsifront_get_rqid()
153 spin_unlock_irqrestore(&info->shadow_lock, flags); in scsifront_get_rqid()
160 int empty = bitmap_empty(info->shadow_free_bitmap, VSCSIIF_MAX_REQS); in _scsifront_put_rqid()
162 __set_bit(id, info->shadow_free_bitmap); in _scsifront_put_rqid()
[all …]
/openbmc/linux/drivers/scsi/fnic/
H A Dfnic_scsi.c1 // SPDX-License-Identifier: GPL-2.0-only
96 struct scsi_cmnd *sc) in fnic_io_lock_hash() argument
98 u32 hash = scsi_cmd_to_rq(sc)->tag & (FNIC_IO_LOCKS - 1); in fnic_io_lock_hash()
100 return &fnic->io_req_lock[hash]; in fnic_io_lock_hash()
106 return &fnic->io_req_lock[tag & (FNIC_IO_LOCKS - 1)]; in fnic_io_lock_tag()
111 * also unmap and free the device-private scatter/gather list.
115 struct scsi_cmnd *sc) in fnic_release_ioreq_buf() argument
117 if (io_req->sgl_list_pa) in fnic_release_ioreq_buf()
118 dma_unmap_single(&fnic->pdev->dev, io_req->sgl_list_pa, in fnic_release_ioreq_buf()
119 sizeof(io_req->sgl_list[0]) * io_req->sgl_cnt, in fnic_release_ioreq_buf()
[all …]
/openbmc/linux/fs/gfs2/
H A Dsuper.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
4 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
25 #include <linux/backing-dev.h>
54 * gfs2_jindex_free - Clear all the journal index information
64 spin_lock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
65 list_add(&list, &sdp->sd_jindex_list); in gfs2_jindex_free()
66 list_del_init(&sdp->sd_jindex_list); in gfs2_jindex_free()
67 sdp->sd_journals = 0; in gfs2_jindex_free()
68 spin_unlock(&sdp->sd_jindex_spin); in gfs2_jindex_free()
[all …]
/openbmc/linux/tools/perf/
H A Dbuiltin-trace.c2 * builtin-trace.c
8 * event may be specified using --event.
38 #include "util/synthetic-events.h"
43 #include <subcmd/exec-cmd.h>
50 #include <subcmd/parse-options.h>
58 #include "trace-event.h"
59 #include "util/parse-events.h"
88 #include <traceevent/event-parse.h>
218 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \
231 memcpy(&value, sample->raw_data + field->offset, sizeof(value)); \
[all …]
/openbmc/linux/drivers/scsi/bnx2i/
H A Dbnx2i_iscsi.c4 * Copyright (c) 2006 - 2013 Broadcom Corporation
15 * Maintained by: QLogic-Storage-Upstream@qlogic.com
28 * Global endpoint resource info
38 if (!hba || !test_bit(ADAPTER_STATE_UP, &hba->adapter_state) || in bnx2i_adapter_ready()
39 test_bit(ADAPTER_STATE_GOING_DOWN, &hba->adapter_state) || in bnx2i_adapter_ready()
40 test_bit(ADAPTER_STATE_LINK_DOWN, &hba->adapter_state)) in bnx2i_adapter_ready()
41 retval = -EPERM; in bnx2i_adapter_ready()
46 * bnx2i_get_write_cmd_bd_idx - identifies various BD bookmarks
59 struct iscsi_bd *bd_tbl = cmd->io_tbl.bd_tbl; in bnx2i_get_write_cmd_bd_idx()
64 while (buf_off >= (cur_offset + bd_tbl->buffer_length)) { in bnx2i_get_write_cmd_bd_idx()
[all …]
/openbmc/linux/sound/soc/img/
H A Dimg-i2s-out.c1 // SPDX-License-Identifier: GPL-2.0-only
71 clk_disable_unprepare(i2s->clk_ref); in img_i2s_out_runtime_suspend()
72 clk_disable_unprepare(i2s->clk_sys); in img_i2s_out_runtime_suspend()
82 ret = clk_prepare_enable(i2s->clk_sys); in img_i2s_out_runtime_resume()
88 ret = clk_prepare_enable(i2s->clk_ref); in img_i2s_out_runtime_resume()
91 clk_disable_unprepare(i2s->clk_sys); in img_i2s_out_runtime_resume()
101 writel(val, i2s->base + reg); in img_i2s_out_writel()
106 return readl(i2s->base + reg); in img_i2s_out_readl()
112 writel(val, i2s->channel_base + (chan * IMG_I2S_OUT_CH_STRIDE) + reg); in img_i2s_out_ch_writel()
118 return readl(i2s->channel_base + (chan * IMG_I2S_OUT_CH_STRIDE) + reg); in img_i2s_out_ch_readl()
[all …]

12345