Lines Matching refs:trap

317 static void ocelot_populate_l2_ptp_trap_key(struct ocelot_vcap_filter *trap)  in ocelot_populate_l2_ptp_trap_key()  argument
319 trap->key_type = OCELOT_VCAP_KEY_ETYPE; in ocelot_populate_l2_ptp_trap_key()
320 *(__be16 *)trap->key.etype.etype.value = htons(ETH_P_1588); in ocelot_populate_l2_ptp_trap_key()
321 *(__be16 *)trap->key.etype.etype.mask = htons(0xffff); in ocelot_populate_l2_ptp_trap_key()
325 ocelot_populate_ipv4_ptp_event_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_ipv4_ptp_event_trap_key() argument
327 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_event_trap_key()
328 trap->key.ipv4.proto.value[0] = IPPROTO_UDP; in ocelot_populate_ipv4_ptp_event_trap_key()
329 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_event_trap_key()
330 trap->key.ipv4.dport.value = PTP_EV_PORT; in ocelot_populate_ipv4_ptp_event_trap_key()
331 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_event_trap_key()
335 ocelot_populate_ipv6_ptp_event_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_ipv6_ptp_event_trap_key() argument
337 trap->key_type = OCELOT_VCAP_KEY_IPV6; in ocelot_populate_ipv6_ptp_event_trap_key()
338 trap->key.ipv6.proto.value[0] = IPPROTO_UDP; in ocelot_populate_ipv6_ptp_event_trap_key()
339 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_event_trap_key()
340 trap->key.ipv6.dport.value = PTP_EV_PORT; in ocelot_populate_ipv6_ptp_event_trap_key()
341 trap->key.ipv6.dport.mask = 0xffff; in ocelot_populate_ipv6_ptp_event_trap_key()
345 ocelot_populate_ipv4_ptp_general_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_ipv4_ptp_general_trap_key() argument
347 trap->key_type = OCELOT_VCAP_KEY_IPV4; in ocelot_populate_ipv4_ptp_general_trap_key()
348 trap->key.ipv4.proto.value[0] = IPPROTO_UDP; in ocelot_populate_ipv4_ptp_general_trap_key()
349 trap->key.ipv4.proto.mask[0] = 0xff; in ocelot_populate_ipv4_ptp_general_trap_key()
350 trap->key.ipv4.dport.value = PTP_GEN_PORT; in ocelot_populate_ipv4_ptp_general_trap_key()
351 trap->key.ipv4.dport.mask = 0xffff; in ocelot_populate_ipv4_ptp_general_trap_key()
355 ocelot_populate_ipv6_ptp_general_trap_key(struct ocelot_vcap_filter *trap) in ocelot_populate_ipv6_ptp_general_trap_key() argument
357 trap->key_type = OCELOT_VCAP_KEY_IPV6; in ocelot_populate_ipv6_ptp_general_trap_key()
358 trap->key.ipv6.proto.value[0] = IPPROTO_UDP; in ocelot_populate_ipv6_ptp_general_trap_key()
359 trap->key.ipv6.proto.mask[0] = 0xff; in ocelot_populate_ipv6_ptp_general_trap_key()
360 trap->key.ipv6.dport.value = PTP_GEN_PORT; in ocelot_populate_ipv6_ptp_general_trap_key()
361 trap->key.ipv6.dport.mask = 0xffff; in ocelot_populate_ipv6_ptp_general_trap_key()