Lines Matching refs:cfg_bits

74 static int qla_set_port_config(qla_host_t *ha, uint32_t cfg_bits);
75 static int qla_get_port_config(qla_host_t *ha, uint32_t *cfg_bits);
139 uint32_t cfg_bits; in qla_sysctl_port_cfg() local
149 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
155 cfg_bits |= Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
157 cfg_bits &= ~Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
161 cfg_bits &= ~Q8_PORT_CFG_BITS_PAUSE_CFG_MASK; in qla_sysctl_port_cfg()
164 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_DISABLED; in qla_sysctl_port_cfg()
166 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_STD; in qla_sysctl_port_cfg()
168 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_PPM; in qla_sysctl_port_cfg()
172 cfg_bits &= ~Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK; in qla_sysctl_port_cfg()
175 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT_RCV; in qla_sysctl_port_cfg()
177 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT; in qla_sysctl_port_cfg()
179 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_RCV; in qla_sysctl_port_cfg()
183 err = qla_set_port_config(ha, cfg_bits); in qla_sysctl_port_cfg()
190 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
4076 qla_set_port_config(qla_host_t *ha, uint32_t cfg_bits) in qla_set_port_config() argument
4093 pcfg->cfg_bits = cfg_bits; in qla_set_port_config()
4098 ((cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_set_port_config()
4099 ((cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_set_port_config()
4100 ((cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0)); in qla_set_port_config()
4183 qla_get_port_config(qla_host_t *ha, uint32_t *cfg_bits) in qla_get_port_config() argument
4218 pcfg_rsp->cfg_bits, pcfg_rsp->phys_port_type, in qla_get_port_config()
4219 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_get_port_config()
4220 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_get_port_config()
4221 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0) in qla_get_port_config()
4224 *cfg_bits = pcfg_rsp->cfg_bits; in qla_get_port_config()