Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 200 of 1294) sorted by relevance

1234567

/linux-4.1.27/drivers/staging/rts5208/
Drtsx_chip.c119 int retval; in rtsx_pre_handle_sdio_old() local
123 retval = rtsx_write_register(chip, CARD_PULL_CTL5, in rtsx_pre_handle_sdio_old()
126 if (retval) { in rtsx_pre_handle_sdio_old()
128 return retval; in rtsx_pre_handle_sdio_old()
131 retval = rtsx_write_register(chip, FPGA_PULL_CTL, in rtsx_pre_handle_sdio_old()
134 if (retval) { in rtsx_pre_handle_sdio_old()
136 return retval; in rtsx_pre_handle_sdio_old()
139 retval = rtsx_write_register(chip, CARD_SHARE_MODE, 0xFF, in rtsx_pre_handle_sdio_old()
141 if (retval) { in rtsx_pre_handle_sdio_old()
143 return retval; in rtsx_pre_handle_sdio_old()
[all …]
Dsd.c108 int retval; in sd_check_data0_status() local
111 retval = rtsx_read_register(chip, REG_SD_STAT1, &stat); in sd_check_data0_status()
112 if (retval) { in sd_check_data0_status()
114 return retval; in sd_check_data0_status()
130 int retval; in sd_send_cmd_get_rsp() local
178 retval = rtsx_send_cmd(chip, SD_CARD, timeout); in sd_send_cmd_get_rsp()
179 if (retval < 0) { in sd_send_cmd_get_rsp()
188 if (retval == -ETIMEDOUT) { in sd_send_cmd_get_rsp()
190 retval = sd_check_data0_status(chip); in sd_send_cmd_get_rsp()
191 if (retval != STATUS_SUCCESS) { in sd_send_cmd_get_rsp()
[all …]
Dspi.c39 int retval; in spi_init() local
41 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
43 if (retval) { in spi_init()
45 return retval; in spi_init()
47 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
49 if (retval) { in spi_init()
51 return retval; in spi_init()
60 int retval; in spi_set_init_para() local
62 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
64 if (retval) { in spi_set_init_para()
[all …]
Dms.c55 int retval; in ms_transfer_tpc() local
75 retval = rtsx_send_cmd(chip, MS_CARD, 5000); in ms_transfer_tpc()
76 if (retval < 0) { in ms_transfer_tpc()
115 int retval; in ms_transfer_data() local
159 retval = rtsx_transfer_data(chip, MS_CARD, buf, buf_len, in ms_transfer_data()
161 if (retval < 0) { in ms_transfer_data()
163 if (retval == -ETIMEDOUT) in ms_transfer_data()
164 retval = STATUS_TIMEDOUT; in ms_transfer_data()
166 retval = STATUS_FAIL; in ms_transfer_data()
169 return retval; in ms_transfer_data()
[all …]
Dxd.c55 int retval; in xd_set_init_para() local
62 retval = switch_clock(chip, xd_card->xd_clock); in xd_set_init_para()
63 if (retval != STATUS_SUCCESS) { in xd_set_init_para()
74 int retval; in xd_switch_clock() local
76 retval = select_card(chip, XD_CARD); in xd_switch_clock()
77 if (retval != STATUS_SUCCESS) { in xd_switch_clock()
82 retval = switch_clock(chip, xd_card->xd_clock); in xd_switch_clock()
83 if (retval != STATUS_SUCCESS) { in xd_switch_clock()
93 int retval, i; in xd_read_id() local
107 retval = rtsx_send_cmd(chip, XD_CARD, 20); in xd_read_id()
[all …]
Drtsx_card.c151 int retval; in do_reset_sd_card() local
168 retval = reset_sd_card(chip); in do_reset_sd_card()
171 if (retval == STATUS_SUCCESS) { in do_reset_sd_card()
205 int retval; in do_reset_xd_card() local
222 retval = reset_xd_card(chip); in do_reset_xd_card()
225 if (retval == STATUS_SUCCESS) { in do_reset_xd_card()
253 int retval; in do_reset_ms_card() local
270 retval = reset_ms_card(chip); in do_reset_ms_card()
273 if (retval == STATUS_SUCCESS) { in do_reset_ms_card()
638 int retval; in switch_ssc_clock() local
[all …]
Drtsx_scsi.c863 int retval; in read_write() local
969 retval = card_rw(srb, chip, start_sec, sec_cnt); in read_write()
970 if (retval != STATUS_SUCCESS) { in read_write()
983 retval = TRANSPORT_FAILED; in read_write()
988 retval = TRANSPORT_GOOD; in read_write()
994 return retval; in read_write()
1124 int retval; in read_eeprom() local
1143 retval = rtsx_force_power_on(chip, SSC_PDCTL); in read_eeprom()
1144 if (retval != STATUS_SUCCESS) { in read_eeprom()
1153 retval = spi_read_eeprom(chip, i, buf + i); in read_eeprom()
[all …]
/linux-4.1.27/arch/parisc/kernel/
Dfirmware.c214 int retval; in pdc_add_valid() local
218 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
221 return retval; in pdc_add_valid()
235 int retval; in pdc_chassis_info() local
241 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
247 return retval; in pdc_chassis_info()
259 int retval = 0; in pdc_pat_chassis_send_log() local
266 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
269 return retval; in pdc_pat_chassis_send_log()
279 int retval = 0; in pdc_chassis_disp() local
[all …]
Dpdc_chassis.c176 int retval = 0; in pdc_chassis_send_status() local
186 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BSTART, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
190 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_BCOMPLETE, PDC_CHASSIS_LSTATE_RUN_NORMAL); in pdc_chassis_send_status()
194 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_SHUTDOWN, PDC_CHASSIS_LSTATE_NONOS); in pdc_chassis_send_status()
198 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_PANIC, PDC_CHASSIS_LSTATE_RUN_CRASHREC); in pdc_chassis_send_status()
202 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_LPMC, PDC_CHASSIS_LSTATE_RUN_SYSINT); in pdc_chassis_send_status()
206 retval = pdc_pat_chassis_send_log(PDC_CHASSIS_PMSG_HPMC, PDC_CHASSIS_LSTATE_RUN_NCRIT); in pdc_chassis_send_status()
210 retval = -1; in pdc_chassis_send_status()
212 } else retval = -1; in pdc_chassis_send_status()
217 retval = pdc_chassis_disp(PDC_CHASSIS_DISP_DATA(OSTAT_INIT)); in pdc_chassis_send_status()
[all …]
/linux-4.1.27/drivers/media/usb/gspca/
Djl2005bcd.c90 int retval; in jl2005c_write2() local
93 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_write2()
96 if (retval < 0) in jl2005c_write2()
98 gspca_dev->usb_buf[0], retval); in jl2005c_write2()
99 return retval; in jl2005c_write2()
105 int retval; in jl2005c_read1() local
107 retval = usb_bulk_msg(gspca_dev->dev, in jl2005c_read1()
110 if (retval < 0) in jl2005c_read1()
112 gspca_dev->usb_buf[0], retval); in jl2005c_read1()
113 return retval; in jl2005c_read1()
[all …]
Dautogain_functions.c36 int i, steps, retval = 0; in gspca_expo_autogain() local
83 retval = 1; in gspca_expo_autogain()
87 retval = 1; in gspca_expo_autogain()
90 if (retval) in gspca_expo_autogain()
93 return retval; in gspca_expo_autogain()
116 int steps, retval = 0; in gspca_coarse_grained_expo_autogain() local
166 retval = 1; in gspca_coarse_grained_expo_autogain()
170 retval = 1; in gspca_coarse_grained_expo_autogain()
173 if (retval) in gspca_coarse_grained_expo_autogain()
176 return retval; in gspca_coarse_grained_expo_autogain()
/linux-4.1.27/drivers/hid/
Dhid-roccat-arvo.c39 int retval; in arvo_sysfs_show_mode_key() local
42 retval = roccat_common2_receive(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_show_mode_key()
45 if (retval) in arvo_sysfs_show_mode_key()
46 return retval; in arvo_sysfs_show_mode_key()
60 int retval; in arvo_sysfs_set_mode_key() local
62 retval = kstrtoul(buf, 10, &state); in arvo_sysfs_set_mode_key()
63 if (retval) in arvo_sysfs_set_mode_key()
64 return retval; in arvo_sysfs_set_mode_key()
70 retval = roccat_common2_send(usb_dev, ARVO_COMMAND_MODE_KEY, in arvo_sysfs_set_mode_key()
73 if (retval) in arvo_sysfs_set_mode_key()
[all …]
Dhid-roccat-kone.c116 int retval; in kone_check_write() local
126 retval = kone_receive(usb_dev, in kone_check_write()
128 if (retval) in kone_check_write()
129 return retval; in kone_check_write()
166 int retval; in kone_set_settings() local
168 retval = kone_send(usb_dev, kone_command_settings, in kone_set_settings()
170 if (retval) in kone_set_settings()
171 return retval; in kone_set_settings()
238 int retval; in kone_get_weight() local
241 retval = kone_receive(usb_dev, kone_command_weight, &data, 1); in kone_get_weight()
[all …]
Dhid-roccat-kovaplus.c49 int retval; in kovaplus_send_control() local
61 retval = roccat_common2_send(usb_dev, ROCCAT_COMMON_COMMAND_CONTROL, in kovaplus_send_control()
64 return retval; in kovaplus_send_control()
76 int retval; in kovaplus_get_profile_settings() local
78 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_settings()
80 if (retval) in kovaplus_get_profile_settings()
81 return retval; in kovaplus_get_profile_settings()
90 int retval; in kovaplus_get_profile_buttons() local
92 retval = kovaplus_select_profile(usb_dev, number, in kovaplus_get_profile_buttons()
94 if (retval) in kovaplus_get_profile_buttons()
[all …]
Dhid-roccat-isku.c45 int retval; in isku_get_actual_profile() local
47 retval = isku_receive(usb_dev, ISKU_COMMAND_ACTUAL_PROFILE, in isku_get_actual_profile()
49 return retval ? retval : buf.actual_profile; in isku_get_actual_profile()
78 int retval; in isku_sysfs_set_actual_profile() local
85 retval = kstrtoul(buf, 10, &profile); in isku_sysfs_set_actual_profile()
86 if (retval) in isku_sysfs_set_actual_profile()
87 return retval; in isku_sysfs_set_actual_profile()
94 retval = isku_set_actual_profile(usb_dev, profile); in isku_sysfs_set_actual_profile()
95 if (retval) { in isku_sysfs_set_actual_profile()
97 return retval; in isku_sysfs_set_actual_profile()
[all …]
Dhid-roccat-koneplus.c64 int retval; in koneplus_get_actual_profile() local
66 retval = roccat_common2_receive(usb_dev, KONEPLUS_COMMAND_ACTUAL_PROFILE, in koneplus_get_actual_profile()
69 return retval ? retval : buf.actual_profile; in koneplus_get_actual_profile()
94 int retval; in koneplus_sysfs_read() local
103 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in koneplus_sysfs_read()
106 if (retval) in koneplus_sysfs_read()
107 return retval; in koneplus_sysfs_read()
120 int retval; in koneplus_sysfs_write() local
126 retval = roccat_common2_send_with_status(usb_dev, command, in koneplus_sysfs_write()
130 if (retval) in koneplus_sysfs_write()
[all …]
Dhid-roccat-lua.c36 int retval; in lua_sysfs_read() local
45 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in lua_sysfs_read()
48 return retval ? retval : real_size; in lua_sysfs_read()
58 int retval; in lua_sysfs_write() local
64 retval = roccat_common2_send(usb_dev, command, buf, real_size); in lua_sysfs_write()
67 return retval ? retval : real_size; in lua_sysfs_write()
123 int retval; in lua_init_specials() local
132 retval = lua_init_lua_device_struct(usb_dev, lua); in lua_init_specials()
133 if (retval) { in lua_init_specials()
138 retval = lua_create_sysfs_attributes(intf); in lua_init_specials()
[all …]
Dhid-roccat-pyra.c65 int retval; in pyra_get_profile_settings() local
66 retval = pyra_send_control(usb_dev, number, in pyra_get_profile_settings()
68 if (retval) in pyra_get_profile_settings()
69 return retval; in pyra_get_profile_settings()
97 int retval; in pyra_sysfs_read() local
106 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in pyra_sysfs_read()
109 if (retval) in pyra_sysfs_read()
110 return retval; in pyra_sysfs_read()
123 int retval; in pyra_sysfs_write() local
129 retval = roccat_common2_send_with_status(usb_dev, command, (void *)buf, real_size); in pyra_sysfs_write()
[all …]
Dhid-roccat-konepure.c83 int retval; in konepure_init_specials() local
98 retval = roccat_common2_device_init_struct(usb_dev, konepure); in konepure_init_specials()
99 if (retval) { in konepure_init_specials()
104 retval = roccat_connect(konepure_class, hdev, in konepure_init_specials()
106 if (retval < 0) { in konepure_init_specials()
109 konepure->chrdev_minor = retval; in konepure_init_specials()
116 return retval; in konepure_init_specials()
137 int retval; in konepure_probe() local
139 retval = hid_parse(hdev); in konepure_probe()
140 if (retval) { in konepure_probe()
[all …]
Dhid-roccat-savu.c63 int retval; in savu_init_specials() local
78 retval = roccat_common2_device_init_struct(usb_dev, savu); in savu_init_specials()
79 if (retval) { in savu_init_specials()
84 retval = roccat_connect(savu_class, hdev, in savu_init_specials()
86 if (retval < 0) { in savu_init_specials()
89 savu->chrdev_minor = retval; in savu_init_specials()
96 return retval; in savu_init_specials()
117 int retval; in savu_probe() local
119 retval = hid_parse(hdev); in savu_probe()
120 if (retval) { in savu_probe()
[all …]
Dhid-roccat-ryos.c91 int retval; in ryos_init_specials() local
106 retval = roccat_common2_device_init_struct(usb_dev, ryos); in ryos_init_specials()
107 if (retval) { in ryos_init_specials()
112 retval = roccat_connect(ryos_class, hdev, in ryos_init_specials()
114 if (retval < 0) { in ryos_init_specials()
117 ryos->chrdev_minor = retval; in ryos_init_specials()
124 return retval; in ryos_init_specials()
145 int retval; in ryos_probe() local
147 retval = hid_parse(hdev); in ryos_probe()
148 if (retval) { in ryos_probe()
[all …]
Dhid-roccat-common.c77 int retval; in roccat_common2_receive_control_status() local
82 retval = roccat_common2_receive(usb_dev, in roccat_common2_receive_control_status()
86 if (retval) in roccat_common2_receive_control_status()
87 return retval; in roccat_common2_receive_control_status()
113 int retval; in roccat_common2_send_with_status() local
115 retval = roccat_common2_send(usb_dev, command, buf, size); in roccat_common2_send_with_status()
116 if (retval) in roccat_common2_send_with_status()
117 return retval; in roccat_common2_send_with_status()
141 int retval; in roccat_common2_sysfs_read() local
150 retval = roccat_common2_receive(usb_dev, command, buf, real_size); in roccat_common2_sysfs_read()
[all …]
Dhid-logitech-dj.c460 int retval; in delayedwork_callback() local
503 retval = logi_dj_recv_query_paired_devices(djrcv_dev); in delayedwork_callback()
504 if (!retval) { in delayedwork_callback()
510 "error:%d\n", __func__, retval); in delayedwork_callback()
612 int retval; in logi_dj_recv_query_paired_devices() local
624 retval = logi_dj_recv_send_report(djrcv_dev, dj_report); in logi_dj_recv_query_paired_devices()
626 return retval; in logi_dj_recv_query_paired_devices()
636 int retval; in logi_dj_recv_switch_to_dj_mode() local
646 retval = logi_dj_recv_send_report(djrcv_dev, dj_report); in logi_dj_recv_switch_to_dj_mode()
679 return retval; in logi_dj_recv_switch_to_dj_mode()
[all …]
Dhid-roccat.c82 ssize_t retval = 0, len; in roccat_read() local
95 retval = -EAGAIN; in roccat_read()
99 retval = -ERESTARTSYS; in roccat_read()
103 retval = -EIO; in roccat_read()
118 if (retval) in roccat_read()
129 retval = -EFAULT; in roccat_read()
132 retval += len; in roccat_read()
137 return retval; in roccat_read()
384 long retval = 0; in roccat_ioctl() local
390 retval = -ENODEV; in roccat_ioctl()
[all …]
/linux-4.1.27/drivers/usb/misc/
Dcytherm.c101 int retval; in set_brightness() local
117 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS, in set_brightness()
119 if (retval) in set_brightness()
120 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in set_brightness()
122 retval = vendor_command(cytherm->udev, WRITE_RAM, BRIGHTNESS_SEM, in set_brightness()
124 if (retval) in set_brightness()
125 dev_dbg(&cytherm->udev->dev, "retval = %d\n", retval); in set_brightness()
145 int retval; in show_temp() local
157 retval = vendor_command(cytherm->udev, READ_RAM, TEMP, 0, buffer, 8); in show_temp()
158 if (retval) in show_temp()
[all …]
Dusbtest.c422 int retval = 0; in simple_io() local
426 while (retval == 0 && iterations-- > 0) { in simple_io()
432 retval = usb_submit_urb(urb, GFP_KERNEL); in simple_io()
433 if (retval != 0) in simple_io()
439 retval = (urb->status == -ENOENT ? in simple_io()
442 retval = urb->status; in simple_io()
446 if (retval == 0 && usb_pipein(urb->pipe)) in simple_io()
447 retval = simple_check_buf(tdev, urb); in simple_io()
463 if (expected != retval) in simple_io()
466 label, iterations, retval, expected); in simple_io()
[all …]
Dadutux.c230 int retval; in adu_open() local
234 retval = mutex_lock_interruptible(&adutux_mutex); in adu_open()
235 if (retval) in adu_open()
242 retval = -ENODEV; in adu_open()
248 retval = -ENODEV; in adu_open()
254 retval = -EBUSY; in adu_open()
285 retval = 0; in adu_open()
290 return retval; in adu_open()
308 int retval = 0; in adu_release() local
311 retval = -ENODEV; in adu_release()
[all …]
Diowarrior.c156 int retval; in iowarrior_callback() local
211 retval = usb_submit_urb(urb, GFP_ATOMIC); in iowarrior_callback()
212 if (retval) in iowarrior_callback()
214 __func__, retval); in iowarrior_callback()
341 int retval = 0; in iowarrior_write() local
350 retval = -ENODEV; in iowarrior_write()
357 retval = 0; in iowarrior_write()
362 retval = -EINVAL; in iowarrior_write()
373 retval = -ENOMEM; in iowarrior_write()
377 retval = -EFAULT; in iowarrior_write()
[all …]
Dlegousbtower.c318 int retval = 0; in tower_open() local
330 retval = -ENODEV; in tower_open()
339 retval = -ENODEV; in tower_open()
346 retval = -ERESTARTSYS; in tower_open()
354 retval = -EBUSY; in tower_open()
373 retval = result; in tower_open()
393 retval = usb_submit_urb (dev->interrupt_in_urb, GFP_KERNEL); in tower_open()
394 if (retval) { in tower_open()
396 "Couldn't submit interrupt_in_urb %d\n", retval); in tower_open()
409 return retval; in tower_open()
[all …]
Dappledisplay.c96 int retval; in appledisplay_complete() local
136 retval = usb_submit_urb(pdata->urb, GFP_ATOMIC); in appledisplay_complete()
137 if (retval) { in appledisplay_complete()
139 __func__, retval); in appledisplay_complete()
146 int retval; in appledisplay_bl_update_status() local
152 retval = usb_control_msg( in appledisplay_bl_update_status()
163 return retval; in appledisplay_bl_update_status()
169 int retval, brightness; in appledisplay_bl_get_brightness() local
172 retval = usb_control_msg( in appledisplay_bl_get_brightness()
184 if (retval < 0) in appledisplay_bl_get_brightness()
[all …]
Dftdi-elan.c473 int retval = ftdi_elan_command_engine(ftdi); in ftdi_elan_command_work() local
474 if (retval == -ESHUTDOWN) { in ftdi_elan_command_work()
476 } else if (retval == -ENODEV) { in ftdi_elan_command_work()
478 } else if (retval) in ftdi_elan_command_work()
479 dev_err(&ftdi->udev->dev, "command error %d\n", retval); in ftdi_elan_command_work()
498 int retval = ftdi_elan_respond_engine(ftdi); in ftdi_elan_respond_work() local
499 if (retval == 0) { in ftdi_elan_respond_work()
500 } else if (retval == -ESHUTDOWN) { in ftdi_elan_respond_work()
502 } else if (retval == -ENODEV) { in ftdi_elan_respond_work()
504 } else if (retval == -EILSEQ) { in ftdi_elan_respond_work()
[all …]
Dldusb.c237 int retval; in ld_usb_interrupt_in_callback() local
275 retval = usb_submit_urb(dev->interrupt_in_urb, GFP_ATOMIC); in ld_usb_interrupt_in_callback()
276 if (retval) { in ld_usb_interrupt_in_callback()
278 "usb_submit_urb failed (%d)\n", retval); in ld_usb_interrupt_in_callback()
315 int retval; in ld_usb_open() local
340 retval = -EBUSY; in ld_usb_open()
362 retval = usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL); in ld_usb_open()
363 if (retval) { in ld_usb_open()
364 dev_err(&interface->dev, "Couldn't submit interrupt_in_urb %d\n", retval); in ld_usb_open()
376 return retval; in ld_usb_open()
[all …]
Dusbled.c70 int retval = 0; in change_color() local
94 retval = usb_control_msg(led->udev, in change_color()
118 retval = usb_control_msg(led->udev, in change_color()
136 retval = usb_interrupt_msg(led->udev, in change_color()
145 if (retval) in change_color()
146 dev_dbg(&led->udev->dev, "retval = %d\n", retval); in change_color()
180 int retval = -ENOMEM; in led_probe() local
193 retval = device_create_file(&interface->dev, &dev_attr_blue); in led_probe()
194 if (retval) in led_probe()
196 retval = device_create_file(&interface->dev, &dev_attr_red); in led_probe()
[all …]
Dyurex.c134 int retval, i; in yurex_interrupt() local
185 retval = usb_submit_urb(dev->urb, GFP_ATOMIC); in yurex_interrupt()
186 if (retval) { in yurex_interrupt()
188 __func__, retval); in yurex_interrupt()
197 int retval = -ENOMEM; in yurex_probe() local
226 retval = -ENODEV; in yurex_probe()
292 retval = -EIO; in yurex_probe()
302 retval = usb_register_dev(interface, &yurex_class); in yurex_probe()
303 if (retval) { in yurex_probe()
320 return retval; in yurex_probe()
[all …]
Dtrancevibrator.c62 int temp, retval, old; in set_speed() local
75 retval = usb_control_msg(tv->udev, usb_sndctrlpipe(tv->udev, 0), in set_speed()
80 if (retval) { in set_speed()
82 dev_dbg(&tv->udev->dev, "retval = %d\n", retval); in set_speed()
83 return retval; in set_speed()
95 int retval; in tv_probe() local
100 retval = -ENOMEM; in tv_probe()
106 retval = device_create_file(&interface->dev, &dev_attr_speed); in tv_probe()
107 if (retval) in tv_probe()
117 return retval; in tv_probe()
Dusblcd.c139 int retval = 0; in lcd_read() local
145 retval = usb_bulk_msg(dev->udev, in lcd_read()
153 if (!retval) { in lcd_read()
155 retval = -EFAULT; in lcd_read()
157 retval = bytes_read; in lcd_read()
160 return retval; in lcd_read()
225 int retval = 0, r; in lcd_write() local
242 retval = -ENOMEM; in lcd_write()
249 retval = -ENOMEM; in lcd_write()
254 retval = -EFAULT; in lcd_write()
[all …]
/linux-4.1.27/tools/testing/selftests/timers/
Drtctest.c35 int i, fd, retval, irqcount = 0; in main() local
62 retval = ioctl(fd, RTC_UIE_ON, 0); in main()
63 if (retval == -1) { in main()
78 retval = read(fd, &data, sizeof(unsigned long)); in main()
79 if (retval == -1) { in main()
97 retval = select(fd+1, &readfds, NULL, NULL, &tv); in main()
98 if (retval == -1) { in main()
103 retval = read(fd, &data, sizeof(unsigned long)); in main()
104 if (retval == -1) { in main()
114 retval = ioctl(fd, RTC_UIE_OFF, 0); in main()
[all …]
/linux-4.1.27/drivers/staging/vme/devices/
Dvme_pio2_cntr.c26 int retval; in pio2_cntr_irq_set() local
30 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_CTRL[id]); in pio2_cntr_irq_set()
31 if (retval < 0) in pio2_cntr_irq_set()
32 return retval; in pio2_cntr_irq_set()
35 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set()
36 if (retval < 0) in pio2_cntr_irq_set()
37 return retval; in pio2_cntr_irq_set()
40 retval = vme_master_write(card->window, &data, 1, PIO2_CNTR_DATA[id]); in pio2_cntr_irq_set()
41 if (retval < 0) in pio2_cntr_irq_set()
42 return retval; in pio2_cntr_irq_set()
[all …]
Dvme_pio2_core.c56 int retval; in pio2_set_led() local
67 retval = vme_master_write(card->window, &reg, 1, PIO2_REGS_CTRL); in pio2_set_led()
68 if (retval < 0) in pio2_set_led()
69 return retval; in pio2_set_led()
78 int vec, i, channel, retval; in pio2_int() local
93 retval = vme_master_read(card->window, &reg, 1, in pio2_int()
95 if (retval < 0) { in pio2_int()
128 int retval = 0; in pio2_reset_card() local
132 retval = vme_master_write(card->window, &data, 1, PIO2_REGS_CTRL); in pio2_reset_card()
133 if (retval < 0) in pio2_reset_card()
[all …]
Dvme_pio2_gpio.c36 int retval; in pio2_gpio_get() local
46 retval = vme_master_read(card->window, &reg, 1, in pio2_gpio_get()
48 if (retval < 0) { in pio2_gpio_get()
74 int retval; in pio2_gpio_set() local
91 retval = vme_master_write(card->window, &reg, 1, in pio2_gpio_set()
93 if (retval < 0) { in pio2_gpio_set()
145 int retval = 0; in pio2_gpio_reset() local
152 retval = vme_master_write(card->window, &data, 1, in pio2_gpio_reset()
154 if (retval < 0) in pio2_gpio_reset()
155 return retval; in pio2_gpio_reset()
[all …]
Dvme_user.c233 ssize_t retval; in resource_to_user() local
243 retval = __copy_to_user(buf, image[minor].kern_buf, in resource_to_user()
245 if (retval != 0) { in resource_to_user()
246 copied = (copied - retval); in resource_to_user()
272 ssize_t retval; in resource_from_user() local
276 retval = __copy_from_user(image[minor].kern_buf, buf, in resource_from_user()
278 if (retval != 0) in resource_from_user()
279 copied = (copied - retval); in resource_from_user()
301 ssize_t retval; in buffer_to_user() local
305 retval = __copy_to_user(buf, image_ptr, (unsigned long)count); in buffer_to_user()
[all …]
/linux-4.1.27/drivers/staging/ste_rmi4/
Dsynaptics_i2c_rmi4.c202 int retval; in synaptics_rmi4_set_page() local
210 retval = i2c_master_send(i2c, txbuf, PAGE_LEN); in synaptics_rmi4_set_page()
211 if (retval != PAGE_LEN) in synaptics_rmi4_set_page()
212 dev_err(&i2c->dev, "failed:%d\n", retval); in synaptics_rmi4_set_page()
216 retval = PAGE_LEN; in synaptics_rmi4_set_page()
217 return retval; in synaptics_rmi4_set_page()
232 int retval = 0; in synaptics_rmi4_i2c_block_read() local
238 retval = synaptics_rmi4_set_page(pdata, address); in synaptics_rmi4_i2c_block_read()
239 if (retval != PAGE_LEN) in synaptics_rmi4_i2c_block_read()
243 retval = i2c_smbus_read_i2c_block_data(i2c, index, size, valp); in synaptics_rmi4_i2c_block_read()
[all …]
/linux-4.1.27/sound/core/
Dcompress_offload.c278 int retval; in snd_compr_write() local
300 retval = stream->ops->copy(stream, cbuf, avail); in snd_compr_write()
302 retval = snd_compr_write_data(stream, buf, avail); in snd_compr_write()
304 if (retval > 0) in snd_compr_write()
305 stream->runtime->total_bytes_available += retval; in snd_compr_write()
315 return retval; in snd_compr_write()
325 int retval; in snd_compr_read() local
343 retval = -EBADFD; in snd_compr_read()
354 retval = stream->ops->copy(stream, buf, avail); in snd_compr_read()
356 retval = -ENXIO; in snd_compr_read()
[all …]
/linux-4.1.27/fs/ext4/
Dmigrate.c32 int retval = 0, needed; in finish_range() local
46 retval = PTR_ERR(path); in finish_range()
66 retval = ext4_journal_restart(handle, needed); in finish_range()
68 if (retval) in finish_range()
71 retval = ext4_journal_extend(handle, needed); in finish_range()
72 if (retval) { in finish_range()
77 retval = ext4_journal_restart(handle, needed); in finish_range()
79 if (retval) in finish_range()
83 retval = ext4_ext_insert_extent(handle, inode, &path, &newext, 0); in finish_range()
89 return retval; in finish_range()
[all …]
Dmmp.c138 int retval; in kmmpd() local
163 retval = write_mmp_block(sb, bh); in kmmpd()
168 if (retval) { in kmmpd()
204 retval = read_mmp_block(sb, &bh_check, mmp_block); in kmmpd()
205 if (retval) { in kmmpd()
207 retval); in kmmpd()
243 retval = write_mmp_block(sb, bh); in kmmpd()
248 return retval; in kmmpd()
279 int retval; in ext4_multi_mount_protect() local
287 retval = read_mmp_block(sb, &bh, mmp_block); in ext4_multi_mount_protect()
[all …]
/linux-4.1.27/drivers/media/radio/si470x/
Dradio-si470x-common.c210 int retval; in si470x_set_chan() local
217 retval = si470x_set_register(radio, CHANNEL); in si470x_set_chan()
218 if (retval < 0) in si470x_set_chan()
236 retval = si470x_set_register(radio, CHANNEL); in si470x_set_chan()
239 return retval; in si470x_set_chan()
267 int chan, retval; in si470x_get_freq() local
270 retval = si470x_get_register(radio, READCHAN); in si470x_get_freq()
276 return retval; in si470x_get_freq()
302 int band, retval; in si470x_set_seek() local
320 retval = si470x_get_freq(radio, &freq); in si470x_set_seek()
[all …]
Dradio-si470x-usb.c214 int retval; in si470x_get_report() local
216 retval = usb_control_msg(radio->usbdev, in si470x_get_report()
223 if (retval < 0) in si470x_get_report()
226 retval); in si470x_get_report()
227 return retval; in si470x_get_report()
237 int retval; in si470x_set_report() local
239 retval = usb_control_msg(radio->usbdev, in si470x_set_report()
246 if (retval < 0) in si470x_set_report()
249 retval); in si470x_set_report()
250 return retval; in si470x_set_report()
[all …]
Dradio-si470x-i2c.c185 int retval = v4l2_fh_open(file); in si470x_fops_open() local
187 if (retval) in si470x_fops_open()
188 return retval; in si470x_fops_open()
192 retval = si470x_start(radio); in si470x_fops_open()
193 if (retval < 0) in si470x_fops_open()
201 retval = si470x_set_register(radio, SYSCONFIG1); in si470x_fops_open()
205 if (retval) in si470x_fops_open()
207 return retval; in si470x_fops_open()
263 int retval = 0; in si470x_i2c_interrupt() local
266 retval = si470x_get_register(radio, STATUSRSSI); in si470x_i2c_interrupt()
[all …]
/linux-4.1.27/fs/reiserfs/
Dnamei.c123 int retval; in search_by_entry_key() local
125 retval = search_item(sb, key, path); in search_by_entry_key()
126 switch (retval) { in search_by_entry_key()
140 return retval; in search_by_entry_key()
164 retval = bin_search_in_dir_item(de, cpu_key_k_offset(key)); in search_by_entry_key()
166 if (retval != NAME_NOT_FOUND) { in search_by_entry_key()
174 return retval; in search_by_entry_key()
211 int retval = NAME_NOT_FOUND; in reiserfs_match() local
215 retval = in reiserfs_match()
219 return retval; in reiserfs_match()
[all …]
/linux-4.1.27/sound/spi/
Dat73c213.c94 int retval; in snd_at73c213_write_reg() local
105 retval = spi_sync(chip->spi, &msg); in snd_at73c213_write_reg()
107 if (!retval) in snd_at73c213_write_reg()
110 return retval; in snd_at73c213_write_reg()
280 int retval = 0; in snd_at73c213_pcm_trigger() local
295 retval = -EINVAL; in snd_at73c213_pcm_trigger()
301 return retval; in snd_at73c213_pcm_trigger()
336 int retval; in snd_at73c213_pcm_new() local
338 retval = snd_pcm_new(chip->card, chip->card->shortname, in snd_at73c213_pcm_new()
340 if (retval < 0) in snd_at73c213_pcm_new()
[all …]
/linux-4.1.27/drivers/rtc/
Drtc-sysfs.c37 ssize_t retval; in date_show() local
40 retval = rtc_read_time(to_rtc_device(dev), &tm); in date_show()
41 if (retval == 0) { in date_show()
42 retval = sprintf(buf, "%04d-%02d-%02d\n", in date_show()
46 return retval; in date_show()
53 ssize_t retval; in time_show() local
56 retval = rtc_read_time(to_rtc_device(dev), &tm); in time_show()
57 if (retval == 0) { in time_show()
58 retval = sprintf(buf, "%02d:%02d:%02d\n", in time_show()
62 return retval; in time_show()
[all …]
Drtc-ab8500.c90 int retval, i; in ab8500_rtc_read_time() local
96 retval = abx500_set_register_interruptible(dev, in ab8500_rtc_read_time()
98 if (retval < 0) in ab8500_rtc_read_time()
99 return retval; in ab8500_rtc_read_time()
103 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
105 if (retval < 0) in ab8500_rtc_read_time()
106 return retval; in ab8500_rtc_read_time()
116 retval = abx500_get_register_interruptible(dev, in ab8500_rtc_read_time()
118 if (retval < 0) in ab8500_rtc_read_time()
119 return retval; in ab8500_rtc_read_time()
[all …]
/linux-4.1.27/net/sctp/
Dsm_make_chunk.c226 struct sctp_chunk *retval = NULL; in sctp_make_init() local
243 retval = NULL; in sctp_make_init()
321 retval = sctp_make_control(asoc, SCTP_CID_INIT, 0, chunksize); in sctp_make_init()
322 if (!retval) in sctp_make_init()
325 retval->subh.init_hdr = in sctp_make_init()
326 sctp_addto_chunk(retval, sizeof(init), &init); in sctp_make_init()
327 retval->param_hdr.v = in sctp_make_init()
328 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init()
339 sctp_addto_chunk(retval, sizeof(sat), &sat); in sctp_make_init()
340 sctp_addto_chunk(retval, num_types * sizeof(__u16), &types); in sctp_make_init()
[all …]
Doutput.c158 sctp_xmit_t retval; in sctp_packet_transmit_chunk() local
163 switch ((retval = (sctp_packet_append_chunk(packet, chunk)))) { in sctp_packet_transmit_chunk()
174 retval = sctp_packet_append_chunk(packet, in sctp_packet_transmit_chunk()
185 return retval; in sctp_packet_transmit_chunk()
194 sctp_xmit_t retval = SCTP_XMIT_OK; in sctp_packet_bundle_auth() local
198 return retval; in sctp_packet_bundle_auth()
204 return retval; in sctp_packet_bundle_auth()
210 return retval; in sctp_packet_bundle_auth()
214 return retval; in sctp_packet_bundle_auth()
216 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
[all …]
Dssnmap.c55 struct sctp_ssnmap *retval; in sctp_ssnmap_new() local
60 retval = kmalloc(size, gfp); in sctp_ssnmap_new()
62 retval = (struct sctp_ssnmap *) in sctp_ssnmap_new()
64 if (!retval) in sctp_ssnmap_new()
67 if (!sctp_ssnmap_init(retval, in, out)) in sctp_ssnmap_new()
72 return retval; in sctp_ssnmap_new()
76 kfree(retval); in sctp_ssnmap_new()
78 free_pages((unsigned long)retval, get_order(size)); in sctp_ssnmap_new()
/linux-4.1.27/drivers/input/touchscreen/
Dbu21013_ts.c260 int retval; in bu21013_gpio_irq() local
263 retval = bu21013_do_touch_report(data); in bu21013_gpio_irq()
264 if (retval < 0) { in bu21013_gpio_irq()
287 int retval; in bu21013_init_chip() local
290 retval = i2c_smbus_write_byte_data(i2c, BU21013_RESET_REG, in bu21013_init_chip()
292 if (retval < 0) { in bu21013_init_chip()
294 return retval; in bu21013_init_chip()
298 retval = i2c_smbus_write_byte_data(i2c, BU21013_SENSOR_0_7_REG, in bu21013_init_chip()
300 if (retval < 0) { in bu21013_init_chip()
302 return retval; in bu21013_init_chip()
[all …]
Dcyttsp_i2c_common.c56 int retval; in cyttsp_i2c_read_block_data() local
58 retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in cyttsp_i2c_read_block_data()
59 if (retval < 0) in cyttsp_i2c_read_block_data()
60 return retval; in cyttsp_i2c_read_block_data()
62 return retval != ARRAY_SIZE(msgs) ? -EIO : 0; in cyttsp_i2c_read_block_data()
80 int retval; in cyttsp_i2c_write_block_data() local
85 retval = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in cyttsp_i2c_write_block_data()
86 if (retval < 0) in cyttsp_i2c_write_block_data()
87 return retval; in cyttsp_i2c_write_block_data()
89 return retval != ARRAY_SIZE(msgs) ? -EIO : 0; in cyttsp_i2c_write_block_data()
/linux-4.1.27/fs/
Dbinfmt_script.c23 int retval; in load_script() local
79 retval = remove_arg_zero(bprm); in load_script()
80 if (retval) in load_script()
81 return retval; in load_script()
82 retval = copy_strings_kernel(1, &bprm->interp, bprm); in load_script()
83 if (retval < 0) return retval; in load_script()
86 retval = copy_strings_kernel(1, &i_arg, bprm); in load_script()
87 if (retval < 0) return retval; in load_script()
90 retval = copy_strings_kernel(1, &i_name, bprm); in load_script()
91 if (retval) return retval; in load_script()
[all …]
Dfhandle.c19 long retval; in do_sys_name_to_handle() local
47 retval = exportfs_encode_fh(path->dentry, in do_sys_name_to_handle()
50 handle->handle_type = retval; in do_sys_name_to_handle()
55 (retval == FILEID_INVALID) || (retval == -ENOSPC)) { in do_sys_name_to_handle()
66 retval = -EOVERFLOW; in do_sys_name_to_handle()
68 retval = 0; in do_sys_name_to_handle()
74 retval = -EFAULT; in do_sys_name_to_handle()
76 return retval; in do_sys_name_to_handle()
141 int retval = 0; in do_handle_to_path() local
146 retval = PTR_ERR(path->mnt); in do_handle_to_path()
[all …]
Dbinfmt_em86.c29 int retval; in load_em86() local
69 retval = copy_strings_kernel(1, &bprm->filename, bprm); in load_em86()
70 if (retval < 0) return retval; in load_em86()
73 retval = copy_strings_kernel(1, &i_arg, bprm); in load_em86()
74 if (retval < 0) return retval; in load_em86()
77 retval = copy_strings_kernel(1, &i_name, bprm); in load_em86()
78 if (retval < 0) return retval; in load_em86()
92 retval = prepare_binprm(bprm); in load_em86()
93 if (retval < 0) in load_em86()
94 return retval; in load_em86()
/linux-4.1.27/arch/s390/oprofile/
Dinit.c71 int retval; in __oprofile_hwsampler_start() local
73 retval = hwsampler_allocate(oprofile_sdbt_blocks, oprofile_sdb_blocks); in __oprofile_hwsampler_start()
74 if (retval) in __oprofile_hwsampler_start()
75 return retval; in __oprofile_hwsampler_start()
77 retval = hwsampler_start_all(oprofile_hw_interval); in __oprofile_hwsampler_start()
78 if (retval) in __oprofile_hwsampler_start()
81 return retval; in __oprofile_hwsampler_start()
86 int retval; in oprofile_hwsampler_start() local
93 retval = perf_reserve_sampling(); in oprofile_hwsampler_start()
94 if (retval) in oprofile_hwsampler_start()
[all …]
/linux-4.1.27/arch/sh/include/asm/
Duaccess_32.h15 #define __get_user_size(x,ptr,size,retval) \ argument
17 retval = 0; \
20 __get_user_asm(x, ptr, retval, "b"); \
23 __get_user_asm(x, ptr, retval, "w"); \
26 __get_user_asm(x, ptr, retval, "l"); \
68 #define __put_user_size(x,ptr,size,retval) \ argument
70 retval = 0; \
73 __put_user_asm(x, ptr, retval, "b"); \
76 __put_user_asm(x, ptr, retval, "w"); \
79 __put_user_asm(x, ptr, retval, "l"); \
[all …]
Duaccess_64.h24 #define __get_user_size(x,ptr,size,retval) \ argument
26 retval = 0; \
29 retval = __get_user_asm_b((void *)&x, \
33 retval = __get_user_asm_w((void *)&x, \
37 retval = __get_user_asm_l((void *)&x, \
41 retval = __get_user_asm_q((void *)&x, \
56 #define __put_user_size(x,ptr,size,retval) \ argument
58 retval = 0; \
61 retval = __put_user_asm_b((void *)&x, \
65 retval = __put_user_asm_w((void *)&x, \
[all …]
Dcmpxchg-irq.h8 unsigned long flags, retval; in xchg_u32() local
11 retval = *m; in xchg_u32()
14 return retval; in xchg_u32()
19 unsigned long flags, retval; in xchg_u8() local
22 retval = *m; in xchg_u8()
25 return retval; in xchg_u8()
31 __u32 retval; in __cmpxchg_u32() local
35 retval = *m; in __cmpxchg_u32()
36 if (retval == old) in __cmpxchg_u32()
39 return retval; in __cmpxchg_u32()
Dcmpxchg-grb.h6 unsigned long retval; in xchg_u32() local
17 : "=&r" (retval), in xchg_u32()
23 return retval; in xchg_u32()
28 unsigned long retval; in xchg_u8() local
39 : "=&r" (retval), in xchg_u8()
45 return retval; in xchg_u8()
51 unsigned long retval; in __cmpxchg_u32() local
64 : "=&r" (retval), in __cmpxchg_u32()
69 return retval; in __cmpxchg_u32()
Dcmpxchg-llsc.h6 unsigned long retval; in xchg_u32() local
17 : "=&z"(tmp), "=&r" (retval) in xchg_u32()
22 return retval; in xchg_u32()
27 unsigned long retval; in xchg_u8() local
38 : "=&z"(tmp), "=&r" (retval) in xchg_u8()
43 return retval; in xchg_u8()
49 unsigned long retval; in __cmpxchg_u32() local
63 : "=&z" (tmp), "=&r" (retval) in __cmpxchg_u32()
68 return retval; in __cmpxchg_u32()
Dbitops-llsc.h69 int mask, retval; in test_and_set_bit() local
84 : "=&z" (tmp), "=&r" (retval) in test_and_set_bit()
89 return retval != 0; in test_and_set_bit()
94 int mask, retval; in test_and_clear_bit() local
110 : "=&z" (tmp), "=&r" (retval) in test_and_clear_bit()
115 return retval != 0; in test_and_clear_bit()
120 int mask, retval; in test_and_change_bit() local
136 : "=&z" (tmp), "=&r" (retval) in test_and_change_bit()
141 return retval != 0; in test_and_change_bit()
Dbitops-grb.h76 int mask, retval; in test_and_set_bit() local
97 "=&r" (retval), in test_and_set_bit()
102 return retval; in test_and_set_bit()
107 int mask, retval,not_mask; in test_and_clear_bit() local
130 "=&r" (retval), in test_and_clear_bit()
136 return retval; in test_and_clear_bit()
141 int mask, retval; in test_and_change_bit() local
162 "=&r" (retval), in test_and_change_bit()
167 return retval; in test_and_change_bit()
/linux-4.1.27/drivers/usb/core/
Dhcd-pci.c190 int retval; in usb_hcd_pci_probe() local
214 retval = -ENODEV; in usb_hcd_pci_probe()
222 retval = -ENOMEM; in usb_hcd_pci_probe()
236 retval = -EBUSY; in usb_hcd_pci_probe()
242 retval = -EFAULT; in usb_hcd_pci_probe()
263 retval = -EBUSY; in usb_hcd_pci_probe()
275 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
276 if (retval != 0) in usb_hcd_pci_probe()
283 retval = usb_add_hcd(hcd, hcd_irq, IRQF_SHARED); in usb_hcd_pci_probe()
284 if (retval != 0) in usb_hcd_pci_probe()
[all …]
Dport.c85 int retval; in usb_port_runtime_resume() local
102 retval = usb_hub_set_port_power(hdev, hub, port1, true); in usb_port_runtime_resume()
104 if (udev && !retval) { in usb_port_runtime_resume()
129 return retval; in usb_port_runtime_resume()
140 int retval; in usb_port_runtime_suspend() local
155 retval = usb_hub_set_port_power(hdev, hub, port1, false); in usb_port_runtime_suspend()
169 return retval; in usb_port_runtime_suspend()
404 int retval; in usb_hub_create_port_device() local
428 retval = device_register(&port_dev->dev); in usb_hub_create_port_device()
429 if (retval) { in usb_hub_create_port_device()
[all …]
/linux-4.1.27/drivers/pci/hotplug/
Dpci_hotplug_core.c70 int retval = 0; \
74 retval = ops->get_##name(slot, value); \
78 return retval; \
88 int retval; in GET_STATUS() local
91 retval = get_power_status(slot->hotplug, &value); in GET_STATUS()
92 if (retval) in GET_STATUS()
93 return retval; in GET_STATUS()
104 int retval = 0; in power_write_file() local
111 retval = -ENODEV; in power_write_file()
117 retval = slot->ops->disable_slot(slot); in power_write_file()
[all …]
Dpcihp_skeleton.c98 int retval = 0; in enable_slot() local
106 return retval; in enable_slot()
112 int retval = 0; in disable_slot() local
120 return retval; in disable_slot()
126 int retval = 0; in set_attention_status() local
145 return retval; in set_attention_status()
151 int retval = 0; in hardware_test() local
164 return retval; in hardware_test()
170 int retval = 0; in get_power_status() local
179 return retval; in get_power_status()
[all …]
Dacpiphp_core.c94 int retval = -EINVAL; in acpiphp_register_attention() local
98 retval = 0; in acpiphp_register_attention()
101 return retval; in acpiphp_register_attention()
116 int retval = -EINVAL; in acpiphp_unregister_attention() local
120 retval = 0; in acpiphp_unregister_attention()
122 return retval; in acpiphp_unregister_attention()
172 int retval = -ENODEV; in set_attention_status() local
178 retval = attention_info->set_attn(hotplug_slot, status); in set_attention_status()
182 return retval; in set_attention_status()
218 int retval = -EINVAL; in get_attention_status() local
[all …]
Dshpchp_core.c100 int retval; in init_slots() local
106 retval = -ENOMEM; in init_slots()
112 retval = -ENOMEM; in init_slots()
119 retval = -ENOMEM; in init_slots()
133 retval = -ENOMEM; in init_slots()
150 retval = pci_hp_register(slot->hotplug_slot, in init_slots()
152 if (retval) { in init_slots()
154 retval); in init_slots()
176 return retval; in init_slots()
233 int retval; in get_power_status() local
[all …]
Dshpchp_hpc.c290 int retval = 0; in shpc_wait_cmd() local
300 retval = -EIO; in shpc_wait_cmd()
303 retval = -EINTR; in shpc_wait_cmd()
307 return retval; in shpc_wait_cmd()
314 int retval = 0; in shpc_write_cmd() local
322 retval = -EBUSY; in shpc_write_cmd()
338 retval = shpc_wait_cmd(slot->ctrl); in shpc_write_cmd()
339 if (retval) in shpc_write_cmd()
346 retval = -EIO; in shpc_write_cmd()
350 return retval; in shpc_write_cmd()
[all …]
Drpaphp_slot.c100 int retval = 0; in rpaphp_deregister_slot() local
108 retval = pci_hp_deregister(php_slot); in rpaphp_deregister_slot()
109 if (retval) in rpaphp_deregister_slot()
112 dbg("%s - Exit: rc[%d]\n", __func__, retval); in rpaphp_deregister_slot()
113 return retval; in rpaphp_deregister_slot()
120 int retval; in rpaphp_register_slot() local
137 retval = pci_hp_register(php_slot, slot->bus, slotno, slot->name); in rpaphp_register_slot()
138 if (retval) { in rpaphp_register_slot()
139 err("pci_hp_register failed with error %d\n", retval); in rpaphp_register_slot()
140 return retval; in rpaphp_register_slot()
Drpaphp_core.c94 int retval, level; in get_power_status() local
97 retval = rtas_get_power_level (slot->power_domain, &level); in get_power_status()
98 if (!retval) in get_power_status()
100 return retval; in get_power_status()
309 int retval = 0; in rpaphp_add_slot() local
340 retval = rpaphp_enable_slot(slot); in rpaphp_add_slot()
341 if (!retval) in rpaphp_add_slot()
342 retval = rpaphp_register_slot(slot); in rpaphp_add_slot()
344 if (retval) in rpaphp_add_slot()
350 dbg("%s - Exit: rc[%d]\n", __func__, retval); in rpaphp_add_slot()
[all …]
/linux-4.1.27/drivers/staging/mt29f_spinand/
Dmt29f_spinand.c120 int retval; in spinand_read_id() local
128 retval = spinand_cmd(spi_nand, &cmd); in spinand_read_id()
129 if (retval < 0) { in spinand_read_id()
130 dev_err(&spi_nand->dev, "error %d reading id\n", retval); in spinand_read_id()
131 return retval; in spinand_read_id()
135 return retval; in spinand_read_id()
170 int retval; in wait_till_ready() local
175 retval = spinand_read_status(spi_nand, &stat); in wait_till_ready()
176 if (retval < 0) in wait_till_ready()
199 int retval; in spinand_get_otp() local
[all …]
/linux-4.1.27/drivers/input/misc/
Duinput.c114 int retval; in uinput_request_send() local
116 retval = mutex_lock_interruptible(&udev->mutex); in uinput_request_send()
117 if (retval) in uinput_request_send()
118 return retval; in uinput_request_send()
121 retval = -ENODEV; in uinput_request_send()
135 return retval; in uinput_request_send()
154 return request->retval; in uinput_request_submit()
171 request->retval = -ENODEV; in uinput_flush_requests()
381 int retval; in uinput_setup_device() local
387 retval = uinput_allocate_device(udev); in uinput_setup_device()
[all …]
/linux-4.1.27/drivers/usb/host/
Du132-hcd.c428 int retval; in read_roothub_info() local
429 retval = u132_read_pcimem(u132, revision, &revision); in read_roothub_info()
430 if (retval) { in read_roothub_info()
432 "ntrol\n", retval); in read_roothub_info()
433 return retval; in read_roothub_info()
441 retval = u132_read_pcimem(u132, control, &u132->hc_control); in read_roothub_info()
442 if (retval) { in read_roothub_info()
444 "ntrol\n", retval); in read_roothub_info()
445 return retval; in read_roothub_info()
447 retval = u132_read_pcimem(u132, roothub.status, in read_roothub_info()
[all …]
Dehci-mv.c51 int retval; in mv_ehci_enable() local
55 retval = ehci_mv->pdata->phy_init(ehci_mv->phy_regs); in mv_ehci_enable()
56 if (retval) in mv_ehci_enable()
57 return retval; in mv_ehci_enable()
74 int retval; in mv_ehci_reset() local
83 retval = ehci_setup(hcd); in mv_ehci_reset()
84 if (retval) in mv_ehci_reset()
85 dev_err(dev, "ehci_setup failed %d\n", retval); in mv_ehci_reset()
87 return retval; in mv_ehci_reset()
139 int retval = -ENODEV; in mv_ehci_probe() local
[all …]
Dehci-pmcmsp.c77 int retval; in ehci_msp_setup() local
85 retval = ehci_setup(hcd); in ehci_msp_setup()
86 if (retval) in ehci_msp_setup()
87 return retval; in ehci_msp_setup()
91 return retval; in ehci_msp_setup()
104 int retval; in usb_hcd_msp_map_regs() local
116 retval = -ENOMEM; in usb_hcd_msp_map_regs()
123 retval = -ENOMEM; in usb_hcd_msp_map_regs()
128 retval = -EBUSY; in usb_hcd_msp_map_regs()
133 retval = -ENOMEM; in usb_hcd_msp_map_regs()
[all …]
Dehci-spear.c68 int irq, retval; in spear_ehci_hcd_drv_probe() local
75 retval = irq; in spear_ehci_hcd_drv_probe()
84 retval = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in spear_ehci_hcd_drv_probe()
85 if (retval) in spear_ehci_hcd_drv_probe()
91 retval = PTR_ERR(usbh_clk); in spear_ehci_hcd_drv_probe()
97 retval = -ENOMEM; in spear_ehci_hcd_drv_probe()
104 retval = PTR_ERR(hcd->regs); in spear_ehci_hcd_drv_probe()
117 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in spear_ehci_hcd_drv_probe()
118 if (retval) in spear_ehci_hcd_drv_probe()
122 return retval; in spear_ehci_hcd_drv_probe()
[all …]
Dohci-spear.c46 int retval, irq; in spear_ohci_hcd_drv_probe() local
50 retval = irq; in spear_ohci_hcd_drv_probe()
59 retval = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in spear_ohci_hcd_drv_probe()
60 if (retval) in spear_ohci_hcd_drv_probe()
66 retval = PTR_ERR(usbh_clk); in spear_ohci_hcd_drv_probe()
72 retval = -ENOMEM; in spear_ohci_hcd_drv_probe()
79 retval = PTR_ERR(hcd->regs); in spear_ohci_hcd_drv_probe()
93 retval = usb_add_hcd(hcd, platform_get_irq(pdev, 0), 0); in spear_ohci_hcd_drv_probe()
94 if (retval == 0) { in spear_ohci_hcd_drv_probe()
96 return retval; in spear_ohci_hcd_drv_probe()
[all …]
Dehci-atmel.c97 int retval; in ehci_atmel_drv_probe() local
109 retval = -ENODEV; in ehci_atmel_drv_probe()
117 retval = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); in ehci_atmel_drv_probe()
118 if (retval) in ehci_atmel_drv_probe()
123 retval = -ENOMEM; in ehci_atmel_drv_probe()
131 retval = PTR_ERR(hcd->regs); in ehci_atmel_drv_probe()
141 retval = -ENOENT; in ehci_atmel_drv_probe()
148 retval = PTR_ERR(atmel_ehci->uclk); in ehci_atmel_drv_probe()
158 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in ehci_atmel_drv_probe()
159 if (retval) in ehci_atmel_drv_probe()
[all …]
Dohci-sm501.c92 int retval, irq; in ohci_hcd_sm501_drv_probe() local
95 irq = retval = platform_get_irq(pdev, 0); in ohci_hcd_sm501_drv_probe()
96 if (retval < 0) in ohci_hcd_sm501_drv_probe()
102 retval = -ENOENT; in ohci_hcd_sm501_drv_probe()
108 retval = -EBUSY; in ohci_hcd_sm501_drv_probe()
132 retval = -ENXIO; in ohci_hcd_sm501_drv_probe()
140 retval = -ENOENT; in ohci_hcd_sm501_drv_probe()
146 retval = -ENOMEM; in ohci_hcd_sm501_drv_probe()
155 retval = -EBUSY; in ohci_hcd_sm501_drv_probe()
162 retval = -ENXIO; in ohci_hcd_sm501_drv_probe()
[all …]
Dxhci-pci.c205 int retval; in xhci_pci_setup() local
207 retval = xhci_gen_setup(hcd, xhci_pci_quirks); in xhci_pci_setup()
208 if (retval) in xhci_pci_setup()
209 return retval; in xhci_pci_setup()
219 retval = xhci_pci_reinit(xhci, pdev); in xhci_pci_setup()
220 if (!retval) in xhci_pci_setup()
221 return retval; in xhci_pci_setup()
224 return retval; in xhci_pci_setup()
233 int retval; in xhci_pci_probe() local
249 retval = usb_hcd_pci_probe(dev, id); in xhci_pci_probe()
[all …]
Dehci-w90x900.c42 int retval = 0, irq; in usb_w90x900_probe() local
47 retval = -ENOMEM; in usb_w90x900_probe()
54 retval = PTR_ERR(hcd->regs); in usb_w90x900_probe()
79 retval = irq; in usb_w90x900_probe()
83 retval = usb_add_hcd(hcd, irq, IRQF_SHARED); in usb_w90x900_probe()
84 if (retval != 0) in usb_w90x900_probe()
88 return retval; in usb_w90x900_probe()
92 return retval; in usb_w90x900_probe()
/linux-4.1.27/drivers/oprofile/
Doprofile_files.c42 int retval; in timeout_write() local
47 retval = oprofilefs_ulong_from_user(&val, buf, count); in timeout_write()
48 if (retval <= 0) in timeout_write()
49 return retval; in timeout_write()
51 retval = oprofile_set_timeout(val); in timeout_write()
53 if (retval) in timeout_write()
54 return retval; in timeout_write()
78 int retval; in depth_write() local
86 retval = oprofilefs_ulong_from_user(&val, buf, count); in depth_write()
87 if (retval <= 0) in depth_write()
[all …]
/linux-4.1.27/drivers/media/radio/
Dradio-mr800.c151 int retval; in amradio_send_cmd() local
163 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd()
166 if (retval < 0 || size != BUFFER_LENGTH) { in amradio_send_cmd()
170 return retval ? retval : -EIO; in amradio_send_cmd()
178 retval = usb_bulk_msg(radio->usbdev, usb_sndintpipe(radio->usbdev, 2), in amradio_send_cmd()
182 retval = usb_bulk_msg(radio->usbdev, usb_rcvbulkpipe(radio->usbdev, 0x81), in amradio_send_cmd()
185 if (retval == 0 && size == BUFFER_LENGTH) in amradio_send_cmd()
189 return retval ? retval : -EIO; in amradio_send_cmd()
208 int retval; in amradio_set_freq() local
219 retval = amradio_send_cmd(radio, AMRADIO_SET_FREQ, 0, buf, 3, false); in amradio_set_freq()
[all …]
Ddsbr100.c97 int retval = 0; in dsbr100_setfreq() local
100 retval = usb_control_msg(radio->usbdev, in dsbr100_setfreq()
106 if (retval >= 0) in dsbr100_setfreq()
110 if (retval >= 0) { in dsbr100_setfreq()
116 __func__, retval, DSB100_TUNE); in dsbr100_setfreq()
117 return retval; in dsbr100_setfreq()
123 int retval = usb_control_msg(radio->usbdev, in dsbr100_start() local
129 if (retval >= 0) in dsbr100_start()
133 __func__, retval, DSB100_ONOFF); in dsbr100_start()
134 return retval; in dsbr100_start()
[all …]
Dradio-ma901.c109 int retval; in ma901radio_set_freq() local
120 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_freq()
123 if (retval < 0) in ma901radio_set_freq()
124 return retval; in ma901radio_set_freq()
132 int retval; in ma901radio_set_volume() local
143 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in ma901radio_set_volume()
146 if (retval < 0) in ma901radio_set_volume()
147 return retval; in ma901radio_set_volume()
150 return retval; in ma901radio_set_volume()
155 int retval; in ma901_set_stereo() local
[all …]
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_process_queue_manager.c90 int retval; in pqm_uninit() local
98 retval = pqm_destroy_queue( in pqm_uninit()
104 if (retval != 0) { in pqm_uninit()
118 int retval; in create_cp_queue() local
120 retval = 0; in create_cp_queue()
132 retval = init_queue(q, *q_properties); in create_cp_queue()
133 if (retval != 0) in create_cp_queue()
141 return retval; in create_cp_queue()
144 return retval; in create_cp_queue()
155 int retval; in pqm_create_queue() local
[all …]
Dkfd_device_queue_manager.c136 int retval; in create_queue_nocpsch() local
153 retval = allocate_vmid(dqm, qpd, q); in create_queue_nocpsch()
154 if (retval != 0) { in create_queue_nocpsch()
156 return retval; in create_queue_nocpsch()
163 retval = create_compute_queue_nocpsch(dqm, q, qpd); in create_queue_nocpsch()
165 retval = create_sdma_queue_nocpsch(dqm, q, qpd); in create_queue_nocpsch()
167 if (retval != 0) { in create_queue_nocpsch()
173 return retval; in create_queue_nocpsch()
239 int retval; in create_compute_queue_nocpsch() local
248 retval = allocate_hqd(dqm, q); in create_compute_queue_nocpsch()
[all …]
Dkfd_packet_manager.c92 int retval; in pm_allocate_runlist_ib() local
100 retval = kfd_gtt_sa_allocate(pm->dqm->dev, *rl_buffer_size, in pm_allocate_runlist_ib()
103 if (retval != 0) { in pm_allocate_runlist_ib()
105 return retval; in pm_allocate_runlist_ib()
113 return retval; in pm_allocate_runlist_ib()
243 int retval, proccesses_mapped; in pm_create_runlist_ib() local
252 rl_wptr = retval = proccesses_mapped = 0; in pm_create_runlist_ib()
254 retval = pm_allocate_runlist_ib(pm, &rl_buffer, rl_gpu_addr, in pm_create_runlist_ib()
256 if (retval != 0) in pm_create_runlist_ib()
257 return retval; in pm_create_runlist_ib()
[all …]
Dkfd_kernel_queue.c41 int retval; in initialize() local
77 retval = kfd_gtt_sa_allocate(dev, queue_size, &kq->pq); in initialize()
78 if (retval != 0) { in initialize()
86 retval = kq->ops_asic_specific.initialize(kq, dev, type, queue_size); in initialize()
87 if (retval == false) in initialize()
90 retval = kfd_gtt_sa_allocate(dev, sizeof(*kq->rptr_kernel), in initialize()
93 if (retval != 0) in initialize()
99 retval = kfd_gtt_sa_allocate(dev, sizeof(*kq->wptr_kernel), in initialize()
102 if (retval != 0) in initialize()
130 retval = kq->mqd->init_mqd(kq->mqd, &kq->queue->mqd, in initialize()
[all …]
/linux-4.1.27/drivers/video/fbdev/
Dcobalt_lcdfb.c131 int timeout = 10, retval = 0; in lcd_busy_wait() local
146 retval = -EBUSY; in lcd_busy_wait()
148 return retval; in lcd_busy_wait()
184 int len, retval = 0; in cobalt_lcdfb_read() local
197 retval = lcd_busy_wait(info); in cobalt_lcdfb_read()
198 if (retval < 0) in cobalt_lcdfb_read()
203 retval = lcd_busy_wait(info); in cobalt_lcdfb_read()
204 if (retval < 0) in cobalt_lcdfb_read()
214 if (retval < 0 && signal_pending(current)) in cobalt_lcdfb_read()
230 int len, retval = 0; in cobalt_lcdfb_write() local
[all …]
Dps3fb.c725 int retval; in ps3fb_blank() local
733 retval = ps3av_video_mute(1); /* mute on */ in ps3fb_blank()
734 if (!retval) in ps3fb_blank()
739 retval = ps3av_video_mute(0); /* mute off */ in ps3fb_blank()
740 if (!retval) in ps3fb_blank()
744 return retval; in ps3fb_blank()
779 int retval = -EFAULT; in ps3fb_ioctl() local
786 retval = ps3fb_get_vblank(&vblank); in ps3fb_ioctl()
787 if (retval) in ps3fb_ioctl()
791 retval = -EFAULT; in ps3fb_ioctl()
[all …]
/linux-4.1.27/drivers/media/radio/si4713/
Dradio-usb-si4713.c171 int retval; in si4713_send_startup_command() local
174 retval = usb_control_msg(radio->usbdev, usb_sndctrlpipe(radio->usbdev, 0), in si4713_send_startup_command()
177 if (retval < 0) in si4713_send_startup_command()
178 return retval; in si4713_send_startup_command()
182 retval = usb_control_msg(radio->usbdev, usb_rcvctrlpipe(radio->usbdev, 0), in si4713_send_startup_command()
185 if (retval < 0) in si4713_send_startup_command()
186 return retval; in si4713_send_startup_command()
213 return retval; in si4713_send_startup_command()
257 int retval = 0; in si4713_start_seq() local
268 retval = si4713_send_startup_command(radio); in si4713_start_seq()
[all …]
/linux-4.1.27/drivers/media/pci/solo6x10/
Dsolo6x10-eeprom.c84 unsigned int retval = 0; in solo_eeprom_ewen() local
92 retval = (retval << 1) | solo_eeprom_reg_read(solo_dev); in solo_eeprom_ewen()
94 retval = (retval << 1) | solo_eeprom_reg_read(solo_dev); in solo_eeprom_ewen()
98 retval = (retval << 1) | solo_eeprom_reg_read(solo_dev); in solo_eeprom_ewen()
100 return retval; in solo_eeprom_ewen()
106 u16 retval = 0; in solo_eeprom_read() local
114 retval = (retval << 1) | solo_eeprom_reg_read(solo_dev); in solo_eeprom_read()
120 return (__force __be16)retval; in solo_eeprom_read()
127 unsigned int retval; in solo_eeprom_write() local
144 for (i = retval = 0; i < 10000 && !retval; i++) in solo_eeprom_write()
[all …]
/linux-4.1.27/drivers/net/usb/
Dipheth.c290 int retval; in ipheth_carrier_set() local
292 retval = usb_control_msg(udev, in ipheth_carrier_set()
300 if (retval < 0) { in ipheth_carrier_set()
302 __func__, retval); in ipheth_carrier_set()
303 return retval; in ipheth_carrier_set()
327 int retval; in ipheth_get_macaddr() local
329 retval = usb_control_msg(udev, in ipheth_get_macaddr()
338 if (retval < 0) { in ipheth_get_macaddr()
340 __func__, retval); in ipheth_get_macaddr()
341 } else if (retval < ETH_ALEN) { in ipheth_get_macaddr()
[all …]
Drndis_host.c108 int retval; in rndis_command() local
128 retval = usb_control_msg(dev->udev, in rndis_command()
135 if (unlikely(retval < 0 || xid == 0)) in rndis_command()
136 return retval; in rndis_command()
141 retval = usb_interrupt_msg( in rndis_command()
147 if (unlikely(retval < 0)) in rndis_command()
148 return retval; in rndis_command()
155 retval = usb_control_msg(dev->udev, in rndis_command()
162 if (likely(retval >= 8)) { in rndis_command()
193 retval = usb_control_msg(dev->udev, in rndis_command()
[all …]
/linux-4.1.27/drivers/misc/
Dpch_phub.c362 int retval; in pch_phub_write_serial_rom_val() local
368 retval = pch_phub_write_serial_rom(chip, mem_addr, data); in pch_phub_write_serial_rom_val()
370 return retval; in pch_phub_write_serial_rom_val()
378 int retval; in pch_phub_gbe_serial_rom_conf() local
380 retval = pch_phub_write_serial_rom(chip, 0x0b, 0xbc); in pch_phub_gbe_serial_rom_conf()
381 retval |= pch_phub_write_serial_rom(chip, 0x0a, 0x10); in pch_phub_gbe_serial_rom_conf()
382 retval |= pch_phub_write_serial_rom(chip, 0x09, 0x01); in pch_phub_gbe_serial_rom_conf()
383 retval |= pch_phub_write_serial_rom(chip, 0x08, 0x02); in pch_phub_gbe_serial_rom_conf()
385 retval |= pch_phub_write_serial_rom(chip, 0x0f, 0x00); in pch_phub_gbe_serial_rom_conf()
386 retval |= pch_phub_write_serial_rom(chip, 0x0e, 0x00); in pch_phub_gbe_serial_rom_conf()
[all …]
/linux-4.1.27/fs/9p/
Dvfs_addr.c57 int retval, err; in v9fs_fid_readpage() local
63 retval = v9fs_readpage_from_fscache(inode, page); in v9fs_fid_readpage()
64 if (retval == 0) in v9fs_fid_readpage()
65 return retval; in v9fs_fid_readpage()
69 retval = p9_client_read(fid, page_offset(page), &to, &err); in v9fs_fid_readpage()
72 retval = err; in v9fs_fid_readpage()
76 zero_user(page, retval, PAGE_SIZE - retval); in v9fs_fid_readpage()
81 retval = 0; in v9fs_fid_readpage()
85 return retval; in v9fs_fid_readpage()
192 int retval; in v9fs_vfs_writepage() local
[all …]
Dacl.c58 int retval = 0; in v9fs_get_acl() local
77 retval = -EIO; in v9fs_get_acl()
85 return retval; in v9fs_get_acl()
119 int retval; in v9fs_set_acl() local
131 retval = posix_acl_to_xattr(&init_user_ns, acl, buffer, size); in v9fs_set_acl()
132 if (retval < 0) in v9fs_set_acl()
144 retval = v9fs_fid_xattr_set(fid, name, buffer, size, 0); in v9fs_set_acl()
147 return retval; in v9fs_set_acl()
152 int retval = 0; in v9fs_acl_chmod() local
159 retval = __posix_acl_chmod(&acl, GFP_KERNEL, inode->i_mode); in v9fs_acl_chmod()
[all …]
Dxattr.c28 ssize_t retval; in v9fs_fid_xattr_get() local
39 retval = PTR_ERR(attr_fid); in v9fs_fid_xattr_get()
41 retval); in v9fs_fid_xattr_get()
42 return retval; in v9fs_fid_xattr_get()
46 retval = attr_size; in v9fs_fid_xattr_get()
48 retval = -ERANGE; in v9fs_fid_xattr_get()
51 retval = p9_client_read(attr_fid, 0, &to, &err); in v9fs_fid_xattr_get()
53 retval = err; in v9fs_fid_xattr_get()
56 return retval; in v9fs_fid_xattr_get()
110 int retval; in v9fs_fid_xattr_set() local
[all …]
Dvfs_file.c409 ssize_t retval; in v9fs_file_write_iter() local
413 retval = generic_write_checks(iocb, from); in v9fs_file_write_iter()
414 if (retval <= 0) in v9fs_file_write_iter()
415 return retval; in v9fs_file_write_iter()
418 retval = p9_client_write(file->private_data, iocb->ki_pos, from, &err); in v9fs_file_write_iter()
419 if (retval > 0) { in v9fs_file_write_iter()
424 pg_end = (origin + retval - 1) >> PAGE_CACHE_SHIFT; in v9fs_file_write_iter()
428 iocb->ki_pos += retval; in v9fs_file_write_iter()
434 return retval; in v9fs_file_write_iter()
445 int retval; in v9fs_file_fsync() local
[all …]
Dvfs_inode.c509 int retval; in v9fs_qid_iget() local
534 retval = v9fs_init_inode(v9ses, inode, umode, rdev); in v9fs_qid_iget()
535 if (retval) in v9fs_qid_iget()
544 return ERR_PTR(retval); in v9fs_qid_iget()
589 int retval = -EOPNOTSUPP; in v9fs_remove() local
600 retval = PTR_ERR(dfid); in v9fs_remove()
601 p9_debug(P9_DEBUG_VFS, "fid lookup failed %d\n", retval); in v9fs_remove()
602 return retval; in v9fs_remove()
605 retval = p9_client_unlinkat(dfid, dentry->d_name.name, in v9fs_remove()
607 if (retval == -EOPNOTSUPP) { in v9fs_remove()
[all …]
/linux-4.1.27/arch/cris/arch-v32/drivers/
Diop_fw_load.c67 int retval, i; in iop_fw_load_spu() local
73 retval = request_firmware(&fw_entry, in iop_fw_load_spu()
76 if (retval != 0) in iop_fw_load_spu()
81 return retval; in iop_fw_load_spu()
103 retval = -EBUSY; in iop_fw_load_spu()
126 return retval; in iop_fw_load_spu()
135 int retval, i; in iop_fw_load_mpu() local
138 retval = request_firmware(&fw_entry, fw_name, &iop_mpu_device); in iop_fw_load_mpu()
139 if (retval != 0) in iop_fw_load_mpu()
144 return retval; in iop_fw_load_mpu()
[all …]
/linux-4.1.27/drivers/char/mwave/
Dtp3780i.c157 int retval = 0; in tp3780I_InitializeBoardData() local
166 retval = smapi_init(); in tp3780I_InitializeBoardData()
167 if (retval) { in tp3780I_InitializeBoardData()
171 retval = smapi_set_DSP_cfg(); in tp3780I_InitializeBoardData()
175 PRINTK_2(TRACE_TP3780I, "tp3780i::tp3780I_InitializeBoardData exit retval %x\n", retval); in tp3780I_InitializeBoardData()
177 return retval; in tp3780I_InitializeBoardData()
182 int retval = 0; in tp3780I_Cleanup() local
187 return retval; in tp3780I_Cleanup()
240 int retval = 0; in tp3780I_ClaimResources() local
248 if ( pres == NULL ) retval = -EIO; in tp3780I_ClaimResources()
[all …]
Dmwavedd.c97 unsigned int retval = 0; in mwave_open() local
103 "mwavedd::mwave_open, exit return retval %x\n", retval); in mwave_open()
105 return retval; in mwave_open()
110 unsigned int retval = 0; in mwave_close() local
117 retval); in mwave_close()
119 return retval; in mwave_close()
125 unsigned int retval = 0; in mwave_ioctl() local
140 retval = tp3780I_ResetDSP(&pDrvData->rBDData); in mwave_ioctl()
145 retval); in mwave_ioctl()
153 retval = tp3780I_StartDSP(&pDrvData->rBDData); in mwave_ioctl()
[all …]
/linux-4.1.27/drivers/char/
Dtile-srom.c89 int retval, retries = SROM_MAX_WAIT_TRY_TIMES; in _srom_read() local
91 retval = hv_dev_pread(hv_devhdl, 0, (HV_VirtAddr)buf, in _srom_read()
93 if (retval >= 0) in _srom_read()
94 return retval; in _srom_read()
95 if (retval == HV_EAGAIN) in _srom_read()
97 if (retval == HV_EBUSY && --retries > 0) { in _srom_read()
101 pr_err("_srom_read: error %d\n", retval); in _srom_read()
109 int retval, retries = SROM_MAX_WAIT_TRY_TIMES; in _srom_write() local
111 retval = hv_dev_pwrite(hv_devhdl, 0, (HV_VirtAddr)buf, in _srom_write()
113 if (retval >= 0) in _srom_write()
[all …]
Dtb0219.c200 int retval = 0; in tanbac_tb0219_write() local
221 retval = set_led(c); in tanbac_tb0219_write()
224 retval = set_gpio_output_pin(minor - 32, c); in tanbac_tb0219_write()
228 if (retval < 0) in tanbac_tb0219_write()
289 int retval; in tb0219_probe() local
300 retval = register_chrdev(major, "TB0219", &tb0219_fops); in tb0219_probe()
301 if (retval < 0) { in tb0219_probe()
305 return retval; in tb0219_probe()
314 major = retval; in tb0219_probe()
345 int retval; in tanbac_tb0219_init() local
[all …]
/linux-4.1.27/drivers/isdn/hardware/avm/
Db1pci.c68 int retval; in b1pci_probe() local
73 retval = -ENOMEM; in b1pci_probe()
86 retval = -EBUSY; in b1pci_probe()
90 retval = b1_detect(card->port, card->cardtype); in b1pci_probe()
91 if (retval) { in b1pci_probe()
93 card->port, retval); in b1pci_probe()
94 retval = -ENODEV; in b1pci_probe()
100 retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card); in b1pci_probe()
101 if (retval) { in b1pci_probe()
103 retval = -EBUSY; in b1pci_probe()
[all …]
Dt1pci.c53 int retval; in t1pci_add_card() local
58 retval = -ENOMEM; in t1pci_add_card()
65 retval = -ENOMEM; in t1pci_add_card()
79 retval = -EBUSY; in t1pci_add_card()
87 retval = -EIO; in t1pci_add_card()
93 retval = t1pci_detect(card); in t1pci_add_card()
94 if (retval != 0) { in t1pci_add_card()
95 if (retval < 6) in t1pci_add_card()
97 card->port, retval); in t1pci_add_card()
100 card->port, retval); in t1pci_add_card()
[all …]
Db1isa.c67 int retval; in b1isa_probe() local
72 retval = -ENOMEM; in b1isa_probe()
86 retval = -EINVAL; in b1isa_probe()
91 retval = -EINVAL; in b1isa_probe()
97 retval = -EBUSY; in b1isa_probe()
100 retval = request_irq(card->irq, b1_interrupt, 0, card->name, card); in b1isa_probe()
101 if (retval) { in b1isa_probe()
106 if ((retval = b1_detect(card->port, card->cardtype)) != 0) { in b1isa_probe()
108 card->port, retval); in b1isa_probe()
109 retval = -ENODEV; in b1isa_probe()
[all …]
Db1pcmcia.c66 int retval; in b1pcmcia_add_card() local
71 retval = -ENOMEM; in b1pcmcia_add_card()
85 retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card); in b1pcmcia_add_card()
86 if (retval) { in b1pcmcia_add_card()
89 retval = -EBUSY; in b1pcmcia_add_card()
93 if ((retval = b1_detect(card->port, card->cardtype)) != 0) { in b1pcmcia_add_card()
95 card->port, retval); in b1pcmcia_add_card()
96 retval = -ENODEV; in b1pcmcia_add_card()
114 retval = attach_capi_ctr(&cinfo->capi_ctrl); in b1pcmcia_add_card()
115 if (retval) { in b1pcmcia_add_card()
[all …]
/linux-4.1.27/arch/metag/include/asm/
Dcmpxchg_irq.h8 unsigned long flags, retval; in xchg_u32() local
11 retval = *m; in xchg_u32()
14 return retval; in xchg_u32()
19 unsigned long flags, retval; in xchg_u8() local
22 retval = *m; in xchg_u8()
25 return retval; in xchg_u8()
31 __u32 retval; in __cmpxchg_u32() local
35 retval = *m; in __cmpxchg_u32()
36 if (retval == old) in __cmpxchg_u32()
39 return retval; in __cmpxchg_u32()
Dcmpxchg_lock1.h10 unsigned long flags, retval; in xchg_u32() local
14 retval = *m; in xchg_u32()
17 return retval; in xchg_u32()
22 unsigned long flags, retval; in xchg_u8() local
26 retval = *m; in xchg_u8()
29 return retval; in xchg_u8()
35 __u32 retval; in __cmpxchg_u32() local
39 retval = *m; in __cmpxchg_u32()
40 if (retval == old) { in __cmpxchg_u32()
45 return retval; in __cmpxchg_u32()
/linux-4.1.27/drivers/isdn/gigaset/
Dinterface.c173 int retval = -ENODEV; in if_ioctl() local
185 retval = -ENODEV; in if_ioctl()
187 retval = 0; in if_ioctl()
190 retval = get_user(int_arg, (int __user *) arg); in if_ioctl()
191 if (retval >= 0) in if_ioctl()
192 retval = if_lock(cs, &int_arg); in if_ioctl()
193 if (retval >= 0) in if_ioctl()
194 retval = put_user(int_arg, (int __user *) arg); in if_ioctl()
197 retval = get_user(int_arg, (int __user *) arg); in if_ioctl()
198 if (retval >= 0) in if_ioctl()
[all …]
/linux-4.1.27/drivers/usb/storage/
Drealtek_cr.c367 int retval; in rts51x_read_mem() local
384 retval = rts51x_bulk_transport(us, 0, cmnd, 12, in rts51x_read_mem()
386 if (retval != USB_STOR_TRANSPORT_GOOD) { in rts51x_read_mem()
398 int retval; in rts51x_write_mem() local
415 retval = rts51x_bulk_transport(us, 0, cmnd, 12, in rts51x_write_mem()
418 if (retval != USB_STOR_TRANSPORT_GOOD) in rts51x_write_mem()
427 int retval; in rts51x_read_status() local
440 retval = rts51x_bulk_transport(us, lun, cmnd, 12, in rts51x_read_status()
442 if (retval != USB_STOR_TRANSPORT_GOOD) { in rts51x_read_status()
455 int retval; in rts51x_check_status() local
[all …]
/linux-4.1.27/drivers/parport/
Dprobe.c143 ssize_t retval; in parport_read_device_id() local
147 retval = parport_read (port, length, 2); in parport_read_device_id()
149 if (retval < 0) in parport_read_device_id()
150 return retval; in parport_read_device_id()
151 if (retval != 2) in parport_read_device_id()
195 retval = parport_read (port, buffer+len, idlen-len); in parport_read_device_id()
197 if (retval < 0) in parport_read_device_id()
198 return retval; in parport_read_device_id()
199 len += retval; in parport_read_device_id()
228 retval = parport_read (port, buffer+len, count-len-1); in parport_read_device_id()
[all …]
/linux-4.1.27/arch/mips/kernel/
Dmips-mt-fpaff.c68 int retval; in mipsmt_sys_sched_setaffinity() local
91 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
95 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
99 retval = -ENOMEM; in mipsmt_sys_sched_setaffinity()
102 retval = -EPERM; in mipsmt_sys_sched_setaffinity()
106 retval = security_task_setscheduler(p); in mipsmt_sys_sched_setaffinity()
107 if (retval) in mipsmt_sys_sched_setaffinity()
119 retval = set_cpus_allowed_ptr(p, effective_mask); in mipsmt_sys_sched_setaffinity()
123 retval = set_cpus_allowed_ptr(p, new_mask); in mipsmt_sys_sched_setaffinity()
126 if (!retval) { in mipsmt_sys_sched_setaffinity()
[all …]
/linux-4.1.27/drivers/usb/serial/
Dbus.c46 int retval = 0; in usb_serial_device_probe() local
54 retval = usb_autopm_get_interface(port->serial->interface); in usb_serial_device_probe()
55 if (retval) in usb_serial_device_probe()
56 return retval; in usb_serial_device_probe()
60 retval = driver->port_probe(port); in usb_serial_device_probe()
61 if (retval) in usb_serial_device_probe()
68 retval = PTR_ERR(tty_dev); in usb_serial_device_probe()
86 return retval; in usb_serial_device_probe()
93 int retval = 0; in usb_serial_device_remove() local
114 retval = driver->port_remove(port); in usb_serial_device_remove()
[all …]
Dwishbone-serial.c52 int retval; in wishbone_serial_open() local
54 retval = usb_gsi_openclose(port, 1); in wishbone_serial_open()
55 if (retval) { in wishbone_serial_open()
58 retval); in wishbone_serial_open()
59 return retval; in wishbone_serial_open()
62 retval = usb_serial_generic_open(tty, port); in wishbone_serial_open()
63 if (retval) in wishbone_serial_open()
66 return retval; in wishbone_serial_open()
Dconsole.c69 int retval; in usb_console_setup() local
121 retval = usb_autopm_get_interface(serial->interface); in usb_console_setup()
122 if (retval) in usb_console_setup()
139 retval = -ENOMEM; in usb_console_setup()
151 retval = -ENOMEM; in usb_console_setup()
159 retval = serial->type->open(NULL, port); in usb_console_setup()
160 if (retval) { in usb_console_setup()
184 return retval; in usb_console_setup()
196 return retval; in usb_console_setup()
205 int retval = -ENODEV; in usb_console_write() local
[all …]
/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf-core.c444 int retval; in videobuf_reqbufs() local
456 retval = -EINVAL; in videobuf_reqbufs()
462 retval = -EBUSY; in videobuf_reqbufs()
467 retval = -EBUSY; in videobuf_reqbufs()
473 retval = __videobuf_free(q); in videobuf_reqbufs()
486 retval = __videobuf_mmap_setup(q, count, size, req->memory); in videobuf_reqbufs()
487 if (retval < 0) { in videobuf_reqbufs()
488 dprintk(1, "reqbufs: mmap setup returned %d\n", retval); in videobuf_reqbufs()
492 req->count = retval; in videobuf_reqbufs()
493 retval = 0; in videobuf_reqbufs()
[all …]
/linux-4.1.27/sound/atmel/
Dabdac.c199 int retval; in atmel_abdac_hw_params() local
201 retval = snd_pcm_lib_malloc_pages(substream, in atmel_abdac_hw_params()
203 if (retval < 0) in atmel_abdac_hw_params()
204 return retval; in atmel_abdac_hw_params()
206 if (retval == 1) in atmel_abdac_hw_params()
210 return retval; in atmel_abdac_hw_params()
224 int retval; in atmel_abdac_prepare() local
226 retval = clk_set_rate(dac->sample_clk, 256 * substream->runtime->rate); in atmel_abdac_prepare()
227 if (retval) in atmel_abdac_prepare()
228 return retval; in atmel_abdac_prepare()
[all …]
Dac97c.c251 int retval; in atmel_ac97c_playback_hw_params() local
253 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_playback_hw_params()
255 if (retval < 0) in atmel_ac97c_playback_hw_params()
256 return retval; in atmel_ac97c_playback_hw_params()
260 if (retval == 1) in atmel_ac97c_playback_hw_params()
270 return retval; in atmel_ac97c_playback_hw_params()
277 int retval; in atmel_ac97c_capture_hw_params() local
279 retval = snd_pcm_lib_malloc_pages(substream, in atmel_ac97c_capture_hw_params()
281 if (retval < 0) in atmel_ac97c_capture_hw_params()
282 return retval; in atmel_ac97c_capture_hw_params()
[all …]
/linux-4.1.27/drivers/base/power/
Druntime.c235 int retval = 0; in rpm_check_suspend_allowed() local
238 retval = -EINVAL; in rpm_check_suspend_allowed()
240 retval = -EACCES; in rpm_check_suspend_allowed()
242 retval = -EAGAIN; in rpm_check_suspend_allowed()
244 retval = -EBUSY; in rpm_check_suspend_allowed()
251 retval = -EAGAIN; in rpm_check_suspend_allowed()
253 retval = -EPERM; in rpm_check_suspend_allowed()
255 retval = 1; in rpm_check_suspend_allowed()
257 return retval; in rpm_check_suspend_allowed()
268 int retval; in __rpm_callback() local
[all …]
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00pci.c80 int retval; in rt2x00pci_probe() local
83 retval = pci_enable_device(pci_dev); in rt2x00pci_probe()
84 if (retval) { in rt2x00pci_probe()
86 return retval; in rt2x00pci_probe()
89 retval = pci_request_regions(pci_dev, pci_name(pci_dev)); in rt2x00pci_probe()
90 if (retval) { in rt2x00pci_probe()
102 retval = -EIO; in rt2x00pci_probe()
109 retval = -ENOMEM; in rt2x00pci_probe()
127 retval = rt2x00pci_alloc_reg(rt2x00dev); in rt2x00pci_probe()
128 if (retval) in rt2x00pci_probe()
[all …]
Drt2x00firmware.c36 int retval; in rt2x00lib_request_firmware() local
51 retval = request_firmware(&fw, fw_name, device); in rt2x00lib_request_firmware()
52 if (retval) { in rt2x00lib_request_firmware()
54 return retval; in rt2x00lib_request_firmware()
69 retval = rt2x00dev->ops->lib->check_firmware(rt2x00dev, fw->data, fw->size); in rt2x00lib_request_firmware()
70 switch (retval) { in rt2x00lib_request_firmware()
97 int retval; in rt2x00lib_load_firmware() local
103 retval = rt2x00lib_request_firmware(rt2x00dev); in rt2x00lib_load_firmware()
104 if (retval) in rt2x00lib_load_firmware()
105 return retval; in rt2x00lib_load_firmware()
[all …]
Drt2800pci.c209 int retval; in rt2800pci_enable_radio() local
211 retval = rt2800mmio_enable_radio(rt2x00dev); in rt2800pci_enable_radio()
212 if (retval) in rt2800pci_enable_radio()
213 return retval; in rt2800pci_enable_radio()
225 return retval; in rt2800pci_enable_radio()
250 int retval = 0; in rt2800pci_set_device_state() local
254 retval = rt2800pci_enable_radio(rt2x00dev); in rt2800pci_set_device_state()
271 retval = rt2800pci_set_state(rt2x00dev, state); in rt2800pci_set_device_state()
274 retval = -ENOTSUPP; in rt2800pci_set_device_state()
278 if (unlikely(retval)) in rt2800pci_set_device_state()
[all …]
/linux-4.1.27/arch/m68k/include/asm/
Dbitops.h161 char retval; in bset_reg_test_and_set_bit() local
164 : "=d" (retval) in bset_reg_test_and_set_bit()
167 return retval; in bset_reg_test_and_set_bit()
174 char retval; in bset_mem_test_and_set_bit() local
177 : "=d" (retval), "+m" (*p) in bset_mem_test_and_set_bit()
179 return retval; in bset_mem_test_and_set_bit()
185 char retval; in bfset_mem_test_and_set_bit() local
188 : "=d" (retval) in bfset_mem_test_and_set_bit()
191 return retval; in bfset_mem_test_and_set_bit()
211 char retval; in bclr_reg_test_and_clear_bit() local
[all …]
/linux-4.1.27/lib/
Dkobject_uevent.c175 int retval = 0; in kobject_uevent_env() local
234 retval = -ENOENT; in kobject_uevent_env()
239 retval = add_uevent_var(env, "ACTION=%s", action_string); in kobject_uevent_env()
240 if (retval) in kobject_uevent_env()
242 retval = add_uevent_var(env, "DEVPATH=%s", devpath); in kobject_uevent_env()
243 if (retval) in kobject_uevent_env()
245 retval = add_uevent_var(env, "SUBSYSTEM=%s", subsystem); in kobject_uevent_env()
246 if (retval) in kobject_uevent_env()
252 retval = add_uevent_var(env, "%s", envp_ext[i]); in kobject_uevent_env()
253 if (retval) in kobject_uevent_env()
[all …]
Dlockref.c69 int retval; in lockref_get_not_zero() local
80 retval = 0; in lockref_get_not_zero()
83 retval = 1; in lockref_get_not_zero()
86 return retval; in lockref_get_not_zero()
177 int retval; in lockref_get_not_dead() local
188 retval = 0; in lockref_get_not_dead()
191 retval = 1; in lockref_get_not_dead()
194 return retval; in lockref_get_not_dead()
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_dp_core.c107 int retval; in exynos_dp_read_edid() local
116 retval = exynos_dp_read_byte_from_i2c(dp, I2C_EDID_DEVICE_ADDR, in exynos_dp_read_edid()
119 if (retval) in exynos_dp_read_edid()
120 return retval; in exynos_dp_read_edid()
126 retval = exynos_dp_read_bytes_from_i2c(dp, I2C_EDID_DEVICE_ADDR, in exynos_dp_read_edid()
130 if (retval != 0) { in exynos_dp_read_edid()
141 retval = exynos_dp_read_bytes_from_i2c(dp, in exynos_dp_read_edid()
146 if (retval != 0) { in exynos_dp_read_edid()
170 retval = exynos_dp_read_bytes_from_i2c(dp, in exynos_dp_read_edid()
175 if (retval != 0) { in exynos_dp_read_edid()
[all …]
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dhvcserver.c100 long retval; in hvcs_next_partner() local
101 retval = plpar_hcall_norets(H_VTERM_PARTNER_INFO, unit_address, in hvcs_next_partner()
104 return hvcs_convert(retval); in hvcs_next_partner()
143 int retval; in hvcs_get_partner_info() local
154 retval = hvcs_next_partner(unit_address, last_p_partition_ID, in hvcs_get_partner_info()
156 if (retval) { in hvcs_get_partner_info()
163 return retval; in hvcs_get_partner_info()
229 long retval; in hvcs_register_connection() local
230 retval = plpar_hcall_norets(H_REGISTER_VTERM, unit_address, in hvcs_register_connection()
232 return hvcs_convert(retval); in hvcs_register_connection()
[all …]
/linux-4.1.27/drivers/media/pci/cx25821/
Dcx25821-i2c.c86 int retval, cnt; in i2c_sendbytes() local
124 retval = i2c_wait_done(i2c_adap); in i2c_sendbytes()
125 if (retval < 0) in i2c_sendbytes()
128 if (retval == 0) in i2c_sendbytes()
150 retval = i2c_wait_done(i2c_adap); in i2c_sendbytes()
151 if (retval < 0) in i2c_sendbytes()
154 if (retval == 0) in i2c_sendbytes()
167 retval = -EIO; in i2c_sendbytes()
170 pr_err(" ERR: %d\n", retval); in i2c_sendbytes()
171 return retval; in i2c_sendbytes()
[all …]
/linux-4.1.27/drivers/tty/
Dn_tracerouter.c73 int retval = -EEXIST; in n_tracerouter_open() local
80 retval = -EFAULT; in n_tracerouter_open()
86 retval = 0; in n_tracerouter_open()
90 return retval; in n_tracerouter_open()
206 int retval; in n_tracerouter_init() local
214 retval = tty_register_ldisc(N_TRACEROUTER, &tty_ptirouter_ldisc); in n_tracerouter_init()
215 if (retval < 0) { in n_tracerouter_init()
216 pr_err("%s: Registration failed: %d\n", __func__, retval); in n_tracerouter_init()
219 return retval; in n_tracerouter_init()
229 int retval = tty_unregister_ldisc(N_TRACEROUTER); in n_tracerouter_exit() local
[all …]
Dn_tracesink.c76 int retval = -EEXIST; in n_tracesink_open() local
82 retval = -EFAULT; in n_tracesink_open()
86 retval = 0; in n_tracesink_open()
91 return retval; in n_tracesink_open()
211 int retval = tty_register_ldisc(N_TRACESINK, &tty_n_tracesink); in n_tracesink_init() local
213 if (retval < 0) in n_tracesink_init()
214 pr_err("%s: Registration failed: %d\n", __func__, retval); in n_tracesink_init()
216 return retval; in n_tracesink_init()
226 int retval = tty_unregister_ldisc(N_TRACESINK); in n_tracesink_exit() local
228 if (retval < 0) in n_tracesink_exit()
[all …]
Dtty_io.c1514 int retval; in tty_init_dev() local
1529 retval = -ENOMEM; in tty_init_dev()
1534 retval = tty_driver_install_tty(driver, tty); in tty_init_dev()
1535 if (retval < 0) in tty_init_dev()
1552 retval = tty_ldisc_setup(tty, tty->link); in tty_init_dev()
1553 if (retval) in tty_init_dev()
1564 return ERR_PTR(retval); in tty_init_dev()
1572 return ERR_PTR(retval); in tty_init_dev()
1952 int retval; in tty_open_current_tty() local
1966 retval = tty_reopen(tty); in tty_open_current_tty()
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dtrace.h81 TP_PROTO(unsigned long opcode, unsigned long retval,
84 TP_ARGS(opcode, retval, retbuf),
88 __field(unsigned long, retval)
93 __entry->retval = retval;
96 TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
127 TP_PROTO(unsigned long opcode, unsigned long retval),
129 TP_ARGS(opcode, retval),
133 __field(unsigned long, retval)
138 __entry->retval = retval;
141 TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval),
/linux-4.1.27/sound/soc/intel/atom/sst/
Dsst_stream.c145 int retval = 0; in sst_start_stream() local
156 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, in sst_start_stream()
160 return retval; in sst_start_stream()
236 int retval = 0; in sst_pause_stream() local
250 retval = sst_prepare_and_post_msg(sst_drv_ctx, str_info->task_id, IPC_CMD, in sst_pause_stream()
254 if (retval == 0) { in sst_pause_stream()
257 } else if (retval == SST_ERR_INVALID_STREAM_ID) { in sst_pause_stream()
258 retval = -EINVAL; in sst_pause_stream()
264 retval = -EBADRQC; in sst_pause_stream()
268 return retval; in sst_pause_stream()
[all …]
Dsst_drv_interface.c73 int retval; in sst_get_stream_allocated() local
75 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream_allocated()
76 if (retval > 0) in sst_get_stream_allocated()
77 dev_dbg(ctx->dev, "Stream allocated %d\n", retval); in sst_get_stream_allocated()
78 return retval; in sst_get_stream_allocated()
128 int retval; in sst_get_stream() local
132 retval = ctx->ops->alloc_stream(ctx, str_param); in sst_get_stream()
133 if (retval <= 0) { in sst_get_stream()
137 str_info = &ctx->streams[retval]; in sst_get_stream()
140 return retval; in sst_get_stream()
[all …]
/linux-4.1.27/tools/power/x86/x86_energy_perf_policy/
Dx86_energy_perf_policy.c191 int retval; in get_msr() local
202 retval = pread(fd, &msr, sizeof msr, offset); in get_msr()
204 if (retval != sizeof msr) { in get_msr()
205 printf("pread cpu%d 0x%x = %d\n", cpu, offset, retval); in get_msr()
216 int retval; in put_msr() local
226 retval = pread(fd, &old_msr, sizeof old_msr, offset); in put_msr()
227 if (retval != sizeof old_msr) { in put_msr()
229 printf("pread cpu%d 0x%x = %d\n", cpu, offset, retval); in put_msr()
233 retval = pwrite(fd, &new_msr, sizeof new_msr, offset); in put_msr()
234 if (retval != sizeof new_msr) { in put_msr()
[all …]
/linux-4.1.27/kernel/
Dexit.c243 int retval; in is_current_pgrp_orphaned() local
246 retval = will_become_orphaned_pgrp(task_pgrp(current), NULL); in is_current_pgrp_orphaned()
249 return retval; in is_current_pgrp_orphaned()
948 int retval = wo->wo_rusage in wait_noreap_copyout() local
954 if (!retval) in wait_noreap_copyout()
955 retval = put_user(SIGCHLD, &infop->si_signo); in wait_noreap_copyout()
956 if (!retval) in wait_noreap_copyout()
957 retval = put_user(0, &infop->si_errno); in wait_noreap_copyout()
958 if (!retval) in wait_noreap_copyout()
959 retval = put_user((short)why, &infop->si_code); in wait_noreap_copyout()
[all …]
Duid16.c63 int retval; in SYSCALL_DEFINE3() local
70 if (!(retval = put_user(ruid, ruidp)) && in SYSCALL_DEFINE3()
71 !(retval = put_user(euid, euidp))) in SYSCALL_DEFINE3()
72 retval = put_user(suid, suidp); in SYSCALL_DEFINE3()
74 return retval; in SYSCALL_DEFINE3()
87 int retval; in SYSCALL_DEFINE3() local
94 if (!(retval = put_user(rgid, rgidp)) && in SYSCALL_DEFINE3()
95 !(retval = put_user(egid, egidp))) in SYSCALL_DEFINE3()
96 retval = put_user(sgid, sgidp); in SYSCALL_DEFINE3()
98 return retval; in SYSCALL_DEFINE3()
[all …]
Dkmod.c220 int retval; in ____call_usermodehelper() local
235 retval = -ENOMEM; in ____call_usermodehelper()
247 retval = sub_info->init(sub_info, new); in ____call_usermodehelper()
248 if (retval) { in ____call_usermodehelper()
256 retval = do_execve(getname_kernel(sub_info->path), in ____call_usermodehelper()
260 sub_info->retval = retval; in ____call_usermodehelper()
264 if (!retval) in ____call_usermodehelper()
279 sub_info->retval = pid; in wait_for_helper()
299 sub_info->retval = ret; in wait_for_helper()
321 sub_info->retval = pid; in __call_usermodehelper()
[all …]
Dgroups.c230 int retval; in SYSCALL_DEFINE2() local
240 retval = groups_from_user(group_info, grouplist); in SYSCALL_DEFINE2()
241 if (retval) { in SYSCALL_DEFINE2()
243 return retval; in SYSCALL_DEFINE2()
246 retval = set_current_groups(group_info); in SYSCALL_DEFINE2()
249 return retval; in SYSCALL_DEFINE2()
258 int retval = 1; in in_group_p() local
261 retval = groups_search(cred->group_info, grp); in in_group_p()
262 return retval; in in_group_p()
270 int retval = 1; in in_egroup_p() local
[all …]
/linux-4.1.27/drivers/staging/media/lirc/
Dlirc_sasem.c177 int retval; in deregister_from_lirc() local
180 retval = lirc_unregister_driver(minor); in deregister_from_lirc()
181 if (retval) in deregister_from_lirc()
184 __func__, retval); in deregister_from_lirc()
200 int retval = 0; in vfd_open() local
210 retval = -ENODEV; in vfd_open()
218 retval = -ENODEV; in vfd_open()
227 retval = -EBUSY; in vfd_open()
238 return retval; in vfd_open()
281 int retval = 0; in vfd_close() local
[all …]
Dlirc_imon.c205 int retval; in deregister_from_lirc() local
208 retval = lirc_unregister_driver(minor); in deregister_from_lirc()
209 if (retval) in deregister_from_lirc()
211 "unable to deregister from lirc(%d)", retval); in deregister_from_lirc()
227 int retval = 0; in display_open() local
237 retval = -ENODEV; in display_open()
245 retval = -ENODEV; in display_open()
254 retval = -ENODEV; in display_open()
258 retval = -EBUSY; in display_open()
269 return retval; in display_open()
[all …]
Dlirc_sir.c205 int retval = 0; in lirc_read() local
218 retval = -EFAULT; in lirc_read()
225 retval = -EAGAIN; in lirc_read()
229 retval = -ERESTARTSYS; in lirc_read()
238 return n ? n : retval; in lirc_read()
275 int retval = 0; in lirc_ioctl() local
289 retval = put_user(value, uptr); in lirc_ioctl()
294 retval = get_user(value, uptr); in lirc_ioctl()
297 retval = -ENOIOCTLCMD; in lirc_ioctl()
301 if (retval) in lirc_ioctl()
[all …]
/linux-4.1.27/drivers/isdn/hisax/
Dst5481_init.c63 int retval, i; in probe_st5481() local
88 retval = st5481_setup_usb(adapter); in probe_st5481()
89 if (retval < 0) in probe_st5481()
92 retval = st5481_setup_d(adapter); in probe_st5481()
93 if (retval < 0) in probe_st5481()
96 retval = st5481_setup_b(&adapter->bcs[0]); in probe_st5481()
97 if (retval < 0) in probe_st5481()
100 retval = st5481_setup_b(&adapter->bcs[1]); in probe_st5481()
101 if (retval < 0) in probe_st5481()
190 int retval; in st5481_usb_init() local
[all …]
/linux-4.1.27/tools/perf/scripts/python/Perf-Trace-Util/
DContext.c32 int retval; in perf_trace_context_common_pc() local
38 retval = common_pc(scripting_context); in perf_trace_context_common_pc()
40 return Py_BuildValue("i", retval); in perf_trace_context_common_pc()
48 int retval; in perf_trace_context_common_flags() local
54 retval = common_flags(scripting_context); in perf_trace_context_common_flags()
56 return Py_BuildValue("i", retval); in perf_trace_context_common_flags()
64 int retval; in perf_trace_context_common_lock_depth() local
70 retval = common_lock_depth(scripting_context); in perf_trace_context_common_lock_depth()
72 return Py_BuildValue("i", retval); in perf_trace_context_common_lock_depth()
/linux-4.1.27/arch/arm/mach-iop13xx/
Dio.c29 void __iomem * retval; in __iop13xx_ioremap_caller() local
34 retval = NULL; in __iop13xx_ioremap_caller()
36 retval = (iop13xx_atux_mem_base + in __iop13xx_ioremap_caller()
41 retval = NULL; in __iop13xx_ioremap_caller()
43 retval = (iop13xx_atue_mem_base + in __iop13xx_ioremap_caller()
47 retval = __arm_ioremap_caller(IOP13XX_PBI_LOWER_MEM_PA + in __iop13xx_ioremap_caller()
52 retval = IOP13XX_PMMR_PHYS_TO_VIRT(cookie); in __iop13xx_ioremap_caller()
55 retval = __arm_ioremap_caller(cookie, size, mtype, in __iop13xx_ioremap_caller()
59 return retval; in __iop13xx_ioremap_caller()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Drcar2.c69 int retval = -ENODEV; in usbhs_rcar2_power_ctrl() local
73 retval = phy_init(priv->phy); in usbhs_rcar2_power_ctrl()
75 if (!retval) in usbhs_rcar2_power_ctrl()
76 retval = phy_power_on(priv->phy); in usbhs_rcar2_power_ctrl()
80 retval = 0; in usbhs_rcar2_power_ctrl()
86 retval = usb_phy_init(priv->usb_phy); in usbhs_rcar2_power_ctrl()
88 if (!retval) in usbhs_rcar2_power_ctrl()
89 retval = usb_phy_set_suspend(priv->usb_phy, 0); in usbhs_rcar2_power_ctrl()
93 retval = 0; in usbhs_rcar2_power_ctrl()
97 return retval; in usbhs_rcar2_power_ctrl()
/linux-4.1.27/drivers/media/pci/bt8xx/
Dbttv-i2c.c142 int retval,cnt; in bttv_i2c_sendbytes() local
153 retval = bttv_i2c_wait_done(btv); in bttv_i2c_sendbytes()
154 if (retval < 0) in bttv_i2c_sendbytes()
156 if (retval == 0) in bttv_i2c_sendbytes()
168 retval = bttv_i2c_wait_done(btv); in bttv_i2c_sendbytes()
169 if (retval < 0) in bttv_i2c_sendbytes()
171 if (retval == 0) in bttv_i2c_sendbytes()
181 retval = -EIO; in bttv_i2c_sendbytes()
184 pr_cont(" ERR: %d\n",retval); in bttv_i2c_sendbytes()
185 return retval; in bttv_i2c_sendbytes()
[all …]
/linux-4.1.27/drivers/scsi/
D3w-9xxx.c233 int retval = 1; in twa_aen_complete() local
247 retval = 0; in twa_aen_complete()
258 retval = 0; in twa_aen_complete()
267 retval = 0; in twa_aen_complete()
271 retval = 0; in twa_aen_complete()
277 return retval; in twa_aen_complete()
290 int first_reset = 0, queue = 0, retval = 1; in twa_aen_drain_queue() local
365 retval = 0; in twa_aen_drain_queue()
368 return retval; in twa_aen_drain_queue()
433 int retval = 1; in twa_aen_read_queue() local
[all …]
D3w-sas.c212 char *retval = NULL; in twl_aen_severity_lookup() local
218 retval = twl_aen_severity_table[severity_code]; in twl_aen_severity_lookup()
220 return retval; in twl_aen_severity_lookup()
301 int retval = 1; in twl_scsiop_execute_scsi() local
370 retval = twl_post_command_packet(tw_dev, request_id); in twl_scsiop_execute_scsi()
373 return retval; in twl_scsiop_execute_scsi()
382 int retval = 1; in twl_aen_read_queue() local
405 retval = 0; in twl_aen_read_queue()
407 return retval; in twl_aen_read_queue()
477 int retval = 1; in twl_aen_complete() local
[all …]
/linux-4.1.27/sound/aoa/soundbus/
Dcore.c64 int retval = 0; in soundbus_uevent() local
77 retval = add_uevent_var(env, "OF_NAME=%s", of->dev.of_node->name); in soundbus_uevent()
78 if (retval) in soundbus_uevent()
79 return retval; in soundbus_uevent()
81 retval = add_uevent_var(env, "OF_TYPE=%s", of->dev.of_node->type); in soundbus_uevent()
82 if (retval) in soundbus_uevent()
83 return retval; in soundbus_uevent()
92 retval = add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in soundbus_uevent()
93 if (retval) in soundbus_uevent()
94 return retval; in soundbus_uevent()
[all …]
/linux-4.1.27/mm/
Ddmapool.c134 struct dma_pool *retval; in dma_pool_create() local
158 retval = kmalloc_node(sizeof(*retval), GFP_KERNEL, dev_to_node(dev)); in dma_pool_create()
159 if (!retval) in dma_pool_create()
160 return retval; in dma_pool_create()
162 strlcpy(retval->name, name, sizeof(retval->name)); in dma_pool_create()
164 retval->dev = dev; in dma_pool_create()
166 INIT_LIST_HEAD(&retval->page_list); in dma_pool_create()
167 spin_lock_init(&retval->lock); in dma_pool_create()
168 retval->size = size; in dma_pool_create()
169 retval->boundary = boundary; in dma_pool_create()
[all …]
Dmincore.c223 long retval; in SYSCALL_DEFINE3() local
246 retval = 0; in SYSCALL_DEFINE3()
253 retval = do_mincore(start, min(pages, PAGE_SIZE), tmp); in SYSCALL_DEFINE3()
256 if (retval <= 0) in SYSCALL_DEFINE3()
258 if (copy_to_user(vec, tmp, retval)) { in SYSCALL_DEFINE3()
259 retval = -EFAULT; in SYSCALL_DEFINE3()
262 pages -= retval; in SYSCALL_DEFINE3()
263 vec += retval; in SYSCALL_DEFINE3()
264 start += retval << PAGE_SHIFT; in SYSCALL_DEFINE3()
265 retval = 0; in SYSCALL_DEFINE3()
[all …]
/linux-4.1.27/drivers/hwmon/
Demc1403.c52 int retval; in show_temp() local
54 retval = regmap_read(data->regmap, sda->index, &val); in show_temp()
55 if (retval < 0) in show_temp()
56 return retval; in show_temp()
66 int retval; in show_bit() local
68 retval = regmap_read(data->regmap, sda->nr, &val); in show_bit()
69 if (retval < 0) in show_bit()
70 return retval; in show_bit()
80 int retval; in store_temp() local
84 retval = regmap_write(data->regmap, sda->index, in store_temp()
[all …]
/linux-4.1.27/arch/avr32/boards/favr-32/
Dsetup.c275 int retval; in set_abdac_rate() local
285 retval = PTR_ERR(osc1); in set_abdac_rate()
291 retval = PTR_ERR(pll1); in set_abdac_rate()
297 retval = PTR_ERR(abdac); in set_abdac_rate()
301 retval = clk_set_parent(pll1, osc1); in set_abdac_rate()
302 if (retval != 0) in set_abdac_rate()
311 retval = clk_round_rate(pll1, in set_abdac_rate()
313 if (retval <= 0) { in set_abdac_rate()
314 retval = -EINVAL; in set_abdac_rate()
318 retval = clk_set_rate(pll1, retval); in set_abdac_rate()
[all …]
/linux-4.1.27/arch/score/include/asm/
Dcmpxchg.h12 unsigned long retval; in __xchg() local
16 retval = *m; in __xchg()
19 return retval; in __xchg()
29 unsigned long retval; in __cmpxchg() local
33 retval = *m; in __cmpxchg()
34 if (retval == old) in __cmpxchg()
37 return retval; in __cmpxchg()
/linux-4.1.27/drivers/input/mouse/
Delan_i2c_core.c361 int retval; in elan_update_firmware() local
368 retval = __elan_update_firmware(data, fw); in elan_update_firmware()
369 if (retval) { in elan_update_firmware()
370 dev_err(&client->dev, "firmware update failed: %d\n", retval); in elan_update_firmware()
381 return retval; in elan_update_firmware()
486 int retval; in calibrate_store() local
490 retval = mutex_lock_interruptible(&data->sysfs_mutex); in calibrate_store()
491 if (retval) in calibrate_store()
492 return retval; in calibrate_store()
497 retval = data->ops->set_mode(client, data->mode); in calibrate_store()
[all …]
/linux-4.1.27/drivers/usb/dwc2/
Dplatform.c162 int retval; in dwc2_driver_probe() local
191 retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32)); in dwc2_driver_probe()
192 if (retval) in dwc2_driver_probe()
193 return retval; in dwc2_driver_probe()
203 retval = devm_request_irq(hsotg->dev, irq, in dwc2_driver_probe()
206 if (retval) in dwc2_driver_probe()
207 return retval; in dwc2_driver_probe()
241 retval = dwc2_gadget_init(hsotg, irq); in dwc2_driver_probe()
242 if (retval) in dwc2_driver_probe()
243 return retval; in dwc2_driver_probe()
[all …]
/linux-4.1.27/drivers/input/
Djoydev.c193 int retval; in joydev_open_device() local
195 retval = mutex_lock_interruptible(&joydev->mutex); in joydev_open_device()
196 if (retval) in joydev_open_device()
197 return retval; in joydev_open_device()
200 retval = -ENODEV; in joydev_open_device()
202 retval = input_open_device(&joydev->handle); in joydev_open_device()
203 if (retval) in joydev_open_device()
208 return retval; in joydev_open_device()
383 int retval; in joydev_read() local
397 retval = wait_event_interruptible(joydev->wait, in joydev_read()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Duaccess_32.h208 #define __get_user_check_ret(x, addr, size, type, retval) ({ \ argument
213 __get_user_asm_ret(__gu_val, ub, addr, retval); \
216 __get_user_asm_ret(__gu_val, uh, addr, retval); \
219 __get_user_asm_ret(__gu_val, , addr, retval); \
222 __get_user_asm_ret(__gu_val, d, addr, retval); \
226 return retval; \
230 return retval; \
250 #define __get_user_nocheck_ret(x, addr, size, type, retval) ({ \ argument
253 case 1: __get_user_asm_ret(__gu_val, ub, addr, retval); break; \
254 case 2: __get_user_asm_ret(__gu_val, uh, addr, retval); break; \
[all …]
/linux-4.1.27/fs/affs/
Damigaffs.c78 int offset, retval; in affs_remove_hash() local
90 retval = -ENOENT; in affs_remove_hash()
102 retval = 0; in affs_remove_hash()
118 return retval; in affs_remove_hash()
145 int retval; in affs_remove_link() local
148 retval = -EIO; in affs_remove_link()
165 retval = PTR_ERR(dir); in affs_remove_link()
175 retval = affs_remove_hash(dir, link_bh); in affs_remove_link()
176 if (retval) { in affs_remove_link()
183 retval = affs_insert_hash(dir, bh); in affs_remove_link()
[all …]
/linux-4.1.27/drivers/watchdog/
Dpcwd_usb.c176 int retval; in usb_pcwd_intr_done() local
206 retval = usb_submit_urb(urb, GFP_ATOMIC); in usb_pcwd_intr_done()
207 if (retval) in usb_pcwd_intr_done()
209 retval); in usb_pcwd_intr_done()
273 int retval; in usb_pcwd_start() local
276 retval = usb_pcwd_send_command(usb_pcwd, CMD_ENABLE_WATCHDOG, in usb_pcwd_start()
279 if ((retval == 0) || (lsb == 0)) { in usb_pcwd_start()
291 int retval; in usb_pcwd_stop() local
294 retval = usb_pcwd_send_command(usb_pcwd, CMD_DISABLE_WATCHDOG, in usb_pcwd_stop()
297 if ((retval == 0) || (lsb != 0)) { in usb_pcwd_stop()
[all …]
Dhpwdt.c225 int retval = -ENODEV; in cru_detect() local
256 retval = 0; in cru_detect()
266 return retval; in cru_detect()
696 int retval; in hpwdt_init_nmi_decoding() local
717 retval = detect_cru_service(); in hpwdt_init_nmi_decoding()
718 if (retval < 0) { in hpwdt_init_nmi_decoding()
722 return retval; in hpwdt_init_nmi_decoding()
736 retval = register_nmi_handler(NMI_UNKNOWN, hpwdt_pretimeout, 0, "hpwdt"); in hpwdt_init_nmi_decoding()
737 if (retval) in hpwdt_init_nmi_decoding()
739 retval = register_nmi_handler(NMI_SERR, hpwdt_pretimeout, 0, "hpwdt"); in hpwdt_init_nmi_decoding()
[all …]
/linux-4.1.27/arch/mips/mti-sead3/
Dsead3-lcd.c20 int retval; in sead3_lcd_add() local
27 retval = platform_device_add_resources(pdev, &sead3_lcd_resource, 1); in sead3_lcd_add()
28 if (retval) in sead3_lcd_add()
31 retval = platform_device_add(pdev); in sead3_lcd_add()
32 if (retval) in sead3_lcd_add()
40 return retval; in sead3_lcd_add()
/linux-4.1.27/arch/mips/cobalt/
Dlcd.c34 int retval; in cobalt_lcd_add() local
40 retval = platform_device_add_resources(pdev, &cobalt_lcd_resource, 1); in cobalt_lcd_add()
41 if (retval) in cobalt_lcd_add()
44 retval = platform_device_add(pdev); in cobalt_lcd_add()
45 if (retval) in cobalt_lcd_add()
53 return retval; in cobalt_lcd_add()
Dled.c36 int retval; in cobalt_led_add() local
47 retval = platform_device_add_resources(pdev, &cobalt_led_resource, 1); in cobalt_led_add()
48 if (retval) in cobalt_led_add()
51 retval = platform_device_add(pdev); in cobalt_led_add()
52 if (retval) in cobalt_led_add()
60 return retval; in cobalt_led_add()
Drtc.c42 int retval; in cobalt_rtc_add() local
48 retval = platform_device_add_resources(pdev, cobalt_rtc_resource, in cobalt_rtc_add()
50 if (retval) in cobalt_rtc_add()
53 retval = platform_device_add(pdev); in cobalt_rtc_add()
54 if (retval) in cobalt_rtc_add()
62 return retval; in cobalt_rtc_add()
Dserial.c56 int retval; in cobalt_uart_add() local
71retval = platform_device_add_resources(pdev, cobalt_uart_resource, ARRAY_SIZE(cobalt_uart_resource… in cobalt_uart_add()
72 if (retval) in cobalt_uart_add()
75 retval = platform_device_add(pdev); in cobalt_uart_add()
76 if (retval) in cobalt_uart_add()
84 return retval; in cobalt_uart_add()
/linux-4.1.27/drivers/scsi/esas2r/
Desas2r_log.c123 int retval = 0; in esas2r_log_master() local
160 retval = vsnprintf(buffer, buflen, format, args); in esas2r_log_master()
161 if (retval < 0) { in esas2r_log_master()
189 int retval = 0; in esas2r_log() local
194 retval = esas2r_log_master(level, NULL, format, args); in esas2r_log()
198 return retval; in esas2r_log()
217 int retval = 0; in esas2r_log_dev() local
222 retval = esas2r_log_master(level, dev, format, args); in esas2r_log_dev()
226 return retval; in esas2r_log_dev()
/linux-4.1.27/drivers/usb/
Dusb-skeleton.c88 int retval = 0; in skel_open() local
96 retval = -ENODEV; in skel_open()
102 retval = -ENODEV; in skel_open()
106 retval = usb_autopm_get_interface(interface); in skel_open()
107 if (retval) in skel_open()
117 return retval; in skel_open()
365 int retval = 0; in skel_write() local
382 retval = -ERESTARTSYS; in skel_write()
387 retval = -EAGAIN; in skel_write()
393 retval = dev->errors; in skel_write()
[all …]
/linux-4.1.27/drivers/cpufreq/
Dia64-acpi-cpufreq.c45 s64 retval; in processor_set_pstate() local
49 retval = ia64_pal_set_pstate((u64)value); in processor_set_pstate()
51 if (retval) { in processor_set_pstate()
53 value, retval); in processor_set_pstate()
56 return (int)retval; in processor_set_pstate()
65 s64 retval; in processor_get_pstate() local
69 retval = ia64_pal_get_pstate(&pstate_index, in processor_get_pstate()
73 if (retval) in processor_get_pstate()
75 "error 0x%lx, idx 0x%x\n", retval, *value); in processor_get_pstate()
77 return (int)retval; in processor_get_pstate()
[all …]
/linux-4.1.27/arch/mips/vr41xx/common/
Drtc.c80 int retval; in vr41xx_rtc_add() local
99 retval = -ENODEV; in vr41xx_rtc_add()
103 retval = platform_device_add_resources(pdev, res, num); in vr41xx_rtc_add()
104 if (retval) in vr41xx_rtc_add()
107 retval = platform_device_add(pdev); in vr41xx_rtc_add()
108 if (retval) in vr41xx_rtc_add()
116 return retval; in vr41xx_rtc_add()
Dgiu.c79 int retval; in vr41xx_giu_add() local
104 retval = -ENODEV; in vr41xx_giu_add()
108 retval = platform_device_add_resources(pdev, res, num); in vr41xx_giu_add()
109 if (retval) in vr41xx_giu_add()
112 retval = platform_device_add(pdev); in vr41xx_giu_add()
113 if (retval) in vr41xx_giu_add()
121 return retval; in vr41xx_giu_add()
/linux-4.1.27/drivers/misc/vmw_vmci/
Dvmci_datagram.c167 int retval; in dg_dispatch_as_host() local
185 retval = vmci_datagram_get_priv_flags(context_id, dg->src, in dg_dispatch_as_host()
187 if (retval != VMCI_SUCCESS) { in dg_dispatch_as_host()
190 return retval; in dg_dispatch_as_host()
249 retval = VMCI_SUCCESS; in dg_dispatch_as_host()
252 retval = dst_entry->recv_cb(dst_entry->client_data, dg); in dg_dispatch_as_host()
254 if (retval < VMCI_SUCCESS) in dg_dispatch_as_host()
255 return retval; in dg_dispatch_as_host()
284 retval = vmci_ctx_enqueue_datagram(dg->dst.context, new_dg); in dg_dispatch_as_host()
285 if (retval < VMCI_SUCCESS) { in dg_dispatch_as_host()
[all …]
/linux-4.1.27/drivers/vme/boards/
Dvme_vmivme7805.c44 int retval; in vmic_probe() local
48 retval = pci_enable_device(pdev); in vmic_probe()
49 if (retval) { in vmic_probe()
55 retval = pci_request_regions(pdev, driver_name); in vmic_probe()
56 if (retval) { in vmic_probe()
65 retval = -EIO; in vmic_probe()
94 return retval; in vmic_probe()
/linux-4.1.27/arch/x86/kernel/acpi/
Dcstate.c75 long retval; in acpi_processor_ffh_cstate_probe_cpu() local
89 retval = 0; in acpi_processor_ffh_cstate_probe_cpu()
93 retval = -1; in acpi_processor_ffh_cstate_probe_cpu()
100 retval = -1; in acpi_processor_ffh_cstate_probe_cpu()
114 return retval; in acpi_processor_ffh_cstate_probe_cpu()
122 long retval; in acpi_processor_ffh_cstate_probe() local
136 retval = work_on_cpu(cpu, acpi_processor_ffh_cstate_probe_cpu, cx); in acpi_processor_ffh_cstate_probe()
137 if (retval == 0) { in acpi_processor_ffh_cstate_probe()
151 return retval; in acpi_processor_ffh_cstate_probe()
/linux-4.1.27/arch/alpha/kernel/
Dbinfmt_loader.c13 int retval; in load_binary() local
28 retval = PTR_ERR(file); in load_binary()
30 return retval; in load_binary()
37 retval = prepare_binprm(bprm); in load_binary()
38 if (retval < 0) in load_binary()
39 return retval; in load_binary()
/linux-4.1.27/drivers/spi/
Dspidev.c370 int retval = 0; in spidev_ioctl() local
416 retval = __put_user(spi->mode & SPI_MODE_MASK, in spidev_ioctl()
420 retval = __put_user(spi->mode & SPI_MODE_MASK, in spidev_ioctl()
424 retval = __put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl()
428 retval = __put_user(spi->bits_per_word, (__u8 __user *)arg); in spidev_ioctl()
431 retval = __put_user(spidev->speed_hz, (__u32 __user *)arg); in spidev_ioctl()
438 retval = __get_user(tmp, (u8 __user *)arg); in spidev_ioctl()
440 retval = __get_user(tmp, (u32 __user *)arg); in spidev_ioctl()
441 if (retval == 0) { in spidev_ioctl()
445 retval = -EINVAL; in spidev_ioctl()
[all …]
/linux-4.1.27/drivers/input/serio/
Dserio_raw.c81 int retval; in serio_raw_open() local
83 retval = mutex_lock_interruptible(&serio_raw_mutex); in serio_raw_open()
84 if (retval) in serio_raw_open()
85 return retval; in serio_raw_open()
89 retval = -ENODEV; in serio_raw_open()
94 retval = -ENODEV; in serio_raw_open()
100 retval = -ENOMEM; in serio_raw_open()
115 return retval; in serio_raw_open()
206 int retval = 0; in serio_raw_write() local
209 retval = mutex_lock_interruptible(&serio_raw_mutex); in serio_raw_write()
[all …]
/linux-4.1.27/drivers/tty/hvc/
Dhvcs.c356 int retval; in hvcs_partner_vtys_show() local
359 retval = sprintf(buf, "%X\n", hvcsd->p_unit_address); in hvcs_partner_vtys_show()
361 return retval; in hvcs_partner_vtys_show()
370 int retval; in hvcs_partner_clcs_show() local
373 retval = sprintf(buf, "%s\n", &hvcsd->p_location_code[0]); in hvcs_partner_clcs_show()
375 return retval; in hvcs_partner_clcs_show()
395 int retval; in hvcs_current_vty_show() local
398 retval = sprintf(buf, "%s\n", &hvcsd->p_location_code[0]); in hvcs_current_vty_show()
400 return retval; in hvcs_current_vty_show()
449 int retval; in hvcs_vterm_state_show() local
[all …]
/linux-4.1.27/drivers/usb/gadget/function/
Drndis.c166 int retval = -ENOTSUPP; in gen_ndis_query_resp() local
209 retval = 0; in gen_ndis_query_resp()
222 retval = 0; in gen_ndis_query_resp()
229 retval = 0; in gen_ndis_query_resp()
237 retval = 0; in gen_ndis_query_resp()
246 retval = 0; in gen_ndis_query_resp()
260 retval = 0; in gen_ndis_query_resp()
269 retval = 0; in gen_ndis_query_resp()
279 retval = 0; in gen_ndis_query_resp()
288 retval = 0; in gen_ndis_query_resp()
[all …]
/linux-4.1.27/drivers/usb/class/
Dusblp.c256 int retval; in usblp_ctrl_msg() local
265 retval = usb_control_msg(usblp->dev, in usblp_ctrl_msg()
270 request, !!dir, recip, value, index, len, retval); in usblp_ctrl_msg()
271 return retval < 0 ? retval : 0; in usblp_ctrl_msg()
397 int retval; in usblp_open() local
404 retval = -ENODEV; in usblp_open()
412 retval = -EBUSY; in usblp_open()
422 retval = usb_autopm_get_interface(intf); in usblp_open()
423 if (retval < 0) in usblp_open()
436 retval = -EIO; in usblp_open()
[all …]
Dusbtmc.c129 int retval = 0; in usbtmc_open() local
143 return retval; in usbtmc_open()
385 int retval; in send_request_dev_dep_msg_in() local
410 retval = usb_bulk_msg(data->usb_dev, in send_request_dev_dep_msg_in()
424 if (retval < 0) { in send_request_dev_dep_msg_in()
425 dev_err(&data->intf->dev, "usb_bulk_msg in send_request_dev_dep_msg_in() returned %d\n", retval); in send_request_dev_dep_msg_in()
426 return retval; in send_request_dev_dep_msg_in()
442 int retval; in usbtmc_read() local
455 retval = -ENODEV; in usbtmc_read()
462 retval = send_request_dev_dep_msg_in(data, count); in usbtmc_read()
[all …]
/linux-4.1.27/Documentation/usb/
Dgadget_printer.txt210 int retval;
213 retval = poll(fd, 1, 1000);
215 if (retval && (fd[0].revents & POLLRDNORM)) {
258 int retval;
270 retval = poll(fd, 1, 1000);
273 if (retval && (fd[0].revents & POLLWRNORM)) {
274 retval = write(fd[0].fd, buf, bytes_read);
275 if (retval < 0) {
282 bytes_read -= retval;
338 int retval;
[all …]
/linux-4.1.27/drivers/media/pci/cx23885/
Dcx23885-i2c.c83 int retval, cnt; in i2c_sendbytes() local
152 retval = -EIO; in i2c_sendbytes()
154 printk(KERN_ERR " ERR: %d\n", retval); in i2c_sendbytes()
155 return retval; in i2c_sendbytes()
164 int retval; in i2c_readbytes() local
213 retval = -EIO; in i2c_readbytes()
215 printk(KERN_ERR " ERR: %d\n", retval); in i2c_readbytes()
216 return retval; in i2c_readbytes()
224 int i, retval = 0; in i2c_xfer() local
233 retval = i2c_readbytes(i2c_adap, &msgs[i], 0); in i2c_xfer()
[all …]
/linux-4.1.27/arch/mips/include/asm/
Dcmpxchg.h18 __u32 retval; in __xchg_u32() local
34 : "=&r" (retval), "=" GCC_OFF_SMALL_ASM() (*m), "=&r" (dummy) in __xchg_u32()
49 : "=&r" (retval), "=" GCC_OFF_SMALL_ASM() (*m), in __xchg_u32()
58 retval = *m; in __xchg_u32()
65 return retval; in __xchg_u32()
71 __u64 retval; in __xchg_u64() local
85 : "=&r" (retval), "=" GCC_OFF_SMALL_ASM() (*m), "=&r" (dummy) in __xchg_u64()
98 : "=&r" (retval), "=" GCC_OFF_SMALL_ASM() (*m), in __xchg_u64()
107 retval = *m; in __xchg_u64()
114 return retval; in __xchg_u64()
/linux-4.1.27/drivers/media/usb/hdpvr/
Dhdpvr-i2c.c130 int retval = 0, addr; in hdpvr_transfer() local
141 retval = hdpvr_i2c_read(dev, 1, addr, NULL, 0, in hdpvr_transfer()
144 retval = hdpvr_i2c_write(dev, 1, addr, msgs[0].buf, in hdpvr_transfer()
150 retval = -EINVAL; in hdpvr_transfer()
158 retval = -EINVAL; in hdpvr_transfer()
166 retval = hdpvr_i2c_read(dev, 1, addr, msgs[0].buf, msgs[0].len, in hdpvr_transfer()
175 return retval ? retval : num; in hdpvr_transfer()
216 int retval = -ENOMEM; in hdpvr_register_i2c_adapter() local
225 retval = i2c_add_adapter(&dev->i2c_adapter); in hdpvr_register_i2c_adapter()
227 return retval; in hdpvr_register_i2c_adapter()
/linux-4.1.27/drivers/usb/chipidea/
Dudc.c662 int direction, retval = 0; in _ep_set_halt() local
682 retval |= hw_ep_set_halt(hwep->ci, hwep->num, hwep->dir, value); in _ep_set_halt()
693 return retval; in _ep_set_halt()
748 int retval; in isr_reset_handler() local
754 retval = _gadget_stop_activity(&ci->gadget); in isr_reset_handler()
755 if (retval) in isr_reset_handler()
758 retval = hw_usb_reset(ci); in isr_reset_handler()
759 if (retval) in isr_reset_handler()
764 retval = -ENOMEM; in isr_reset_handler()
769 if (retval) in isr_reset_handler()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Dptrace.c829 long ret, retval = 0; in ptrace_getregs() local
859 retval |= __put_user(pt->cr_iip, &ppr->cr_iip); in ptrace_getregs()
860 retval |= __put_user(psr, &ppr->cr_ipsr); in ptrace_getregs()
864 retval |= __put_user(pt->ar_pfs, &ppr->ar[PT_AUR_PFS]); in ptrace_getregs()
865 retval |= __put_user(pt->ar_rsc, &ppr->ar[PT_AUR_RSC]); in ptrace_getregs()
866 retval |= __put_user(pt->ar_bspstore, &ppr->ar[PT_AUR_BSPSTORE]); in ptrace_getregs()
867 retval |= __put_user(pt->ar_unat, &ppr->ar[PT_AUR_UNAT]); in ptrace_getregs()
868 retval |= __put_user(pt->ar_ccv, &ppr->ar[PT_AUR_CCV]); in ptrace_getregs()
869 retval |= __put_user(pt->ar_fpsr, &ppr->ar[PT_AUR_FPSR]); in ptrace_getregs()
871 retval |= __put_user(ec, &ppr->ar[PT_AUR_EC]); in ptrace_getregs()
[all …]
/linux-4.1.27/arch/openrisc/include/asm/
Duaccess.h135 #define __put_user_size(x, ptr, size, retval) \ argument
137 retval = 0; \
139 case 1: __put_user_asm(x, ptr, retval, "l.sb"); break; \
140 case 2: __put_user_asm(x, ptr, retval, "l.sh"); break; \
141 case 4: __put_user_asm(x, ptr, retval, "l.sw"); break; \
142 case 8: __put_user_asm2(x, ptr, retval); break; \
211 #define __get_user_size(x, ptr, size, retval) \ argument
213 retval = 0; \
215 case 1: __get_user_asm(x, ptr, retval, "l.lbz"); break; \
216 case 2: __get_user_asm(x, ptr, retval, "l.lhz"); break; \
[all …]

1234567