Lines Matching defs:targets
979 struct ep11_target_dev *targets)
982 if (targets->ap_id == dev_id || targets->ap_id == AUTOSEL_AP)
984 targets++;
991 struct ep11_target_dev *targets)
996 if ((targets->ap_id == card || targets->ap_id == AUTOSEL_AP) &&
997 (targets->dom_id == dom || targets->dom_id == AUTOSEL_DOM))
999 targets++;
1010 struct ep11_target_dev *targets;
1024 /* empty list indicates autoselect (all available targets) */
1025 targets = NULL;
1029 targets = kcalloc(target_num, sizeof(*targets), GFP_KERNEL);
1030 if (!targets) {
1036 uptr = (struct ep11_target_dev __force __user *)xcrb->targets;
1037 if (z_copy_from_user(userspace, targets, uptr,
1038 target_num * sizeof(*targets))) {
1070 if (targets &&
1071 !is_desired_ep11_card(zc->card->id, target_num, targets))
1091 (targets &&
1093 target_num, targets)))
1115 if (targets && target_num == 1) {
1117 __func__, (int)targets->ap_id,
1118 (int)targets->dom_id);
1119 } else if (targets) {
1138 kfree(targets);