/drivers/net/ethernet/pensando/ionic/ |
D | ionic_regs.h | 66 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/ |
D | vmci_context.h | 80 const struct cred *cred; member 128 const struct cred *cred);
|
D | vmci_context.c | 83 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() 1206 if (context->cred) in vmci_is_context_owner() 1207 is_owner = uid_eq(context->cred->uid, uid); in vmci_is_context_owner()
|
D | vmci_host.c | 302 const struct cred *cred; in vmci_host_do_init_context() local 324 cred = get_current_cred(); in vmci_host_do_init_context() 328 cred); in vmci_host_do_init_context() 329 put_cred(cred); in vmci_host_do_init_context()
|
/drivers/connector/ |
D | cn_proc.c | 128 const struct cred *cred; in proc_id_connector() local 140 cred = __task_cred(task); in proc_id_connector() 142 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector() 143 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector() 145 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector() 146 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
|
/drivers/hwmon/ |
D | nct6775-platform.c | 582 int cred; in nct6775_check_fan_inputs() local 587 cred = sio_data->sio_inb(sio_data, 0xed); in nct6775_check_fan_inputs() 624 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs() 630 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs() 639 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs() 648 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs() 666 pwm6pin |= cred & BIT(2); in nct6775_check_fan_inputs() 680 pwm6pin |= !(cred & BIT(2)) && (cr2a & BIT(3)); in nct6775_check_fan_inputs()
|
/drivers/crypto/ccp/ |
D | sev-dev.c | 179 struct cred *cred; in open_file_as_root() local 180 const struct cred *old_cred; in open_file_as_root() 186 cred = prepare_creds(); in open_file_as_root() 187 if (!cred) in open_file_as_root() 189 cred->fsuid = GLOBAL_ROOT_UID; in open_file_as_root() 190 old_cred = override_creds(cred); in open_file_as_root()
|
/drivers/android/ |
D | binder_internal.h | 437 const struct cred *cred; member
|
D | binder.c | 2362 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) { in binder_translate_binder() 2408 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) { in binder_translate_handle() 2496 ret = security_binder_transfer_file(proc->cred, target_proc->cred, file); in binder_translate_fd() 3288 if (security_binder_transaction(proc->cred, in binder_transaction() 3289 target_proc->cred) < 0) { in binder_transaction() 3435 security_cred_getsecid(proc->cred, &secid); in binder_transaction() 5182 put_cred(proc->cred); in binder_free_proc() 5395 ret = security_binder_set_context_mgr(proc->cred); in binder_ioctl_set_ctx_mgr() 5907 proc->cred = get_cred(filp->f_cred); in binder_open()
|
/drivers/usb/core/ |
D | devio.c | 73 const struct cred *cred; member 98 const struct cred *cred; member 418 if (as->cred) in free_async() 419 put_cred(as->cred); in free_async() 625 const struct cred *cred = NULL; in async_completed() local 638 cred = get_cred(as->cred); in async_completed() 654 kill_pid_usb_asyncio(signr, errno, addr, pid, cred); in async_completed() 656 put_cred(cred); in async_completed() 1070 ps->cred = get_current_cred(); in usbdev_open() 1115 put_cred(ps->cred); in usbdev_release() [all …]
|
/drivers/misc/cxl/ |
D | guest.c | 525 const struct cred *cred; in attach_afu_directed() local 549 cred = get_current_cred(); in attach_afu_directed() 550 if (uid_eq(cred->euid, GLOBAL_ROOT_UID)) in attach_afu_directed() 552 put_cred(cred); in attach_afu_directed()
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 610 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/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_tc_mqprio.c | 114 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_init_eosw_txq() 133 eosw_txq->cred = adap->params.ofldq_wr_cred; in cxgb4_clean_eosw_txq()
|
D | sge.c | 541 unsigned int cred = q->avail; in refill_fl() local 618 out: cred = q->avail - cred; in refill_fl() 619 q->pend_cred += cred; in refill_fl() 629 return cred; in refill_fl() 2257 eosw_txq->cred -= wrlen16; in write_eo_wr() 2316 if (unlikely(left < 0 || wrlen16 > eosw_txq->cred)) { in ethofld_hard_xmit() 2324 eosw_txq->cred -= wrlen16; in ethofld_hard_xmit() 4129 eosw_txq->cred += cpl->credits; in cxgb4_ethofld_rx_handler()
|
D | cxgb4.h | 940 u32 cred; /* Current available credits */ member
|
D | cxgb4_debugfs.c | 2884 T("Credits:", cred); in sge_qinfo_show()
|
/drivers/base/firmware_loader/ |
D | main.c | 862 struct cred *kern_cred = NULL; in _request_firmware() 863 const struct cred *old_cred; in _request_firmware()
|
/drivers/net/ |
D | tun.c | 579 const struct cred *cred = current_cred(); in tun_not_capable() local 582 return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) || in tun_not_capable()
|