Lines Matching refs:targets
1044 struct ep11_target_dev *targets) in is_desired_ep11_card() argument
1047 if (targets->ap_id == dev_id || targets->ap_id == AUTOSEL_AP) in is_desired_ep11_card()
1049 targets++; in is_desired_ep11_card()
1056 struct ep11_target_dev *targets) in is_desired_ep11_queue() argument
1061 if ((targets->ap_id == card || targets->ap_id == AUTOSEL_AP) && in is_desired_ep11_queue()
1062 (targets->dom_id == dom || targets->dom_id == AUTOSEL_DOM)) in is_desired_ep11_queue()
1064 targets++; in is_desired_ep11_queue()
1075 struct ep11_target_dev *targets; in _zcrypt_send_ep11_cprb() local
1095 targets = NULL; in _zcrypt_send_ep11_cprb()
1099 targets = kcalloc(target_num, sizeof(*targets), GFP_KERNEL); in _zcrypt_send_ep11_cprb()
1100 if (!targets) { in _zcrypt_send_ep11_cprb()
1106 uptr = (struct ep11_target_dev __force __user *)xcrb->targets; in _zcrypt_send_ep11_cprb()
1107 if (z_copy_from_user(userspace, targets, uptr, in _zcrypt_send_ep11_cprb()
1108 target_num * sizeof(*targets))) { in _zcrypt_send_ep11_cprb()
1140 if (targets && in _zcrypt_send_ep11_cprb()
1141 !is_desired_ep11_card(zc->card->id, target_num, targets)) in _zcrypt_send_ep11_cprb()
1161 (targets && in _zcrypt_send_ep11_cprb()
1163 target_num, targets))) in _zcrypt_send_ep11_cprb()
1185 if (targets && target_num == 1) { in _zcrypt_send_ep11_cprb()
1187 __func__, (int)targets->ap_id, in _zcrypt_send_ep11_cprb()
1188 (int)targets->dom_id); in _zcrypt_send_ep11_cprb()
1189 } else if (targets) { in _zcrypt_send_ep11_cprb()
1208 kfree(targets); in _zcrypt_send_ep11_cprb()