Searched refs:sem_mask (Results 1 – 5 of 5) sorted by relevance
/linux-2.6.39/drivers/scsi/qla4xxx/ |
D | ql4_nvram.c | 182 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_spinlock() argument 189 "0x%x\n", ha->host_no, sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 192 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_spinlock() 195 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_spinlock() 198 sem_mask, sem_bits)); in ql4xxx_sem_spinlock() 206 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask) in ql4xxx_sem_unlock() argument 211 writel(sem_mask, isp_semaphore(ha)); in ql4xxx_sem_unlock() 216 sem_mask)); in ql4xxx_sem_unlock() 219 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits) in ql4xxx_sem_lock() argument 225 writel((sem_mask | sem_bits), isp_semaphore(ha)); in ql4xxx_sem_lock() [all …]
|
D | ql4_def.h | 695 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits); 696 void ql4xxx_sem_unlock(struct scsi_qla_host * ha, u32 sem_mask); 697 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
|
/linux-2.6.39/drivers/net/ |
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()
|
/linux-2.6.39/drivers/net/qlge/ |
D | qlge_main.c | 104 static int ql_sem_trylock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_trylock() argument 108 switch (sem_mask) { in ql_sem_trylock() 138 ql_write32(qdev, SEM, sem_bits | sem_mask); in ql_sem_trylock() 142 int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_spinlock() argument 146 if (!ql_sem_trylock(qdev, sem_mask)) in ql_sem_spinlock() 153 void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask) in ql_sem_unlock() argument 155 ql_write32(qdev, SEM, sem_mask); in ql_sem_unlock()
|
D | qlge.h | 2199 extern int ql_sem_spinlock(struct ql_adapter *qdev, u32 sem_mask); 2200 extern void ql_sem_unlock(struct ql_adapter *qdev, u32 sem_mask);
|