Searched refs:sem_mask (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/drivers/scsi/qla4xxx/ |
D | ql4_nvram.c | 202 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_spinlock() argument 209 "0x%x\n", ha->host_no, sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 212 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_spinlock() 215 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_spinlock() 218 sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 226 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask) in ql4xxx_sem_unlock() argument 231 writel(sem_mask, isp_semaphore(ha)); in ql4xxx_sem_unlock() 236 sem_mask)); in ql4xxx_sem_unlock() 239 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_lock() argument 245 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_lock() [all …]
|
D | ql4_def.h | 982 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits); 983 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask); 984 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
|
/Linux-v6.6/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 104 u32 sem_mask, u32 sem_bits) in ql_sem_spinlock() argument 112 writel((sem_mask | sem_bits), in ql_sem_spinlock() 115 if ((value & (sem_mask >> 16)) == sem_bits) in ql_sem_spinlock() 122 static void ql_sem_unlock(struct ql3_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 126 writel(sem_mask, &port_regs->CommonRegs.semaphoreReg); in ql_sem_unlock() 130 static int ql_sem_lock(struct ql3_adapter *qdev, u32 sem_mask, u32 sem_bits) in ql_sem_lock() argument 136 writel((sem_mask | sem_bits), &port_regs->CommonRegs.semaphoreReg); in ql_sem_lock() 138 return ((value & (sem_mask >> 16)) == sem_bits); in ql_sem_lock()
|
/Linux-v6.6/drivers/staging/qlge/ |
D | qlge_main.c | 102 static int qlge_sem_trylock(struct qlge_adapter *qdev, u32 sem_mask) in qlge_sem_trylock() argument 106 switch (sem_mask) { in qlge_sem_trylock() 136 qlge_write32(qdev, SEM, sem_bits | sem_mask); in qlge_sem_trylock() 140 int qlge_sem_spinlock(struct qlge_adapter *qdev, u32 sem_mask) in qlge_sem_spinlock() argument 145 if (!qlge_sem_trylock(qdev, sem_mask)) in qlge_sem_spinlock() 152 void qlge_sem_unlock(struct qlge_adapter *qdev, u32 sem_mask) in qlge_sem_unlock() argument 154 qlge_write32(qdev, SEM, sem_mask); in qlge_sem_unlock()
|
D | qlge.h | 2248 int qlge_sem_spinlock(struct qlge_adapter *qdev, u32 sem_mask); 2249 void qlge_sem_unlock(struct qlge_adapter *qdev, u32 sem_mask);
|