Searched refs:sem_mask (Results 1 – 5 of 5) sorted by relevance
/drivers/scsi/qla4xxx/ |
D | ql4_nvram.c | 203 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_spinlock() argument 210 "0x%x\n", ha->host_no, sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 213 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_spinlock() 216 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_spinlock() 219 sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 227 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask) in ql4xxx_sem_unlock() argument 232 writel(sem_mask, isp_semaphore(ha)); in ql4xxx_sem_unlock() 237 sem_mask)); in ql4xxx_sem_unlock() 240 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_lock() argument 246 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_lock() [all …]
|
D | ql4_def.h | 989 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits); 990 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask); 991 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
|
/drivers/net/ethernet/qlogic/ |
D | qla3xxx.c | 105 u32 sem_mask, u32 sem_bits) in ql_sem_spinlock() argument 113 writel((sem_mask | sem_bits), in ql_sem_spinlock() 116 if ((value & (sem_mask >> 16)) == sem_bits) in ql_sem_spinlock() 123 static void ql_sem_unlock(struct ql3_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 127 writel(sem_mask, &port_regs->CommonRegs.semaphoreReg); in ql_sem_unlock() 131 static int ql_sem_lock(struct ql3_adapter *qdev, u32 sem_mask, u32 sem_bits) in ql_sem_lock() argument 137 writel((sem_mask | sem_bits), &port_regs->CommonRegs.semaphoreReg); in ql_sem_lock() 139 return ((value & (sem_mask >> 16)) == sem_bits); in ql_sem_lock()
|
/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 107 static int ql_sem_trylock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_trylock() argument 111 switch (sem_mask) { in ql_sem_trylock() 141 ql_write32(qdev, SEM, sem_bits | sem_mask); in ql_sem_trylock() 145 int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_spinlock() argument 149 if (!ql_sem_trylock(qdev, sem_mask)) in ql_sem_spinlock() 156 void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 158 ql_write32(qdev, SEM, sem_mask); in ql_sem_unlock()
|
D | qlge.h | 2209 int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask); 2210 void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask);
|