Lines Matching defs:err
122 int err;
128 err = gpio_request(NET2BIG_GPIO_SATA0_POWER, "SATA0 power status");
129 if (err == 0) {
130 err = gpio_direction_input(NET2BIG_GPIO_SATA0_POWER);
131 if (err)
134 if (err) {
139 err = gpio_request(NET2BIG_GPIO_SATA1_POWER, "SATA1 power status");
140 if (err == 0) {
141 err = gpio_direction_input(NET2BIG_GPIO_SATA1_POWER);
142 if (err)
145 if (err) {
150 err = gpio_request(NET2BIG_GPIO_SATA_POWER_REQ, "SATA power request");
151 if (err == 0) {
152 err = gpio_direction_output(NET2BIG_GPIO_SATA_POWER_REQ, 0);
153 if (err)
156 if (err) {
251 int err;
254 err = gpio_request(NET2BIG_GPIO_PWR_LED_BLINK_STOP,
256 if (err == 0) {
257 err = gpio_direction_output(NET2BIG_GPIO_PWR_LED_BLINK_STOP, 1);
258 if (err)
261 if (err)
268 err = gpio_request(NET2BIG_GPIO_SATA0_BLUE_LED,
270 if (err == 0) {
271 err = gpio_direction_output(NET2BIG_GPIO_SATA0_BLUE_LED, 1);
272 if (err)
275 if (err)
278 err = gpio_request(NET2BIG_GPIO_SATA1_BLUE_LED,
280 if (err == 0) {
281 err = gpio_direction_output(NET2BIG_GPIO_SATA1_BLUE_LED, 1);
282 if (err)
285 if (err)