Searched refs:crp (Results 1 - 19 of 19) sorted by relevance

/linux-4.4.14/drivers/video/backlight/
H A Dcr_bllcd.c179 struct cr_panel *crp; cr_backlight_probe() local
217 crp = devm_kzalloc(&pdev->dev, sizeof(*crp), GFP_KERNEL); cr_backlight_probe()
218 if (!crp) { cr_backlight_probe()
223 crp->cr_backlight_device = bdp; cr_backlight_probe()
224 crp->cr_lcd_device = ldp; cr_backlight_probe()
225 crp->cr_backlight_device->props.power = FB_BLANK_UNBLANK; cr_backlight_probe()
226 crp->cr_backlight_device->props.brightness = 0; cr_backlight_probe()
227 cr_backlight_set_intensity(crp->cr_backlight_device); cr_backlight_probe()
228 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_UNBLANK); cr_backlight_probe()
230 platform_set_drvdata(pdev, crp); cr_backlight_probe()
237 struct cr_panel *crp = platform_get_drvdata(pdev); cr_backlight_remove() local
239 crp->cr_backlight_device->props.power = FB_BLANK_POWERDOWN; cr_backlight_remove()
240 crp->cr_backlight_device->props.brightness = 0; cr_backlight_remove()
241 crp->cr_backlight_device->props.max_brightness = 0; cr_backlight_remove()
242 cr_backlight_set_intensity(crp->cr_backlight_device); cr_backlight_remove()
243 cr_lcd_set_power(crp->cr_lcd_device, FB_BLANK_POWERDOWN); cr_backlight_remove()
257 static struct platform_device *crp; variable in typeref:struct:platform_device
266 crp = platform_device_register_simple("cr_backlight", -1, NULL, 0); cr_backlight_init()
267 if (IS_ERR(crp)) { cr_backlight_init()
269 return PTR_ERR(crp); cr_backlight_init()
279 platform_device_unregister(crp); cr_backlight_exit()
/linux-4.4.14/tools/perf/util/
H A Dthread-stack.c93 * @crp: call/return processor
104 struct call_return_processor *crp; member in struct:thread_stack
127 struct call_return_processor *crp) thread_stack__new()
144 ts->crp = crp; thread_stack__new()
199 struct call_return_processor *crp = ts->crp; thread_stack__call_return() local
219 return crp->process(&cr, crp->data); thread_stack__call_return()
224 struct call_return_processor *crp = ts->crp; __thread_stack__flush() local
227 if (!crp) { __thread_stack__flush()
280 if (thread->ts->crp) thread_stack__event()
444 struct call_return_processor *crp; call_return_processor__new() local
446 crp = zalloc(sizeof(struct call_return_processor)); call_return_processor__new()
447 if (!crp) call_return_processor__new()
449 crp->cpr = call_path_root__new(); call_return_processor__new()
450 if (!crp->cpr) call_return_processor__new()
452 crp->process = process; call_return_processor__new()
453 crp->data = data; call_return_processor__new()
454 return crp; call_return_processor__new()
457 free(crp); call_return_processor__new()
461 void call_return_processor__free(struct call_return_processor *crp) call_return_processor__free() argument
463 if (crp) { call_return_processor__free()
464 call_path_root__free(crp->cpr); call_return_processor__free()
465 free(crp); call_return_processor__free()
541 struct call_path_root *cpr = ts->crp->cpr; thread_stack__bottom()
571 struct call_path_root *cpr = ts->crp->cpr; thread_stack__no_call_return()
652 struct call_path_root *cpr = ts->crp->cpr; thread_stack__trace_end()
675 struct call_return_processor *crp) thread_stack__process()
681 if (!ts->crp) { thread_stack__process()
684 thread->ts = thread_stack__new(thread, crp); thread_stack__process()
691 thread->ts = thread_stack__new(thread, crp); thread_stack__process()
718 struct call_path_root *cpr = ts->crp->cpr; thread_stack__process()
126 thread_stack__new(struct thread *thread, struct call_return_processor *crp) thread_stack__new() argument
671 thread_stack__process(struct thread *thread, struct comm *comm, struct perf_sample *sample, struct addr_location *from_al, struct addr_location *to_al, u64 ref, struct call_return_processor *crp) thread_stack__process() argument
H A Dthread-stack.h105 void call_return_processor__free(struct call_return_processor *crp);
110 struct call_return_processor *crp);
H A Ddb-export.c92 call_return_processor__free(dbe->crp); db_export__exit()
93 dbe->crp = NULL; db_export__exit()
341 if (dbe->crp) { db_export__sample()
344 dbe->crp); db_export__sample()
H A Ddb-export.h66 struct call_return_processor *crp; member in struct:db_export
/linux-4.4.14/drivers/pinctrl/sh-pfc/
H A Dcore.c177 const struct pinmux_cfg_reg *crp, sh_pfc_config_reg_helper()
184 *mapped_regp = sh_pfc_phys_to_virt(pfc, crp->reg); sh_pfc_config_reg_helper()
186 if (crp->field_width) { sh_pfc_config_reg_helper()
187 *maskp = (1 << crp->field_width) - 1; sh_pfc_config_reg_helper()
188 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); sh_pfc_config_reg_helper()
190 *maskp = (1 << crp->var_field_width[in_pos]) - 1; sh_pfc_config_reg_helper()
191 *posp = crp->reg_width; sh_pfc_config_reg_helper()
193 *posp -= crp->var_field_width[k]; sh_pfc_config_reg_helper()
198 const struct pinmux_cfg_reg *crp, sh_pfc_write_config_reg()
205 sh_pfc_config_reg_helper(pfc, crp, field, &mapped_reg, &mask, &pos); sh_pfc_write_config_reg()
209 crp->reg, value, field, crp->reg_width, crp->field_width); sh_pfc_write_config_reg()
214 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); sh_pfc_write_config_reg()
223 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); sh_pfc_write_config_reg()
227 const struct pinmux_cfg_reg **crp, sh_pfc_get_config_reg()
257 *crp = config_reg; sh_pfc_get_config_reg()
176 sh_pfc_config_reg_helper(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int in_pos, void __iomem **mapped_regp, u32 *maskp, unsigned int *posp) sh_pfc_config_reg_helper() argument
197 sh_pfc_write_config_reg(struct sh_pfc *pfc, const struct pinmux_cfg_reg *crp, unsigned int field, u32 value) sh_pfc_write_config_reg() argument
226 sh_pfc_get_config_reg(struct sh_pfc *pfc, u16 enum_id, const struct pinmux_cfg_reg **crp, unsigned int *fieldp, u32 *valuep) sh_pfc_get_config_reg() argument
/linux-4.4.14/arch/mips/txx9/generic/
H A Dirq_tx4939.c108 u32 __iomem *crp; tx4939_irq_set_type() local
132 crp = &tx4939_ircptr->dm[(irq_nr & 8) >> 3].r; tx4939_irq_set_type()
135 crp = &tx4939_ircptr->dm2[((irq_nr & 8) >> 3)].r; tx4939_irq_set_type()
138 cr = __raw_readl(crp); tx4939_irq_set_type()
141 __raw_writel(cr, crp); tx4939_irq_set_type()
/linux-4.4.14/arch/m68k/sun3/
H A Dmmu_emu.c359 pgd_t * crp; mmu_emu_handle_fault() local
362 crp = swapper_pg_dir; mmu_emu_handle_fault()
367 crp = swapper_pg_dir; mmu_emu_handle_fault()
369 crp = current->mm->pgd; mmu_emu_handle_fault()
373 printk ("mmu_emu_handle_fault: vaddr=%lx type=%s crp=%p\n", mmu_emu_handle_fault()
374 vaddr, read_flag ? "read" : "write", crp); mmu_emu_handle_fault()
384 pte = (pte_t *) pgd_val (*(crp + segment)); mmu_emu_handle_fault()
420 printk ("seg:%d crp:%p ->", get_fs().seg, crp); mmu_emu_handle_fault()
/linux-4.4.14/arch/mips/kernel/
H A Dirq_txx9.c116 u32 __iomem *crp; txx9_irq_set_type() local
130 crp = &txx9_ircptr->cr[(unsigned int)irq_nr / 8]; txx9_irq_set_type()
131 cr = __raw_readl(crp); txx9_irq_set_type()
135 __raw_writel(cr, crp); txx9_irq_set_type()
/linux-4.4.14/drivers/staging/rdma/ipath/
H A Dipath_mad.c840 struct ipath_cregs const *crp = dev->dd->ipath_cregs; recv_pma_get_portsamplescontrol() local
859 if (crp->cr_psstat) recv_pma_get_portsamplescontrol()
866 if (crp->cr_psstat) recv_pma_get_portsamplescontrol()
867 p->sample_status = ipath_read_creg32(dev->dd, crp->cr_psstat); recv_pma_get_portsamplescontrol()
889 struct ipath_cregs const *crp = dev->dd->ipath_cregs; recv_pma_set_portsamplescontrol() local
902 if (crp->cr_psstat) recv_pma_set_portsamplescontrol()
903 status = ipath_read_creg32(dev->dd, crp->cr_psstat); recv_pma_set_portsamplescontrol()
915 if (crp->cr_psstat) { recv_pma_set_portsamplescontrol()
916 ipath_write_creg(dev->dd, crp->cr_psinterval, recv_pma_set_portsamplescontrol()
918 ipath_write_creg(dev->dd, crp->cr_psstart, recv_pma_set_portsamplescontrol()
932 struct ipath_cregs const *crp, get_counter()
939 ret = (crp->cr_psxmitdatacount) ? get_counter()
940 ipath_read_creg32(dev->dd, crp->cr_psxmitdatacount) : get_counter()
944 ret = (crp->cr_psrcvdatacount) ? get_counter()
945 ipath_read_creg32(dev->dd, crp->cr_psrcvdatacount) : get_counter()
949 ret = (crp->cr_psxmitpktscount) ? get_counter()
950 ipath_read_creg32(dev->dd, crp->cr_psxmitpktscount) : get_counter()
954 ret = (crp->cr_psrcvpktscount) ? get_counter()
955 ipath_read_creg32(dev->dd, crp->cr_psrcvpktscount) : get_counter()
959 ret = (crp->cr_psxmitwaitcount) ? get_counter()
960 ipath_read_creg32(dev->dd, crp->cr_psxmitwaitcount) : get_counter()
976 struct ipath_cregs const *crp = dev->dd->ipath_cregs; recv_pma_get_portsamplesresult() local
982 if (crp->cr_psstat) recv_pma_get_portsamplesresult()
983 status = ipath_read_creg32(dev->dd, crp->cr_psstat); recv_pma_get_portsamplesresult()
990 get_counter(dev, crp, dev->pma_counter_select[i])); recv_pma_get_portsamplesresult()
1001 struct ipath_cregs const *crp = dev->dd->ipath_cregs; recv_pma_get_portsamplesresult_ext() local
1007 if (crp->cr_psstat) recv_pma_get_portsamplesresult_ext()
1008 status = ipath_read_creg32(dev->dd, crp->cr_psstat); recv_pma_get_portsamplesresult_ext()
1017 get_counter(dev, crp, dev->pma_counter_select[i])); recv_pma_get_portsamplesresult_ext()
931 get_counter(struct ipath_ibdev *dev, struct ipath_cregs const *crp, __be16 sel) get_counter() argument
H A Dipath_verbs.c1398 struct ipath_cregs const *crp = dd->ipath_cregs; ipath_get_counters() local
1407 ipath_snap_cntr(dd, crp->cr_ibsymbolerrcnt); ipath_get_counters()
1409 ipath_snap_cntr(dd, crp->cr_iblinkerrrecovcnt); ipath_get_counters()
1416 ipath_snap_cntr(dd, crp->cr_iblinkdowncnt); ipath_get_counters()
1418 ipath_snap_cntr(dd, crp->cr_rxdroppktcnt) + ipath_get_counters()
1419 ipath_snap_cntr(dd, crp->cr_rcvovflcnt) + ipath_get_counters()
1420 ipath_snap_cntr(dd, crp->cr_portovflcnt) + ipath_get_counters()
1421 ipath_snap_cntr(dd, crp->cr_err_rlencnt) + ipath_get_counters()
1422 ipath_snap_cntr(dd, crp->cr_invalidrlencnt) + ipath_get_counters()
1423 ipath_snap_cntr(dd, crp->cr_errlinkcnt) + ipath_get_counters()
1424 ipath_snap_cntr(dd, crp->cr_erricrccnt) + ipath_get_counters()
1425 ipath_snap_cntr(dd, crp->cr_errvcrccnt) + ipath_get_counters()
1426 ipath_snap_cntr(dd, crp->cr_errlpcrccnt) + ipath_get_counters()
1427 ipath_snap_cntr(dd, crp->cr_badformatcnt) + ipath_get_counters()
1429 if (crp->cr_rxotherlocalphyerrcnt) ipath_get_counters()
1431 ipath_snap_cntr(dd, crp->cr_rxotherlocalphyerrcnt); ipath_get_counters()
1432 if (crp->cr_rxvlerrcnt) ipath_get_counters()
1434 ipath_snap_cntr(dd, crp->cr_rxvlerrcnt); ipath_get_counters()
1436 ipath_snap_cntr(dd, crp->cr_rcvebpcnt); ipath_get_counters()
1437 cntrs->port_xmit_discards = ipath_snap_cntr(dd, crp->cr_unsupvlcnt); ipath_get_counters()
1438 cntrs->port_xmit_data = ipath_snap_cntr(dd, crp->cr_wordsendcnt); ipath_get_counters()
1439 cntrs->port_rcv_data = ipath_snap_cntr(dd, crp->cr_wordrcvcnt); ipath_get_counters()
1440 cntrs->port_xmit_packets = ipath_snap_cntr(dd, crp->cr_pktsendcnt); ipath_get_counters()
1441 cntrs->port_rcv_packets = ipath_snap_cntr(dd, crp->cr_pktrcvcnt); ipath_get_counters()
1443 crp->cr_locallinkintegrityerrcnt ? ipath_get_counters()
1444 ipath_snap_cntr(dd, crp->cr_locallinkintegrityerrcnt) : ipath_get_counters()
1448 crp->cr_excessbufferovflcnt ? ipath_get_counters()
1449 ipath_snap_cntr(dd, crp->cr_excessbufferovflcnt) : ipath_get_counters()
1451 cntrs->vl15_dropped = crp->cr_vl15droppedpktcnt ? ipath_get_counters()
1452 ipath_snap_cntr(dd, crp->cr_vl15droppedpktcnt) : 0; ipath_get_counters()
/linux-4.4.14/arch/m68k/include/asm/
H A Dmmu_context.h227 unsigned long crp[2] = { switch_mm_0230() local
248 "pmovefd %0,%%crp; " switch_mm_0230()
251 "pmove %0,%%crp" switch_mm_0230()
253 : : "m" (crp[0])); switch_mm_0230()
H A Dprocessor.h88 unsigned long crp[2]; /* cpu root pointer */ member in struct:thread_struct
/linux-4.4.14/fs/jfs/
H A Djfs_umount.c40 * NAME: jfs_umount(vfsp, flags, crp)
46 * crp - credential
H A Dnamei.c778 * NAME: jfs_link(vp, dvp, name, crp)
786 * crp - credential
/linux-4.4.14/fs/nfsd/
H A Dnfs4recover.c172 struct nfs4_client_reclaim *crp; nfsd4_create_clid_dir() local
219 crp = nfs4_client_to_reclaim(dname, nn); nfsd4_create_clid_dir()
220 if (crp) nfsd4_create_clid_dir()
221 crp->cr_clp = clp; nfsd4_create_clid_dir()
346 struct nfs4_client_reclaim *crp; nfsd4_remove_clid_dir() local
373 crp = nfsd4_find_reclaim_client(dname, nn); nfsd4_remove_clid_dir()
374 if (crp) nfsd4_remove_clid_dir()
375 nfs4_remove_reclaim_record(crp, nn); nfsd4_remove_clid_dir()
610 struct nfs4_client_reclaim *crp; nfsd4_check_legacy_client() local
624 crp = nfsd4_find_reclaim_client(dname, nn); nfsd4_check_legacy_client()
625 if (crp) { nfsd4_check_legacy_client()
627 crp->cr_clp = clp; nfsd4_check_legacy_client()
H A Dnfs4state.c5959 struct nfs4_client_reclaim *crp; nfs4_has_reclaimed_state() local
5961 crp = nfsd4_find_reclaim_client(name, nn); nfs4_has_reclaimed_state()
5962 return (crp && crp->cr_clp); nfs4_has_reclaimed_state()
5972 struct nfs4_client_reclaim *crp; nfs4_client_to_reclaim() local
5975 crp = alloc_reclaim(); nfs4_client_to_reclaim()
5976 if (crp) { nfs4_client_to_reclaim()
5978 INIT_LIST_HEAD(&crp->cr_strhash); nfs4_client_to_reclaim()
5979 list_add(&crp->cr_strhash, &nn->reclaim_str_hashtbl[strhashval]); nfs4_client_to_reclaim()
5980 memcpy(crp->cr_recdir, name, HEXDIR_LEN); nfs4_client_to_reclaim()
5981 crp->cr_clp = NULL; nfs4_client_to_reclaim()
5984 return crp; nfs4_client_to_reclaim()
5988 nfs4_remove_reclaim_record(struct nfs4_client_reclaim *crp, struct nfsd_net *nn) nfs4_remove_reclaim_record() argument
5990 list_del(&crp->cr_strhash); nfs4_remove_reclaim_record()
5991 kfree(crp); nfs4_remove_reclaim_record()
5998 struct nfs4_client_reclaim *crp = NULL; nfs4_release_reclaim() local
6003 crp = list_entry(nn->reclaim_str_hashtbl[i].next, nfs4_release_reclaim()
6005 nfs4_remove_reclaim_record(crp, nn); nfs4_release_reclaim()
6017 struct nfs4_client_reclaim *crp = NULL; nfsd4_find_reclaim_client() local
6022 list_for_each_entry(crp, &nn->reclaim_str_hashtbl[strhashval], cr_strhash) { nfsd4_find_reclaim_client()
6023 if (same_name(crp->cr_recdir, recdir)) { nfsd4_find_reclaim_client()
6024 return crp; nfsd4_find_reclaim_client()
/linux-4.4.14/arch/m68k/kernel/
H A Dasm-offsets.c34 DEFINE(THREAD_CRP, offsetof(struct thread_struct, crp)); main()
/linux-4.4.14/tools/perf/util/scripting-engines/
H A Dtrace-event-python.c915 tables->dbe.crp = NULL; set_table_handlers()
925 tables->dbe.crp = set_table_handlers()
928 if (!tables->dbe.crp) set_table_handlers()

Completed in 558 milliseconds