Lines Matching refs:p_sfinfo

23 SFINFO *p_sfinfo)  in alloc_encode_ldac()  argument
26 CFG *p_cfg = &p_sfinfo->cfg; in alloc_encode_ldac()
33 p_sfinfo->ap_ac[ich] = (AC *)calloc_ldac(p_sfinfo, 1, sizeof(AC)); in alloc_encode_ldac()
34 if (p_sfinfo->ap_ac[ich] != (AC *)NULL) { in alloc_encode_ldac()
35 p_sfinfo->ap_ac[ich]->p_acsub = (ACSUB *)calloc_ldac(p_sfinfo, 1, sizeof(ACSUB)); in alloc_encode_ldac()
36 if (p_sfinfo->ap_ac[ich]->p_acsub == (ACSUB *)NULL) { in alloc_encode_ldac()
52 p_sfinfo->p_ab = (AB *)calloc_ldac(p_sfinfo, nbks, sizeof(AB)); in alloc_encode_ldac()
53 if (p_sfinfo->p_ab == (AB *)NULL) { in alloc_encode_ldac()
64 SFINFO *p_sfinfo) in init_encode_ldac() argument
67 CFG *p_cfg = &p_sfinfo->cfg; in init_encode_ldac()
75 if (alloc_encode_ldac(p_sfinfo) == LDAC_E_FAIL) { in init_encode_ldac()
76 p_sfinfo->error_code = LDAC_ERR_ALLOC_MEMORY; in init_encode_ldac()
80 p_sfinfo->error_code = LDAC_ERR_NONE; in init_encode_ldac()
84 p_ab = p_sfinfo->p_ab; in init_encode_ldac()
89 p_ab->p_error_code = &p_sfinfo->error_code; in init_encode_ldac()
93 p_ab->ap_ac[ich] = p_sfinfo->ap_ac[ch_offset++]; in init_encode_ldac()
102 calc_initial_bits_ldac(p_sfinfo); in init_encode_ldac()
111 SFINFO *p_sfinfo) in calc_initial_bits_ldac() argument
113 CFG *p_cfg = &p_sfinfo->cfg; in calc_initial_bits_ldac()
114 AB *p_ab = p_sfinfo->p_ab; in calc_initial_bits_ldac()
144 SFINFO *p_sfinfo) in free_encode_ldac() argument
147 int nchs = p_sfinfo->cfg.ch; in free_encode_ldac()
150 if (p_sfinfo->p_ab != (AB *)NULL) { in free_encode_ldac()
151 free(p_sfinfo->p_ab); in free_encode_ldac()
152 p_sfinfo->p_ab = (AB *)NULL; in free_encode_ldac()
157 if (p_sfinfo->ap_ac[ich] != (AC *)NULL) { in free_encode_ldac()
158 if (p_sfinfo->ap_ac[ich]->p_acsub != (ACSUB *)NULL) { in free_encode_ldac()
159 free(p_sfinfo->ap_ac[ich]->p_acsub); in free_encode_ldac()
160 p_sfinfo->ap_ac[ich]->p_acsub = (ACSUB *)NULL; in free_encode_ldac()
162 free(p_sfinfo->ap_ac[ich]); in free_encode_ldac()
163 p_sfinfo->ap_ac[ich] = (AC *)NULL; in free_encode_ldac()
205 SFINFO *p_sfinfo, in encode_ldac() argument
214 AB *p_ab = p_sfinfo->p_ab; in encode_ldac()
216 int nbks = gaa_block_setting_ldac[p_sfinfo->cfg.chconfig_id][1]; in encode_ldac()