Home
last modified time | relevance | path

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

/drivers/scsi/qla4xxx/
Dql4_nvram.c203 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()
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()
249 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_lock()
252 sem_mask, sem_bits, value)); in ql4xxx_sem_lock()
Dql4_def.h989 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
991 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
/drivers/net/ethernet/qlogic/qlge/
Dqlge_main.c109 u32 sem_bits = 0; in ql_sem_trylock() local
113 sem_bits = SEM_SET << SEM_XGMAC0_SHIFT; in ql_sem_trylock()
116 sem_bits = SEM_SET << SEM_XGMAC1_SHIFT; in ql_sem_trylock()
119 sem_bits = SEM_SET << SEM_ICB_SHIFT; in ql_sem_trylock()
122 sem_bits = SEM_SET << SEM_MAC_ADDR_SHIFT; in ql_sem_trylock()
125 sem_bits = SEM_SET << SEM_FLASH_SHIFT; in ql_sem_trylock()
128 sem_bits = SEM_SET << SEM_PROBE_SHIFT; in ql_sem_trylock()
131 sem_bits = SEM_SET << SEM_RT_IDX_SHIFT; in ql_sem_trylock()
134 sem_bits = SEM_SET << SEM_PROC_REG_SHIFT; in ql_sem_trylock()
141 ql_write32(qdev, SEM, sem_bits | sem_mask); in ql_sem_trylock()
[all …]
/drivers/net/ethernet/qlogic/
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()