Lines Matching refs:rconfig
373 static int twl4030_configure_resource(struct twl4030_resconfig *rconfig) in twl4030_configure_resource() argument
381 if (rconfig->resource > TOTAL_RESOURCES) { in twl4030_configure_resource()
383 rconfig->resource); in twl4030_configure_resource()
387 rconfig_addr = res_config_addrs[rconfig->resource]; in twl4030_configure_resource()
394 rconfig->resource); in twl4030_configure_resource()
398 if (rconfig->devgroup != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
400 grp |= rconfig->devgroup << DEV_GRP_SHIFT; in twl4030_configure_resource()
414 rconfig->resource); in twl4030_configure_resource()
418 if (rconfig->type != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
420 type |= rconfig->type << TYPE_SHIFT; in twl4030_configure_resource()
423 if (rconfig->type2 != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
425 type |= rconfig->type2 << TYPE2_SHIFT; in twl4030_configure_resource()
440 rconfig->resource); in twl4030_configure_resource()
444 if (rconfig->remap_off != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
446 remap |= rconfig->remap_off << OFF_STATE_SHIFT; in twl4030_configure_resource()
449 if (rconfig->remap_sleep != TWL4030_RESCONFIG_UNDEF) { in twl4030_configure_resource()
451 remap |= rconfig->remap_sleep << SLEEP_STATE_SHIFT; in twl4030_configure_resource()