| /drivers/net/ethernet/pensando/ionic/ |
| A 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/ |
| A D | vmci_context.h | 80 const struct cred *cred; member 128 const struct cred *cred);
|
| A 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() 461 if (context->cred) in ctx_free_ctx() 462 put_cred(context->cred); in ctx_free_ctx() 1154 if (context->cred) in vmci_is_context_owner() 1155 is_owner = uid_eq(context->cred->uid, uid); in vmci_is_context_owner()
|
| A D | vmci_host.c | 301 const struct cred *cred; in vmci_host_do_init_context() local 323 cred = get_current_cred(); in vmci_host_do_init_context() 327 cred); in vmci_host_do_init_context() 328 put_cred(cred); in vmci_host_do_init_context()
|
| /drivers/connector/ |
| A D | cn_proc.c | 176 const struct cred *cred; in proc_id_connector() local 188 cred = __task_cred(task); in proc_id_connector() 190 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector() 191 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector() 193 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector() 194 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
|
| /drivers/hwmon/ |
| A D | nct6775-platform.c | 587 int cred; in nct6775_check_fan_inputs() local 594 cred = sio_data->sio_inb(sio_data, 0xed); in nct6775_check_fan_inputs() 631 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs() 637 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs() 646 (!dsw_en || (cred & BIT(4))); in nct6775_check_fan_inputs() 655 pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2)); in nct6775_check_fan_inputs() 673 pwm6pin |= cred & BIT(2); in nct6775_check_fan_inputs() 687 pwm6pin |= !(cred & BIT(2)) && (cr2a & BIT(3)); in nct6775_check_fan_inputs() 708 pwm6pin |= !as_seq1_en && !(cred & BIT(2)) && (cr2a & BIT(3)); in nct6775_check_fan_inputs()
|
| /drivers/android/ |
| A D | binder_internal.h | 426 const struct cred *cred; member
|
| A D | binder.c | 2252 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) { in binder_translate_binder() 2298 if (security_binder_transfer_binder(proc->cred, target_proc->cred)) { in binder_translate_handle() 2386 ret = security_binder_transfer_file(proc->cred, target_proc->cred, file); in binder_translate_fd() 3163 if (security_binder_transaction(proc->cred, in binder_transaction() 3164 target_proc->cred) < 0) { in binder_transaction() 3295 security_cred_getsecid(proc->cred, &secid); in binder_transaction() 5249 put_cred(proc->cred); in binder_free_proc() 5444 ret = security_binder_set_context_mgr(proc->cred); in binder_ioctl_set_ctx_mgr() 5997 proc->cred = get_cred(filp->f_cred); in binder_open()
|
| /drivers/usb/core/ |
| A D | devio.c | 73 const struct cred *cred; member 98 const struct cred *cred; member 421 if (as->cred) in free_async() 422 put_cred(as->cred); in free_async() 628 const struct cred *cred = NULL; in async_completed() local 641 cred = get_cred(as->cred); in async_completed() 659 put_cred(cred); in async_completed() 1073 ps->cred = get_current_cred(); in usbdev_open() 1118 put_cred(ps->cred); in usbdev_release() 1934 as->cred = get_current_cred(); in proc_do_submiturb() [all …]
|
| /drivers/crypto/ccp/ |
| A D | sev-dev.c | 246 struct cred *cred; in open_file_as_root() local 247 const struct cred *old_cred; in open_file_as_root() 253 cred = prepare_creds(); in open_file_as_root() 254 if (!cred) in open_file_as_root() 256 cred->fsuid = GLOBAL_ROOT_UID; in open_file_as_root() 257 old_cred = override_creds(cred); in open_file_as_root()
|
| /drivers/net/ethernet/chelsio/cxgb4vf/ |
| A 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/ |
| A 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()
|
| A 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() 2244 eosw_txq->cred -= wrlen16; in write_eo_wr() 2302 if (unlikely(left < 0 || wrlen16 > eosw_txq->cred)) { in ethofld_hard_xmit() 2310 eosw_txq->cred -= wrlen16; in ethofld_hard_xmit() 4116 eosw_txq->cred += cpl->credits; in cxgb4_ethofld_rx_handler()
|
| A D | cxgb4.h | 940 u32 cred; /* Current available credits */ member
|
| A D | cxgb4_debugfs.c | 2884 T("Credits:", cred); in sge_qinfo_show()
|
| /drivers/base/firmware_loader/ |
| A D | main.c | 832 struct cred *kern_cred = NULL; in _request_firmware() 833 const struct cred *old_cred; in _request_firmware()
|
| /drivers/net/ |
| A D | tun.c | 515 const struct cred *cred = current_cred(); in tun_not_capable() local 518 return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) || in tun_not_capable()
|
| /drivers/target/ |
| A D | target_core_configfs.c | 3673 struct cred *kern_cred; in target_core_init_configfs() 3674 const struct cred *old_cred; in target_core_init_configfs()
|