Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 135) sorted by relevance

123456

/drivers/bios_emulator/x86emu/
A Dprim_ops.c305 res++; in adc_word()
328 res++; in adc_long()
383 CONDITIONAL_SET_FLAG(res < d || res < s, F_CF); in add_long()
482 res += 6; in daa_byte()
1026 XOR2((res & 0x1) + ((res >> 6) & 0x2)), in rol_byte()
1051 XOR2((res & 0x1) + ((res >> 14) & 0x2)), in rol_word()
1076 XOR2((res & 0x1) + ((res >> 30) & 0x2)), in rol_long()
1210 res = 0; in shl_byte()
1248 res = 0; in shl_word()
1283 res = 0; in shl_long()
[all …]
/drivers/firmware/arm-ffa/
A Dffa-emul-uclass.c108 res->a1 = 0; in sandbox_ffa_id_get()
132 res->a1 = 0; in sandbox_ffa_features()
137 res->a3 = 0; in sandbox_ffa_features()
248 res->a1 = 0; in sandbox_ffa_partition_info_get()
287 res->a2 = 0; in sandbox_ffa_rxtx_map()
305 res->a1 = 0; in sandbox_ffa_rxtx_map()
343 res->a2 = 0; in sandbox_ffa_rxtx_unmap()
352 res->a1 = 0; in sandbox_ffa_rxtx_unmap()
384 res->a2 = 0; in sandbox_ffa_rx_release()
388 res->a1 = 0; in sandbox_ffa_rx_release()
[all …]
A Darm-ffa-uclass.c190 }, &res); in ffa_get_version_hdlr()
241 }, &res); in ffa_get_endpoint_id()
309 }, &res); in ffa_get_rxtx_map_features_hdlr()
430 }, &res); in ffa_map_rxtx_buffers_hdlr()
468 }, &res); in ffa_unmap_rxtx_buffers_hdlr()
498 }, &res); in ffa_release_rx_buffer_hdlr()
678 }, &res); in ffa_query_partitions_info()
687 if (res.a2) { in ffa_query_partitions_info()
904 }, &res); in ffa_msg_send_direct_req_hdlr()
909 .a1 = res.a1, in ffa_msg_send_direct_req_hdlr()
[all …]
/drivers/sysinfo/
A Dgazerbeam.c66 int res; in _read_sysinfo_variant_data() local
69 if (res) { in _read_sysinfo_variant_data()
72 return res; in _read_sysinfo_variant_data()
143 int res; in _read_hwversion() local
159 return res; in _read_hwversion()
168 return res; in _read_hwversion()
176 int res; in sysinfo_gazerbeam_detect() local
179 if (res) { in sysinfo_gazerbeam_detect()
182 return res; in sysinfo_gazerbeam_detect()
186 if (res) { in sysinfo_gazerbeam_detect()
[all …]
/drivers/misc/
A Datsha204a-i2c.c40 int res; in atsha204a_ping_bus() local
106 int res; in atsha204a_recv_resp() local
111 if (res) in atsha204a_recv_resp()
119 if (res) in atsha204a_recv_resp()
138 int res; in atsha204a_wakeup() local
168 int res; in atsha204a_idle() local
172 if (res) in atsha204a_idle()
179 int res; in atsha204a_sleep() local
183 if (res) in atsha204a_sleep()
202 if (!res || res == -EMSGSIZE || res == -EBADMSG) in atsha204a_transaction()
[all …]
A Dk3_fuse.c18 struct arm_smccc_res res; in fuse_read() local
27 0, 0, 0, 0, 0, 0, &res); in fuse_read()
29 *val = res.a1; in fuse_read()
30 if (res.a0 != 0) in fuse_read()
33 return res.a0; in fuse_read()
43 struct arm_smccc_res res; in fuse_prog() local
55 if (res.a0 != 0) in fuse_prog()
58 return res.a0; in fuse_prog()
68 struct arm_smccc_res res; in fuse_writebuff() local
74 if (res.a0 != 0) in fuse_writebuff()
[all …]
/drivers/sysreset/
A Dsysreset_mpc83xx.c30 int res; in __do_reset() local
49 if (res) { in __do_reset()
52 return res; in __do_reset()
100 int res = 0; in print_83xx_arb_event() local
129 return res; in print_83xx_arb_event()
151 int res; in mpc83xx_sysreset_get_status() local
163 buf += res; in mpc83xx_sysreset_get_status()
164 size -= res; in mpc83xx_sysreset_get_status()
177 buf += res; in mpc83xx_sysreset_get_status()
198 buf += res; in mpc83xx_sysreset_get_status()
[all …]
/drivers/net/phy/
A Dmv88e61xx.c260 int res; in mv88e61xx_reg_read() local
297 int res; in mv88e61xx_reg_write() local
353 int res; in mv88e61xx_phy_read_indirect() local
378 int res; in mv88e61xx_phy_write_indirect() local
437 int res; in mv88e61xx_get_switch_id() local
461 int res; in mv88e61xx_get_cmode() local
643 int res; in mv88e61xx_read_port_config() local
702 res = 0; in mv88e61xx_read_port_config()
809 int res; in mv88e61xx_switch_init() local
926 int res; in mv88e61xx_probe() local
[all …]
/drivers/rng/
A Dsmccc_trng.c83 struct arm_smccc_res res; in smccc_trng_read() local
105 switch (res.a0) { in smccc_trng_read()
136 struct arm_smccc_res res; in smccc_trng_is_supported() local
139 if (res.a0 & BIT(31)) in smccc_trng_is_supported()
144 0, 0, 0, 0, 0, 0, &res); in smccc_trng_is_supported()
148 0, 0, 0, 0, 0, 0, &res); in smccc_trng_is_supported()
162 struct arm_smccc_res res; in smccc_trng_probe() local
169 0, 0, 0, 0, 0, 0, &res); in smccc_trng_probe()
175 unsigned long uuid_a0 = res.a0; in smccc_trng_probe()
176 unsigned long uuid_a1 = res.a1; in smccc_trng_probe()
[all …]
/drivers/video/
A Dihs_video_out.c135 int res; in ihs_video_out_set_mem() local
162 if (res) { in ihs_video_out_set_mem()
164 return res; in ihs_video_out_set_mem()
204 int res; in ihs_video_out_print() local
238 int res; in ihs_video_out_probe() local
241 if (res) { in ihs_video_out_probe()
281 if (res) { in ihs_video_out_probe()
294 if (res) { in ihs_video_out_probe()
302 if (res) { in ihs_video_out_probe()
310 if (res) { in ihs_video_out_probe()
[all …]
/drivers/net/
A Dmv88e6xxx.c204 int res; in mv88e6xxx_reg_read() local
212 if (res < 0) in mv88e6xxx_reg_read()
213 return res; in mv88e6xxx_reg_read()
218 if (res < 0) in mv88e6xxx_reg_read()
219 return res; in mv88e6xxx_reg_read()
223 if (res < 0) in mv88e6xxx_reg_read()
239 int res; in mv88e6xxx_reg_write() local
291 int res; in mv88e6xxx_phy_read_indirect() local
337 int res; in mv88e6xxx_phy_write_indirect() local
414 int res; in mv88e6xxx_get_switch_id() local
[all …]
/drivers/core/
A Ddevres.c95 if (res) { in devres_free()
138 void *res; in devres_get() local
141 if (!res) { in devres_get()
143 res = new_res; in devres_get()
148 return res; in devres_get()
154 void *res; in devres_remove() local
157 if (res) { in devres_remove()
164 return res; in devres_remove()
170 void *res; in devres_destroy() local
176 devres_free(res); in devres_destroy()
[all …]
/drivers/pci/
A Dpci_auto_common.c19 void pciauto_region_init(struct pci_region *res) in pciauto_region_init() argument
27 res->bus_lower = res->bus_start < 0x1000 ? 0x1000 : res->bus_start; in pciauto_region_init()
30 void pciauto_region_align(struct pci_region *res, pci_size_t size) in pciauto_region_align() argument
32 res->bus_lower = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_align()
40 if (!res) { in pciauto_region_allocate()
45 addr = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_allocate()
47 if (addr - res->bus_start + size > res->size) { in pciauto_region_allocate()
49 "need=%llx\n", (unsigned long long)res->bus_lower, in pciauto_region_allocate()
50 (unsigned long long)res->size, (unsigned long long)size); in pciauto_region_allocate()
59 res->bus_lower = addr + size; in pciauto_region_allocate()
[all …]
A Dpci_common.c149 struct pci_region *res; in __pci_hose_bus_to_phys() local
153 res = &hose->regions[i]; in __pci_hose_bus_to_phys()
158 if (res->flags & skip_mask) in __pci_hose_bus_to_phys()
161 if (bus_addr >= res->bus_start && in __pci_hose_bus_to_phys()
162 (bus_addr - res->bus_start) < res->size) { in __pci_hose_bus_to_phys()
163 *pa = (bus_addr - res->bus_start + res->phys_start); in __pci_hose_bus_to_phys()
208 struct pci_region *res; in __pci_hose_phys_to_bus() local
213 res = &hose->regions[i]; in __pci_hose_phys_to_bus()
218 if (res->flags & skip_mask) in __pci_hose_phys_to_bus()
221 bus_addr = phys_addr - res->phys_start + res->bus_start; in __pci_hose_phys_to_bus()
[all …]
/drivers/mailbox/
A Dzynqmp-ipi.c90 struct arm_smccc_res res = {0}; in zynqmp_ipi_fw_call() local
95 arm_smccc_smc(a0, a1, a2, a3, 0, 0, 0, 0, &res); in zynqmp_ipi_fw_call()
97 return (int)res.a0; in zynqmp_ipi_fw_call()
163 struct resource res; in zynqmp_ipi_dest_probe() local
190 zynqmp->local_req_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_dest_probe()
191 (res.start - res.end)); in zynqmp_ipi_dest_probe()
199 zynqmp->local_res_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_dest_probe()
200 (res.start - res.end)); in zynqmp_ipi_dest_probe()
208 zynqmp->remote_req_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_dest_probe()
209 (res.start - res.end)); in zynqmp_ipi_dest_probe()
[all …]
/drivers/tpm/
A Dtpm_atmel_twi.c79 int res; in tpm_atmel_twi_xfer() local
88 res = dm_i2c_write(dev, 0, sendbuf, send_size); in tpm_atmel_twi_xfer()
89 if (res) { in tpm_atmel_twi_xfer()
90 printf("i2c_write returned %d\n", res); in tpm_atmel_twi_xfer()
96 while ((res = dm_i2c_read(dev, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
105 if (!res) { in tpm_atmel_twi_xfer()
116 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
119 if (res) { in tpm_atmel_twi_xfer()
120 printf("i2c_read returned %d (rlen=%zu)\n", res, *recv_len); in tpm_atmel_twi_xfer()
127 if (!res) { in tpm_atmel_twi_xfer()
[all …]
/drivers/xen/
A Dxenbus.c173 free(res); in xenbus_wait_for_state_change()
278 char *res; in errmsg() local
292 return res; in errmsg()
315 res = malloc(sizeof(res[0]) * (nr_elems + 1)); in xenbus_ls()
323 res[i] = NULL; in xenbus_ls()
345 *value = res; in xenbus_read()
397 *value = res; in xenbus_get_perms()
472 if (res) { in xenbus_read_integer()
474 free(res); in xenbus_read_integer()
487 if (res) { in xenbus_read_uuid()
[all …]
/drivers/watchdog/
A Darm_smc_wdt.c35 unsigned long arg, struct arm_smccc_res *res) in smcwd_call() argument
40 if (!res) in smcwd_call()
41 res = &local_res; in smcwd_call()
45 if (res->a0 == PSCI_RET_NOT_SUPPORTED) in smcwd_call()
47 if (res->a0 == PSCI_RET_INVALID_PARAMS) in smcwd_call()
49 if (res->a0 == PSCI_RET_DISABLED) in smcwd_call()
51 if (res->a0 != PSCI_RET_SUCCESS) in smcwd_call()
90 struct arm_smccc_res res; in smcwd_probe() local
95 err = smcwd_call(dev, SMCWD_INIT, 0, &res); in smcwd_probe()
101 priv->min_timeout = res.a1; in smcwd_probe()
[all …]
A Dadi_wdt.c99 struct resource res; in adi_wdt_probe() local
101 ret = dev_read_resource_byname(dev, "rcu", &res); in adi_wdt_probe()
104 priv->rcu_base = devm_ioremap(dev, res.start, resource_size(&res)); in adi_wdt_probe()
106 ret = dev_read_resource_byname(dev, "sec", &res); in adi_wdt_probe()
109 priv->sec_base = devm_ioremap(dev, res.start, resource_size(&res)); in adi_wdt_probe()
111 ret = dev_read_resource_byname(dev, "wdt", &res); in adi_wdt_probe()
114 priv->wdt_base = devm_ioremap(dev, res.start, resource_size(&res)); in adi_wdt_probe()
/drivers/i2c/
A Dihs_i2c.c83 int res; in ihs_i2c_transfer() local
109 if (res) { in ihs_i2c_transfer()
113 return res; in ihs_i2c_transfer()
129 int res; in ihs_i2c_send_buffer() local
137 if (res) in ihs_i2c_send_buffer()
156 int res; in ihs_i2c_access() local
163 if (res) in ihs_i2c_access()
164 return res; in ihs_i2c_access()
221 int res; in ihs_i2c_probe_chip() local
224 if (res) in ihs_i2c_probe_chip()
[all …]
/drivers/tee/
A Dsandbox.c120 u32 res; in pta_scp03_invoke_func() local
131 if (res) in pta_scp03_invoke_func()
173 u32 res; in ta_avb_invoke_func() local
186 if (res) in ta_avb_invoke_func()
206 if (res) in ta_avb_invoke_func()
228 if (res) in ta_avb_invoke_func()
240 if (res) in ta_avb_invoke_func()
256 if (res) in ta_avb_invoke_func()
358 int res; in ta_rpc_test_invoke_func() local
365 if (res) in ta_rpc_test_invoke_func()
[all …]
/drivers/mtd/nand/raw/
A Dnand_bbt.c203 return res; in read_bbt()
207 ret = res; in read_bbt()
276 if (res) in read_abs_bbt()
283 if (res) in read_abs_bbt()
284 return res; in read_abs_bbt()
330 if (res) { in scan_read_oob()
334 ret = res; in scan_read_oob()
809 return res; in write_bbt()
1124 if (res) in nand_scan_bbt()
1138 return res; in nand_scan_bbt()
[all …]
/drivers/misc/imx_ele/
A Dfuse.c204 u32 res = 0, size = 4; in fuse_sense() local
211 ret = ele_read_common_fuse(word_index, data, size, &res); in fuse_sense()
213 printf("ahab read fuse failed %d, 0x%x\n", ret, res); in fuse_sense()
258 u32 res = 0, size = 1; in fuse_sense() local
263 printf("ahab read fuse failed %d, 0x%x\n", ret, res); in fuse_sense()
297 u32 res = 0; in fuse_read_ele_shd() local
304 ret = ele_read_shadow_fuse((bank * 8 + word), val, &res); in fuse_read_ele_shd()
327 u32 res = 0; in fuse_prog() local
348 ret = ele_write_fuse((bank * 8 + word), val, lock, &res); in fuse_prog()
350 printf("ahab write fuse failed %d, 0x%x\n", ret, res); in fuse_prog()
[all …]
/drivers/ram/stm32mp1/
A Dstm32mp1_tests.c710 return res; in test_noise()
797 return res; in test_noise_burst()
859 return res; in test_loop()
965 return res; in test_freq_pattern()
1009 return res; in test_loop_size()
1035 if (res) in test_checkboard()
1046 return res; in test_checkboard()
1080 return res; in test_blockseq()
1118 return res; in test_walkbit0()
1156 return res; in test_walkbit1()
[all …]
/drivers/misc/imx8/
A Dfuse.c40 struct arm_smccc_res res; in fuse_sense() local
48 0, 0, 0, 0, &res); in fuse_sense()
49 *val = (u32)res.a1; in fuse_sense()
51 return res.a0; in fuse_sense()
56 struct arm_smccc_res res; in fuse_prog() local
85 (unsigned long)val, 0, 0, 0, 0, 0, &res); in fuse_prog()
87 return res.a0; in fuse_prog()

Completed in 84 milliseconds

123456