Lines Matching refs:new_cfg
75 union msg_set_gpio_config new_cfg; in rpi_fw_gpio_pin_configure() local
79 bzero(&new_cfg, sizeof(new_cfg)); in rpi_fw_gpio_pin_configure()
90 new_cfg.req.gpio = RPI_FW_GPIO_BASE + pin->gp_pin; in rpi_fw_gpio_pin_configure()
92 new_cfg.req.dir = BCM2835_FIRMWARE_GPIO_IN; in rpi_fw_gpio_pin_configure()
93 new_cfg.req.state = 0; in rpi_fw_gpio_pin_configure()
96 new_cfg.req.dir = BCM2835_FIRMWARE_GPIO_OUT; in rpi_fw_gpio_pin_configure()
99 new_cfg.req.state = 1; in rpi_fw_gpio_pin_configure()
102 new_cfg.req.state = 0; in rpi_fw_gpio_pin_configure()
107 new_cfg.req.state = 1; in rpi_fw_gpio_pin_configure()
109 new_cfg.req.state = 0; in rpi_fw_gpio_pin_configure()
114 new_cfg.req.dir = old_cfg.resp.dir; in rpi_fw_gpio_pin_configure()
117 new_cfg.req.state = 1; in rpi_fw_gpio_pin_configure()
119 new_cfg.req.state = 0; in rpi_fw_gpio_pin_configure()
121 new_cfg.req.pol = old_cfg.resp.pol; in rpi_fw_gpio_pin_configure()
122 new_cfg.req.term_en = 0; in rpi_fw_gpio_pin_configure()
123 new_cfg.req.term_pull_up = 0; in rpi_fw_gpio_pin_configure()
126 BCM2835_FIRMWARE_TAG_SET_GPIO_CONFIG, &new_cfg, sizeof(new_cfg)); in rpi_fw_gpio_pin_configure()