Lines Matching refs:rconfig
330 static int __init twl4030_configure_resource(struct twl4030_resconfig *rconfig)
338 if (rconfig->resource > TOTAL_RESOURCES) {
340 rconfig->resource);
344 rconfig_addr = res_config_addrs[rconfig->resource];
351 rconfig->resource);
355 if (rconfig->devgroup != TWL4030_RESCONFIG_UNDEF) {
357 grp |= rconfig->devgroup << DEV_GRP_SHIFT;
371 rconfig->resource);
375 if (rconfig->type != TWL4030_RESCONFIG_UNDEF) {
377 type |= rconfig->type << TYPE_SHIFT;
380 if (rconfig->type2 != TWL4030_RESCONFIG_UNDEF) {
382 type |= rconfig->type2 << TYPE2_SHIFT;
397 rconfig->resource);
401 if (rconfig->remap_off != TWL4030_RESCONFIG_UNDEF) {
403 remap |= rconfig->remap_off << OFF_STATE_SHIFT;
406 if (rconfig->remap_sleep != TWL4030_RESCONFIG_UNDEF) {
408 remap |= rconfig->remap_sleep << SLEEP_STATE_SHIFT;