Home
last modified time | relevance | path

Searched refs:cred (Results 1 – 13 of 13) sorted by relevance

/drivers/net/ethernet/pensando/ionic/
Dionic_regs.h66 int intr_idx, u32 cred, u32 flags) in ionic_intr_credits() argument
68 if (WARN_ON_ONCE(cred > IONIC_INTR_CRED_COUNT)) { in ionic_intr_credits()
69 cred = ioread32(&intr_ctrl[intr_idx].credits); in ionic_intr_credits()
70 cred &= IONIC_INTR_CRED_COUNT_SIGNED; in ionic_intr_credits()
73 iowrite32(cred | flags, &intr_ctrl[intr_idx].credits); in ionic_intr_credits()
79 u32 cred; in ionic_intr_clean() local
81 cred = ioread32(&intr_ctrl[intr_idx].credits); in ionic_intr_clean()
82 cred &= IONIC_INTR_CRED_COUNT_SIGNED; in ionic_intr_clean()
83 cred |= IONIC_INTR_CRED_RESET_COALESCE; in ionic_intr_clean()
84 iowrite32(cred, &intr_ctrl[intr_idx].credits); in ionic_intr_clean()
/drivers/misc/vmw_vmci/
Dvmci_context.h80 const struct cred *cred; member
128 const struct cred *cred);
Dvmci_context.c83 const struct cred *cred) in vmci_ctx_create() argument
148 if (cred) in vmci_ctx_create()
149 context->cred = get_cred(cred); in vmci_ctx_create()
481 if (context->cred) in ctx_free_ctx()
482 put_cred(context->cred); in ctx_free_ctx()
1209 if (context->cred) in vmci_is_context_owner()
1210 is_owner = uid_eq(context->cred->uid, uid); in vmci_is_context_owner()
Dvmci_host.c291 const struct cred *cred; in vmci_host_do_init_context() local
313 cred = get_current_cred(); in vmci_host_do_init_context()
317 cred); in vmci_host_do_init_context()
318 put_cred(cred); in vmci_host_do_init_context()
/drivers/connector/
Dcn_proc.c121 const struct cred *cred; in proc_id_connector() local
133 cred = __task_cred(task); in proc_id_connector()
135 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector()
136 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector()
138 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector()
139 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
/drivers/usb/core/
Ddevio.c72 const struct cred *cred; member
97 const struct cred *cred; member
389 if (as->cred) in free_async()
390 put_cred(as->cred); in free_async()
596 const struct cred *cred = NULL; in async_completed() local
609 cred = get_cred(as->cred); in async_completed()
625 kill_pid_usb_asyncio(signr, errno, addr, pid, cred); in async_completed()
627 put_cred(cred); in async_completed()
1039 ps->cred = get_current_cred(); in usbdev_open()
1084 put_cred(ps->cred); in usbdev_release()
[all …]
/drivers/misc/mic/cosm/
Dcosm_main.c64 const struct cred *orig_cred; in cosm_start()
65 struct cred *override_cred; in cosm_start()
/drivers/misc/cxl/
Dguest.c519 const struct cred *cred; in attach_afu_directed() local
543 cred = get_current_cred(); in attach_afu_directed()
544 if (uid_eq(cred->euid, GLOBAL_ROOT_UID)) in attach_afu_directed()
546 put_cred(cred); in attach_afu_directed()
/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c610 unsigned int cred = fl->avail; in refill_fl() local
709 cred = fl->avail - cred; in refill_fl()
710 fl->pend_cred += cred; in refill_fl()
718 return cred; in refill_fl()
/drivers/virt/vboxguest/
Dvboxguest_linux.c38 if (from_kuid(current_user_ns(), current->cred->uid) == 0) in vbg_misc_device_requestor()
/drivers/hwmon/
Dnct6775.c3645 int cred; in nct6775_check_fan_inputs() local
3650 cred = superio_inb(sioreg, 0xed); in nct6775_check_fan_inputs()
3687 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs()
3693 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs()
3702 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs()
3711 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs()
3729 pwm6pin |= cred & BIT(2); in nct6775_check_fan_inputs()
3743 pwm6pin |= !(cred & BIT(2)) && (cr2a & BIT(3)); in nct6775_check_fan_inputs()
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c597 unsigned int cred = q->avail; in refill_fl() local
674 out: cred = q->avail - cred; in refill_fl()
675 q->pend_cred += cred; in refill_fl()
685 return cred; in refill_fl()
/drivers/net/
Dtun.c621 const struct cred *cred = current_cred(); in tun_not_capable() local
624 return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) || in tun_not_capable()