Lines Matching refs:gen_parms
65 struct wl1271_general_parms_cmd *gen_parms; in wl1271_cmd_general_parms() local
80 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl1271_cmd_general_parms()
81 if (!gen_parms) in wl1271_cmd_general_parms()
84 gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM; in wl1271_cmd_general_parms()
86 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl1271_cmd_general_parms()
90 gen_parms->general_params.tx_bip_fem_auto_detect = true; in wl1271_cmd_general_parms()
92 if (gen_parms->general_params.tx_bip_fem_auto_detect) in wl1271_cmd_general_parms()
96 gen_parms->general_params.ref_clock = priv->ref_clock; in wl1271_cmd_general_parms()
98 ret = wl1271_cmd_test(wl, gen_parms, sizeof(*gen_parms), answer); in wl1271_cmd_general_parms()
105 gen_parms->general_params.tx_bip_fem_manufacturer; in wl1271_cmd_general_parms()
126 kfree(gen_parms); in wl1271_cmd_general_parms()
132 struct wl128x_general_parms_cmd *gen_parms; in wl128x_cmd_general_parms() local
147 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl128x_cmd_general_parms()
148 if (!gen_parms) in wl128x_cmd_general_parms()
151 gen_parms->test.id = TEST_CMD_INI_FILE_GENERAL_PARAM; in wl128x_cmd_general_parms()
153 memcpy(&gen_parms->general_params, gp, sizeof(*gp)); in wl128x_cmd_general_parms()
157 gen_parms->general_params.tx_bip_fem_auto_detect = true; in wl128x_cmd_general_parms()
159 if (gen_parms->general_params.tx_bip_fem_auto_detect) in wl128x_cmd_general_parms()
163 gen_parms->general_params.ref_clock = priv->ref_clock; in wl128x_cmd_general_parms()
164 gen_parms->general_params.tcxo_ref_clock = priv->tcxo_clock; in wl128x_cmd_general_parms()
166 ret = wl1271_cmd_test(wl, gen_parms, sizeof(*gen_parms), answer); in wl128x_cmd_general_parms()
173 gen_parms->general_params.tx_bip_fem_manufacturer; in wl128x_cmd_general_parms()
194 kfree(gen_parms); in wl128x_cmd_general_parms()