Searched refs:hat (Results 1 - 21 of 21) sorted by relevance

/linux-4.4.14/security/apparmor/
H A Dprocattr.c116 char *hat; aa_setprocattr_changehat() local
121 hat = split_token_from_name(OP_CHANGE_HAT, args, &token); aa_setprocattr_changehat()
122 if (IS_ERR(hat)) aa_setprocattr_changehat()
123 return PTR_ERR(hat); aa_setprocattr_changehat()
125 if (!hat && !token) { aa_setprocattr_changehat()
126 AA_ERROR("change_hat: Invalid input, NULL hat and NULL magic"); aa_setprocattr_changehat()
130 if (hat) { aa_setprocattr_changehat()
131 /* set up hat name vector, args guaranteed null terminated aa_setprocattr_changehat()
134 * If there are multiple hat names in the buffer each is aa_setprocattr_changehat()
138 for (count = 0; (hat < end) && count < 16; ++count) { aa_setprocattr_changehat()
139 char *next = hat + strlen(hat) + 1; aa_setprocattr_changehat()
140 hats[count] = hat; aa_setprocattr_changehat()
141 hat = next; aa_setprocattr_changehat()
146 __func__, token, hat ? hat : NULL); aa_setprocattr_changehat()
H A Dcontext.c149 * aa_set_current_hat - set the current tasks hat
150 * @profile: profile to set as the current hat (NOT NULL)
151 * @token: token value that must be specified to change from the hat
153 * Do switch of tasks hat. If the task is currently in a hat
188 * aa_restore_previous_profile - exit from hat context restoring the profile
189 * @token: the token that must be matched to exit hat context
191 * Attempt to return out of a hat to the previous profile. The token
H A Ddomain.c591 * aa_change_hat - change hat to/from subprofile
592 * @hats: vector of hat names to try changing into (MAYBE NULL if @count == 0)
593 * @count: number of hat names in @hats
594 * @token: magic value to validate the hat change
608 struct aa_profile *profile, *previous_profile, *hat = NULL; aa_change_hat() local
636 /* attempting to change into a new hat or switch to a sibling */ aa_change_hat()
643 /* find first matching hat */ aa_change_hat()
644 for (i = 0; i < count && !hat; i++) aa_change_hat()
646 hat = aa_find_child(root, hats[i]); aa_change_hat()
647 if (!hat) { aa_change_hat()
659 * Audit the failure is based off of the first hat aa_change_hat()
671 hat = aa_new_null_profile(profile, 1); aa_change_hat()
672 if (!hat) { aa_change_hat()
679 target = hat->base.hname; aa_change_hat()
680 if (!PROFILE_IS_HAT(hat)) { aa_change_hat()
681 info = "target not hat"; aa_change_hat()
687 error = may_change_ptraced_domain(hat); aa_change_hat()
695 error = aa_set_current_hat(hat, token); aa_change_hat()
721 aa_put_profile(hat); aa_change_hat()
H A Dpolicy.c677 * @hat: true if the null- learning profile is a hat
688 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat) aa_new_null_profile() argument
707 if (hat) aa_new_null_profile()
/linux-4.4.14/drivers/s390/char/
H A Dctrlchar.c52 /* hat is 0xb1 in codepage 037 (US etc.) and thus */ ctrlchar_handle()
H A Dtape_34xx.c254 * We tried to read forward and backward, but hat no tape_34xx_erp_read_opposite()
H A Dtape_3590.c948 /* We tried to read forward and backward, but hat no success */ tape_3590_erp_read_opposite()
/linux-4.4.14/drivers/input/joystick/
H A Dsidewinder.c303 int hat, i, j; sw_parse() local
310 if (sw_check(GB(0,64)) || (hat = (GB(6,1) << 3) | GB(60,3)) > 8) sw_parse()
320 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); sw_parse()
321 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); sw_parse()
354 if (!sw_parity(GB(0,48)) || (hat = GB(42,4)) > 8) sw_parse()
363 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); sw_parse()
364 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); sw_parse()
375 if (!sw_parity(GB(0,43)) || (hat = GB(28,4)) > 8) sw_parse()
383 input_report_abs(dev, ABS_HAT0X, sw_hat_to_axis[hat].x); sw_parse()
384 input_report_abs(dev, ABS_HAT0Y, sw_hat_to_axis[hat].y); sw_parse()
H A Dguillemot.c62 int hat; member in struct:guillemot_type
138 if (guillemot->type->hat) { guillemot_poll()
243 if (guillemot->type->hat) { guillemot_connect()
H A Dwarrior.c82 case 5: /* Throttle, spinner, hat info->data */ warrior_process_packet()
H A Danalog.c444 snprintf(analog->name, sizeof(analog->name), "%s %d-hat", analog_name()
/linux-4.4.14/security/apparmor/include/
H A Dpolicy.h63 PFLAG_HAT = 1, /* profile is a hat */
244 struct aa_profile *aa_new_null_profile(struct aa_profile *parent, int hat);
/linux-4.4.14/drivers/input/joystick/iforce/
H A Diforce-packets.c203 /* If there are untouched bits left, interpret them as the second hat */ iforce_process_packet()
/linux-4.4.14/drivers/usb/serial/
H A Dkeyspan.h26 Tip 'o the hat to IBM (and previously Linuxcare :) for supporting
H A Dkeyspan.c26 Tip 'o the hat to IBM (and previously Linuxcare :) for supporting
/linux-4.4.14/security/smack/
H A Dsmack_access.c160 * A hat subject can read or lock any object. smk_access()
/linux-4.4.14/arch/mn10300/kernel/
H A Dmn10300-serial.c545 /* pull chars out of the hat */ mn10300_serial_receive_interrupt()
1726 /* pull chars out of the hat */ mn10300_serial_poll_get_char()
/linux-4.4.14/drivers/gpu/drm/i915/
H A Dintel_fbc.c1120 /* This value was pulled out of someone's hat */
/linux-4.4.14/include/linux/
H A Dhid.h400 __s8 hat_min; /* hat switch fun */
/linux-4.4.14/net/sched/
H A Dsch_qfq.c1041 * Admissible values for \hat(F) are multiples of \sigma_i
/linux-4.4.14/drivers/input/tablet/
H A Daiptek.c757 * hat switches (which just so happen to be the macroKeys.) aiptek_irq()

Completed in 751 milliseconds