Lines Matching refs:rconfig
372 static int twl4030_configure_resource(struct twl4030_resconfig *rconfig) in twl4030_configure_resource() argument
380 if (rconfig->resource > TOTAL_RESOURCES) { in twl4030_configure_resource()
382 rconfig->resource); in twl4030_configure_resource()
386 rconfig_addr = res_config_addrs[rconfig->resource]; in twl4030_configure_resource()
393 rconfig->resource); in twl4030_configure_resource()
397 if (rconfig->devgroup != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
399 grp |= rconfig->devgroup << DEV_GRP_SHIFT; in twl4030_configure_resource()
413 rconfig->resource); in twl4030_configure_resource()
417 if (rconfig->type != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
419 type |= rconfig->type << TYPE_SHIFT; in twl4030_configure_resource()
422 if (rconfig->type2 != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
424 type |= rconfig->type2 << TYPE2_SHIFT; in twl4030_configure_resource()
439 rconfig->resource); in twl4030_configure_resource()
443 if (rconfig->remap_off != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
445 remap |= rconfig->remap_off << OFF_STATE_SHIFT; in twl4030_configure_resource()
448 if (rconfig->remap_sleep != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
450 remap |= rconfig->remap_sleep << SLEEP_STATE_SHIFT; in twl4030_configure_resource()