Lines Matching refs:p_cfg
50 static void hidd_l2cif_config_ind(uint16_t cid, tL2CAP_CFG_INFO* p_cfg);
51 static void hidd_l2cif_config_cfm(uint16_t cid, tL2CAP_CFG_INFO* p_cfg);
335 static void hidd_l2cif_config_ind(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in hidd_l2cif_config_ind() argument
347 if ((!p_cfg->mtu_present) || (p_cfg->mtu > HID_DEV_MTU_SIZE)) in hidd_l2cif_config_ind()
350 p_hcon->rem_mtu_size = p_cfg->mtu; in hidd_l2cif_config_ind()
353 p_cfg->flush_to_present = FALSE; in hidd_l2cif_config_ind()
354 p_cfg->mtu_present = FALSE; in hidd_l2cif_config_ind()
355 p_cfg->result = L2CAP_CFG_OK; in hidd_l2cif_config_ind()
357 if (cid == p_hcon->intr_cid && hd_cb.use_in_qos && !p_cfg->qos_present) { in hidd_l2cif_config_ind()
358 p_cfg->qos_present = TRUE; in hidd_l2cif_config_ind()
359 memcpy(&p_cfg->qos, &hd_cb.in_qos, sizeof(FLOW_SPEC)); in hidd_l2cif_config_ind()
362 L2CA_ConfigRsp(cid, p_cfg); in hidd_l2cif_config_ind()
401 static void hidd_l2cif_config_cfm(uint16_t cid, tL2CAP_CFG_INFO* p_cfg) { in hidd_l2cif_config_cfm() argument
406 p_cfg->result); in hidd_l2cif_config_cfm()
416 p_cfg->result == L2CAP_CFG_UNACCEPTABLE_PARAMS && p_cfg->qos_present) { in hidd_l2cif_config_cfm()
422 memcpy(&new_qos.qos, &p_cfg->qos, sizeof(FLOW_SPEC)); in hidd_l2cif_config_cfm()
430 p_cfg->result == L2CAP_CFG_UNKNOWN_OPTIONS) { in hidd_l2cif_config_cfm()
437 } else if (p_cfg->result != L2CAP_CFG_OK) { in hidd_l2cif_config_cfm()
441 reason = HID_L2CAP_CFG_FAIL | (uint32_t)p_cfg->result; in hidd_l2cif_config_cfm()