Lines Matching defs:xperms
1960 avrule->xperms = NULL;
2056 av_extended_perms_t *xperms)
2064 xperms->perms[i] |= ~0U;
2067 xperms->perms[i] |= XPERM_SETBITS(h);
2070 xperms->perms[i] |= ~0U - XPERM_SETBITS(low);
2073 xperms->perms[i] |= XPERM_SETBITS(h) - XPERM_SETBITS(low);
2077 int avrule_xperms_used(av_extended_perms_t *xperms)
2081 for (i = 0; i < sizeof(xperms->perms)/sizeof(xperms->perms[0]); i++) {
2082 if (xperms->perms[i])
2102 av_extended_perms_t *xperms;
2105 xperms = calloc(1, sizeof(av_extended_perms_t));
2106 if (!xperms) {
2117 xperm_set(low, xperms->perms);
2119 xperm_set(high, xperms->perms);
2121 xperm_set(low, xperms->perms);
2122 xperm_set(high, xperms->perms);
2126 if (avrule_xperms_used(xperms)) {
2127 *extended_perms = xperms;
2129 free(xperms);
2140 av_extended_perms_t *xperms;
2142 xperms = calloc(1, sizeof(av_extended_perms_t));
2143 if (!xperms) {
2164 avrule_xperm_setrangebits(low, high - 1, xperms);
2167 if (avrule_xperms_used(xperms)) {
2168 xperms->driver = 0x00;
2169 xperms->specified = AVRULE_XPERMS_IOCTLDRIVER;
2170 *extended_perms = xperms;
2172 free(xperms);
2182 av_extended_perms_t *xperms;
2186 xperms = calloc(1, sizeof(av_extended_perms_t));
2187 if (!xperms) {
2213 avrule_xperm_setrangebits(low, high, xperms);
2214 xperms->driver = driver;
2215 xperms->specified = AVRULE_XPERMS_IOCTLFUNCTION;
2219 if (avrule_xperms_used(xperms)) {
2220 *extended_perms = xperms;
2222 free(xperms);
2239 unsigned int xperms_for_each_bit(unsigned int *bit, av_extended_perms_t *xperms)
2242 for (i = *bit; i < sizeof(xperms->perms)*8; i++) {
2243 if (xperm_test(i,xperms->perms)) {
2244 xperm_clear(i, xperms->perms);
2304 av_extended_perms_t *complete_driver, *partial_driver, *xperms;
2323 avrule->xperms = complete_driver;
2341 if (avrule_ioctl_func(rangelist, &xperms, i))
2344 if (xperms) {
2352 avrule->xperms = xperms;
2418 avrule->xperms = NULL;