Lines Matching refs:etcp
64 __in efx_tunnel_cfg_t *etcp, in efx_mcdi_set_tunnel_encap_udp_ports() argument
77 if (etcp == NULL) in efx_mcdi_set_tunnel_encap_udp_ports()
80 entries_num = etcp->etc_udp_entries_num; in efx_mcdi_set_tunnel_encap_udp_ports()
101 switch (etcp->etc_udp_entries[i].etue_protocol) { in efx_mcdi_set_tunnel_encap_udp_ports()
124 etcp->etc_udp_entries[i].etue_port, in efx_mcdi_set_tunnel_encap_udp_ports()
164 efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg; in efx_tunnel_init() local
206 memset(etcp->etc_udp_entries, 0, sizeof (etcp->etc_udp_entries)); in efx_tunnel_init()
207 etcp->etc_udp_entries_num = 0; in efx_tunnel_init()
250 __in efx_tunnel_cfg_t *etcp, in efx_tunnel_config_find_udp_tunnel_entry() argument
256 for (i = 0; i < etcp->etc_udp_entries_num; ++i) { in efx_tunnel_config_find_udp_tunnel_entry()
257 efx_tunnel_udp_entry_t *p = &etcp->etc_udp_entries[i]; in efx_tunnel_config_find_udp_tunnel_entry()
275 efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg; in efx_tunnel_config_udp_add() local
295 rc = efx_tunnel_config_find_udp_tunnel_entry(etcp, port, &entry); in efx_tunnel_config_udp_add()
301 if (etcp->etc_udp_entries_num == in efx_tunnel_config_udp_add()
307 etcp->etc_udp_entries[etcp->etc_udp_entries_num].etue_port = port; in efx_tunnel_config_udp_add()
308 etcp->etc_udp_entries[etcp->etc_udp_entries_num].etue_protocol = in efx_tunnel_config_udp_add()
311 etcp->etc_udp_entries_num++; in efx_tunnel_config_udp_add()
339 efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg; in efx_tunnel_config_udp_remove() local
348 rc = efx_tunnel_config_find_udp_tunnel_entry(etcp, port, &entry); in efx_tunnel_config_udp_remove()
352 if (etcp->etc_udp_entries[entry].etue_protocol != protocol) { in efx_tunnel_config_udp_remove()
357 EFSYS_ASSERT3U(etcp->etc_udp_entries_num, >, 0); in efx_tunnel_config_udp_remove()
358 etcp->etc_udp_entries_num--; in efx_tunnel_config_udp_remove()
360 if (entry < etcp->etc_udp_entries_num) { in efx_tunnel_config_udp_remove()
361 memmove(&etcp->etc_udp_entries[entry], in efx_tunnel_config_udp_remove()
362 &etcp->etc_udp_entries[entry + 1], in efx_tunnel_config_udp_remove()
363 (etcp->etc_udp_entries_num - entry) * in efx_tunnel_config_udp_remove()
364 sizeof (etcp->etc_udp_entries[0])); in efx_tunnel_config_udp_remove()
367 memset(&etcp->etc_udp_entries[etcp->etc_udp_entries_num], 0, in efx_tunnel_config_udp_remove()
368 sizeof (etcp->etc_udp_entries[0])); in efx_tunnel_config_udp_remove()
388 efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg; in efx_tunnel_config_clear() local
395 etcp->etc_udp_entries_num = 0; in efx_tunnel_config_clear()
396 memset(etcp->etc_udp_entries, 0, sizeof (etcp->etc_udp_entries)); in efx_tunnel_config_clear()
448 efx_tunnel_cfg_t *etcp = &enp->en_tunnel_cfg; in ef10_tunnel_reconfigure() local
455 memcpy(&etc, etcp, sizeof (etc)); in ef10_tunnel_reconfigure()