Home
last modified time | relevance | path

Searched refs:doorbell (Results 1 – 25 of 59) sorted by relevance

123

/drivers/scsi/esas2r/
Desas2r_int.c48 static void esas2r_doorbell_interrupt(struct esas2r_adapter *a, u32 doorbell);
59 u32 doorbell; in esas2r_polled_interrupt() local
76 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_polled_interrupt()
77 if (doorbell != 0) in esas2r_polled_interrupt()
78 esas2r_doorbell_interrupt(a, doorbell); in esas2r_polled_interrupt()
107 u32 doorbell; in esas2r_adapter_interrupt() local
118 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_adapter_interrupt()
119 if (doorbell != 0) in esas2r_adapter_interrupt()
120 esas2r_doorbell_interrupt(a, doorbell); in esas2r_adapter_interrupt()
135 u32 doorbell; in esas2r_msi_interrupt() local
[all …]
Desas2r_init.c1013 u32 doorbell; in esas2r_check_adapter() local
1039 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_check_adapter()
1040 if (doorbell == 0xFFFFFFFF) { in esas2r_check_adapter()
1048 } else if (doorbell & DRBL_FORCE_INT) { in esas2r_check_adapter()
1049 u32 ver = (doorbell & DRBL_FW_VER_MSK); in esas2r_check_adapter()
1056 doorbell); in esas2r_check_adapter()
1091 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_check_adapter()
1092 if (doorbell & DRBL_MSG_IFC_DOWN) { in esas2r_check_adapter()
1094 doorbell); in esas2r_check_adapter()
1180 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_check_adapter()
[all …]
Desas2r_io.c679 u32 doorbell; in esas2r_handle_pending_reset() local
681 doorbell = esas2r_read_register_dword(a, MU_DOORBELL_OUT); in esas2r_handle_pending_reset()
682 if (doorbell == 0xFFFFFFFF || !(doorbell & DRBL_FORCE_INT)) { in esas2r_handle_pending_reset()
685 u32 ver = (doorbell & DRBL_FW_VER_MSK); in esas2r_handle_pending_reset()
689 doorbell); in esas2r_handle_pending_reset()
/drivers/gpu/drm/radeon/
Dradeon_device.c317 rdev->doorbell.base = pci_resource_start(rdev->pdev, 2); in radeon_doorbell_init()
318 rdev->doorbell.size = pci_resource_len(rdev->pdev, 2); in radeon_doorbell_init()
320 rdev->doorbell.num_doorbells = min_t(u32, rdev->doorbell.size / sizeof(u32), RADEON_MAX_DOORBELLS); in radeon_doorbell_init()
321 if (rdev->doorbell.num_doorbells == 0) in radeon_doorbell_init()
324 rdev->doorbell.ptr = ioremap(rdev->doorbell.base, rdev->doorbell.num_doorbells * sizeof(u32)); in radeon_doorbell_init()
325 if (rdev->doorbell.ptr == NULL) { in radeon_doorbell_init()
328 DRM_INFO("doorbell mmio base: 0x%08X\n", (uint32_t)rdev->doorbell.base); in radeon_doorbell_init()
329 DRM_INFO("doorbell mmio size: %u\n", (unsigned)rdev->doorbell.size); in radeon_doorbell_init()
331 memset(&rdev->doorbell.used, 0, sizeof(rdev->doorbell.used)); in radeon_doorbell_init()
345 iounmap(rdev->doorbell.ptr); in radeon_doorbell_fini()
[all …]
/drivers/misc/mic/card/
Dmic_x100.c60 void mic_send_intr(struct mic_device *mdev, int doorbell) in mic_send_intr() argument
64 if (doorbell > MIC_X100_MAX_DOORBELL_IDX) in mic_send_intr()
70 (MIC_X100_SBOX_SDBIC0 + (4 * doorbell))); in mic_send_intr()
76 static void mic_x100_send_sbox_intr(struct mic_mw *mw, int doorbell) in mic_x100_send_sbox_intr() argument
78 u64 apic_icr_offset = MIC_X100_SBOX_APICICR0 + doorbell * 8; in mic_x100_send_sbox_intr()
95 static void mic_x100_send_rdmasr_intr(struct mic_mw *mw, int doorbell) in mic_x100_send_rdmasr_intr() argument
97 int rdmasr_offset = MIC_X100_SBOX_RDMASR0 + (doorbell << 2); in mic_x100_send_rdmasr_intr()
Dmic_device.h134 void mic_send_intr(struct mic_device *mdev, int doorbell);
135 void mic_send_p2p_intr(int doorbell, struct mic_mw *mw);
/drivers/cpufreq/
Dpcc-cpufreq.c97 static struct acpi_generic_address doorbell; variable
123 acpi_read(&doorbell_value, &doorbell); in pcc_cmd()
125 &doorbell); in pcc_cmd()
487 doorbell.space_id = reg_resource->space_id; in pcc_cpufreq_probe()
488 doorbell.bit_width = reg_resource->bit_width; in pcc_cpufreq_probe()
489 doorbell.bit_offset = reg_resource->bit_offset; in pcc_cpufreq_probe()
490 doorbell.access_width = 64; in pcc_cpufreq_probe()
491 doorbell.address = reg_resource->address; in pcc_cpufreq_probe()
495 doorbell.space_id, doorbell.bit_width, doorbell.bit_offset, in pcc_cpufreq_probe()
496 doorbell.access_width, reg_resource->address); in pcc_cpufreq_probe()
/drivers/misc/mic/host/
Dmic_x100.c129 int doorbell) in mic_x100_send_sbox_intr() argument
132 u64 apic_icr_offset = MIC_X100_SBOX_APICICR0 + doorbell * 8; in mic_x100_send_sbox_intr()
150 int doorbell) in mic_x100_send_rdmasr_intr() argument
152 int rdmasr_offset = MIC_X100_SBOX_RDMASR0 + (doorbell << 2); in mic_x100_send_rdmasr_intr()
164 static void mic_x100_send_intr(struct mic_device *mdev, int doorbell) in mic_x100_send_intr() argument
167 if (doorbell < MIC_X100_NUM_SBOX_IRQ) { in mic_x100_send_intr()
168 mic_x100_send_sbox_intr(mdev, doorbell); in mic_x100_send_intr()
170 rdmasr_db = doorbell - MIC_X100_NUM_SBOX_IRQ; in mic_x100_send_intr()
Dmic_device.h129 void (*send_intr)(struct mic_device *mdev, int doorbell);
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_device.c141 if (index < adev->doorbell.num_doorbells) { in amdgpu_mm_rdoorbell()
142 return readl(adev->doorbell.ptr + index); in amdgpu_mm_rdoorbell()
161 if (index < adev->doorbell.num_doorbells) { in amdgpu_mm_wdoorbell()
162 writel(v, adev->doorbell.ptr + index); in amdgpu_mm_wdoorbell()
345 adev->doorbell.base = pci_resource_start(adev->pdev, 2); in amdgpu_doorbell_init()
346 adev->doorbell.size = pci_resource_len(adev->pdev, 2); in amdgpu_doorbell_init()
348 adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32), in amdgpu_doorbell_init()
350 if (adev->doorbell.num_doorbells == 0) in amdgpu_doorbell_init()
353 adev->doorbell.ptr = ioremap(adev->doorbell.base, adev->doorbell.num_doorbells * sizeof(u32)); in amdgpu_doorbell_init()
354 if (adev->doorbell.ptr == NULL) { in amdgpu_doorbell_init()
[all …]
Dsdma_v3_0.c582 u32 doorbell; in sdma_v3_0_gfx_resume() local
630 doorbell = RREG32(mmSDMA0_GFX_DOORBELL + sdma_offsets[i]); in sdma_v3_0_gfx_resume()
633 doorbell = REG_SET_FIELD(doorbell, SDMA0_GFX_DOORBELL, in sdma_v3_0_gfx_resume()
635 doorbell = REG_SET_FIELD(doorbell, SDMA0_GFX_DOORBELL, ENABLE, 1); in sdma_v3_0_gfx_resume()
637 doorbell = REG_SET_FIELD(doorbell, SDMA0_GFX_DOORBELL, ENABLE, 0); in sdma_v3_0_gfx_resume()
639 WREG32(mmSDMA0_GFX_DOORBELL + sdma_offsets[i], doorbell); in sdma_v3_0_gfx_resume()
/drivers/mailbox/
Dpcc.c184 struct acpi_generic_address doorbell; in pcc_send_data() local
189 doorbell = pcct_ss->doorbell_register; in pcc_send_data()
194 acpi_read(&doorbell_val, &doorbell); in pcc_send_data()
196 &doorbell); in pcc_send_data()
/drivers/virt/
Dfsl_hypervisor.c327 param.ret = ev_doorbell_send(param.doorbell); in ioctl_doorbell()
486 uint32_t doorbell; /* The doorbell handle */ member
493 static void fsl_hv_queue_doorbell(uint32_t doorbell) in fsl_hv_queue_doorbell() argument
503 dbq->q[dbq->tail] = doorbell; in fsl_hv_queue_doorbell()
561 fsl_hv_queue_doorbell(dbisr->doorbell); in fsl_hv_state_change_isr()
860 dbisr->doorbell = be32_to_cpup(handle); in fsl_hypervisor_init()
899 dbisr->doorbell); in fsl_hypervisor_init()
DKconfig28 receiving the shutdown doorbell from a manager partition.
/drivers/gpu/drm/i915/
Di915_guc_submission.c185 struct guc_doorbell_info *doorbell; in guc_init_doorbell() local
189 doorbell = base + client->doorbell_offset; in guc_init_doorbell()
191 doorbell->db_status = 1; in guc_init_doorbell()
192 doorbell->cookie = 0; in guc_init_doorbell()
259 struct guc_doorbell_info *doorbell; in guc_disable_doorbell() local
265 doorbell = base + client->doorbell_offset; in guc_disable_doorbell()
267 doorbell->db_status = 0; in guc_disable_doorbell()
/drivers/macintosh/
Dsmu.c77 int doorbell; /* doorbell gpio */ member
156 pmac_do_feature_call(PMAC_FTR_WRITE_GPIO, NULL, smu->doorbell, 4); in smu_start_cmd()
174 gpio = pmac_do_feature_call(PMAC_FTR_READ_GPIO, NULL, smu->doorbell); in smu_db_intr()
326 gpio = pmac_do_feature_call(PMAC_FTR_READ_GPIO, NULL, smu->doorbell); in smu_poll()
520 smu->doorbell = *data; in smu_init()
521 if (smu->doorbell < 0x50) in smu_init()
522 smu->doorbell += 0x50; in smu_init()
/drivers/infiniband/hw/mlx5/
DMakefile3 mlx5_ib-y := main.o cq.o doorbell.o qp.o mem.o srq.o mr.o ah.o mad.o
/drivers/infiniband/hw/mlx4/
DMakefile3 mlx4_ib-y := ah.o cq.o doorbell.o mad.o main.o mr.o qp.o srq.o mcg.o cm.o alias_GUID.o sysfs.o
/drivers/scsi/be2iscsi/
Dbe_main.c1795 u32 doorbell = 0; in hwi_post_async_buffers() local
1858 doorbell |= ring_id & DB_DEF_PDU_RING_ID_MASK; in hwi_post_async_buffers()
1859 doorbell |= 1 << DB_DEF_PDU_REARM_SHIFT; in hwi_post_async_buffers()
1860 doorbell |= 0 << DB_DEF_PDU_EVENT_SHIFT; in hwi_post_async_buffers()
1861 doorbell |= (writables & DB_DEF_PDU_CQPROC_MASK) in hwi_post_async_buffers()
1864 iowrite32(doorbell, phba->db_va + doorbell_offset); in hwi_post_async_buffers()
4688 u32 doorbell = 0; in beiscsi_offload_connection() local
4714 doorbell |= beiscsi_conn->beiscsi_conn_cid & DB_WRB_POST_CID_MASK; in beiscsi_offload_connection()
4715 doorbell |= (pwrb_handle->wrb_index & DB_DEF_PDU_WRB_INDEX_MASK) in beiscsi_offload_connection()
4717 doorbell |= 1 << DB_DEF_PDU_NUM_POSTED_SHIFT; in beiscsi_offload_connection()
[all …]
/drivers/ntb/test/
DKconfig13 This is a simple debugging driver that enables the doorbell and
/drivers/target/sbp/
Dsbp_target.c759 agent->doorbell = false; in tgt_agent_rw_orb_pointer()
794 agent->doorbell = true; in tgt_agent_rw_doorbell()
950 bool doorbell = agent->doorbell; in tgt_agent_fetch_work() local
1005 if (tgt_agent_check_active(agent) && !doorbell) { in tgt_agent_fetch_work()
1014 doorbell = agent->doorbell = false; in tgt_agent_fetch_work()
1046 agent->doorbell = false; in sbp_target_agent_register()
/drivers/infiniband/hw/cxgb3/
Dcxio_wr.h54 static inline void ring_doorbell(void __iomem *doorbell, u32 qpid) in ring_doorbell() argument
56 writel(((1<<31) | qpid), doorbell); in ring_doorbell()
710 void __iomem *doorbell; /* kernel db */ member
/drivers/net/ethernet/mellanox/mlx5/core/
Deq.c190 __be32 __iomem *addr = eq->doorbell + (arm ? 0 : 2); in eq_update_ci()
387 eq->doorbell = uar->map + MLX5_EQ_DOORBEL_OFFSET; in mlx5_create_map_eq()
/drivers/scsi/mpt3sas/
Dmpt3sas_base.c157 u32 doorbell; in _base_fault_reset_work() local
167 doorbell = mpt3sas_base_get_iocstate(ioc, 0); in _base_fault_reset_work()
168 if ((doorbell & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_MASK) { in _base_fault_reset_work()
215 if ((doorbell & MPI2_IOC_STATE_MASK) != MPI2_IOC_STATE_OPERATIONAL) { in _base_fault_reset_work()
220 doorbell = mpt3sas_base_get_iocstate(ioc, 0); in _base_fault_reset_work()
221 if ((doorbell & MPI2_IOC_STATE_MASK) == MPI2_IOC_STATE_FAULT) in _base_fault_reset_work()
222 mpt3sas_base_fault_info(ioc, doorbell & in _base_fault_reset_work()
224 if (rc && (doorbell & MPI2_IOC_STATE_MASK) != in _base_fault_reset_work()
324 u32 doorbell; in mpt3sas_halt_firmware() local
331 doorbell = readl(&ioc->chip->Doorbell); in mpt3sas_halt_firmware()
[all …]
/drivers/scsi/lpfc/
Dlpfc_sli.c99 struct lpfc_register doorbell; in lpfc_sli4_wq_put() local
132 doorbell.word0 = 0; in lpfc_sli4_wq_put()
134 bf_set(lpfc_wq_db_list_fm_num_posted, &doorbell, 1); in lpfc_sli4_wq_put()
135 bf_set(lpfc_wq_db_list_fm_index, &doorbell, host_index); in lpfc_sli4_wq_put()
136 bf_set(lpfc_wq_db_list_fm_id, &doorbell, q->queue_id); in lpfc_sli4_wq_put()
138 bf_set(lpfc_wq_db_ring_fm_num_posted, &doorbell, 1); in lpfc_sli4_wq_put()
139 bf_set(lpfc_wq_db_ring_fm_id, &doorbell, q->queue_id); in lpfc_sli4_wq_put()
143 writel(doorbell.word0, q->db_regaddr); in lpfc_sli4_wq_put()
193 struct lpfc_register doorbell; in lpfc_sli4_mq_put() local
211 doorbell.word0 = 0; in lpfc_sli4_mq_put()
[all …]

123