Lines Matching refs:perms

129 	struct ap_perms perms;
175 for (i = 0; i < sizeof(zcdndev->perms.ioctlm) / sizeof(long); i++)
178 "%016lx", zcdndev->perms.ioctlm[i]);
195 rc = ap_parse_mask_str(buf, zcdndev->perms.ioctlm,
217 for (i = 0; i < sizeof(zcdndev->perms.apm) / sizeof(long); i++)
220 "%016lx", zcdndev->perms.apm[i]);
237 rc = ap_parse_mask_str(buf, zcdndev->perms.apm,
259 for (i = 0; i < sizeof(zcdndev->perms.aqm) / sizeof(long); i++)
262 "%016lx", zcdndev->perms.aqm[i]);
279 rc = ap_parse_mask_str(buf, zcdndev->perms.aqm,
496 struct ap_perms *perms = &ap_perms;
508 perms = &zcdndev->perms;
511 filp->private_data = (void *) perms;
543 static inline int zcrypt_check_ioctl(struct ap_perms *perms,
550 if (test_bit_inv(ioctlnr, perms->ioctlm))
562 static inline bool zcrypt_check_card(struct ap_perms *perms, int card)
564 return test_bit_inv(card, perms->apm) ? true : false;
567 static inline bool zcrypt_check_queue(struct ap_perms *perms, int queue)
569 return test_bit_inv(queue, perms->aqm) ? true : false;
634 static long zcrypt_rsa_modexpo(struct ap_perms *perms,
685 if (!zcrypt_check_card(perms, zc->card->id))
701 if (!zcrypt_check_queue(perms,
742 static long zcrypt_rsa_crt(struct ap_perms *perms,
793 if (!zcrypt_check_card(perms, zc->card->id))
809 if (!zcrypt_check_queue(perms,
850 static long _zcrypt_send_cprb(bool userspace, struct ap_perms *perms,
906 if (!zcrypt_check_card(perms, zc->card->id))
925 if (!zcrypt_check_queue(perms,
1011 static long _zcrypt_send_ep11_cprb(bool userspace, struct ap_perms *perms,
1074 if (!zcrypt_check_card(perms, zc->card->id))
1094 if (!zcrypt_check_queue(perms,
1406 static int icarsamodexpo_ioctl(struct ap_perms *perms, unsigned long arg)
1427 rc = zcrypt_rsa_modexpo(perms, &tr, &mex);
1438 rc = zcrypt_rsa_modexpo(perms, &tr, &mex);
1451 static int icarsacrt_ioctl(struct ap_perms *perms, unsigned long arg)
1472 rc = zcrypt_rsa_crt(perms, &tr, &crt);
1483 rc = zcrypt_rsa_crt(perms, &tr, &crt);
1496 static int zsecsendcprb_ioctl(struct ap_perms *perms, unsigned long arg)
1517 rc = _zcrypt_send_cprb(true, perms, &tr, &xcRB);
1528 rc = _zcrypt_send_cprb(true, perms, &tr, &xcRB);
1542 static int zsendep11cprb_ioctl(struct ap_perms *perms, unsigned long arg)
1563 rc = _zcrypt_send_ep11_cprb(true, perms, &tr, &xcrb);
1574 rc = _zcrypt_send_ep11_cprb(true, perms, &tr, &xcrb);
1591 struct ap_perms *perms =
1594 rc = zcrypt_check_ioctl(perms, cmd);
1600 return icarsamodexpo_ioctl(perms, arg);
1602 return icarsacrt_ioctl(perms, arg);
1604 return zsecsendcprb_ioctl(perms, arg);
1606 return zsendep11cprb_ioctl(perms, arg);
1726 static long trans_modexpo32(struct ap_perms *perms, struct file *filp,
1745 rc = zcrypt_rsa_modexpo(perms, &tr, &mex64);
1752 rc = zcrypt_rsa_modexpo(perms, &tr, &mex64);
1776 static long trans_modexpo_crt32(struct ap_perms *perms, struct file *filp,
1798 rc = zcrypt_rsa_crt(perms, &tr, &crt64);
1805 rc = zcrypt_rsa_crt(perms, &tr, &crt64);
1837 static long trans_xcRB32(struct ap_perms *perms, struct file *filp,
1870 rc = _zcrypt_send_cprb(true, perms, &tr, &xcRB64);
1877 rc = _zcrypt_send_cprb(true, perms, &tr, &xcRB64);
1895 struct ap_perms *perms =
1898 rc = zcrypt_check_ioctl(perms, cmd);
1903 return trans_modexpo32(perms, filp, cmd, arg);
1905 return trans_modexpo_crt32(perms, filp, cmd, arg);
1907 return trans_xcRB32(perms, filp, cmd, arg);