Home
last modified time | relevance | path

Searched refs:sem_bits (Results 1 – 4 of 4) sorted by relevance

/linux-2.6.39/drivers/scsi/qla4xxx/
Dql4_nvram.c182 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()
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()
228 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_lock()
231 sem_mask, sem_bits, value)); in ql4xxx_sem_lock()
Dql4_def.h695 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
697 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
/linux-2.6.39/drivers/net/qlge/
Dqlge_main.c106 u32 sem_bits = 0; in ql_sem_trylock() local
110 sem_bits = SEM_SET << SEM_XGMAC0_SHIFT; in ql_sem_trylock()
113 sem_bits = SEM_SET << SEM_XGMAC1_SHIFT; in ql_sem_trylock()
116 sem_bits = SEM_SET << SEM_ICB_SHIFT; in ql_sem_trylock()
119 sem_bits = SEM_SET << SEM_MAC_ADDR_SHIFT; in ql_sem_trylock()
122 sem_bits = SEM_SET << SEM_FLASH_SHIFT; in ql_sem_trylock()
125 sem_bits = SEM_SET << SEM_PROBE_SHIFT; in ql_sem_trylock()
128 sem_bits = SEM_SET << SEM_RT_IDX_SHIFT; in ql_sem_trylock()
131 sem_bits = SEM_SET << SEM_PROC_REG_SHIFT; in ql_sem_trylock()
138 ql_write32(qdev, SEM, sem_bits | sem_mask); in ql_sem_trylock()
[all …]
/linux-2.6.39/drivers/net/
Dqla3xxx.c105 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()
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()