Lines Matching refs:err
120 int err;
126 err = gpio_request(NET2BIG_GPIO_SATA0_POWER, "SATA0 power status");
127 if (err == 0) {
128 err = gpio_direction_input(NET2BIG_GPIO_SATA0_POWER);
129 if (err)
132 if (err) {
137 err = gpio_request(NET2BIG_GPIO_SATA1_POWER, "SATA1 power status");
138 if (err == 0) {
139 err = gpio_direction_input(NET2BIG_GPIO_SATA1_POWER);
140 if (err)
143 if (err) {
148 err = gpio_request(NET2BIG_GPIO_SATA_POWER_REQ, "SATA power request");
149 if (err == 0) {
150 err = gpio_direction_output(NET2BIG_GPIO_SATA_POWER_REQ, 0);
151 if (err)
154 if (err) {
260 int err;
263 err = gpio_request(NET2BIG_GPIO_PWR_LED_BLINK_STOP,
265 if (err == 0) {
266 err = gpio_direction_output(NET2BIG_GPIO_PWR_LED_BLINK_STOP, 1);
267 if (err)
270 if (err)
277 err = gpio_request(NET2BIG_GPIO_SATA0_BLUE_LED,
279 if (err == 0) {
280 err = gpio_direction_output(NET2BIG_GPIO_SATA0_BLUE_LED, 1);
281 if (err)
284 if (err)
287 err = gpio_request(NET2BIG_GPIO_SATA1_BLUE_LED,
289 if (err == 0) {
290 err = gpio_direction_output(NET2BIG_GPIO_SATA1_BLUE_LED, 1);
291 if (err)
294 if (err)