Lines Matching refs:pclc
338 static bool smc_clc_msg_prop_valid(struct smc_clc_msg_proposal *pclc) in smc_clc_msg_prop_valid() argument
342 struct smc_clc_msg_hdr *hdr = &pclc->hdr; in smc_clc_msg_prop_valid()
345 v2_ext = smc_get_clc_v2_ext(pclc); in smc_clc_msg_prop_valid()
346 pclc_prfx = smc_clc_proposal_get_prefix(pclc); in smc_clc_msg_prop_valid()
351 sizeof(*pclc) + ntohs(pclc->iparea_offset) + in smc_clc_msg_prop_valid()
359 sizeof(*pclc) + in smc_clc_msg_prop_valid()
438 struct smc_clc_msg_proposal *pclc; in smc_clc_msg_hdr_valid() local
447 pclc = (struct smc_clc_msg_proposal *)clcm; in smc_clc_msg_hdr_valid()
448 if (!smc_clc_msg_prop_valid(pclc)) in smc_clc_msg_hdr_valid()
451 ((u8 *)pclc + ntohs(pclc->hdr.length) - sizeof(*trl)); in smc_clc_msg_hdr_valid()
811 struct smc_clc_msg_proposal_area *pclc; in smc_clc_send_proposal() local
821 pclc = kzalloc(sizeof(*pclc), GFP_KERNEL); in smc_clc_send_proposal()
822 if (!pclc) in smc_clc_send_proposal()
825 pclc_base = &pclc->pclc_base; in smc_clc_send_proposal()
826 pclc_smcd = &pclc->pclc_smcd; in smc_clc_send_proposal()
827 pclc_prfx = &pclc->pclc_prfx; in smc_clc_send_proposal()
828 ipv6_prfx = pclc->pclc_prfx_ipv6; in smc_clc_send_proposal()
829 v2_ext = &pclc->pclc_v2_ext; in smc_clc_send_proposal()
830 smcd_v2_ext = &pclc->pclc_smcd_v2_ext; in smc_clc_send_proposal()
831 gidchids = pclc->pclc_gidchids; in smc_clc_send_proposal()
832 trl = &pclc->pclc_trl; in smc_clc_send_proposal()
844 kfree(pclc); in smc_clc_send_proposal()
974 kfree(pclc); in smc_clc_send_proposal()