Lines Matching refs:crtl
547 u16 crtl; in gswip_pce_table_entry_read() local
581 crtl = gswip_switch_r(priv, GSWIP_PCE_TBL_CTRL); in gswip_pce_table_entry_read()
583 tbl->type = !!(crtl & GSWIP_PCE_TBL_CTRL_TYPE); in gswip_pce_table_entry_read()
584 tbl->valid = !!(crtl & GSWIP_PCE_TBL_CTRL_VLD); in gswip_pce_table_entry_read()
585 tbl->gmap = (crtl & GSWIP_PCE_TBL_CTRL_GMAP_MASK) >> 7; in gswip_pce_table_entry_read()
597 u16 crtl; in gswip_pce_table_entry_write() local
629 crtl = gswip_switch_r(priv, GSWIP_PCE_TBL_CTRL); in gswip_pce_table_entry_write()
630 crtl &= ~(GSWIP_PCE_TBL_CTRL_TYPE | GSWIP_PCE_TBL_CTRL_VLD | in gswip_pce_table_entry_write()
633 crtl |= GSWIP_PCE_TBL_CTRL_TYPE; in gswip_pce_table_entry_write()
635 crtl |= GSWIP_PCE_TBL_CTRL_VLD; in gswip_pce_table_entry_write()
636 crtl |= (tbl->gmap << 7) & GSWIP_PCE_TBL_CTRL_GMAP_MASK; in gswip_pce_table_entry_write()
637 crtl |= GSWIP_PCE_TBL_CTRL_BAS; in gswip_pce_table_entry_write()
638 gswip_switch_w(priv, crtl, GSWIP_PCE_TBL_CTRL); in gswip_pce_table_entry_write()