tunnel
boolean_t tunnel)
if (tunnel)
uint_t dir, uint_t af, char *name, boolean_t tunnel)
tunnel);
name, tunnel);
bool tunnel;
tunnel = !!(input.formatted.flow_type & IXGBE_ATR_L4TYPE_TUNNEL_MASK);
if (tunnel)
struct ecore_tunnel_info tunnel;
struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel;
struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel;
ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel);
ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel);
uint_t tunnel;
if (prom_getprop(nodeid, IOSRAM_CHOSEN_PROP, (caddr_t)&tunnel) <= 0) {
if (prom_phandle_to_path((phandle_t)tunnel, master_sbbc,
tunnel);
if ((dip == NULL) || (ddi_get_nodeid(dip) != tunnel)) {
"e_ddi_hold_devi_by_path(%x) failed for SBBC\n", tunnel);
tunnel_key = master_iosram->tunnel->tunnel_keys[SBBC_SC_INTR_KEY];
(void) prom_getprop(nodeid, "iosram", (caddr_t)&tunnel);
if (prom_phandle_to_path((phandle_t)tunnel, chosen_iosram,
cmn_err(CE_NOTE, "prom_phandle_to_path(%x) failed\n", tunnel);
if ((master_iosram->tunnel = kmem_zalloc(sizeof (tunnel_t),
master_iosram->tunnel->tunnel_keys[i].key = 0;
master_iosram->tunnel->tunnel_keys[i].base = NULL;
master_iosram->tunnel->tunnel_keys[i].size = 0;
struct tunnel_key *tunnel;
tunnel = &master_iosram->tunnel->tunnel_keys[i];
if (tunnel->base != NULL) {
ddi_regs_map_free(&tunnel->reg_handle);
tunnel->base = NULL;
kmem_free(master_iosram->tunnel, sizeof (tunnel_t));
master_iosram->tunnel = new_tunnel;
struct tunnel_key *tunnel;
tunnel = &new_tunnel->tunnel_keys[key];
tunnel->key = key;
tunnel->size = toc->iosram_keys[i].size;
(caddr_t *)&tunnel->base,
&tunnel->reg_handle) != DDI_SUCCESS) {
(void *)tunnel->base);
tunnel_fini(tunnel_t *tunnel)
tunnel_key = &tunnel->tunnel_keys[i];
tunnel_key = master_iosram->tunnel->tunnel_keys[SBBC_SC_INTR_KEY];
if ((rc = tunnel_init(softsp, master_iosram->tunnel)) == DDI_SUCCESS) {
tunnel_commit(softsp, master_iosram->tunnel);
struct tunnel_key *tunnel;
if (INVALID_KEY(master_iosram->tunnel, key)) {
tunnel = &master_iosram->tunnel->tunnel_keys[key];
if ((offset + size) > tunnel->size) {
sram_src = tunnel->base + offset;
IOSRAM_GET(tunnel, sram_src, buf, 16);
IOSRAM_GET(tunnel, sram_src, buf, 32);
IOSRAM_GET(tunnel, sram_src, buf, 64);
IOSRAM_GETB(tunnel, (uint8_t *)buf,
IOSRAM_PUT(tunnel, sram_src, buf, 16);
IOSRAM_PUT(tunnel, sram_src, buf, 32);
IOSRAM_PUT(tunnel, sram_src, buf, 64);
IOSRAM_PUTB(tunnel, (uint8_t *)buf,
if (!INVALID_KEY(master_iosram->tunnel, key))
size = master_iosram->tunnel->tunnel_keys[key].size;
#define IOSRAM_GETB(tunnel, buf, sram, count) \
ddi_rep_get8(tunnel->reg_handle, buf, sram, count, DDI_DEV_AUTOINCR)
#define IOSRAM_PUTB(tunnel, buf, sram, count) \
ddi_rep_put8(tunnel->reg_handle, buf, sram, count, DDI_DEV_AUTOINCR)
#define IOSRAM_PUT(tunnel, sram, buf, size) \
ddi_put##size(tunnel->reg_handle, (uint##size##_t *)sram, \
#define IOSRAM_GET(tunnel, sram, buf, size) \
*(uint##size##_t *)buf = ddi_get##size(tunnel->reg_handle, \
uint_t tunnel;
orig_tunnel = master_iosram->tunnel;
uint_t tunnel;
if (prom_getprop(nodeid, IOSRAM_CHOSEN_PROP, (caddr_t)&tunnel) <= 0) {
if (prom_phandle_to_path((phandle_t)tunnel, master_sbbc,
tunnel);
if ((dip == NULL) || (ddi_get_nodeid(dip) != tunnel)) {
tunnel);
tunnel_t *tunnel;
#define INVALID_KEY(tunnel, x) (tunnel->tunnel_keys[(x)].key == 0)