Lines Matching refs:l2ana_reg
184 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_table_poll_idle() local
187 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_table_poll_idle()
191 while (((in_le32(&l2ana_reg->ana_tables.vlan_access) & in vsc9953_vlan_table_poll_idle()
203 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_table_membership_set() local
205 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_table_membership_set()
213 val = in_le32(&l2ana_reg->ana_tables.vlan_tidx); in vsc9953_vlan_table_membership_set()
215 out_le32(&l2ana_reg->ana_tables.vlan_tidx, val); in vsc9953_vlan_table_membership_set()
217 clrsetbits_le32(&l2ana_reg->ana_tables.vlan_access, in vsc9953_vlan_table_membership_set()
225 val = in_le32(&l2ana_reg->ana_tables.vlan_tidx); in vsc9953_vlan_table_membership_set()
227 out_le32(&l2ana_reg->ana_tables.vlan_tidx, val); in vsc9953_vlan_table_membership_set()
229 val = in_le32(&l2ana_reg->ana_tables.vlan_access); in vsc9953_vlan_table_membership_set()
242 out_le32(&l2ana_reg->ana_tables.vlan_access, val); in vsc9953_vlan_table_membership_set()
255 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_membership_show() local
258 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_membership_show()
269 val = in_le32(&l2ana_reg->ana_tables.vlan_tidx); in vsc9953_vlan_membership_show()
272 out_le32(&l2ana_reg->ana_tables.vlan_tidx, val); in vsc9953_vlan_membership_show()
274 clrsetbits_le32(&l2ana_reg->ana_tables.vlan_access, in vsc9953_vlan_membership_show()
282 val = in_le32(&l2ana_reg->ana_tables.vlan_access); in vsc9953_vlan_membership_show()
296 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_table_membership_all_set() local
298 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_table_membership_all_set()
307 val = in_le32(&l2ana_reg->ana_tables.vlan_tidx); in vsc9953_vlan_table_membership_all_set()
308 out_le32(&l2ana_reg->ana_tables.vlan_tidx, in vsc9953_vlan_table_membership_all_set()
311 clrsetbits_le32(&l2ana_reg->ana_tables.vlan_access, in vsc9953_vlan_table_membership_all_set()
319 val = in_le32(&l2ana_reg->ana_tables.vlan_tidx); in vsc9953_vlan_table_membership_all_set()
320 out_le32(&l2ana_reg->ana_tables.vlan_tidx, in vsc9953_vlan_table_membership_all_set()
323 clrsetbits_le32(&l2ana_reg->ana_tables.vlan_access, in vsc9953_vlan_table_membership_all_set()
334 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_vlan_pvid_get() local
342 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_vlan_pvid_get()
346 val = in_le32(&l2ana_reg->port[port_nr].vlan_cfg); in vsc9953_port_vlan_pvid_get()
357 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_vlan_pvid_set() local
366 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_vlan_pvid_set()
372 val = in_le32(&l2ana_reg->port[port_no].vlan_cfg); in vsc9953_port_vlan_pvid_set()
374 out_le32(&l2ana_reg->port[port_no].vlan_cfg, val); in vsc9953_port_vlan_pvid_set()
394 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_vlan_aware_set() local
402 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_vlan_aware_set()
406 setbits_le32(&l2ana_reg->port[port_no].vlan_cfg, in vsc9953_port_vlan_aware_set()
409 clrbits_le32(&l2ana_reg->port[port_no].vlan_cfg, in vsc9953_port_vlan_aware_set()
426 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_vlan_popcnt_set() local
439 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_vlan_popcnt_set()
442 val = in_le32(&l2ana_reg->port[port_no].vlan_cfg); in vsc9953_port_vlan_popcnt_set()
445 out_le32(&l2ana_reg->port[port_no].vlan_cfg, val); in vsc9953_port_vlan_popcnt_set()
460 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_ingr_fltr_learn_drop() local
462 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_ingr_fltr_learn_drop()
466 setbits_le32(&l2ana_reg->ana.adv_learn, VSC9953_VLAN_CHK); in vsc9953_vlan_ingr_fltr_learn_drop()
468 clrbits_le32(&l2ana_reg->ana.adv_learn, VSC9953_VLAN_CHK); in vsc9953_vlan_ingr_fltr_learn_drop()
480 struct vsc9953_analyzer *l2ana_reg; in vsc9953_aggr_code_set() local
482 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_aggr_code_set()
487 clrsetbits_le32(&l2ana_reg->common.aggr_cfg, in vsc9953_aggr_code_set()
496 clrsetbits_le32(&l2ana_reg->common.aggr_cfg, VSC9953_AC_RND_ENA, in vsc9953_aggr_code_set()
639 struct vsc9953_analyzer *l2ana_reg; in vsc9953_autoage_time_set() local
641 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_autoage_time_set()
647 autoage = bitfield_replace_by_mask(in_le32(&l2ana_reg->ana.auto_age), in vsc9953_autoage_time_set()
650 out_le32(&l2ana_reg->ana.auto_age, autoage); in vsc9953_autoage_time_set()
974 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_learn_mode_set() local
982 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_learn_mode_set()
987 clrbits_le32(&l2ana_reg->port[port_no].port_cfg, in vsc9953_port_learn_mode_set()
994 clrsetbits_le32(&l2ana_reg->port[port_no].port_cfg, in vsc9953_port_learn_mode_set()
1009 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_learn_mode_get() local
1017 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_learn_mode_get()
1021 val = in_le32(&l2ana_reg->port[port_no].port_cfg); in vsc9953_port_learn_mode_get()
1035 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_poll_idle() local
1038 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_poll_idle()
1042 while (((in_le32(&l2ana_reg->ana_tables.mac_access) & in vsc9953_mac_table_poll_idle()
1064 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_cmd() local
1066 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_cmd()
1071 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1076 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1081 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1088 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1096 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1102 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1108 clrsetbits_le32(&l2ana_reg->ana_tables.mac_access, in vsc9953_mac_table_cmd()
1136 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_show() local
1138 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_show()
1156 val = in_le32(&l2ana_reg->ana.anag_efil); in vsc9953_mac_table_show()
1165 out_le32(&l2ana_reg->ana.anag_efil, val); in vsc9953_mac_table_show()
1168 clrbits_le32(&l2ana_reg->ana_tables.mach_data, in vsc9953_mac_table_show()
1170 out_le32(&l2ana_reg->ana_tables.macl_data, 0); in vsc9953_mac_table_show()
1180 val = in_le32(&l2ana_reg->ana_tables.mac_access); in vsc9953_mac_table_show()
1206 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_show()
1209 macl = in_le32(&l2ana_reg->ana_tables.macl_data); in vsc9953_mac_table_show()
1231 clrbits_le32(&l2ana_reg->ana.anag_efil, VSC9953_AGE_PORT_EN | in vsc9953_mac_table_show()
1240 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_add() local
1242 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_add()
1245 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_add()
1248 out_le32(&l2ana_reg->ana_tables.mach_data, val); in vsc9953_mac_table_add()
1250 out_le32(&l2ana_reg->ana_tables.macl_data, in vsc9953_mac_table_add()
1255 val = in_le32(&l2ana_reg->ana_tables.mac_access); in vsc9953_mac_table_add()
1257 out_le32(&l2ana_reg->ana_tables.mac_access, val); in vsc9953_mac_table_add()
1263 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_add()
1266 out_le32(&l2ana_reg->ana_tables.mach_data, val); in vsc9953_mac_table_add()
1268 out_le32(&l2ana_reg->ana_tables.macl_data, in vsc9953_mac_table_add()
1275 val = in_le32(&l2ana_reg->ana_tables.mac_access); in vsc9953_mac_table_add()
1289 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_del() local
1291 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_del()
1295 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_del()
1298 out_le32(&l2ana_reg->ana_tables.mach_data, val); in vsc9953_mac_table_del()
1300 out_le32(&l2ana_reg->ana_tables.macl_data, in vsc9953_mac_table_del()
1309 if (!(in_le32(&l2ana_reg->ana_tables.mac_access) & in vsc9953_mac_table_del()
1318 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_del()
1321 out_le32(&l2ana_reg->ana_tables.mach_data, val); in vsc9953_mac_table_del()
1323 out_le32(&l2ana_reg->ana_tables.macl_data, (mac[2] << 24) | in vsc9953_mac_table_del()
1330 val = in_le32(&l2ana_reg->ana_tables.mach_data); in vsc9953_mac_table_del()
1333 out_le32(&l2ana_reg->ana_tables.mach_data, val); in vsc9953_mac_table_del()
1335 out_le32(&l2ana_reg->ana_tables.macl_data, (mac[2] << 24) | in vsc9953_mac_table_del()
1342 if (in_le32(&l2ana_reg->ana_tables.mac_access) & in vsc9953_mac_table_del()
1358 struct vsc9953_analyzer *l2ana_reg; in vsc9953_mac_table_age() local
1360 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_mac_table_age()
1364 val = in_le32(&l2ana_reg->ana.anag_efil); in vsc9953_mac_table_age()
1387 out_le32(&l2ana_reg->ana.anag_efil, val); in vsc9953_mac_table_age()
1393 clrbits_le32(&l2ana_reg->ana.anag_efil, VSC9953_AGE_PORT_EN | in vsc9953_mac_table_age()
1469 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_learning_set() local
1471 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_learning_set()
1476 setbits_le32(&l2ana_reg->ana.agen_ctrl, VSC9953_FID_MASK_ALL); in vsc9953_vlan_learning_set()
1479 clrbits_le32(&l2ana_reg->ana.agen_ctrl, VSC9953_FID_MASK_ALL); in vsc9953_vlan_learning_set()
1490 struct vsc9953_analyzer *l2ana_reg; in vsc9953_vlan_learning_get() local
1492 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_vlan_learning_get()
1495 val = in_le32(&l2ana_reg->ana.agen_ctrl); in vsc9953_vlan_learning_get()
1512 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_ingress_filtering_set() local
1514 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_ingress_filtering_set()
1518 setbits_le32(&l2ana_reg->ana.vlan_mask, 1 << port_no); in vsc9953_port_ingress_filtering_set()
1520 clrbits_le32(&l2ana_reg->ana.vlan_mask, 1 << port_no); in vsc9953_port_ingress_filtering_set()
1527 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_ingress_filtering_get() local
1529 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_ingress_filtering_get()
1532 val = in_le32(&l2ana_reg->ana.vlan_mask); in vsc9953_port_ingress_filtering_get()
1540 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_aggr_grp_get() local
1545 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_aggr_grp_get()
1548 val = in_le32(&l2ana_reg->port[port_no].port_cfg); in vsc9953_port_aggr_grp_get()
1577 struct vsc9953_analyzer *l2ana_reg; in vsc9953_update_dest_members_masks() local
1579 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_update_dest_members_masks()
1588 clrsetbits_le32(&l2ana_reg->port_id_tbl.port_grp_id[i], in vsc9953_update_dest_members_masks()
1594 pgid = in_le32(&l2ana_reg->port_id_tbl.port_grp_id[i]); in vsc9953_update_dest_members_masks()
1600 out_le32(&l2ana_reg->port_id_tbl.port_grp_id[i], pgid); in vsc9953_update_dest_members_masks()
1611 struct vsc9953_analyzer *l2ana_reg; in vsc9953_update_source_members_masks() local
1613 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_update_source_members_masks()
1618 pgid = in_le32(&l2ana_reg->port_id_tbl.port_grp_id[index]); in vsc9953_update_source_members_masks()
1622 out_le32(&l2ana_reg->port_id_tbl.port_grp_id[index], in vsc9953_update_source_members_masks()
1632 out_le32(&l2ana_reg->port_id_tbl.port_grp_id[index], pgid); in vsc9953_update_source_members_masks()
1662 struct vsc9953_analyzer *l2ana_reg; in vsc9953_update_aggr_members_masks() local
1664 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_update_aggr_members_masks()
1669 pgid = in_le32(&l2ana_reg->port_id_tbl.port_grp_id[i]); in vsc9953_update_aggr_members_masks()
1679 out_le32(&l2ana_reg->port_id_tbl.port_grp_id[i], pgid); in vsc9953_update_aggr_members_masks()
1720 struct vsc9953_analyzer *l2ana_reg; in vsc9953_port_aggr_grp_set() local
1725 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_port_aggr_grp_set()
1746 val = in_le32(&l2ana_reg->port[port_no].port_cfg); in vsc9953_port_aggr_grp_set()
1749 out_le32(&l2ana_reg->port[port_no].port_cfg, val); in vsc9953_port_aggr_grp_set()
2613 struct vsc9953_analyzer *l2ana_reg; in vsc9953_init() local
2619 l2ana_reg = (struct vsc9953_analyzer *)(VSC9953_OFFSET + in vsc9953_init()
2665 out_le32(&l2ana_reg->pfc[i].pfc_cfg, in vsc9953_init()
2670 out_le32(&l2ana_reg->pfc[i].pfc_cfg, in vsc9953_init()