/linux/tools/perf/tests/shell/ |
H A D | lock_contention.sh | 9 result=$(mktemp /tmp/__perf_test.result.XXXXX) 13 rm -f ${result} 49 perf lock contention -i ${perfdata} -E 1 -q 2> ${result} 50 if [ "$(cat "${result}" | wc -l)" != "1" ]; then 51 echo "[Fail] Recorded result count is not 1:" "$(cat "${result}" | wc -l)" 67 perf lock con -a -b -E 1 -q -- perf bench sched messaging > /dev/null 2> ${result} 68 if [ "$(cat "${result}" | wc -l)" != "1" ]; then 69 echo "[Fail] BPF result count is not 1:" "$(cat "${result}" | wc -l)" 79 perf lock contention -i- -E 1 -q 2> ${result} 80 if [ "$(cat "${result}" | wc -l)" != "1" ]; then [all …]
|
/linux/arch/powerpc/platforms/ps3/ |
H A D | repository.c | 112 int result; in read_node() local 122 result = lv1_read_repository_node(lpar_id, n1, n2, n3, n4, &v1, in read_node() 125 if (result) { in read_node() 127 __func__, __LINE__, ps3_result(result)); in read_node() 168 int result; in ps3_repository_read_bus_type() local 171 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_type() 177 return result; in ps3_repository_read_bus_type() 183 int result; in ps3_repository_read_bus_num_dev() local 186 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_num_dev() 192 return result; in ps3_repository_read_bus_num_dev() [all …]
|
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 | 26 int result; in ps3_register_lpm_devices() local 42 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices() 44 if (result) { in ps3_register_lpm_devices() 50 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices() 53 if (result) { in ps3_register_lpm_devices() 64 result = -ENODEV; in ps3_register_lpm_devices() 71 result = -EPERM; in ps3_register_lpm_devices() 79 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices() 81 if (result) { in ps3_register_lpm_devices() 87 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/drivers/md/dm-vdo/indexer/ |
H A D | index-layout.c | 223 int result; in compute_sizes() local 231 result = uds_compute_volume_index_save_blocks(config, sls->block_size, in compute_sizes() 233 if (result != UDS_SUCCESS) in compute_sizes() 234 return vdo_log_error_strerror(result, "cannot compute index save size"); in compute_sizes() 253 int result; in uds_compute_index_size() local 262 result = uds_make_configuration(parameters, &index_config); in uds_compute_index_size() 263 if (result != UDS_SUCCESS) { in uds_compute_index_size() 264 vdo_log_error_strerror(result, "cannot compute index size"); in uds_compute_index_size() 265 return uds_status_to_errno(result); in uds_compute_index_size() 268 result = compute_sizes(index_config, &sizes); in uds_compute_index_size() [all …]
|
H A D | index.c | 64 /* The result from the most recent write */ 65 int result; member 88 int result; in launch_zone_message() local 91 result = vdo_allocate(1, struct uds_request, __func__, &request); in launch_zone_message() 92 if (result != VDO_SUCCESS) in launch_zone_message() 93 return result; in launch_zone_message() 113 int result = launch_zone_message(message, zone, index); in enqueue_barrier_messages() local 115 VDO_ASSERT_LOG_ONLY((result == UDS_SUCCESS), "barrier message allocation"); in enqueue_barrier_messages() 181 int result; in finish_previous_chapter() local 187 result = writer->result; in finish_previous_chapter() [all …]
|
H A D | volume-index.c | 305 int result; in compute_volume_sub_index_save_bytes() local 307 result = compute_volume_sub_index_parameters(config, ¶ms); in compute_volume_sub_index_save_bytes() 308 if (result != UDS_SUCCESS) in compute_volume_sub_index_save_bytes() 309 return result; in compute_volume_sub_index_save_bytes() 352 int result; in compute_volume_index_save_bytes() local 358 result = compute_volume_sub_index_save_bytes(&split.hook_config, &hook_bytes); in compute_volume_index_save_bytes() 359 if (result != UDS_SUCCESS) in compute_volume_index_save_bytes() 360 return result; in compute_volume_index_save_bytes() 362 result = compute_volume_sub_index_save_bytes(&split.non_hook_config, in compute_volume_index_save_bytes() 364 if (result != UDS_SUCCESS) in compute_volume_index_save_bytes() [all …]
|
H A D | volume.c | 259 int result; in put_page_in_cache() local 262 result = VDO_ASSERT((page->read_pending), "page to install has a pending read"); in put_page_in_cache() 263 if (result != VDO_SUCCESS) in put_page_in_cache() 264 return result; in put_page_in_cache() 285 int result; in cancel_page_in_cache() local 288 result = VDO_ASSERT((page->read_pending), "page to install has a pending read"); in cancel_page_in_cache() 289 if (result != VDO_SUCCESS) in cancel_page_in_cache() 426 int result; in init_chapter_index_page() local 428 result = uds_initialize_chapter_index_page(chapter_index_page, geometry, in init_chapter_index_page() 431 return result; in init_chapter_index_page() [all …]
|
H A D | index-session.c | 78 int result = UDS_SUCCESS; in get_index_session() local 88 result = UDS_DISABLED; in get_index_session() 92 result = -EBUSY; in get_index_session() 94 result = UDS_NO_INDEX; in get_index_session() 98 return result; in get_index_session() 104 int result; in uds_launch_request() local 129 result = get_index_session(request->session); in uds_launch_request() 130 if (result != UDS_SUCCESS) in uds_launch_request() 131 return result; in uds_launch_request() 221 int result; in make_empty_index_session() local [all …]
|
H A D | config.c | 33 bool result = true; in are_matching_configurations() local 39 result = false; in are_matching_configurations() 46 result = false; in are_matching_configurations() 53 result = false; in are_matching_configurations() 59 result = false; in are_matching_configurations() 66 result = false; in are_matching_configurations() 72 result = false; in are_matching_configurations() 79 result = false; in are_matching_configurations() 86 result = false; in are_matching_configurations() 89 return result; in are_matching_configurations() [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() 57 hpfs_init_inode(result); in hpfs_mkdir() 58 result->i_ino = fno; in hpfs_mkdir() 59 hpfs_i(result)->i_parent_dir = dir->i_ino; in hpfs_mkdir() 60 hpfs_i(result)->i_dno = dno; in hpfs_mkdir() 61 inode_set_mtime_to_ts(result, in hpfs_mkdir() 62 …inode_set_atime_to_ts(result, inode_set_ctime(result, local_to_gmt(dir->i_sb, le32_to_cpu(dee.crea… in hpfs_mkdir() 63 hpfs_i(result)->i_ea_size = 0; in hpfs_mkdir() [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 …]
|
/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/scripts/ |
H A D | rust_is_available_test.py | 128 result = subprocess.run("scripts/rust_is_available.sh", env=env, capture_output=True) 131 self.assertEqual(result.stdout, b"") 136 self.assertEqual(result.returncode, 0) 137 self.assertEqual(result.stderr, b"") 143 self.assertEqual(result.returncode, 0) 144 self.assertNotEqual(result.stderr, b"") 148 self.assertEqual(result.returncode, 0) 149 … self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr) 153 self.assertNotEqual(result.returncode, 0) 154 … self.assertIn(b"Please see Documentation/rust/quick-start.rst for details", result.stderr) [all …]
|
/linux/drivers/md/dm-vdo/ |
H A D | encodings.c | 179 int result; in vdo_validate_header() local 188 result = validate_version(expected_header->version, actual_header->version, in vdo_validate_header() 190 if (result != VDO_SUCCESS) in vdo_validate_header() 191 return result; in vdo_validate_header() 304 int result; in vdo_parse_geometry_block() local 312 result = vdo_validate_header(&GEOMETRY_BLOCK_HEADER_4_0, &header, in vdo_parse_geometry_block() 315 result = vdo_validate_header(&GEOMETRY_BLOCK_HEADER_5_0, &header, in vdo_parse_geometry_block() 318 if (result != VDO_SUCCESS) in vdo_parse_geometry_block() 319 return result; in vdo_parse_geometry_block() 323 result = VDO_ASSERT(header.size == offset + sizeof(u32), in vdo_parse_geometry_block() [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/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/infiniband/hw/efa/ |
H A D | efa_com_cmd.c | 96 struct efa_com_query_qp_result *result) in efa_com_query_qp() argument 118 result->qp_state = resp.qp_state; in efa_com_query_qp() 119 result->qkey = resp.qkey; in efa_com_query_qp() 120 result->sq_draining = resp.sq_draining; in efa_com_query_qp() 121 result->sq_psn = resp.sq_psn; in efa_com_query_qp() 122 result->rnr_retry = resp.rnr_retry; in efa_com_query_qp() 155 struct efa_com_create_cq_result *result) in efa_com_create_cq() argument 193 result->cq_idx = cmd_completion.cq_idx; in efa_com_create_cq() 194 result->actual_depth = params->cq_depth; in efa_com_create_cq() 195 result->db_off = cmd_completion.db_offset; in efa_com_create_cq() [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 | 102 result = kunit_parser.extract_tap_lines(file.readlines()) 103 self.assertContains('TAP version 14', result) 104 self.assertContains('# Subtest: example', result) 105 self.assertContains('1..2', result) 106 self.assertContains('ok 1 - example_simple_test', result) 107 self.assertContains('ok 2 - example_mock_test', result) 108 self.assertContains('ok 1 - example', result) 113 result = kunit_parser.extract_tap_lines(file.readlines()) 114 self.assertContains('TAP version 14', result) 115 self.assertContains('# Subtest: kunit-resource-test', result) [all …]
|