ap_perms
devres = test_bit_inv(card, ap_perms.apm) &&
test_bit_inv(queue, ap_perms.aqm);
!test_bit_inv(domain, ap_perms.aqm))
ap_perms.apm[0], ap_perms.apm[1],
ap_perms.apm[2], ap_perms.apm[3]);
if (bitmap_andnot(reserved, newapm, ap_perms.apm, AP_DEVICES)) {
memcpy(ap_perms.apm, newapm, APMASKSIZE);
bitmap_full(ap_perms.apm, AP_DEVICES) &&
bitmap_full(ap_perms.aqm, AP_DOMAINS) ?
rc = ap_parse_bitmap_str(buf, ap_perms.apm, AP_DEVICES, newapm);
changes = memcmp(ap_perms.apm, newapm, APMASKSIZE);
ap_perms.aqm[0], ap_perms.aqm[1],
ap_perms.aqm[2], ap_perms.aqm[3]);
if (bitmap_andnot(reserved, newaqm, ap_perms.aqm, AP_DOMAINS)) {
memcpy(ap_perms.aqm, newaqm, AQMASKSIZE);
bitmap_full(ap_perms.apm, AP_DEVICES) &&
bitmap_full(ap_perms.aqm, AP_DOMAINS) ?
rc = ap_parse_bitmap_str(buf, ap_perms.aqm, AP_DOMAINS, newaqm);
changes = memcmp(ap_perms.aqm, newaqm, APMASKSIZE);
!test_bit_inv(dom, ap_perms.aqm))
!test_bit_inv(card, ap_perms.apm))
memset(&ap_perms.ioctlm, 0xFF, sizeof(ap_perms.ioctlm));
memset(&ap_perms.apm, 0xFF, sizeof(ap_perms.apm));
memset(&ap_perms.aqm, 0xFF, sizeof(ap_perms.aqm));
memset(&ap_perms.apm, 0, sizeof(ap_perms.apm));
ap_parse_mask_str(apm_str, ap_perms.apm, AP_DEVICES,
memset(&ap_perms.aqm, 0, sizeof(ap_perms.aqm));
ap_parse_mask_str(aqm_str, ap_perms.aqm, AP_DOMAINS,
!test_bit_inv(ap_domain_index, ap_perms.aqm))) {
struct ap_perms ap_perms;
EXPORT_SYMBOL(ap_perms);
devres = test_bit_inv(card, ap_perms.apm) &&
test_bit_inv(queue, ap_perms.aqm);
if (test_bit_inv(card, ap_perms.apm) &&
test_bit_inv(queue, ap_perms.aqm))
struct ap_perms {
extern struct ap_perms ap_perms;
rc = _zcrypt_send_cprb(xflags, &ap_perms, &tr, xcrb);
static long _zcrypt_send_ep11_cprb(u32 xflags, struct ap_perms *perms,
if (perms != &ap_perms && domain < AUTOSEL_DOM) {
rc = _zcrypt_send_ep11_cprb(xflags, &ap_perms, &tr, xcrb);
rc = _zcrypt_send_ep11_cprb(xflags, &ap_perms, &tr, xcrb);
struct ap_perms perms;
static int icarsamodexpo_ioctl(struct ap_perms *perms, unsigned long arg)
static int icarsacrt_ioctl(struct ap_perms *perms, unsigned long arg)
static int zsecsendcprb_ioctl(struct ap_perms *perms, unsigned long arg)
static int zsendep11cprb_ioctl(struct ap_perms *perms, unsigned long arg)
struct ap_perms *perms =
(struct ap_perms *)filp->private_data;
struct ap_perms *perms = &ap_perms;
static inline int zcrypt_check_ioctl(struct ap_perms *perms,
static inline bool zcrypt_check_card(struct ap_perms *perms, int card)
static inline bool zcrypt_check_queue(struct ap_perms *perms, int queue)
static long zcrypt_rsa_modexpo(struct ap_perms *perms,
static long zcrypt_rsa_crt(struct ap_perms *perms,
static long _zcrypt_send_cprb(u32 xflags, struct ap_perms *perms,
if (perms != &ap_perms && tdom < AP_DOMAINS) {
rc = _zcrypt_send_cprb(xflags, &ap_perms, &tr, xcrb);