Lines Matching refs:op

200 				enum packing_op op)  in sja1105et_vl_lookup_cmd_packing()  argument
204 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_vl_lookup_cmd_packing()
205 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_vl_lookup_cmd_packing()
206 sja1105_packing(buf, &cmd->rdwrset, 29, 29, size, op); in sja1105et_vl_lookup_cmd_packing()
207 sja1105_packing(buf, &cmd->index, 9, 0, size, op); in sja1105et_vl_lookup_cmd_packing()
213 enum packing_op op) in sja1105pqrs_vl_lookup_cmd_packing() argument
218 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
219 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
220 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
221 sja1105_packing(p, &cmd->index, 9, 0, size, op); in sja1105pqrs_vl_lookup_cmd_packing()
226 enum packing_op op) in sja1110_vl_lookup_cmd_packing() argument
231 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_vl_lookup_cmd_packing()
232 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_vl_lookup_cmd_packing()
233 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_vl_lookup_cmd_packing()
234 sja1105_packing(p, &cmd->index, 11, 0, size, op); in sja1110_vl_lookup_cmd_packing()
238 enum packing_op op) in sja1105et_vl_lookup_entry_packing() argument
243 sja1105_packing(buf, &entry->egrmirr, 21, 17, size, op); in sja1105et_vl_lookup_entry_packing()
244 sja1105_packing(buf, &entry->ingrmirr, 16, 16, size, op); in sja1105et_vl_lookup_entry_packing()
250 enum packing_op op) in sja1110_vl_policing_cmd_packing() argument
255 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_vl_policing_cmd_packing()
256 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_vl_policing_cmd_packing()
257 sja1105_packing(p, &cmd->index, 11, 0, size, op); in sja1110_vl_policing_cmd_packing()
262 enum packing_op op, int entry_size) in sja1105pqrs_common_l2_lookup_cmd_packing() argument
268 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_common_l2_lookup_cmd_packing()
269 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1105pqrs_common_l2_lookup_cmd_packing()
270 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1105pqrs_common_l2_lookup_cmd_packing()
271 sja1105_packing(p, &cmd->valident, 27, 27, size, op); in sja1105pqrs_common_l2_lookup_cmd_packing()
306 sja1105_packing(p, &hostcmd, 25, 23, size, op); in sja1105pqrs_common_l2_lookup_cmd_packing()
311 enum packing_op op) in sja1105pqrs_l2_lookup_cmd_packing() argument
315 sja1105pqrs_common_l2_lookup_cmd_packing(buf, cmd, op, entry_size); in sja1105pqrs_l2_lookup_cmd_packing()
325 sja1105_packing(buf, &cmd->index, 15, 6, entry_size, op); in sja1105pqrs_l2_lookup_cmd_packing()
330 enum packing_op op) in sja1110_l2_lookup_cmd_packing() argument
334 sja1105pqrs_common_l2_lookup_cmd_packing(buf, cmd, op, entry_size); in sja1110_l2_lookup_cmd_packing()
336 sja1105_packing(buf, &cmd->index, 10, 1, entry_size, op); in sja1110_l2_lookup_cmd_packing()
386 enum packing_op op) in sja1105pqrs_dyn_l2_lookup_entry_packing() argument
392 sja1105_packing(cmd, &entry->lockeds, 28, 28, size, op); in sja1105pqrs_dyn_l2_lookup_entry_packing()
394 return sja1105pqrs_l2_lookup_entry_packing(buf, entry_ptr, op); in sja1105pqrs_dyn_l2_lookup_entry_packing()
398 enum packing_op op) in sja1110_dyn_l2_lookup_entry_packing() argument
404 sja1105_packing(cmd, &entry->lockeds, 28, 28, size, op); in sja1110_dyn_l2_lookup_entry_packing()
406 return sja1110_l2_lookup_entry_packing(buf, entry_ptr, op); in sja1110_dyn_l2_lookup_entry_packing()
411 enum packing_op op) in sja1105et_l2_lookup_cmd_packing() argument
416 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105et_l2_lookup_cmd_packing()
417 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1105et_l2_lookup_cmd_packing()
418 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1105et_l2_lookup_cmd_packing()
419 sja1105_packing(p, &cmd->valident, 27, 27, size, op); in sja1105et_l2_lookup_cmd_packing()
422 SJA1105ET_SIZE_L2_LOOKUP_ENTRY, op); in sja1105et_l2_lookup_cmd_packing()
426 enum packing_op op) in sja1105et_dyn_l2_lookup_entry_packing() argument
432 sja1105_packing(cmd, &entry->lockeds, 28, 28, size, op); in sja1105et_dyn_l2_lookup_entry_packing()
434 return sja1105et_l2_lookup_entry_packing(buf, entry_ptr, op); in sja1105et_dyn_l2_lookup_entry_packing()
439 enum packing_op op) in sja1105et_mgmt_route_cmd_packing() argument
444 sja1105et_l2_lookup_cmd_packing(buf, cmd, op); in sja1105et_mgmt_route_cmd_packing()
445 if (op == PACK) in sja1105et_mgmt_route_cmd_packing()
450 enum packing_op op) in sja1105et_mgmt_route_entry_packing() argument
461 sja1105_packing(buf, &entry->tsreg, 85, 85, size, op); in sja1105et_mgmt_route_entry_packing()
462 sja1105_packing(buf, &entry->takets, 84, 84, size, op); in sja1105et_mgmt_route_entry_packing()
463 sja1105_packing(buf, &entry->macaddr, 83, 36, size, op); in sja1105et_mgmt_route_entry_packing()
464 sja1105_packing(buf, &entry->destports, 35, 31, size, op); in sja1105et_mgmt_route_entry_packing()
465 sja1105_packing(buf, &entry->enfport, 30, 30, size, op); in sja1105et_mgmt_route_entry_packing()
471 enum packing_op op) in sja1105pqrs_mgmt_route_cmd_packing() argument
476 sja1105pqrs_l2_lookup_cmd_packing(buf, cmd, op); in sja1105pqrs_mgmt_route_cmd_packing()
477 if (op == PACK) in sja1105pqrs_mgmt_route_cmd_packing()
482 enum packing_op op) in sja1105pqrs_mgmt_route_entry_packing() argument
491 sja1105_packing(buf, &entry->tsreg, 71, 71, size, op); in sja1105pqrs_mgmt_route_entry_packing()
492 sja1105_packing(buf, &entry->takets, 70, 70, size, op); in sja1105pqrs_mgmt_route_entry_packing()
493 sja1105_packing(buf, &entry->macaddr, 69, 22, size, op); in sja1105pqrs_mgmt_route_entry_packing()
494 sja1105_packing(buf, &entry->destports, 21, 17, size, op); in sja1105pqrs_mgmt_route_entry_packing()
495 sja1105_packing(buf, &entry->enfport, 16, 16, size, op); in sja1105pqrs_mgmt_route_entry_packing()
505 enum packing_op op) in sja1105_vlan_lookup_cmd_packing() argument
510 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105_vlan_lookup_cmd_packing()
511 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1105_vlan_lookup_cmd_packing()
512 sja1105_packing(p, &cmd->valident, 27, 27, size, op); in sja1105_vlan_lookup_cmd_packing()
517 SJA1105_SIZE_VLAN_LOOKUP_ENTRY, op); in sja1105_vlan_lookup_cmd_packing()
523 enum packing_op op) in sja1110_vlan_lookup_cmd_packing() argument
529 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_vlan_lookup_cmd_packing()
530 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_vlan_lookup_cmd_packing()
531 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_vlan_lookup_cmd_packing()
536 SJA1110_SIZE_VLAN_LOOKUP_ENTRY, op); in sja1110_vlan_lookup_cmd_packing()
543 if (op == PACK && !cmd->valident) { in sja1110_vlan_lookup_cmd_packing()
546 } else if (op == UNPACK) { in sja1110_vlan_lookup_cmd_packing()
555 enum packing_op op) in sja1105_l2_forwarding_cmd_packing() argument
560 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105_l2_forwarding_cmd_packing()
561 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105_l2_forwarding_cmd_packing()
562 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105_l2_forwarding_cmd_packing()
563 sja1105_packing(p, &cmd->index, 4, 0, size, op); in sja1105_l2_forwarding_cmd_packing()
568 enum packing_op op) in sja1110_l2_forwarding_cmd_packing() argument
573 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_l2_forwarding_cmd_packing()
574 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_l2_forwarding_cmd_packing()
575 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_l2_forwarding_cmd_packing()
576 sja1105_packing(p, &cmd->index, 4, 0, size, op); in sja1110_l2_forwarding_cmd_packing()
581 enum packing_op op) in sja1105et_mac_config_cmd_packing() argument
587 sja1105_packing(reg1, &cmd->valid, 31, 31, size, op); in sja1105et_mac_config_cmd_packing()
588 sja1105_packing(reg1, &cmd->index, 26, 24, size, op); in sja1105et_mac_config_cmd_packing()
592 enum packing_op op) in sja1105et_mac_config_entry_packing() argument
600 sja1105_packing(reg1, &entry->speed, 30, 29, size, op); in sja1105et_mac_config_entry_packing()
601 sja1105_packing(reg1, &entry->drpdtag, 23, 23, size, op); in sja1105et_mac_config_entry_packing()
602 sja1105_packing(reg1, &entry->drpuntag, 22, 22, size, op); in sja1105et_mac_config_entry_packing()
603 sja1105_packing(reg1, &entry->retag, 21, 21, size, op); in sja1105et_mac_config_entry_packing()
604 sja1105_packing(reg1, &entry->dyn_learn, 20, 20, size, op); in sja1105et_mac_config_entry_packing()
605 sja1105_packing(reg1, &entry->egress, 19, 19, size, op); in sja1105et_mac_config_entry_packing()
606 sja1105_packing(reg1, &entry->ingress, 18, 18, size, op); in sja1105et_mac_config_entry_packing()
607 sja1105_packing(reg1, &entry->ing_mirr, 17, 17, size, op); in sja1105et_mac_config_entry_packing()
608 sja1105_packing(reg1, &entry->egr_mirr, 16, 16, size, op); in sja1105et_mac_config_entry_packing()
609 sja1105_packing(reg1, &entry->vlanprio, 14, 12, size, op); in sja1105et_mac_config_entry_packing()
610 sja1105_packing(reg1, &entry->vlanid, 11, 0, size, op); in sja1105et_mac_config_entry_packing()
611 sja1105_packing(reg2, &entry->tp_delin, 31, 16, size, op); in sja1105et_mac_config_entry_packing()
612 sja1105_packing(reg2, &entry->tp_delout, 15, 0, size, op); in sja1105et_mac_config_entry_packing()
622 enum packing_op op) in sja1105pqrs_mac_config_cmd_packing() argument
627 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_mac_config_cmd_packing()
628 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_mac_config_cmd_packing()
629 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_mac_config_cmd_packing()
630 sja1105_packing(p, &cmd->index, 2, 0, size, op); in sja1105pqrs_mac_config_cmd_packing()
635 enum packing_op op) in sja1110_mac_config_cmd_packing() argument
640 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_mac_config_cmd_packing()
641 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_mac_config_cmd_packing()
642 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_mac_config_cmd_packing()
643 sja1105_packing(p, &cmd->index, 3, 0, size, op); in sja1110_mac_config_cmd_packing()
648 enum packing_op op) in sja1105et_l2_lookup_params_cmd_packing() argument
651 SJA1105ET_SIZE_L2_LOOKUP_PARAMS_DYN_CMD, op); in sja1105et_l2_lookup_params_cmd_packing()
656 enum packing_op op) in sja1105et_l2_lookup_params_entry_packing() argument
661 SJA1105ET_SIZE_L2_LOOKUP_PARAMS_DYN_CMD, op); in sja1105et_l2_lookup_params_entry_packing()
669 enum packing_op op) in sja1105pqrs_l2_lookup_params_cmd_packing() argument
674 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_l2_lookup_params_cmd_packing()
675 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1105pqrs_l2_lookup_params_cmd_packing()
680 enum packing_op op) in sja1110_l2_lookup_params_cmd_packing() argument
685 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_l2_lookup_params_cmd_packing()
686 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_l2_lookup_params_cmd_packing()
687 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_l2_lookup_params_cmd_packing()
692 enum packing_op op) in sja1105et_general_params_cmd_packing() argument
696 sja1105_packing(buf, &cmd->valid, 31, 31, size, op); in sja1105et_general_params_cmd_packing()
697 sja1105_packing(buf, &cmd->errors, 30, 30, size, op); in sja1105et_general_params_cmd_packing()
702 enum packing_op op) in sja1105et_general_params_entry_packing() argument
707 sja1105_packing(buf, &entry->mirr_port, 2, 0, size, op); in sja1105et_general_params_entry_packing()
714 enum packing_op op) in sja1105pqrs_general_params_cmd_packing() argument
719 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_general_params_cmd_packing()
720 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_general_params_cmd_packing()
721 sja1105_packing(p, &cmd->rdwrset, 28, 28, size, op); in sja1105pqrs_general_params_cmd_packing()
726 enum packing_op op) in sja1110_general_params_cmd_packing() argument
731 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_general_params_cmd_packing()
732 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_general_params_cmd_packing()
733 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_general_params_cmd_packing()
738 enum packing_op op) in sja1105pqrs_avb_params_cmd_packing() argument
743 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_avb_params_cmd_packing()
744 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105pqrs_avb_params_cmd_packing()
745 sja1105_packing(p, &cmd->rdwrset, 29, 29, size, op); in sja1105pqrs_avb_params_cmd_packing()
750 enum packing_op op) in sja1105_retagging_cmd_packing() argument
755 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105_retagging_cmd_packing()
756 sja1105_packing(p, &cmd->errors, 30, 30, size, op); in sja1105_retagging_cmd_packing()
757 sja1105_packing(p, &cmd->valident, 29, 29, size, op); in sja1105_retagging_cmd_packing()
758 sja1105_packing(p, &cmd->rdwrset, 28, 28, size, op); in sja1105_retagging_cmd_packing()
759 sja1105_packing(p, &cmd->index, 5, 0, size, op); in sja1105_retagging_cmd_packing()
764 enum packing_op op) in sja1110_retagging_cmd_packing() argument
769 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_retagging_cmd_packing()
770 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_retagging_cmd_packing()
771 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_retagging_cmd_packing()
772 sja1105_packing(p, &cmd->valident, 28, 28, size, op); in sja1110_retagging_cmd_packing()
773 sja1105_packing(p, &cmd->index, 4, 0, size, op); in sja1110_retagging_cmd_packing()
777 enum packing_op op) in sja1105et_cbs_cmd_packing() argument
782 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105et_cbs_cmd_packing()
783 sja1105_packing(p, &cmd->index, 19, 16, size, op); in sja1105et_cbs_cmd_packing()
787 enum packing_op op) in sja1105et_cbs_entry_packing() argument
794 sja1105_packing(cmd, &entry->port, 5, 3, SJA1105_SIZE_DYN_CMD, op); in sja1105et_cbs_entry_packing()
795 sja1105_packing(cmd, &entry->prio, 2, 0, SJA1105_SIZE_DYN_CMD, op); in sja1105et_cbs_entry_packing()
796 sja1105_packing(p + 3, &entry->credit_lo, 31, 0, size, op); in sja1105et_cbs_entry_packing()
797 sja1105_packing(p + 2, &entry->credit_hi, 31, 0, size, op); in sja1105et_cbs_entry_packing()
798 sja1105_packing(p + 1, &entry->send_slope, 31, 0, size, op); in sja1105et_cbs_entry_packing()
799 sja1105_packing(p + 0, &entry->idle_slope, 31, 0, size, op); in sja1105et_cbs_entry_packing()
804 enum packing_op op) in sja1105pqrs_cbs_cmd_packing() argument
809 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1105pqrs_cbs_cmd_packing()
810 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1105pqrs_cbs_cmd_packing()
811 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1105pqrs_cbs_cmd_packing()
812 sja1105_packing(p, &cmd->index, 3, 0, size, op); in sja1105pqrs_cbs_cmd_packing()
816 enum packing_op op) in sja1110_cbs_cmd_packing() argument
821 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_cbs_cmd_packing()
822 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_cbs_cmd_packing()
823 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_cbs_cmd_packing()
824 sja1105_packing(p, &cmd->index, 7, 0, size, op); in sja1110_cbs_cmd_packing()
828 enum packing_op op) in sja1105pqrs_cbs_entry_packing() argument
833 sja1105_packing(buf, &entry->port, 159, 157, size, op); in sja1105pqrs_cbs_entry_packing()
834 sja1105_packing(buf, &entry->prio, 156, 154, size, op); in sja1105pqrs_cbs_entry_packing()
835 sja1105_packing(buf, &entry->credit_lo, 153, 122, size, op); in sja1105pqrs_cbs_entry_packing()
836 sja1105_packing(buf, &entry->credit_hi, 121, 90, size, op); in sja1105pqrs_cbs_entry_packing()
837 sja1105_packing(buf, &entry->send_slope, 89, 58, size, op); in sja1105pqrs_cbs_entry_packing()
838 sja1105_packing(buf, &entry->idle_slope, 57, 26, size, op); in sja1105pqrs_cbs_entry_packing()
843 enum packing_op op) in sja1110_cbs_entry_packing() argument
849 sja1105_packing(buf, &entry_type, 159, 159, size, op); in sja1110_cbs_entry_packing()
850 sja1105_packing(buf, &entry->credit_lo, 151, 120, size, op); in sja1110_cbs_entry_packing()
851 sja1105_packing(buf, &entry->credit_hi, 119, 88, size, op); in sja1110_cbs_entry_packing()
852 sja1105_packing(buf, &entry->send_slope, 87, 56, size, op); in sja1110_cbs_entry_packing()
853 sja1105_packing(buf, &entry->idle_slope, 55, 24, size, op); in sja1110_cbs_entry_packing()
858 enum packing_op op) in sja1110_dummy_cmd_packing() argument
864 enum packing_op op) in sja1110_l2_policing_cmd_packing() argument
869 sja1105_packing(p, &cmd->valid, 31, 31, size, op); in sja1110_l2_policing_cmd_packing()
870 sja1105_packing(p, &cmd->rdwrset, 30, 30, size, op); in sja1110_l2_policing_cmd_packing()
871 sja1105_packing(p, &cmd->errors, 29, 29, size, op); in sja1110_l2_policing_cmd_packing()
872 sja1105_packing(p, &cmd->index, 6, 0, size, op); in sja1110_l2_policing_cmd_packing()