Lines Matching full:u16

23 int dpsw_open(struct fsl_mc_io *mc_io, u32 cmd_flags, int dpsw_id, u16 *token);
25 int dpsw_close(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
85 int dpsw_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
87 int dpsw_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
89 int dpsw_reset(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
118 int dpsw_set_irq_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
121 int dpsw_set_irq_mask(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
124 int dpsw_get_irq_status(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
127 int dpsw_clear_irq_status(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
154 u16 max_vlans;
157 u16 max_fdb_entries;
158 u16 fdb_aging_time;
159 u16 max_fdb_mc_groups;
160 u16 num_ifs;
161 u16 mem_size;
162 u16 num_vlans;
169 int dpsw_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
185 u16 token, struct dpsw_ctrl_if_attr *attr);
208 u16 buffer_size;
213 int dpsw_ctrl_if_set_pools(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
236 int dpsw_ctrl_if_set_queue(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
240 int dpsw_ctrl_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
242 int dpsw_ctrl_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token);
269 int dpsw_if_set_link_cfg(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
284 int dpsw_if_get_link_state(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
285 u16 if_id, struct dpsw_link_state *state);
303 u16 vlan_id;
306 int dpsw_if_set_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
309 int dpsw_if_get_tci(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
335 u16 vlan_id;
339 int dpsw_if_set_stp(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id,
387 int dpsw_if_get_counter(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
388 u16 if_id, enum dpsw_counter type, u64 *counter);
390 int dpsw_if_enable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id);
392 int dpsw_if_disable(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 if_id);
416 u16 qdid;
419 int dpsw_if_get_attributes(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
420 u16 if_id, struct dpsw_if_attr *attr);
422 int dpsw_if_set_max_frame_length(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
423 u16 if_id, u16 frame_length);
430 u16 fdb_id;
433 int dpsw_vlan_add(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
434 u16 vlan_id, const struct dpsw_vlan_cfg *cfg);
450 u16 num_ifs;
451 u16 options;
452 u16 if_id[DPSW_MAX_IF];
453 u16 fdb_id;
456 int dpsw_vlan_add_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
457 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
459 int dpsw_vlan_add_if_untagged(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
460 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
462 int dpsw_vlan_remove_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
463 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
465 int dpsw_vlan_remove_if_untagged(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
466 u16 vlan_id, const struct dpsw_vlan_if_cfg *cfg);
468 int dpsw_vlan_remove(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
469 u16 vlan_id);
490 u16 if_egress;
493 int dpsw_fdb_add_unicast(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
494 u16 fdb_id, const struct dpsw_fdb_unicast_cfg *cfg);
496 int dpsw_fdb_remove_unicast(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
497 u16 fdb_id, const struct dpsw_fdb_unicast_cfg *cfg);
516 int dpsw_fdb_dump(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 fdb_id,
517 u64 iova_addr, u32 iova_size, u16 *num_entries);
529 u16 num_ifs;
530 u16 if_id[DPSW_MAX_IF];
533 int dpsw_fdb_add_multicast(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
534 u16 fdb_id, const struct dpsw_fdb_multicast_cfg *cfg);
536 int dpsw_fdb_remove_multicast(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
537 u16 fdb_id, const struct dpsw_fdb_multicast_cfg *cfg);
585 u16 max_fdb_entries;
586 u16 fdb_ageing_time;
588 u16 num_fdb_mc_groups;
589 u16 max_fdb_mc_groups;
593 u16 *major_ver, u16 *minor_ver);
595 int dpsw_if_get_port_mac_addr(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
596 u16 if_id, u8 mac_addr[6]);
604 u16 num_fdb_entries;
605 u16 fdb_ageing_time;
608 int dpsw_fdb_add(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 *fdb_id,
611 int dpsw_fdb_remove(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 fdb_id);
624 u16 fdb_id;
626 u16 num_ifs;
627 u16 if_id[DPSW_MAX_IF];
630 int dpsw_set_egress_flood(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
633 int dpsw_if_set_learning_mode(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
634 u16 if_id, enum dpsw_learning_mode mode);
641 u16 max_entries;
644 int dpsw_acl_add(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token, u16 *acl_id,
647 int dpsw_acl_remove(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
648 u16 acl_id);
656 u16 num_ifs;
657 u16 if_id[DPSW_MAX_IF];
660 int dpsw_acl_add_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
661 u16 acl_id, const struct dpsw_acl_if_cfg *cfg);
663 int dpsw_acl_remove_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
664 u16 acl_id, const struct dpsw_acl_if_cfg *cfg);
690 u16 l2_tpid;
692 u16 l2_vlan_id;
693 u16 l2_ether_type;
698 u16 l4_source_port;
699 u16 l4_dest_port;
734 u16 if_id;
755 int dpsw_acl_add_entry(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
756 u16 acl_id, const struct dpsw_acl_entry_cfg *cfg);
758 int dpsw_acl_remove_entry(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
759 u16 acl_id, const struct dpsw_acl_entry_cfg *cfg);
780 u16 vlan_id;
783 int dpsw_set_reflection_if(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
784 u16 if_id);
786 int dpsw_if_add_reflection(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
787 u16 if_id, const struct dpsw_reflection_cfg *cfg);
789 int dpsw_if_remove_reflection(struct fsl_mc_io *mc_io, u32 cmd_flags, u16 token,
790 u16 if_id, const struct dpsw_reflection_cfg *cfg);