Home
last modified time | relevance | path

Searched refs:pmb (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/pmdomain/bcm/
Dbcm-pmb.c85 struct bcm_pmb *pmb; member
90 static int bcm_pmb_bpcm_read(struct bcm_pmb *pmb, int bus, u8 device, in bcm_pmb_bpcm_read() argument
93 void __iomem *base = pmb->base + bus * 0x20; in bcm_pmb_bpcm_read()
97 spin_lock_irqsave(&pmb->lock, flags); in bcm_pmb_bpcm_read()
99 spin_unlock_irqrestore(&pmb->lock, flags); in bcm_pmb_bpcm_read()
102 *val = pmb->little_endian ? le32_to_cpu(*val) : be32_to_cpu(*val); in bcm_pmb_bpcm_read()
107 static int bcm_pmb_bpcm_write(struct bcm_pmb *pmb, int bus, u8 device, in bcm_pmb_bpcm_write() argument
110 void __iomem *base = pmb->base + bus * 0x20; in bcm_pmb_bpcm_write()
114 val = pmb->little_endian ? cpu_to_le32(val) : cpu_to_be32(val); in bcm_pmb_bpcm_write()
116 spin_lock_irqsave(&pmb->lock, flags); in bcm_pmb_bpcm_write()
[all …]
DMakefile2 obj-$(CONFIG_BCM_PMB) += bcm-pmb.o
/linux-6.6.21/Documentation/devicetree/bindings/power/
Dbrcm,bcm-pmb.yaml4 $id: http://devicetree.org/schemas/power/brcm,bcm-pmb.yaml#
18 - brcm,bcm4908-pmb
19 - brcm,bcm63138-pmb
30 description: cell specifies device ID (see bcm-pmb.h)
41 #include <dt-bindings/soc/bcm-pmb.h>
43 pmb: power-controller@802800e0 {
44 compatible = "brcm,bcm4908-pmb";
50 power-domains = <&pmb BCM_PMB_PCIE0>;
/linux-6.6.21/drivers/scsi/lpfc/
Dlpfc_mbox.c133 lpfc_dump_static_vport(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, in lpfc_dump_static_vport() argument
140 mb = &pmb->u.mb; in lpfc_dump_static_vport()
143 memset(pmb, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_dump_static_vport()
157 rc = lpfc_mbox_rsrc_prep(phba, pmb); in lpfc_dump_static_vport()
165 mp = pmb->ctx_buf; in lpfc_dump_static_vport()
181 lpfc_down_link(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_down_link() argument
184 memset(pmb, 0, sizeof(LPFC_MBOXQ_t)); in lpfc_down_link()
185 mb = &pmb->u.mb; in lpfc_down_link()
203 lpfc_dump_mem(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb, uint16_t offset, in lpfc_dump_mem() argument
209 mb = &pmb->u.mb; in lpfc_dump_mem()
[all …]
Dlpfc_vport.c120 LPFC_MBOXQ_t *pmb; in lpfc_vport_sparm() local
125 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_vport_sparm()
126 if (!pmb) { in lpfc_vport_sparm()
129 mb = &pmb->u.mb; in lpfc_vport_sparm()
131 rc = lpfc_read_sparam(phba, pmb, vport->vpi); in lpfc_vport_sparm()
133 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_vport_sparm()
146 pmb->vport = vport; in lpfc_vport_sparm()
147 rc = lpfc_sli_issue_mbox_wait(phba, pmb, phba->fc_ratov * 2); in lpfc_vport_sparm()
154 lpfc_mbox_rsrc_cleanup(phba, pmb, in lpfc_vport_sparm()
163 lpfc_mbox_rsrc_cleanup(phba, pmb, in lpfc_vport_sparm()
[all …]
Dlpfc_hbadisc.c1439 lpfc_mbx_cmpl_clear_la(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_clear_la() argument
1441 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_clear_la()
1444 MAILBOX_t *mb = &pmb->u.mb; in lpfc_mbx_cmpl_clear_la()
1472 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la()
1479 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_clear_la()
1501 lpfc_mbx_cmpl_local_config_link(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_local_config_link() argument
1503 struct lpfc_vport *vport = pmb->vport; in lpfc_mbx_cmpl_local_config_link()
1505 u16 status = pmb->u.mb.mbxStatus; in lpfc_mbx_cmpl_local_config_link()
1508 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_mbx_cmpl_local_config_link()
3437 lpfc_mbx_cmpl_read_sparam(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_read_sparam() argument
[all …]
Dlpfc_bsg.c3377 uint8_t *pmb, *pmb_buf; in lpfc_bsg_issue_mbox_cmpl() local
3385 pmb = (uint8_t *)&pmboxq->u.mb; in lpfc_bsg_issue_mbox_cmpl()
3387 memcpy(pmb_buf, pmb, sizeof(MAILBOX_t)); in lpfc_bsg_issue_mbox_cmpl()
3548 uint8_t *pmb, *pmb_buf; in lpfc_bsg_issue_mbox_ext_handle_job() local
3573 pmb = (uint8_t *)&pmboxq->u.mb; in lpfc_bsg_issue_mbox_ext_handle_job()
3576 memcpy(pmb_buf, pmb, sizeof(MAILBOX_t)); in lpfc_bsg_issue_mbox_ext_handle_job()
3821 MAILBOX_t *pmb; in lpfc_bsg_sli_cfg_read_cmd_ext() local
3925 pmb = &pmboxq->u.mb; in lpfc_bsg_sli_cfg_read_cmd_ext()
3927 memcpy(pmb, pmbx, sizeof(*pmb)); in lpfc_bsg_sli_cfg_read_cmd_ext()
3928 pmb->mbxOwner = OWN_HOST; in lpfc_bsg_sli_cfg_read_cmd_ext()
[all …]
Dlpfc_init.c125 LPFC_MBOXQ_t *pmb; in lpfc_config_port_prep() local
133 pmb = mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_config_port_prep()
134 if (!pmb) { in lpfc_config_port_prep()
139 mb = &pmb->u.mb; in lpfc_config_port_prep()
151 lpfc_read_nv(phba, pmb); in lpfc_config_port_prep()
157 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep()
165 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
181 lpfc_read_rev(phba, pmb); in lpfc_config_port_prep()
182 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_config_port_prep()
188 mempool_free( pmb, phba->mbox_mem_pool); in lpfc_config_port_prep()
[all …]
Dlpfc_sli.c1677 LPFC_MBOXQ_t *pmb; in lpfc_sli_ring_map() local
1681 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, GFP_KERNEL); in lpfc_sli_ring_map()
1682 if (!pmb) in lpfc_sli_ring_map()
1684 pmbox = &pmb->u.mb; in lpfc_sli_ring_map()
1687 lpfc_config_ring(phba, i, pmb); in lpfc_sli_ring_map()
1688 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_POLL); in lpfc_sli_ring_map()
1701 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_sli_ring_map()
2872 lpfc_sli_def_mbox_cmpl(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_sli_def_mbox_cmpl() argument
2874 struct lpfc_vport *vport = pmb->vport; in lpfc_sli_def_mbox_cmpl()
2886 pmb->u.mb.mbxCommand == MBX_REG_LOGIN64 && in lpfc_sli_def_mbox_cmpl()
[all …]
Dlpfc_attr.c2131 MAILBOX_t *pmb; in lpfc_get_hba_info() local
2154 pmb = &pmboxq->u.mb; in lpfc_get_hba_info()
2155 pmb->mbxCommand = MBX_READ_CONFIG; in lpfc_get_hba_info()
2156 pmb->mbxOwner = OWN_HOST; in lpfc_get_hba_info()
2232 *mrpi = pmb->un.varRdConfig.max_rpi; in lpfc_get_hba_info()
2234 *arpi = pmb->un.varRdConfig.avail_rpi; in lpfc_get_hba_info()
2236 *mxri = pmb->un.varRdConfig.max_xri; in lpfc_get_hba_info()
2238 *axri = pmb->un.varRdConfig.avail_xri; in lpfc_get_hba_info()
2240 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
2244 *avpi = pmb->un.varRdConfig.avail_vpi; in lpfc_get_hba_info()
[all …]
Dlpfc_nportdisc.c1081 LPFC_MBOXQ_t *pmb; in lpfc_release_rpi() local
1098 pmb = (LPFC_MBOXQ_t *) mempool_alloc(phba->mbox_mem_pool, in lpfc_release_rpi()
1100 if (!pmb) in lpfc_release_rpi()
1104 lpfc_unreg_login(phba, vport->vpi, rpi, pmb); in lpfc_release_rpi()
1105 pmb->mbox_cmpl = lpfc_sli_def_mbox_cmpl; in lpfc_release_rpi()
1106 pmb->vport = vport; in lpfc_release_rpi()
1107 pmb->ctx_ndlp = lpfc_nlp_get(ndlp); in lpfc_release_rpi()
1108 if (!pmb->ctx_ndlp) { in lpfc_release_rpi()
1109 mempool_free(pmb, phba->mbox_mem_pool); in lpfc_release_rpi()
1122 rc = lpfc_sli_issue_mbox(phba, pmb, MBX_NOWAIT); in lpfc_release_rpi()
[all …]
Dlpfc_els.c5279 lpfc_mbx_cmpl_dflt_rpi(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_mbx_cmpl_dflt_rpi() argument
5281 struct lpfc_nodelist *ndlp = pmb->ctx_ndlp; in lpfc_mbx_cmpl_dflt_rpi()
5282 u32 mbx_flag = pmb->mbox_flag; in lpfc_mbx_cmpl_dflt_rpi()
5283 u32 mbx_cmd = pmb->u.mb.mbxCommand; in lpfc_mbx_cmpl_dflt_rpi()
5291 mbx_flag, pmb); in lpfc_mbx_cmpl_dflt_rpi()
5307 lpfc_mbox_rsrc_cleanup(phba, pmb, MBOX_THD_UNLOCKED); in lpfc_mbx_cmpl_dflt_rpi()
7492 lpfc_els_lcb_rsp(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb) in lpfc_els_lcb_rsp() argument
7507 mb = &pmb->u.mb; in lpfc_els_lcb_rsp()
7508 lcb_context = (struct lpfc_lcb_context *)pmb->ctx_ndlp; in lpfc_els_lcb_rsp()
7510 pmb->ctx_ndlp = NULL; in lpfc_els_lcb_rsp()
[all …]
Dlpfc_crtn.h110 void lpfc_mbx_cmpl_fc_reg_login(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb);
607 void lpfc_mbx_cmpl_rdp_page_a0(struct lpfc_hba *phba, LPFC_MBOXQ_t *pmb);
/linux-6.6.21/Documentation/devicetree/bindings/reset/
Dbrcm,bcm63138-pmb.txt9 - compatible: must be "brcm,bcm63138-pmb"
16 compatible = "brcm,bcm63138-pmb";
/linux-6.6.21/arch/arm64/boot/dts/broadcom/bcmbca/
Dbcm4908.dtsi6 #include <dt-bindings/soc/bcm-pmb.h>
138 power-domains = <&pmb BCM_PMB_HOST_USB>;
311 pmb: power-controller@2800c0 { label
312 compatible = "brcm,bcm4908-pmb";
/linux-6.6.21/arch/arm/boot/dts/broadcom/
Dbcm63138.dtsi139 compatible = "brcm,bcm63138-pmb";
145 compatible = "brcm,bcm63138-pmb";
/linux-6.6.21/arch/sh/mm/
DMakefile39 obj-$(CONFIG_PMB) += pmb.o
/linux-6.6.21/Documentation/devicetree/bindings/arm/bcm/
Dbrcm,bcm63138.txt13 defined in reset/brcm,bcm63138-pmb.txt for this secondary CPU, and an
/linux-6.6.21/arch/sh/configs/
Dsdk7786_defconfig71 …printk=sh-sci.1,115200 root=/dev/sda1 nmi_debug=state,debounce rootdelay=5 pmb=iomap ignore_loglev…
/linux-6.6.21/Documentation/scsi/
DChangeLog.lpfc331 lpfc_sli_handle_mb_event, pmb->context1 points to a waitq. Do
617 * Grab lock before calling lpfc_sli_issue_mbox(phba, pmb,
/linux-6.6.21/
DMAINTAINERS4269 F: drivers/pmdomain/bcm/bcm-pmb.c
4270 F: include/dt-bindings/soc/bcm-pmb.h