/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() 1209 if (context->cred) in vmci_is_context_owner() 1210 is_owner = uid_eq(context->cred->uid, uid); in vmci_is_context_owner()
|
D | vmci_host.c | 300 const struct cred *cred; in vmci_host_do_init_context() local 322 cred = get_current_cred(); in vmci_host_do_init_context() 326 cred); in vmci_host_do_init_context() 327 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/android/ |
D | binder_internal.h | 466 const struct cred *cred; member 469 static inline const struct cred *binder_get_cred(struct binder_proc *proc) in binder_get_cred() 474 return eproc->cred; in binder_get_cred()
|
D | binder.c | 5011 put_cred(eproc->cred); in binder_free_proc() 5717 eproc->cred = get_cred(filp->f_cred); in binder_open()
|
/drivers/usb/core/ |
D | devio.c | 72 const struct cred *cred; member 97 const struct cred *cred; member 406 if (as->cred) in free_async() 407 put_cred(as->cred); in free_async() 613 const struct cred *cred = NULL; in async_completed() local 626 cred = get_cred(as->cred); in async_completed() 642 kill_pid_usb_asyncio(signr, errno, addr, pid, cred); in async_completed() 644 put_cred(cred); in async_completed() 1058 ps->cred = get_current_cred(); in usbdev_open() 1103 put_cred(ps->cred); in usbdev_release() [all …]
|
/drivers/misc/cxl/ |
D | guest.c | 519 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/ |
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() 2251 eosw_txq->cred -= wrlen16; in write_eo_wr() 2310 if (unlikely(left < 0 || wrlen16 > eosw_txq->cred)) { in ethofld_hard_xmit() 2318 eosw_txq->cred -= wrlen16; in ethofld_hard_xmit() 4104 eosw_txq->cred += cpl->credits; in cxgb4_ethofld_rx_handler()
|
D | cxgb4.h | 942 u32 cred; /* Current available credits */ member
|
D | cxgb4_debugfs.c | 2884 T("Credits:", cred); in sge_qinfo_show()
|
/drivers/hwmon/ |
D | nct6775.c | 3645 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/ |
D | tun.c | 591 const struct cred *cred = current_cred(); in tun_not_capable() local 594 return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) || in tun_not_capable()
|