/drivers/iio/imu/inv_mpu6050/ |
D | inv_mpu_core.c | 435 int result; in inv_mpu6050_set_power_itg() local 437 result = inv_mpu6050_pwr_mgmt_1_write(st, !power_on, -1, -1); in inv_mpu6050_set_power_itg() 438 if (result) in inv_mpu6050_set_power_itg() 439 return result; in inv_mpu6050_set_power_itg() 476 int result; in inv_mpu6050_set_lpf_regs() local 478 result = regmap_write(st->map, st->reg->lpf, val); in inv_mpu6050_set_lpf_regs() 479 if (result) in inv_mpu6050_set_lpf_regs() 480 return result; in inv_mpu6050_set_lpf_regs() 512 int result; in inv_mpu6050_init_config() local 516 result = inv_mpu6050_set_gyro_fsr(st, st->chip_config.fsr); in inv_mpu6050_init_config() [all …]
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_qmath.c | 28 s32 result; in qm_muls16() local 30 result = 0x7fffffff; in qm_muls16() 32 result = ((s32) (op1) * (s32) (op2)); in qm_muls16() 34 return (s16) (result >> 15); in qm_muls16() 44 s32 result; in qm_add32() local 45 result = op1 + op2; in qm_add32() 46 if (op1 < 0 && op2 < 0 && result > 0) in qm_add32() 47 result = 0x80000000; in qm_add32() 48 else if (op1 > 0 && op2 > 0 && result < 0) in qm_add32() 49 result = 0x7fffffff; in qm_add32() [all …]
|
/drivers/nfc/st95hf/ |
D | core.c | 306 int result = 0; in st95hf_echo_command() local 309 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command() 310 if (result) in st95hf_echo_command() 311 return result; in st95hf_echo_command() 314 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command() 316 if (result) { in st95hf_echo_command() 318 "err: echo response receive error = 0x%x\n", result); in st95hf_echo_command() 319 return result; in st95hf_echo_command() 333 int result = 0; in secondary_configuration_type4a() local 337 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a() [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2mgmt.c | 131 int result = 0; in prism2mgmt_scan() local 147 result = 1; in prism2mgmt_scan() 155 result = hfa384x_drvr_getconfig16(hw, in prism2mgmt_scan() 158 if (result) { in prism2mgmt_scan() 160 "getconfig(ROAMMODE) failed. result=%d\n", result); in prism2mgmt_scan() 167 result = hfa384x_drvr_setconfig16(hw, in prism2mgmt_scan() 170 if (result) { in prism2mgmt_scan() 173 result); in prism2mgmt_scan() 189 result = in prism2mgmt_scan() 192 if (result) { in prism2mgmt_scan() [all …]
|
D | prism2sta.c | 288 int result = 0; in prism2sta_mlmerequest() local 293 result = prism2mgmt_mibset_mibget(wlandev, msg); in prism2sta_mlmerequest() 297 result = prism2mgmt_mibset_mibget(wlandev, msg); in prism2sta_mlmerequest() 301 result = prism2mgmt_scan(wlandev, msg); in prism2sta_mlmerequest() 305 result = prism2mgmt_scan_results(wlandev, msg); in prism2sta_mlmerequest() 309 result = prism2mgmt_start(wlandev, msg); in prism2sta_mlmerequest() 316 result = prism2mgmt_readpda(wlandev, msg); in prism2sta_mlmerequest() 320 result = prism2mgmt_ramdl_state(wlandev, msg); in prism2sta_mlmerequest() 324 result = prism2mgmt_ramdl_write(wlandev, msg); in prism2sta_mlmerequest() 328 result = prism2mgmt_flashdl_state(wlandev, msg); in prism2sta_mlmerequest() [all …]
|
/drivers/ps3/ |
D | ps3-vuart.c | 124 int result; in _dump_port_params() local 129 result = lv1_get_virtual_uart_param(port_number, i, &value); in _dump_port_params() 131 if (result) { in _dump_port_params() 133 port_number, strings[i], ps3_result(result)); in _dump_port_params() 145 int result; in ps3_vuart_get_triggers() local 150 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers() 154 if (result) { in ps3_vuart_get_triggers() 156 __func__, __LINE__, ps3_result(result)); in ps3_vuart_get_triggers() 157 return result; in ps3_vuart_get_triggers() 160 result = lv1_get_virtual_uart_param(dev->port_number, in ps3_vuart_get_triggers() [all …]
|
D | ps3-lpm.c | 200 int result; in ps3_read_phys_ctr() local 210 result = lv1_set_lpm_counter(lpm_priv->lpm_id, 0, 0, 0, 0, &counter0415, in ps3_read_phys_ctr() 212 if (result) { in ps3_read_phys_ctr() 215 ps3_result(result)); in ps3_read_phys_ctr() 248 int result; in ps3_write_phys_ctr() local 285 result = lv1_set_lpm_counter(lpm_priv->lpm_id, in ps3_write_phys_ctr() 289 if (result) in ps3_write_phys_ctr() 292 phys_ctr, val, ps3_result(result)); in ps3_write_phys_ctr() 364 int result; in ps3_write_pm07_control() local 374 result = lv1_set_lpm_counter_control(lpm_priv->lpm_id, ctr, val, mask, in ps3_write_pm07_control() [all …]
|
/drivers/platform/x86/ |
D | msi-laptop.c | 159 int result; in get_lcd_level() local 161 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_lcd_level() 163 if (result < 0) in get_lcd_level() 164 return result; in get_lcd_level() 172 int result; in get_auto_brightness() local 174 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, &wdata, 1, in get_auto_brightness() 176 if (result < 0) in get_auto_brightness() 177 return result; in get_auto_brightness() 185 int result; in set_auto_brightness() local 189 result = ec_transaction(MSI_EC_COMMAND_LCD_LEVEL, wdata, 1, in set_auto_brightness() [all …]
|
D | toshiba_bluetooth.c | 68 acpi_status result; in toshiba_bluetooth_present() local 76 result = acpi_evaluate_integer(handle, "_STA", NULL, &bt_present); in toshiba_bluetooth_present() 77 if (ACPI_FAILURE(result)) { in toshiba_bluetooth_present() 92 acpi_status result; in toshiba_bluetooth_status() local 95 result = acpi_evaluate_integer(handle, "BTST", NULL, &status); in toshiba_bluetooth_status() 96 if (ACPI_FAILURE(result)) { in toshiba_bluetooth_status() 106 acpi_status result; in toshiba_bluetooth_enable() local 108 result = acpi_evaluate_object(handle, "AUSB", NULL, NULL); in toshiba_bluetooth_enable() 109 if (ACPI_FAILURE(result)) { in toshiba_bluetooth_enable() 114 result = acpi_evaluate_object(handle, "BTPO", NULL, NULL); in toshiba_bluetooth_enable() [all …]
|
/drivers/usb/storage/ |
D | transport.c | 229 int result; in usb_stor_clear_halt() local 235 result = usb_stor_control_msg(us, us->send_ctrl_pipe, in usb_stor_clear_halt() 240 if (result >= 0) in usb_stor_clear_halt() 243 usb_stor_dbg(us, "result = %d\n", result); in usb_stor_clear_halt() 244 return result; in usb_stor_clear_halt() 257 unsigned int length, int result, unsigned int partial) in interpret_urb_result() argument 260 result, partial, length); in interpret_urb_result() 261 switch (result) { in interpret_urb_result() 326 int result; in usb_stor_ctrl_transfer() local 342 result = usb_stor_msg_common(us, 0); in usb_stor_ctrl_transfer() [all …]
|
D | sddr09.c | 329 int result; 334 result = sddr09_send_scsi_command(us, command, 6); 336 usb_stor_dbg(us, "sddr09_test_unit_ready returns %d\n", result); 338 return result; 350 int result; in sddr09_request_sense() local 357 result = sddr09_send_scsi_command(us, command, 12); in sddr09_request_sense() 358 if (result) in sddr09_request_sense() 359 return result; in sddr09_request_sense() 361 result = usb_stor_bulk_transfer_buf(us, us->recv_bulk_pipe, in sddr09_request_sense() 363 return (result == USB_STOR_XFER_GOOD ? 0 : -EIO); in sddr09_request_sense() [all …]
|
D | sddr55.c | 129 int result; in sddr55_status() local 138 result = sddr55_bulk_transport(us, in sddr55_status() 141 usb_stor_dbg(us, "Result for send_command in status %d\n", result); in sddr55_status() 143 if (result != USB_STOR_XFER_GOOD) { in sddr55_status() 148 result = sddr55_bulk_transport(us, in sddr55_status() 152 if (result == USB_STOR_XFER_SHORT || result == USB_STOR_XFER_STALLED) { in sddr55_status() 166 if (result != USB_STOR_XFER_GOOD) { in sddr55_status() 175 result = sddr55_bulk_transport(us, in sddr55_status() 178 if (result != USB_STOR_XFER_GOOD) { in sddr55_status() 182 return (result == USB_STOR_XFER_GOOD ? in sddr55_status() [all …]
|
D | option_ms.c | 38 int result; in option_rezero() local 47 result = usb_stor_bulk_transfer_buf(us, in option_rezero() 50 if (result != USB_STOR_XFER_GOOD) { in option_rezero() 51 result = USB_STOR_XFER_ERROR; in option_rezero() 68 result = USB_STOR_XFER_GOOD; in option_rezero() 72 return result; in option_rezero() 84 int result; in option_inquiry() local 93 result = usb_stor_bulk_transfer_buf(us, in option_inquiry() 96 if (result != USB_STOR_XFER_GOOD) { in option_inquiry() 97 result = USB_STOR_XFER_ERROR; in option_inquiry() [all …]
|
D | freecom.c | 157 int result; in freecom_readdata() local 167 result = usb_stor_bulk_transfer_buf (us, opipe, fxfr, in freecom_readdata() 169 if (result != USB_STOR_XFER_GOOD) { in freecom_readdata() 176 result = usb_stor_bulk_srb(us, ipipe, srb); in freecom_readdata() 179 if (result > USB_STOR_XFER_SHORT) in freecom_readdata() 190 int result; in freecom_writedata() local 200 result = usb_stor_bulk_transfer_buf (us, opipe, fxfr, in freecom_writedata() 202 if (result != USB_STOR_XFER_GOOD) { in freecom_writedata() 209 result = usb_stor_bulk_srb(us, opipe, srb); in freecom_writedata() 212 if (result > USB_STOR_XFER_SHORT) in freecom_writedata() [all …]
|
/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_dpia.c | 86 is_hpd_high = cmd.query_hpd.data.result; in dc_link_dpia_query_hpd_status() 93 cmd.query_hpd.data.result); in dc_link_dpia_query_hpd_status() 295 enum link_training_result result = LINK_TRAINING_CR_FAIL_LANE0; in dpia_training_cr_non_transparent() local 336 result = LINK_TRAINING_SUCCESS; in dpia_training_cr_non_transparent() 338 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() 347 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() 352 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() 368 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() 374 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() 389 result = LINK_TRAINING_ABORT; in dpia_training_cr_non_transparent() [all …]
|
/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 746 int result; in qp_host_map_queues() local 767 result = VMCI_SUCCESS; in qp_host_map_queues() 770 result = VMCI_ERROR_NO_MEM; in qp_host_map_queues() 773 result = VMCI_SUCCESS; in qp_host_map_queues() 776 return result; in qp_host_map_queues() 886 int result; in qp_guest_endpoint_create() local 911 result = vmci_resource_add(&entry->resource, in qp_guest_endpoint_create() 915 if ((result != VMCI_SUCCESS) || in qp_guest_endpoint_create() 918 handle.context, handle.resource, result); in qp_guest_endpoint_create() 950 int result; in qp_alloc_hypercall() local [all …]
|
/drivers/misc/ibmasm/ |
D | module.c | 53 int result; in ibmasm_init_one() local 56 if ((result = pci_enable_device(pdev))) { in ibmasm_init_one() 58 return result; in ibmasm_init_one() 60 if ((result = pci_request_regions(pdev, DRIVER_NAME))) { in ibmasm_init_one() 70 result = -ENOMEM; in ibmasm_init_one() 83 result = ibmasm_event_buffer_init(sp); in ibmasm_init_one() 84 if (result) { in ibmasm_init_one() 89 result = ibmasm_heartbeat_init(sp); in ibmasm_init_one() 90 if (result) { in ibmasm_init_one() 99 result = -ENODEV; in ibmasm_init_one() [all …]
|
/drivers/usb/misc/ |
D | idmouse.c | 127 int result; in idmouse_create_image() local 133 result = ftip_command(dev, FTIP_RELEASE, 0, 0); in idmouse_create_image() 134 if (result < 0) in idmouse_create_image() 136 result = ftip_command(dev, FTIP_BLINK, 1, 0); in idmouse_create_image() 137 if (result < 0) in idmouse_create_image() 142 result = ftip_command(dev, FTIP_ACQUIRE, 0, 0); in idmouse_create_image() 143 if (result < 0) in idmouse_create_image() 145 result = ftip_command(dev, FTIP_ACQUIRE, 0, 0); in idmouse_create_image() 146 if (result < 0) in idmouse_create_image() 151 result = ftip_command(dev, FTIP_RESET, 0, 0); in idmouse_create_image() [all …]
|
/drivers/net/ethernet/intel/ice/ |
D | ice_fltr.c | 62 int result; in ice_fltr_set_vlan_vsi_promisc() local 64 result = ice_set_vlan_vsi_promisc(hw, vsi->idx, promisc_mask, false); in ice_fltr_set_vlan_vsi_promisc() 65 if (result && result != -EEXIST) in ice_fltr_set_vlan_vsi_promisc() 68 vsi->vsi_num, result); in ice_fltr_set_vlan_vsi_promisc() 70 return result; in ice_fltr_set_vlan_vsi_promisc() 86 int result; in ice_fltr_clear_vlan_vsi_promisc() local 88 result = ice_set_vlan_vsi_promisc(hw, vsi->idx, promisc_mask, true); in ice_fltr_clear_vlan_vsi_promisc() 89 if (result && result != -EEXIST) in ice_fltr_clear_vlan_vsi_promisc() 92 vsi->vsi_num, result); in ice_fltr_clear_vlan_vsi_promisc() 94 return result; in ice_fltr_clear_vlan_vsi_promisc() [all …]
|
/drivers/infiniband/hw/efa/ |
D | efa_com_cmd.c | 93 struct efa_com_query_qp_result *result) in efa_com_query_qp() argument 115 result->qp_state = resp.qp_state; in efa_com_query_qp() 116 result->qkey = resp.qkey; in efa_com_query_qp() 117 result->sq_draining = resp.sq_draining; in efa_com_query_qp() 118 result->sq_psn = resp.sq_psn; in efa_com_query_qp() 119 result->rnr_retry = resp.rnr_retry; in efa_com_query_qp() 152 struct efa_com_create_cq_result *result) in efa_com_create_cq() argument 190 result->cq_idx = cmd_completion.cq_idx; in efa_com_create_cq() 191 result->actual_depth = params->cq_depth; in efa_com_create_cq() 192 result->db_off = cmd_completion.db_offset; in efa_com_create_cq() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_debugfs.c | 436 const char **result, u16 size) in hns3_dbg_fill_content() argument 458 if (result) { in hns3_dbg_fill_content() 459 if (item_len < strlen(result[i])) in hns3_dbg_fill_content() 461 memcpy(pos, result[i], strlen(result[i])); in hns3_dbg_fill_content() 473 char **result, int i, bool is_tx) in hns3_get_coal_info() argument 496 sprintf(result[j++], "%d", i); in hns3_get_coal_info() 497 sprintf(result[j++], "%s", dim->state < ARRAY_SIZE(dim_state_str) ? in hns3_get_coal_info() 499 sprintf(result[j++], "%u", dim->profile_ix); in hns3_get_coal_info() 500 sprintf(result[j++], "%s", dim->mode < ARRAY_SIZE(dim_cqe_mode_str) ? in hns3_get_coal_info() 502 sprintf(result[j++], "%s", in hns3_get_coal_info() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | iceland_smumgr.c | 237 int result; in iceland_start_smu() local 240 result = iceland_smu_upload_firmware_image(hwmgr); in iceland_start_smu() 241 if (result) in iceland_start_smu() 242 return result; in iceland_start_smu() 255 result = smu7_request_smu_load_fw(hwmgr); in iceland_start_smu() 257 return result; in iceland_start_smu() 600 int result; in iceland_populate_smc_voltage_table() local 602 result = iceland_get_std_voltage_value_sidd(hwmgr, tab, in iceland_populate_smc_voltage_table() 605 if (0 != result) { in iceland_populate_smc_voltage_table() 621 int result; in iceland_populate_smc_vddc_table() local [all …]
|
D | vegam_smumgr.c | 102 int result = 0; in vegam_start_smu_in_protection_mode() local 111 result = smu7_upload_smu_firmware_image(hwmgr); in vegam_start_smu_in_protection_mode() 112 if (result != 0) in vegam_start_smu_in_protection_mode() 113 return result; in vegam_start_smu_in_protection_mode() 152 return result; in vegam_start_smu_in_protection_mode() 157 int result = 0; in vegam_start_smu_in_non_protection_mode() local 171 result = smu7_upload_smu_firmware_image(hwmgr); in vegam_start_smu_in_non_protection_mode() 172 if (result != 0) in vegam_start_smu_in_non_protection_mode() 173 return result; in vegam_start_smu_in_non_protection_mode() 189 return result; in vegam_start_smu_in_non_protection_mode() [all …]
|
/drivers/usb/serial/ |
D | ipw.c | 138 int result; in ipw_open() local 148 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 156 if (result < 0) in ipw_open() 157 dev_err(dev, "Init of modem failed (error = %d)\n", result); in ipw_open() 169 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 177 if (result < 0) in ipw_open() 178 dev_err(dev, "Enabling bulk RxRead failed (error = %d)\n", result); in ipw_open() 182 result = usb_control_msg(udev, usb_sndctrlpipe(udev, 0), in ipw_open() 190 if (result < 0) in ipw_open() 191 dev_err(dev, "initial flowcontrol failed (error = %d)\n", result); in ipw_open() [all …]
|
/drivers/cpufreq/ |
D | speedstep-smi.c | 64 u32 command, result, magic, dummy; in speedstep_smi_ownership() local 78 : "=D" (result), in speedstep_smi_ownership() 86 pr_debug("result is %x\n", result); in speedstep_smi_ownership() 88 return result; in speedstep_smi_ownership() 102 u32 command, result = 0, edi, high_mhz, low_mhz, dummy; in speedstep_smi_get_freqs() local 120 : "=a" (result), in speedstep_smi_get_freqs() 131 result, low_mhz, high_mhz); in speedstep_smi_get_freqs() 140 return result; in speedstep_smi_get_freqs() 150 unsigned int result = 0, command, new_state, dummy; in speedstep_set_state() local 179 retry, result); in speedstep_set_state() [all …]
|