Lines Matching refs:ctl_val
225 u32 ctl_val; in switchtec_ntb_mw_clr_direct() local
227 ctl_val = ioread32(&ctl->bar_entry[bar].ctl); in switchtec_ntb_mw_clr_direct()
228 ctl_val &= ~NTB_CTRL_BAR_DIR_WIN_EN; in switchtec_ntb_mw_clr_direct()
229 iowrite32(ctl_val, &ctl->bar_entry[bar].ctl); in switchtec_ntb_mw_clr_direct()
248 u32 ctl_val; in switchtec_ntb_mw_set_direct() local
250 ctl_val = ioread32(&ctl->bar_entry[bar].ctl); in switchtec_ntb_mw_set_direct()
251 ctl_val |= NTB_CTRL_BAR_DIR_WIN_EN; in switchtec_ntb_mw_set_direct()
253 iowrite32(ctl_val, &ctl->bar_entry[bar].ctl); in switchtec_ntb_mw_set_direct()
916 u32 ctl_val; in config_rsvd_lut_win() local
924 ctl_val = ioread32(&ctl->bar_entry[peer_bar].ctl); in config_rsvd_lut_win()
925 ctl_val &= 0xFF; in config_rsvd_lut_win()
926 ctl_val |= NTB_CTRL_BAR_LUT_WIN_EN; in config_rsvd_lut_win()
927 ctl_val |= ilog2(LUT_SIZE) << 8; in config_rsvd_lut_win()
928 ctl_val |= (sndev->nr_lut_mw - 1) << 14; in config_rsvd_lut_win()
929 iowrite32(ctl_val, &ctl->bar_entry[peer_bar].ctl); in config_rsvd_lut_win()
1005 u32 ctl_val; in crosslink_setup_mws() local
1035 ctl_val = ioread32(&ctl->bar_entry[bar].ctl); in crosslink_setup_mws()
1036 ctl_val |= NTB_CTRL_BAR_DIR_WIN_EN; in crosslink_setup_mws()
1038 iowrite32(ctl_val, &ctl->bar_entry[bar].ctl); in crosslink_setup_mws()