Lines Matching refs:cfg_bits

72 static int qla_set_port_config(qla_host_t *ha, uint32_t cfg_bits);
73 static int qla_get_port_config(qla_host_t *ha, uint32_t *cfg_bits);
137 uint32_t cfg_bits; in qla_sysctl_port_cfg() local
147 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
153 cfg_bits |= Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
155 cfg_bits &= ~Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
159 cfg_bits &= ~Q8_PORT_CFG_BITS_PAUSE_CFG_MASK; in qla_sysctl_port_cfg()
162 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_DISABLED; in qla_sysctl_port_cfg()
164 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_STD; in qla_sysctl_port_cfg()
166 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_PPM; in qla_sysctl_port_cfg()
170 cfg_bits &= ~Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK; in qla_sysctl_port_cfg()
173 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT_RCV; in qla_sysctl_port_cfg()
175 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT; in qla_sysctl_port_cfg()
177 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_RCV; in qla_sysctl_port_cfg()
181 err = qla_set_port_config(ha, cfg_bits); in qla_sysctl_port_cfg()
188 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
4052 qla_set_port_config(qla_host_t *ha, uint32_t cfg_bits) in qla_set_port_config() argument
4069 pcfg->cfg_bits = cfg_bits; in qla_set_port_config()
4074 ((cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_set_port_config()
4075 ((cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_set_port_config()
4076 ((cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0)); in qla_set_port_config()
4159 qla_get_port_config(qla_host_t *ha, uint32_t *cfg_bits) in qla_get_port_config() argument
4194 pcfg_rsp->cfg_bits, pcfg_rsp->phys_port_type, in qla_get_port_config()
4195 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_get_port_config()
4196 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_get_port_config()
4197 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0) in qla_get_port_config()
4200 *cfg_bits = pcfg_rsp->cfg_bits; in qla_get_port_config()