/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_core.c | 134 int result; in inv_mpu6050_switch_engine() local 141 result = regmap_read(st->map, st->reg->pwr_mgmt_1, &mgmt_1); in inv_mpu6050_switch_engine() 142 if (result) in inv_mpu6050_switch_engine() 143 return result; in inv_mpu6050_switch_engine() 154 result = regmap_write(st->map, st->reg->pwr_mgmt_1, mgmt_1); in inv_mpu6050_switch_engine() 155 if (result) in inv_mpu6050_switch_engine() 156 return result; in inv_mpu6050_switch_engine() 159 result = regmap_read(st->map, st->reg->pwr_mgmt_2, &d); in inv_mpu6050_switch_engine() 160 if (result) in inv_mpu6050_switch_engine() 161 return result; in inv_mpu6050_switch_engine() [all …]
|
D | inv_mpu_trigger.c | 45 int result; in inv_mpu6050_set_enable() local 48 result = inv_mpu6050_set_power_itg(st, true); in inv_mpu6050_set_enable() 49 if (result) in inv_mpu6050_set_enable() 50 return result; in inv_mpu6050_set_enable() 53 result = inv_mpu6050_switch_engine(st, true, in inv_mpu6050_set_enable() 55 if (result) in inv_mpu6050_set_enable() 56 return result; in inv_mpu6050_set_enable() 59 result = inv_mpu6050_switch_engine(st, true, in inv_mpu6050_set_enable() 61 if (result) in inv_mpu6050_set_enable() 62 return result; in inv_mpu6050_set_enable() [all …]
|
D | inv_mpu_ring.c | 38 int result; in inv_reset_fifo() local 43 result = regmap_write(st->map, st->reg->int_enable, 0); in inv_reset_fifo() 44 if (result) { in inv_reset_fifo() 46 result); in inv_reset_fifo() 47 return result; in inv_reset_fifo() 50 result = regmap_write(st->map, st->reg->fifo_en, 0); in inv_reset_fifo() 51 if (result) in inv_reset_fifo() 54 result = regmap_write(st->map, st->reg->user_ctrl, 0); in inv_reset_fifo() 55 if (result) in inv_reset_fifo() 59 result = regmap_write(st->map, st->reg->user_ctrl, in inv_reset_fifo() [all …]
|
/drivers/uwb/i1480/dfu/ |
D | mac.c | 111 int result; in fw_hdrs_load() local 116 result = -EINVAL; in fw_hdrs_load() 126 result = -ENOMEM; in fw_hdrs_load() 133 result = fw_hdr_load(i1480, hdr, hdr_cnt, in fw_hdrs_load() 135 if (result < 0) in fw_hdrs_load() 150 return result; in fw_hdrs_load() 169 ssize_t result = 0; in i1480_fw_cmp() local 177 result = i1480->read(i1480, hdr->address + src_itr, chunk_size); in i1480_fw_cmp() 178 if (result < 0) { in i1480_fw_cmp() 180 "%zd\n", result); in i1480_fw_cmp() [all …]
|
D | dfu.c | 56 int result = 0; in i1480_rceb_check() local 63 result = -EINVAL; in i1480_rceb_check() 70 result = -EINVAL; in i1480_rceb_check() 77 result = -EINVAL; in i1480_rceb_check() 79 return result; in i1480_rceb_check() 95 ssize_t result; in i1480_cmd() local 108 result = i1480->cmd(i1480, cmd_name, cmd_size); in i1480_cmd() 109 if (result < 0) in i1480_cmd() 112 result = wait_for_completion_interruptible_timeout( in i1480_cmd() 114 if (result == 0) { in i1480_cmd() [all …]
|
D | usb.c | 66 int result = -ENOMEM; in i1480_usb_create() local 80 return result; in i1480_usb_create() 113 int result = 0; in i1480_usb_write() local 121 result = usb_control_msg( in i1480_usb_write() 126 if (result < 0) in i1480_usb_write() 128 itr += result; in i1480_usb_write() 129 memory_address += result; in i1480_usb_write() 130 size -= result; in i1480_usb_write() 132 return result; in i1480_usb_write() 152 ssize_t result = 0, bytes = 0; in i1480_usb_read() local [all …]
|
/drivers/net/wimax/i2400m/ |
D | driver.c | 131 int result; in i2400m_op_msg_from_user() local 140 result = PTR_ERR(ack_skb); in i2400m_op_msg_from_user() 143 result = wimax_msg_send(&i2400m->wimax_dev, ack_skb); in i2400m_op_msg_from_user() 147 genl_info, result); in i2400m_op_msg_from_user() 148 return result; in i2400m_op_msg_from_user() 157 int result; member 180 int result; in i2400m_op_reset() local 185 .result = 0, in i2400m_op_reset() 192 result = i2400m_reset(i2400m, I2400M_RT_WARM); in i2400m_op_reset() 193 if (result < 0) in i2400m_op_reset() [all …]
|
D | debugfs.c | 173 int result; in debugfs_i2400m_suspend_set() local 175 result = i2400m_cmd_enter_powersave(i2400m); in debugfs_i2400m_suspend_set() 176 if (result >= 0) in debugfs_i2400m_suspend_set() 177 result = 0; in debugfs_i2400m_suspend_set() 178 return result; in debugfs_i2400m_suspend_set() 202 int result; in debugfs_i2400m_reset_set() local 209 result = i2400m_reset(i2400m, rt); in debugfs_i2400m_reset_set() 210 if (result >= 0) in debugfs_i2400m_reset_set() 211 result = 0; in debugfs_i2400m_reset_set() 214 result = -EINVAL; in debugfs_i2400m_reset_set() [all …]
|
D | usb-fw.c | 92 int result; in i2400mu_tx_bulk_out() local 98 result = usb_autopm_get_interface(i2400mu->usb_iface); in i2400mu_tx_bulk_out() 99 if (result < 0) { in i2400mu_tx_bulk_out() 100 dev_err(dev, "BM-CMD: can't get autopm: %d\n", result); in i2400mu_tx_bulk_out() 106 result = usb_bulk_msg(i2400mu->usb_dev, pipe, buf, buf_size, &len, 200); in i2400mu_tx_bulk_out() 107 switch (result) { in i2400mu_tx_bulk_out() 112 result = -EIO; in i2400mu_tx_bulk_out() 115 result = len; in i2400mu_tx_bulk_out() 144 result = -ESHUTDOWN; in i2400mu_tx_bulk_out() 154 result = -ENODEV; in i2400mu_tx_bulk_out() [all …]
|
D | control.c | 285 int result; in i2400m_msg_check_status() local 293 result = -EBADR; in i2400m_msg_check_status() 296 result = ms_to_errno[status].errno; in i2400m_msg_check_status() 300 return result; in i2400m_msg_check_status() 567 int result; in i2400m_msg_ack_hook() local 581 result = i2400m_msg_check_status( in i2400m_msg_ack_hook() 583 if (result >= 0) in i2400m_msg_ack_hook() 602 int result; in i2400m_msg_size_check() local 611 result = -EIO; in i2400m_msg_size_check() 619 result = -EIO; in i2400m_msg_size_check() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_qmath.c | 39 s32 result; in qm_muls16() local 41 result = 0x7fffffff; in qm_muls16() 43 result = ((s32) (op1) * (s32) (op2)); in qm_muls16() 45 return (s16) (result >> 15); in qm_muls16() 55 s32 result; in qm_add32() local 56 result = op1 + op2; in qm_add32() 57 if (op1 < 0 && op2 < 0 && result > 0) in qm_add32() 58 result = 0x80000000; in qm_add32() 59 else if (op1 > 0 && op2 > 0 && result < 0) in qm_add32() 60 result = 0x7fffffff; in qm_add32() [all …]
|
/drivers/nfc/st95hf/ |
D | core.c | 318 int result = 0; in st95hf_echo_command() local 321 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command() 322 if (result) in st95hf_echo_command() 323 return result; in st95hf_echo_command() 326 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command() 328 if (result) { in st95hf_echo_command() 330 "err: echo response receieve error = 0x%x\n", result); in st95hf_echo_command() 331 return result; in st95hf_echo_command() 345 int result = 0; in secondary_configuration_type4a() local 349 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a() [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2mgmt.c | 119 int result = 0; in prism2mgmt_scan() local 135 result = 1; in prism2mgmt_scan() 143 result = hfa384x_drvr_getconfig16(hw, in prism2mgmt_scan() 146 if (result) { in prism2mgmt_scan() 148 "getconfig(ROAMMODE) failed. result=%d\n", result); in prism2mgmt_scan() 155 result = hfa384x_drvr_setconfig16(hw, in prism2mgmt_scan() 158 if (result) { in prism2mgmt_scan() 161 result); in prism2mgmt_scan() 177 result = in prism2mgmt_scan() 180 if (result) { in prism2mgmt_scan() [all …]
|
D | prism2sta.c | 287 int result = 0; in prism2sta_mlmerequest() local 292 result = prism2mgmt_mibset_mibget(wlandev, msg); in prism2sta_mlmerequest() 296 result = prism2mgmt_mibset_mibget(wlandev, msg); in prism2sta_mlmerequest() 300 result = prism2mgmt_scan(wlandev, msg); in prism2sta_mlmerequest() 304 result = prism2mgmt_scan_results(wlandev, msg); in prism2sta_mlmerequest() 308 result = prism2mgmt_start(wlandev, msg); in prism2sta_mlmerequest() 315 result = prism2mgmt_readpda(wlandev, msg); in prism2sta_mlmerequest() 319 result = prism2mgmt_ramdl_state(wlandev, msg); in prism2sta_mlmerequest() 323 result = prism2mgmt_ramdl_write(wlandev, msg); in prism2sta_mlmerequest() 327 result = prism2mgmt_flashdl_state(wlandev, msg); in prism2sta_mlmerequest() [all …]
|
/drivers/uwb/ |
D | address.c | 63 int result; in uwb_rc_dev_addr_mgmt() local 66 result = -ENOMEM; in uwb_rc_dev_addr_mgmt() 84 result = uwb_rc_cmd(rc, "DEV-ADDR-MGMT", in uwb_rc_dev_addr_mgmt() 87 if (result < 0) in uwb_rc_dev_addr_mgmt() 89 if (result < sizeof(*reply)) { in uwb_rc_dev_addr_mgmt() 92 "%d vs %zu bytes needed\n", result, sizeof(*reply)); in uwb_rc_dev_addr_mgmt() 93 result = -ENOMSG; in uwb_rc_dev_addr_mgmt() 99 result = -EIO; in uwb_rc_dev_addr_mgmt() 101 result = 0; in uwb_rc_dev_addr_mgmt() 105 return result; in uwb_rc_dev_addr_mgmt() [all …]
|
/drivers/ps3/ |
D | ps3-vuart.c | 136 int result; in _dump_port_params() local 141 result = lv1_get_virtual_uart_param(port_number, i, &value); in _dump_port_params() 143 if (result) { in _dump_port_params() 145 port_number, strings[i], ps3_result(result)); in _dump_port_params() 157 int result; in ps3_vuart_get_triggers() local 162 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers() 166 if (result) { in ps3_vuart_get_triggers() 168 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_triggers() 169 return result; in ps3_vuart_get_triggers() 172 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers() [all …]
|
/drivers/usb/wusbcore/ |
D | security.c | 124 int result; in wusbhc_sec_start() local 128 result = wusbhc->set_gtk(wusbhc, wusbhc->gtk_tkid, in wusbhc_sec_start() 130 if (result < 0) in wusbhc_sec_start() 132 result); in wusbhc_sec_start() 134 return result; in wusbhc_sec_start() 170 int result; in wusb_dev_set_encryption() local 181 result = usb_control_msg(usb_dev, usb_sndctrlpipe(usb_dev, 0), in wusb_dev_set_encryption() 185 if (result < 0) in wusb_dev_set_encryption() 189 wusb_dev->ccm1_etd.bEncryptionValue, result); in wusb_dev_set_encryption() 190 return result; in wusb_dev_set_encryption() [all …]
|
D | mmc.c | 97 int result = -ENOBUFS; in wusbhc_mmcie_set() local 110 result = -ENOSYS; in wusbhc_mmcie_set() 126 result = (wusbhc->mmcie_add)(wusbhc, interval, repeat_cnt, handle, in wusbhc_mmcie_set() 128 if (result >= 0) in wusbhc_mmcie_set() 132 return result; in wusbhc_mmcie_set() 143 int result; in wusbhc_mmcie_rm() local 157 result = (wusbhc->mmcie_rm)(wusbhc, handle); in wusbhc_mmcie_rm() 158 if (result == 0) in wusbhc_mmcie_rm() 194 int result; in wusbhc_start() local 200 result = wusbhc_rsv_establish(wusbhc); in wusbhc_start() [all …]
|
D | wusbhc.c | 71 ssize_t result = -ENOSYS; in wusb_trust_timeout_store() local 74 result = sscanf(buf, "%u", &trust_timeout); in wusb_trust_timeout_store() 75 if (result != 1) { in wusb_trust_timeout_store() 76 result = -EINVAL; in wusb_trust_timeout_store() 85 return result < 0 ? result : size; in wusb_trust_timeout_store() 97 ssize_t result = 0; in wusb_chid_show() local 104 result += ckhdid_printf(buf, PAGE_SIZE, chid); in wusb_chid_show() 105 result += sprintf(buf + result, "\n"); in wusb_chid_show() 107 return result; in wusb_chid_show() 124 ssize_t result; in wusb_chid_store() local [all …]
|
D | crypto.c | 214 int result = 0; in wusb_ccm_mac() local 231 result = -ENOMEM; in wusb_ccm_mac() 269 result = crypto_skcipher_encrypt(req); in wusb_ccm_mac() 271 if (result < 0) { in wusb_ccm_mac() 273 result); in wusb_ccm_mac() 291 result = 8; in wusb_ccm_mac() 295 return result; in wusb_ccm_mac() 309 ssize_t result, bytes = 0, bitr; in wusb_prf() local 319 result = PTR_ERR(tfm_cbc); in wusb_prf() 320 printk(KERN_ERR "E: can't load CBC(AES): %d\n", (int)result); in wusb_prf() [all …]
|
/drivers/usb/storage/ |
D | transport.c | 245 int result; in usb_stor_clear_halt() local 251 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in usb_stor_clear_halt() 256 if (result >= 0) in usb_stor_clear_halt() 259 usb_stor_dbg(us, "result = %d\n", result); in usb_stor_clear_halt() 260 return result; in usb_stor_clear_halt() 273 unsigned int length, int result, unsigned int partial) in interpret_urb_result() argument 276 result, partial, length); in interpret_urb_result() 277 switch (result) { in interpret_urb_result() 342 int result; in usb_stor_ctrl_transfer() local 358 result = usb_stor_msg_common(us, 0); in usb_stor_ctrl_transfer() [all …]
|
D | sddr09.c | 341 int result; 346 result = sddr09_send_scsi_command(us, command, 6); 348 usb_stor_dbg(us, "sddr09_test_unit_ready returns %d\n", result); 350 return result; 362 int result; in sddr09_request_sense() local 369 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense() 370 if (result) in sddr09_request_sense() 371 return result; in sddr09_request_sense() 373 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in sddr09_request_sense() 375 return (result == USB_STOR_XFER_GOOD ? 0 : -EIO); in sddr09_request_sense() [all …]
|
D | option_ms.c | 51 int result; in option_rezero() local 60 result = usb_stor_bulk_transfer_buf(us, in option_rezero() 63 if (result != USB_STOR_XFER_GOOD) { in option_rezero() 64 result = USB_STOR_XFER_ERROR; in option_rezero() 81 result = USB_STOR_XFER_GOOD; in option_rezero() 85 return result; in option_rezero() 97 int result; in option_inquiry() local 106 result = usb_stor_bulk_transfer_buf(us, in option_inquiry() 109 if (result != USB_STOR_XFER_GOOD) { in option_inquiry() 110 result = USB_STOR_XFER_ERROR; in option_inquiry() [all …]
|
/drivers/platform/x86/ |
D | msi-laptop.c | 174 int result; in get_lcd_level() local 176 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level() 178 if (result < 0) in get_lcd_level() 179 return result; in get_lcd_level() 187 int result; in get_auto_brightness() local 189 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness() 191 if (result < 0) in get_auto_brightness() 192 return result; in get_auto_brightness() 200 int result; in set_auto_brightness() local 204 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness() [all …]
|
/drivers/usb/host/ |
D | hwa-hc.c | 78 int result; in __hwahc_set_cluster_id() local 83 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), in __hwahc_set_cluster_id() 89 if (result < 0) in __hwahc_set_cluster_id() 91 cluster_id, result); in __hwahc_set_cluster_id() 95 return result; in __hwahc_set_cluster_id() 119 int result; in hwahc_op_reset() local 126 result = __wa_set_feature(&hwahc->wa, WA_RESET); in hwahc_op_reset() 127 if (result < 0) { in hwahc_op_reset() 128 dev_err(dev, "error commanding HC to reset: %d\n", result); in hwahc_op_reset() 131 result = __wa_wait_status(&hwahc->wa, WA_STATUS_RESETTING, 0); in hwahc_op_reset() [all …]
|