Lines Matching defs:commands
190 /* This function will be called by LL to send commands
191 * NOTE: LL ignores the returned value, for commands other than ISDN_CMD_IOCTL,
199 char **commands;
247 commands = kzalloc(AT_NUM*(sizeof *commands), GFP_ATOMIC);
248 if (!commands) {
255 commands[AT_DIAL] = kmalloc(l, GFP_ATOMIC);
256 if (!commands[AT_DIAL])
261 commands[AT_TYPE] = kstrdup("^SCTP=0\r", GFP_ATOMIC);
262 if (!commands[AT_TYPE])
264 snprintf(commands[AT_DIAL], l,
267 commands[AT_TYPE] = kstrdup("^SCTP=1\r", GFP_ATOMIC);
268 if (!commands[AT_TYPE])
270 snprintf(commands[AT_DIAL], l,
277 commands[AT_MSN] = kmalloc(l, GFP_ATOMIC);
278 if (!commands[AT_MSN])
280 snprintf(commands[AT_MSN], l, "^SMSN=%s\r",
287 commands[AT_BC] = kstrdup("^SBC=9090A3\r", GFP_ATOMIC);
288 if (!commands[AT_BC])
294 commands[AT_BC] = kstrdup("^SBC=8890\r", GFP_ATOMIC);
295 if (!commands[AT_BC])
300 commands[AT_PROTO] = kmalloc(9, GFP_ATOMIC);
301 if (!commands[AT_PROTO])
303 snprintf(commands[AT_PROTO], 9, "^SBPR=%u\r", bcs->proto2);
305 commands[AT_ISO] = kmalloc(9, GFP_ATOMIC);
306 if (!commands[AT_ISO])
308 snprintf(commands[AT_ISO], 9, "^SISO=%u\r",
311 if (!gigaset_add_event(cs, &bcs->at_state, EV_DIAL, commands,
314 kfree(commands[i]);
315 kfree(commands);
421 kfree(commands[i]);
422 kfree(commands);