| /linux/tools/perf/tests/shell/ |
| H A D | lock_contention.sh | 9 result=$(mktemp /tmp/__perf_test.result.XXXXX) 14 rm -f ${result} 55 perf lock contention -i ${perfdata} -E 1 -q 2> ${result} 56 if [ "$(cat "${result}" | wc -l)" != "1" ]; then 57 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)" 73 perf lock con -a -b -E 1 -q -- perf bench sched messaging -p > /dev/null 2> ${result} 74 if [ "$(cat "${result}" | wc -l)" != "1" ]; then 75 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)" 85 perf lock contention -i- -E 1 -q 2> ${result} 86 if [ "$(cat "${result}" | wc -l)" != "1" ]; then [all …]
|
| H A D | stat_all_metrics.sh | 22 result=$(perf stat -M "$m" $system_wide_flag -- $test_prog 2>&1) 24 if [[ $result_err -eq 0 && "$result" =~ ${m:0:50} ]] 26 # No error result and metric shown. 33 if [[ "$result" =~ "Cannot resolve IDs for" || "$result" =~ "No supported events found" ]] 38 echo $result 42 echo $result 45 elif [[ "$result" =~ \ 49 echo $result 55 elif [[ "$result" =~ "in per-thread mode, enable system wide" ]] 58 echo $result [all …]
|
| /linux/arch/xtensa/include/asm/ |
| H A D | atomic.h | 62 int result; \ 66 " " #op " %[result], %[tmp], %[i]\n" \ 67 " s32ex %[result], %[addr]\n" \ 68 " getex %[result]\n" \ 69 " beqz %[result], 1b\n" \ 70 : [result] "=&a" (result), [tmp] "=&a" (tmp) \ 80 int result; \ 84 " " #op " %[result], %[tmp], %[i]\n" \ 85 " s32ex %[result], %[addr]\n" \ 86 " getex %[result]\n" \ [all …]
|
| /linux/fs/hpfs/ |
| H A D | namei.c | 32 struct inode *result; in hpfs_mkdir() local 54 result = new_inode(dir->i_sb); in hpfs_mkdir() 55 if (!result) { in hpfs_mkdir() 59 hpfs_init_inode(result); in hpfs_mkdir() 60 result->i_ino = fno; in hpfs_mkdir() 61 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 62 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 63 inode_set_mtime_to_ts(result, in hpfs_mkdir() 64 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_mkdir() 65 hpfs_i(result)->i_ea_size = 0; in hpfs_mkdir() [all …]
|
| /linux/arch/powerpc/platforms/ps3/ |
| H A D | interrupt.c | 172 int result; in ps3_virq_setup() local 187 result = -ENOMEM; in ps3_virq_setup() 194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup() 196 if (result) { in ps3_virq_setup() 204 return result; in ps3_virq_setup() 209 return result; in ps3_virq_setup() 246 int result; in ps3_irq_plug_setup() local 249 result = ps3_virq_setup(cpu, outlet, virq); in ps3_irq_plug_setup() 251 if (result) { in ps3_irq_plug_setup() 260 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup() [all …]
|
| H A D | device-init.c | 27 int result; in ps3_register_lpm_devices() local 43 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices() 45 if (result) { in ps3_register_lpm_devices() 51 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices() 54 if (result) { in ps3_register_lpm_devices() 65 result = -ENODEV; in ps3_register_lpm_devices() 72 result = -EPERM; in ps3_register_lpm_devices() 80 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices() 82 if (result) { in ps3_register_lpm_devices() 88 result = ps3_system_bus_device_register(dev); in ps3_register_lpm_devices() [all …]
|
| H A D | system-bus.c | 43 int result; in ps3_open_hv_device_sb() local 51 result = 0; in ps3_open_hv_device_sb() 59 result = 0; in ps3_open_hv_device_sb() 64 result = lv1_open_device(dev->bus_id, dev->dev_id, 0); in ps3_open_hv_device_sb() 66 if (result) { in ps3_open_hv_device_sb() 69 dev_name(&dev->core), ps3_result(result)); in ps3_open_hv_device_sb() 70 result = -EPERM; in ps3_open_hv_device_sb() 75 return result; in ps3_open_hv_device_sb() 80 int result; in ps3_close_hv_device_sb() local 88 result = 0; in ps3_close_hv_device_sb() [all …]
|
| /linux/arch/parisc/math-emu/ |
| H A D | sfsub.c | 42 register unsigned int left, right, result, extent; in sgl_fsub() local 73 Sgl_makequietnan(result); in sgl_fsub() 74 *dstptr = result; in sgl_fsub() 186 /* Left is not a zero and must be the result. Trapped in sgl_fsub() 187 * underflows are signaled if left is denormalized. Result in sgl_fsub() 210 /* Both operands are denormalized. The result must be exact in sgl_fsub() 215 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fsub() 216 if(Sgl_iszero_mantissa(result)) in sgl_fsub() 220 Sgl_setone_sign(result); in sgl_fsub() 224 Sgl_setzero_sign(result); in sgl_fsub() [all …]
|
| H A D | sfadd.c | 42 register unsigned int left, right, result, extent; in sgl_fadd() local 75 Sgl_makequietnan(result); in sgl_fadd() 76 *dstptr = result; in sgl_fadd() 185 /* Left is not a zero and must be the result. Trapped in sgl_fadd() 186 * underflows are signaled if left is denormalized. Result in sgl_fadd() 208 /* Both operands are denormalized. The result must be exact in sgl_fadd() 213 Sgl_subtract(left,/*minus*/right,/*into*/result); in sgl_fadd() 214 if(Sgl_iszero_mantissa(result)) in sgl_fadd() 218 Sgl_setone_sign(result); in sgl_fadd() 222 Sgl_setzero_sign(result); in sgl_fadd() [all …]
|
| H A D | fcnvfx.c | 52 register int src_exponent, result; in sgl_to_sgl_fcnvfx() local 65 if (Sgl_iszero_sign(src)) result = 0x7fffffff; in sgl_to_sgl_fcnvfx() 66 else result = 0x80000000; in sgl_to_sgl_fcnvfx() 72 *dstptr = result; in sgl_to_sgl_fcnvfx() 77 * Generate result in sgl_to_sgl_fcnvfx() 83 if (Sgl_isone_sign(src)) result = -Sgl_all(temp); in sgl_to_sgl_fcnvfx() 84 else result = Sgl_all(temp); in sgl_to_sgl_fcnvfx() 89 /* round result */ in sgl_to_sgl_fcnvfx() 92 if (Sgl_iszero_sign(src)) result++; in sgl_to_sgl_fcnvfx() 95 if (Sgl_isone_sign(src)) result--; in sgl_to_sgl_fcnvfx() [all …]
|
| H A D | fcnvfu.c | 52 register unsigned int src, result; in sgl_to_sgl_fcnvfu() local 64 result = 0; in sgl_to_sgl_fcnvfu() 66 result = 0xffffffff; in sgl_to_sgl_fcnvfu() 72 *dstptr = result; in sgl_to_sgl_fcnvfu() 76 * Generate result in sgl_to_sgl_fcnvfu() 84 result = 0; in sgl_to_sgl_fcnvfu() 89 *dstptr = result; in sgl_to_sgl_fcnvfu() 93 Suint_from_sgl_mantissa(src,src_exponent,result); in sgl_to_sgl_fcnvfu() 98 /* round result */ in sgl_to_sgl_fcnvfu() 101 result++; in sgl_to_sgl_fcnvfu() [all …]
|
| H A D | sfmpy.c | 43 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fmpy() local 51 * set sign bit of result in sgl_fmpy() 53 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fmpy() 54 else Sgl_setzero(result); in sgl_fmpy() 69 Sgl_makequietnan(result); in sgl_fmpy() 70 *dstptr = result; in sgl_fmpy() 76 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy() 77 *dstptr = result; in sgl_fmpy() 130 Sgl_setinfinity_exponentmantissa(result); in sgl_fmpy() 131 *dstptr = result; in sgl_fmpy() [all …]
|
| H A D | sfdiv.c | 40 register unsigned int opnd1, opnd2, opnd3, result; in sgl_fdiv() local 48 * set sign bit of result in sgl_fdiv() 50 if (Sgl_sign(opnd1) ^ Sgl_sign(opnd2)) Sgl_setnegativezero(result); in sgl_fdiv() 51 else Sgl_setzero(result); in sgl_fdiv() 66 Sgl_makequietnan(result); in sgl_fdiv() 67 *dstptr = result; in sgl_fdiv() 73 Sgl_setinfinity_exponentmantissa(result); in sgl_fdiv() 74 *dstptr = result; in sgl_fdiv() 118 Sgl_setzero_exponentmantissa(result); in sgl_fdiv() 119 *dstptr = result; in sgl_fdiv() [all …]
|
| H A D | fcnvff.c | 52 Dbl_allp1(resultp1) = Sgl_all(src); /* set sign of result */ in sgl_to_dbl_fcnvff() 134 register unsigned int srcp1, srcp2, result; in dbl_to_sgl_fcnvff() local 142 Sgl_all(result) = Dbl_allp1(srcp1); /* set sign of result */ in dbl_to_sgl_fcnvff() 154 Sgl_setinfinity_exponentmantissa(result); in dbl_to_sgl_fcnvff() 155 *dstptr = result; in dbl_to_sgl_fcnvff() 173 Sgl_setinfinity_exponent(result); in dbl_to_sgl_fcnvff() 174 Sgl_set_mantissa(result,Dallp1(srcp1)<<3 | Dallp2(srcp2)>>29); in dbl_to_sgl_fcnvff() 175 if (Sgl_iszero_mantissa(result)) Sgl_set_quiet(result); in dbl_to_sgl_fcnvff() 176 *dstptr = result; in dbl_to_sgl_fcnvff() 180 * Generate result in dbl_to_sgl_fcnvff() [all …]
|
| H A D | sfrem.c | 41 register unsigned int opnd1, opnd2, result; in sgl_frem() local 57 Sgl_makequietnan(result); in sgl_frem() 58 *dstptr = result; in sgl_frem() 128 Sgl_makequietnan(result); in sgl_frem() 129 *dstptr = result; in sgl_frem() 134 * get sign of result in sgl_frem() 136 result = opnd1; in sgl_frem() 163 /* find result exponent and divide step loop count */ in sgl_frem() 178 Sgl_all(result) = ~Sgl_all(result); /* set sign */ in sgl_frem() 187 Sgl_set_exponentmantissa(result,opnd2); in sgl_frem() [all …]
|
| /linux/drivers/iio/imu/inv_mpu6050/ |
| H A D | inv_mpu_core.c | 496 int result; in inv_mpu6050_set_power_itg() local 498 result = inv_mpu6050_pwr_mgmt_1_write(st, !power_on, false, -1, -1); in inv_mpu6050_set_power_itg() 499 if (result) in inv_mpu6050_set_power_itg() 500 return result; in inv_mpu6050_set_power_itg() 560 int result; in inv_mpu6050_set_lpf_regs() local 562 result = regmap_write(st->map, st->reg->lpf, val); in inv_mpu6050_set_lpf_regs() 563 if (result) in inv_mpu6050_set_lpf_regs() 564 return result; in inv_mpu6050_set_lpf_regs() 581 int result; in inv_mpu6050_init_config() local 586 result = inv_mpu6050_set_gyro_fsr(st, st->chip_config.fsr); in inv_mpu6050_init_config() [all …]
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| H A D | phy_qmath.c | 10 * To fit the output into 16 bits the 32 bit multiplication result is right 19 * Description: This function make 16 bit multiplication and return the result 20 * in 16 bits. To fit the multiplication result into 16 bits the multiplication 21 * result is right shifted by 15 bits. Right shifting 15 bits instead of 16 bits 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() 39 * result. If the result overflow 32 bits, the output will be saturated to 44 s32 result; in qm_add32() local [all …]
|
| /linux/include/linux/ |
| H A D | mii.h | 117 u32 result = 0; in ethtool_adv_to_mii_adv_t() local 120 result |= ADVERTISE_10HALF; in ethtool_adv_to_mii_adv_t() 122 result |= ADVERTISE_10FULL; in ethtool_adv_to_mii_adv_t() 124 result |= ADVERTISE_100HALF; in ethtool_adv_to_mii_adv_t() 126 result |= ADVERTISE_100FULL; in ethtool_adv_to_mii_adv_t() 128 result |= ADVERTISE_PAUSE_CAP; in ethtool_adv_to_mii_adv_t() 130 result |= ADVERTISE_PAUSE_ASYM; in ethtool_adv_to_mii_adv_t() 132 return result; in ethtool_adv_to_mii_adv_t() 145 u32 result = 0; in linkmode_adv_to_mii_adv_t() local 148 result |= ADVERTISE_10HALF; in linkmode_adv_to_mii_adv_t() [all …]
|
| /linux/drivers/ps3/ |
| H A 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 …]
|
| /linux/drivers/nfc/st95hf/ |
| H A D | core.c | 305 int result = 0; in st95hf_echo_command() local 308 result = st95hf_send_recv_cmd(st95context, CMD_ECHO, 0, NULL, false); in st95hf_echo_command() 309 if (result) in st95hf_echo_command() 310 return result; in st95hf_echo_command() 313 result = st95hf_spi_recv_echo_res(&st95context->spicontext, in st95hf_echo_command() 315 if (result) { in st95hf_echo_command() 317 "err: echo response receive error = 0x%x\n", result); in st95hf_echo_command() 318 return result; in st95hf_echo_command() 332 int result = 0; in secondary_configuration_type4a() local 336 result = st95hf_send_recv_cmd(stcontext, in secondary_configuration_type4a() [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_tool_test.py | 105 result = kunit_parser.extract_tap_lines(file.readlines()) 106 self.assertContains('TAP version 14', result) 107 self.assertContains('# Subtest: example', result) 108 self.assertContains('1..2', result) 109 self.assertContains('ok 1 - example_simple_test', result) 110 self.assertContains('ok 2 - example_mock_test', result) 111 self.assertContains('ok 1 - example', result) 116 result = kunit_parser.extract_tap_lines(file.readlines()) 117 self.assertContains('TAP version 14', result) 118 self.assertContains('# Subtest: kunit-resource-test', result) [all …]
|
| /linux/drivers/platform/x86/ |
| H A 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 …]
|
| /linux/arch/um/drivers/ |
| H A D | vector_user.c | 83 struct arglist *result; in uml_parse_vector_ifspec() local 89 result = uml_kmalloc(sizeof(struct arglist), UM_GFP_KERNEL); in uml_parse_vector_ifspec() 90 if (result == NULL) in uml_parse_vector_ifspec() 92 result->numargs = 0; in uml_parse_vector_ifspec() 97 result->tokens[result->numargs] = arg + pos; in uml_parse_vector_ifspec() 99 result->values[result->numargs] = arg + pos; in uml_parse_vector_ifspec() 100 result->numargs++; in uml_parse_vector_ifspec() 118 return result; in uml_parse_vector_ifspec() 121 kfree(result); in uml_parse_vector_ifspec() 205 struct vector_fds *result = NULL; in user_init_tap_fds() local [all …]
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A D | hif.c | 90 * As a result, the returned index will be 1 to NUM_CONCURRENT_IFC. 100 * As a result, the index should be between 0 and (NUM_CONCURRENT_IFC - 1). 120 int result = 0; in handle_scan_done() local 133 result = wilc_send_config_pkt(vif, WILC_SET_CFG, &wid, 1); in handle_scan_done() 134 if (result) { in handle_scan_done() 136 result = -EFAULT; in handle_scan_done() 142 return result; in handle_scan_done() 151 return result; in handle_scan_done() 161 int result = 0; in wilc_scan() local 174 result = -EBUSY; in wilc_scan() [all …]
|
| /linux/drivers/misc/ibmasm/ |
| H A D | module.c | 22 * Failure to do so would result in system reboot. 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() [all …]
|