Lines Matching +full:positive +full:- +full:phase

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2017 QLogic Corporation. All rights reserved.
82 #define ECORE_SWCID_MASK ((0x1 << ECORE_SWCID_SHIFT) - 1)
92 #define IRO sc->iro_array
103 #define ECORE_SPIN_LOCK_BH(_spin) mtx_lock(_spin) /* bh = bottom-half */
104 #define ECORE_SPIN_UNLOCK_BH(_spin) mtx_unlock(_spin) /* bh = bottom-half */
113 #define ECORE_SET_BIT_NA(bit, var) bit_set(var, bit) /* non-atomic */
114 #define ECORE_CLEAR_BIT_NA(bit, var) bit_clear(var, bit) /* non-atomic */
138 #define ECORE_FCOE_CID(sc) ((sc)->fp[FCOE_IDX(sc)].cl_id)
161 #define SC_ILT(sc) ((sc)->ilt)
175 *y = ((struct bxe_dma *)x)->paddr; \
200 #define ECORE_ALIGN(x, a) ((((x) + (a) - 1) / (a)) * (a))
289 (_list)->head = NULL; \
290 (_list)->tail = NULL; \
291 (_list)->cnt = 0; \
296 (_elem == (_list)->tail)
300 ((_list)->cnt == 0)
304 (cast *)((_list)->head)
308 (cast *)((&((_elem)->_link))->next)
313 (_elem)->prev = (ecore_list_entry_t *)0; \
314 (_elem)->next = (_list)->head; \
315 if ((_list)->tail == (ecore_list_entry_t *)0) { \
316 (_list)->tail = (_elem); \
318 (_list)->head->prev = (_elem); \
320 (_list)->head = (_elem); \
321 (_list)->cnt++; \
327 (_elem)->next = (ecore_list_entry_t *)0; \
328 (_elem)->prev = (_list)->tail; \
329 if ((_list)->tail) { \
330 (_list)->tail->next = (_elem); \
332 (_list)->head = (_elem); \
334 (_list)->tail = (_elem); \
335 (_list)->cnt++; \
341 (_list1)->tail->next = (_list2)->head; \
342 if ((_list2)->head) { \
343 (_list2)->head->prev = (_list1)->tail; \
345 (_list2)->tail = (_list1)->tail; \
347 (_list2)->head = (_list1)->head; \
348 (_list2)->cnt += (_list1)->cnt; \
349 (_list1)->head = NULL; \
350 (_list1)->tail = NULL; \
351 (_list1)->cnt = 0; \
357 if ((_list)->head == (_elem)) { \
358 if ((_list)->head) { \
359 (_list)->head = (_list)->head->next; \
360 if ((_list)->head) { \
361 (_list)->head->prev = (ecore_list_entry_t *)0; \
363 (_list)->tail = (ecore_list_entry_t *)0; \
365 (_list)->cnt--; \
367 } else if ((_list)->tail == (_elem)) { \
368 if ((_list)->tail) { \
369 (_list)->tail = (_list)->tail->prev; \
370 if ((_list)->tail) { \
371 (_list)->tail->next = (ecore_list_entry_t *)0; \
373 (_list)->head = (ecore_list_entry_t *)0; \
375 (_list)->cnt--; \
378 (_elem)->prev->next = (_elem)->next; \
379 (_elem)->next->prev = (_elem)->prev; \
380 (_list)->cnt--; \
404 #define BIT_VEC64_ELEM_MASK ((uint64_t)BIT_VEC64_ELEM_SZ - 1)
430 * idx - index of the most significant bit in the created mask
433 (((uint64_t)0x1 << (((idx) & BIT_VEC64_ELEM_MASK) + 1)) - 1)
453 ECORE_EXISTS = -6,
454 ECORE_IO = -5,
455 ECORE_TIMEOUT = -4,
456 ECORE_INVAL = -3,
457 ECORE_BUSY = -2,
458 ECORE_NOMEM = -1,
460 /* PENDING is not an error and should be positive */
493 * re-try to submit this one. This flag can be set only in sleepable
553 /************************* VLAN-MAC commands related parameters ***************/
636 /* Return positive if entry was optimized, 0 - if not, negative
669 * Must run under exe_queue->lock
685 * Must run under exe_queue->lock
700 /***************** Classification verbs: Set/Del MAC/VLAN/VLAN-MAC ************/
708 /* Used to store the cam offset used for the mac/vlan/vlan-mac.
778 * will be copied. Note elements are 4-byte aligned
790 * Checks if ADD-ramrod with the given params may be performed.
800 * Checks if DEL-ramrod with the given params may be performed.
810 * Checks if DEL-ramrod with the given params may be performed.
840 * configured MACs/VLANs/VLAN-MACs matching the vlan_mac_flags
849 * and there are no more elements left, positive value
859 * Reconfigures the next MAC/VLAN/VLAN-MAC element from the previously
889 * completion commands. Positive value if there are
986 * - rename it to macs_num.
987 * - Add a new command type for handling pending commands
990 * Length of mcast_list. If zero and ADD_CONT command - post
1056 * @return -1 if we handled the whole registry or index of the last
1215 /* flags for enabling 4-tupple hash on UDP */
1325 #define MAC_PAD (ECORE_ALIGN(ETH_ALEN, sizeof(uint32_t)) - ETH_ALEN)
1327 * timesync-related ramrods must not use this DMAE command ID.
1507 * class. Any further traffic class is supported by a tx-only
1607 /* A load phase returned by MCP.
1619 /* A load phase returned by MCP.
1632 * - Single Function
1633 * - Switch Dependent
1634 * - Switch Independent
1653 /* Enable inner Rx classifications for L2-Geneve packets */
1678 /* Inner-to-Outer vlan priority mapping */
1753 * - Common Chip
1754 * - Common (per Path)
1755 * - Port
1756 * - Function phases
1861 /********************* VLAN-MAC ****************/
1913 * ecore_config_rx_mode - Send and RX_MODE ramrod according to the provided parameters.
1917 * Return: 0 - if operation was successful and there is no pending completions,
1918 * positive number - if there are pending completions,
1919 * negative - if there were errors
1934 * ecore_config_mcast - Configure multicast MACs list.
1939 * provided in p->mcast_list (ECORE_MCAST_CMD_ADD), clean up
1950 * negative if there were errors, positive if there are pending
1976 * ecore_config_rss - Updates RSS configuration according to provided parameters
1984 * ecore_get_rss_ind_table - Return the current ind_table configuration.
1994 ((MAX_MAC_CREDIT_E2 - GET_NUM_VFS_PER_PATH(sc) * VF_MAC_CREDIT_CNT) / \
1998 ((MAX_MAC_CREDIT_E2 - GET_NUM_VFS_PER_PATH(sc) * VF_VLAN_CREDIT_CNT) / \