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);
140 uint32_t cfg_bits; in qla_sysctl_port_cfg() local
151 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
157 cfg_bits |= Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
159 cfg_bits &= ~Q8_PORT_CFG_BITS_DCBX_ENABLE; in qla_sysctl_port_cfg()
163 cfg_bits &= ~Q8_PORT_CFG_BITS_PAUSE_CFG_MASK; in qla_sysctl_port_cfg()
166 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_DISABLED; in qla_sysctl_port_cfg()
168 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_STD; in qla_sysctl_port_cfg()
170 cfg_bits |= Q8_PORT_CFG_BITS_PAUSE_PPM; in qla_sysctl_port_cfg()
174 cfg_bits &= ~Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK; in qla_sysctl_port_cfg()
177 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT_RCV; in qla_sysctl_port_cfg()
179 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_XMT; in qla_sysctl_port_cfg()
181 cfg_bits |= Q8_PORT_CFG_BITS_STDPAUSE_RCV; in qla_sysctl_port_cfg()
185 err = qla_set_port_config(ha, cfg_bits); in qla_sysctl_port_cfg()
192 err = qla_get_port_config(ha, &cfg_bits); in qla_sysctl_port_cfg()
4130 qla_set_port_config(qla_host_t *ha, uint32_t cfg_bits) in qla_set_port_config() argument
4147 pcfg->cfg_bits = cfg_bits; in qla_set_port_config()
4152 ((cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_set_port_config()
4153 ((cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_set_port_config()
4154 ((cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0)); in qla_set_port_config()
4239 qla_get_port_config(qla_host_t *ha, uint32_t *cfg_bits) in qla_get_port_config() argument
4274 pcfg_rsp->cfg_bits, pcfg_rsp->phys_port_type, in qla_get_port_config()
4275 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_STDPAUSE_DIR_MASK)>>20), in qla_get_port_config()
4276 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_PAUSE_CFG_MASK) >> 5), in qla_get_port_config()
4277 ((pcfg_rsp->cfg_bits & Q8_PORT_CFG_BITS_DCBX_ENABLE) ? 1: 0) in qla_get_port_config()
4280 *cfg_bits = pcfg_rsp->cfg_bits; in qla_get_port_config()