Lines Matching +full:mdeu +full:- +full:b

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (C) 2008-2009 Semihalf, Piotr Ziecik
214 mtx_lock(&(sc)->sc_ ## what ## _lock)
216 mtx_unlock(&(sc)->sc_ ## what ## _lock)
218 mtx_assert(&(sc)->sc_ ## what ## _lock, MA_OWNED)
222 bus_space_read_8((sc)->sc_bas.bst, (sc)->sc_bas.bsh, (reg))
224 bus_space_write_8((sc)->sc_bas.bst, (sc)->sc_bas.bsh, (reg), (val))
228 (((sc)->cnt) = ((wrap) - 1))
230 ((sc)->cnt = (((sc)->cnt) + (val)) & ((wrap) - 1))
234 SEC_ADD(sc, cnt, wrap, -1)
236 ((sc)->tab[SEC_INC(sc, cnt, wrap)])
238 ((sc)->tab[SEC_INC(sc, cnt, wrap)] = val)
269 (((sc)->sc_free_desc_put_cnt - (sc)->sc_free_desc_get_cnt - 1) \
270 & (SEC_DESCRIPTORS - 1))
273 (((sc)->sc_ready_desc_put_cnt - (sc)->sc_ready_desc_get_cnt) & \
274 (SEC_DESCRIPTORS - 1))
277 (((sc)->sc_queued_desc_put_cnt - (sc)->sc_queued_desc_get_cnt) \
278 & (SEC_DESCRIPTORS - 1))
281 sec_sync_dma_mem(&((sc)->sc_desc_dmem), (mode)); \
282 sec_sync_dma_mem(&((sc)->sc_lt_dmem), (mode)); \
288 sec_sync_dma_mem(&((desc)->sd_ptr_dmem[i]), (mode)); \
294 sec_free_dma_mem(&(desc)->sd_ptr_dmem[i]); \
298 SEC_PUT_BACK_LT(sc, (desc)->sd_lt_used)
301 SEC_FREE_LT(sc, (desc)->sd_lt_used)
308 SEC_ADD(sc, sc_lt_alloc_cnt, SEC_LT_ENTRIES, -(num))
314 (((sc)->sc_lt_free_cnt - (sc)->sc_lt_alloc_cnt - 1) \
315 & (SEC_LT_ENTRIES - 1))
400 /* SEC MDEU declarations and definitions */
402 #define SEC_MDEU_MODE_SHA1 0x00 /* MDEU A */
403 #define SEC_MDEU_MODE_SHA384 0x00 /* MDEU B */
405 #define SEC_MDEU_MODE_MD5 0x02 /* MDEU A */
406 #define SEC_MDEU_MODE_SHA512 0x02 /* MDEU B */