Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/scsi/qla4xxx/
Dql4_nvram.c202 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()
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()
248 if ((value & (sem_mask >> 16)) == sem_bits) { in ql4xxx_sem_lock()
251 sem_mask, sem_bits, value)); in ql4xxx_sem_lock()
Dql4_def.h983 int ql4xxx_sem_spinlock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
985 int ql4xxx_sem_lock(struct scsi_qla_host * ha, u32 sem_mask, u32 sem_bits);
/linux-6.1.9/drivers/staging/qlge/
Dqlge_main.c104 u32 sem_bits = 0; in qlge_sem_trylock() local
108 sem_bits = SEM_SET << SEM_XGMAC0_SHIFT; in qlge_sem_trylock()
111 sem_bits = SEM_SET << SEM_XGMAC1_SHIFT; in qlge_sem_trylock()
114 sem_bits = SEM_SET << SEM_ICB_SHIFT; in qlge_sem_trylock()
117 sem_bits = SEM_SET << SEM_MAC_ADDR_SHIFT; in qlge_sem_trylock()
120 sem_bits = SEM_SET << SEM_FLASH_SHIFT; in qlge_sem_trylock()
123 sem_bits = SEM_SET << SEM_PROBE_SHIFT; in qlge_sem_trylock()
126 sem_bits = SEM_SET << SEM_RT_IDX_SHIFT; in qlge_sem_trylock()
129 sem_bits = SEM_SET << SEM_PROC_REG_SHIFT; in qlge_sem_trylock()
136 qlge_write32(qdev, SEM, sem_bits | sem_mask); in qlge_sem_trylock()
[all …]
/linux-6.1.9/drivers/net/ethernet/qlogic/
Dqla3xxx.c104 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()
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()