_type
extern caddr_t preload_search_by_type(const char *_type);
int elf_reloc(linker_file_t _lf, Elf_Addr base, const void *_rel, int _type, elf_lookup_fn _lu);
int elf_reloc_local(linker_file_t _lf, Elf_Addr base, const void *_rel, int _type, elf_lookup_fn _lu);
struct _type *t_next; /* next type_t or NULL */
#define CHAIN(_type, _chain) \
_type *startp; \
_type *endp; \
const SM_EXC_TYPE_T *_type,
const SM_EXC_TYPE_T *_type,
static void do_array_type(char *_type, char *_field, int _sign);
#define START(_name, _type) \
do_start(#_name, #_type)
#define SCALAR_FIELD(_type, _field, _sign) \
do_scalar_field(#_type, #_field, _sign, NULL)
#define SCALAR_FIELD4(_type, _field, _sign, _rtype) \
do_scalar_field(#_type, #_field, _sign, _rtype)
#define ARRAY_FIELD(_type, _field, _sign) \
do_array_field(#_type, #_field, _sign, NULL)
#define ARRAY_TYPE(_type, _sign) \
do_array_type(#_type, "elt0", _sign)
static void do_start(char *_name, char *_type);
static void do_start_sizeof(char *_type, char *realtype);
static void do_scalar_field(char *_type, char *_field,
static void do_array_field(char *_type, char *_field,
#define DYNSORT_COUNT(_sdp, _sym, _type, _inc_or_dec_op) \
if (dynsymsort_symtype[_type]) { /* Non-TLS counter */ \
} else if ((_type) == STT_TLS) { /* TLS counter */ \
#define STACK(_type) \
_type *stk_s; /* Stack array */ \
#define SYM_LOC_BADADDR(_sdp, _sym, _type) \
(_sym->st_size && dynsymsort_symtype[_type] && \
#define ADD_TO_DYNSORT(_sdp, _sym, _type, _sym_ndx) \
if (dynsymsort_symtype[_type]) { \
} else if (_type == STT_TLS) { \
({ int _type = (type) & ~PC_SLICE_TYPE_HIDDEN_FLAG; \
_type == PC_SLICE_TYPE_FAT12 \
|| _type == PC_SLICE_TYPE_FAT16_LT32M \
|| _type == PC_SLICE_TYPE_FAT16_GT32M \
|| _type == PC_SLICE_TYPE_FAT16_LBA \
|| _type == PC_SLICE_TYPE_FAT32 \
|| _type == PC_SLICE_TYPE_FAT32_LBA \
int _type, _proto; \
servtype((sp)->s_proto, &_type, &_proto); \
SP_ADDX(_type, _proto, (sp)->s_port); \
#define EMITALGATTRS(_type) { \
EMIT(algattr[_type], algid); /* 1 */ \
EMIT(minbitsattr[_type], minbits); /* 2 */ \
EMIT(maxbitsattr[_type], maxbits); /* 3 */ \
EMIT(defbitsattr[_type], defbits); /* 4 */ \
EMIT(incrbitsattr[_type], incr); /* 5 */ \
#define IPSEC_CTX_TMPL(_sa, _which, _type, _tmpl) { \
(void) ipsec_create_ctx_tmpl(_sa, _type); \
#define ATH_HAL_SETCAPABILITY(_ah, _type, _cap, _param, _status) \
((*(_ah)->ah_setCapability)((_ah), (_type), (_cap), (_param), \
#define ATH_HAL_SETUPTXQUEUE(_ah, _type, _irq) \
((*(_ah)->ah_setupTxQueue)((_ah), (_type), (_irq)))
#define MII_REG(_type, _field) (OFFSETOF(_type, _field)/2)
#define MII_REG(_type, _field) (OFFSETOF(_type, _field)/2)
#define RESOURCE_TRACE_INC(_pdev, _cli_idx, _type, _field) \
DbgBreakIf((_type) >= RESOURCE_TYPE_MAX); \
type_counters_arr[_cli_idx][_type]. \
#define RESOURCE_TRACE_DEC(_pdev, _cli_idx, _type, _field) \
DbgBreakIf((_type) >= RESOURCE_TYPE_MAX); \
type_counters_arr[_cli_idx][_type]. \
#define RESOURCE_TRACE_ADD(_pdev, _cli_idx, _type, _field, _size) \
DbgBreakIf((_type) >= RESOURCE_TYPE_MAX); \
type_counters_arr[_cli_idx][_type]. \
#define RESOURCE_TRACE_SUB(_pdev, _cli_idx, _type, _field, _size) \
RESOURCE_TRACE_ADD( _pdev, _cli_idx, _type, _field, 0L-(long)_size)
#define RESOURCE_TRACE_UPDATE_PEAK(_pdev, _cli_idx, _type) \
DbgBreakIf((_type) >= RESOURCE_TYPE_MAX); \
if (_pdev->resource_list.type_counters_arr[_cli_idx][_type].size > \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].size_peak) \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].size_peak = \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].size; \
if (_pdev->resource_list.type_counters_arr[_cli_idx][_type].cnt > \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].cnt_peak) \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].cnt_peak = \
_pdev->resource_list.type_counters_arr[_cli_idx][_type].cnt; \
#define MII_REG(_type, _field) (OFFSETOF(_type, _field)/2)
#define LM_INTMEM_READ8(_pdev,_offset,_ret,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_READ8() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_RD8_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_ret));
#define LM_INTMEM_WRITE8(_pdev,_offset,_val,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_WRITE8() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_WR8_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_val));
#define LM_INTMEM_READ16(_pdev,_offset,_ret,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_READ16() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_RD16_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_ret));
#define LM_INTMEM_WRITE16(_pdev,_offset,_val,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_WRITE16() inside! storm:%s address:0x%x offset=%x val=%x\n",#_type,_type, _offset, _val); \
LM_BAR_WR16_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_val));
#define LM_INTMEM_READ32(_pdev,_offset,_ret,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_READ32() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_RD32_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_ret));
#define LM_INTMEM_WRITE32(_pdev,_offset,_val,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_WRITE32() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_WR32_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_val));
#define LM_INTMEM_READ64(_pdev,_offset,_ret,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_READ64() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_RD64_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_ret));
#define LM_INTMEM_WRITE64(_pdev,_offset,_val,_type) \
DbgMessage(pdev, INFORMi, "LM_INTMEM_WRITE64() inside! storm:%s address:0x%x\n",#_type,_type); \
LM_BAR_WR64_OFFSET((_pdev),BAR_0,((_type)+(_offset)),(_val));
#define CDU_VALID_DATA(_cid, _region, _type) (((_cid) << 8) | (((_region)&0xf)<<4) | (((_type)&0xf)))
#define CDU_CRC8(_cid, _region, _type) (calc_crc8(CDU_VALID_DATA(_cid, _region, _type), 0xff))
#define CDU_RSRVD_VALUE_TYPE_A(_cid, _region, _type) (0x80 | ((CDU_CRC8(_cid, _region, _type)) & 0x7f))
#define CDU_RSRVD_VALUE_TYPE_B(_crc, _type) (0x80 | ((_type)&0xf << 3) | ((CDU_CRC8(_cid, _region, _type)) & 0x7))
#define IEEE80211_SEND_MGMT(_ic, _in, _type, _arg) \
((*(_ic)->ic_send_mgmt)((_ic), (_in), (_type), (_arg)))
#define OSAL_GET_PROTOCOL_STATS(_ecore_dev, _type, _stats) \
#define EFX_FIELD_OFFSET(_type, _field) \
((size_t) &(((_type *)0)->_field))
#define MCDI_IN(_emr, _type, _ofst) \
((_type *)((_emr).emr_in_buf + (_ofst)))
#define MCDI_IN2(_emr, _type, _ofst) \
MCDI_IN(_emr, _type, MC_CMD_ ## _ofst ## _OFST)
#define MCDI_OUT(_emr, _type, _ofst) \
((_type *)((_emr).emr_out_buf + (_ofst)))
#define MCDI_OUT2(_emr, _type, _ofst) \
MCDI_OUT(_emr, _type, MC_CMD_ ## _ofst ## _OFST)
#define SFXGE_OBJ_CHECK(_objp, _type) \
for (off = 0; off < sizeof (_type); off++) { \
"at 0x%p+%lx", __FILE__, __LINE__, #_type, \
#define SFXGE_OBJ_CHECK(_objp, _type)
#define DBG0(_type, _fmt) \
ipp_debug((_type), __FN__, (_fmt));
#define DBG1(_type, _fmt, _a1) \
ipp_debug((_type), __FN__, (_fmt), (_a1));
#define DBG2(_type, _fmt, _a1, _a2) \
ipp_debug((_type), __FN__, (_fmt), (_a1), (_a2));
#define DBG3(_type, _fmt, _a1, _a2, _a3) \
ipp_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
#define DBG4(_type, _fmt, _a1, _a2, _a3, _a4) \
ipp_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
#define DBG5(_type, _fmt, _a1, _a2, _a3, _a4, _a5) \
ipp_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
#define DBG0(_type, _fmt)
#define DBG1(_type, _fmt, _a1)
#define DBG2(_type, _fmt, _a1, _a2)
#define DBG3(_type, _fmt, _a1, _a2, _a3)
#define DBG4(_type, _fmt, _a1, _a2, _a3, _a4)
#define DBG5(_type, _fmt, _a1, _a2, _a3, _a4, _a5)
#define DBG0(_type, _fmt)
#define DBG1(_type, _fmt, _a1)
#define DBG2(_type, _fmt, _a1, _a2)
#define DBG3(_type, _fmt, _a1, _a2, _a3)
#define DBG4(_type, _fmt, _a1, _a2, _a3, _a4)
#define DBG5(_type, _fmt, _a1, _a2, _a3, _a4, _a5)
#define DBG0(_type, _fmt) \
ippctl_debug((_type), __FN__, (_fmt));
#define DBG1(_type, _fmt, _a1) \
ippctl_debug((_type), __FN__, (_fmt), (_a1));
#define DBG2(_type, _fmt, _a1, _a2) \
ippctl_debug((_type), __FN__, (_fmt), (_a1), (_a2));
#define DBG3(_type, _fmt, _a1, _a2, _a3) \
ippctl_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
#define DBG4(_type, _fmt, _a1, _a2, _a3, _a4) \
ippctl_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
#define DBG5(_type, _fmt, _a1, _a2, _a3, _a4, _a5) \
ippctl_debug((_type), __FN__, (_fmt), (_a1), (_a2), \
ushort_t _type; /* reference to another type */
ushort_t _type; /* do not use */
#define ctt_type _u._type /* for types that reference another type */
#define x86_mcinfo_lookup(_ret, _mi, _type) \
if (_mic->type == (_type)) { \
#define FETCH(_type) basevalue = (Xword)*((_type *)off);
#define FETCH(_type)
#define STORE(_type) *((_type *)off) = (_type)uvalue
#define STORE(_type)
uint8_t _type; /* Message type */
#define type _pkt._tpkt._type