Home
last modified time | relevance | path

Searched refs:OCS_HW_Q_HASH_SIZE (Results 1 – 2 of 2) sorted by relevance

/freebsd-14-stable/sys/dev/ocs_fc/
HDocs_hw.h126 #define OCS_HW_Q_HASH_SIZE B32_NEXT_POWER_OF_2(OCS_MAX(OCS_HW_MAX_NUM_MQ, OCS_MAX(OCS_HW_MAX_NUM_RQ… macro
949 ocs_queue_hash_t cq_hash[OCS_HW_Q_HASH_SIZE];
950 ocs_queue_hash_t rq_hash[OCS_HW_Q_HASH_SIZE];
951 ocs_queue_hash_t wq_hash[OCS_HW_Q_HASH_SIZE];
HDocs_hw.c727 OCS_HW_MAX_NUM_CQ, OCS_HW_Q_HASH_SIZE); in ocs_hw_init()
731 OCS_HW_MAX_NUM_RQ, OCS_HW_Q_HASH_SIZE); in ocs_hw_init()
735 OCS_HW_MAX_NUM_WQ, OCS_HW_Q_HASH_SIZE); in ocs_hw_init()
8178 uint32_t hash_index = id & (OCS_HW_Q_HASH_SIZE - 1); in ocs_hw_queue_hash_add()
8185 hash_index = (hash_index + 1) & (OCS_HW_Q_HASH_SIZE - 1); in ocs_hw_queue_hash_add()
8206 int32_t index = id & (OCS_HW_Q_HASH_SIZE - 1); in ocs_hw_queue_hash_find()
8218 index = (index + 1) & (OCS_HW_Q_HASH_SIZE - 1); in ocs_hw_queue_hash_find()