/packages/modules/Virtualization/libs/libfdt/src/ |
D | result.rs | 17 use core::ffi::{c_int, c_uint}; 98 pub(crate) struct FdtRawResult(c_int); 100 impl From<c_int> for FdtRawResult { 101 fn from(value: c_int) -> Self { in from() 106 impl TryFrom<FdtRawResult> for c_int { implementation 119 x if x == -(FDT_ERR_NOTFOUND as c_int) => Err(FdtError::NotFound), in try_from() 120 x if x == -(FDT_ERR_EXISTS as c_int) => Err(FdtError::Exists), in try_from() 121 x if x == -(FDT_ERR_NOSPACE as c_int) => Err(FdtError::NoSpace), in try_from() 122 x if x == -(FDT_ERR_BADOFFSET as c_int) => Err(FdtError::BadOffset), in try_from() 123 x if x == -(FDT_ERR_BADPATH as c_int) => Err(FdtError::BadPath), in try_from() [all …]
|
D | safe_types.rs | 17 use core::ffi::c_int; 131 pub struct NodeOffset(c_int); 158 impl From<NodeOffset> for c_int { implementation 169 pub struct PropOffset(c_int); 191 impl From<PropOffset> for c_int { implementation 202 pub struct StringOffset(pub c_int); // TODO(ptosi): Move fdt_property wrapper here and remove pub. 224 impl From<StringOffset> for c_int { implementation
|
/packages/modules/Virtualization/vmbase/src/ |
D | bionic.rs | 22 use core::ffi::c_int; 31 const EOF: c_int = -1; 32 const EIO: c_int = 5; 72 pub static mut ERRNO: c_int = 0; 75 unsafe extern "C" fn __errno() -> *mut c_int { in __errno() 81 fn set_errno(value: c_int) { in set_errno() argument 86 fn get_errno() -> c_int { in get_errno() 92 extern "C" fn getentropy(buffer: *mut c_void, length: usize) -> c_int { in getentropy() argument 151 extern "C" fn fputs(c_str: *const c_char, stream: usize) -> c_int { in fputs() argument 180 extern "C" fn strerror(n: c_int) -> *mut c_char { in strerror() [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | uinput.rs | 35 const EV_SYN: libc::c_int = 0x00; 36 const EV_KEY: libc::c_int = 0x01; 37 const EV_REL: libc::c_int = 0x02; 38 const EV_REP: libc::c_int = 0x14; 40 const SYN_REPORT: libc::c_int = 0; 45 nix::request_code_write!(UINPUT_IOCTL_BASE, 100, mem::size_of::<libc::c_int>()); 49 nix::request_code_write!(UINPUT_IOCTL_BASE, 101, mem::size_of::<libc::c_int>()); 86 ff_effects_max: libc::c_int, 87 absmax: [libc::c_int; ABS_MAX + 1], 88 absmin: [libc::c_int; ABS_MAX + 1], [all …]
|
/packages/modules/Bluetooth/tools/rootcanal/py/ |
D | controller.py | 33 SEND_HCI_FUNC = CFUNCTYPE(None, c_int, POINTER(c_ubyte), c_size_t) 34 SEND_LL_FUNC = CFUNCTYPE(None, POINTER(c_ubyte), c_size_t, c_int, c_int) 76 def send_hci(idc: c_int, data: POINTER(c_ubyte), data_len: c_size_t): argument 83 def send_ll(data: POINTER(c_ubyte), data_len: c_size_t, phy: c_int, tx_power: c_int): argument 133 …canal.ffi_controller_receive_hci(c_void_p(self.instance), c_int(Idc.Cmd), c_char_p(data), c_int(le… 138 …canal.ffi_controller_receive_hci(c_void_p(self.instance), c_int(Idc.Iso), c_char_p(data), c_int(le… 143 …al.ffi_controller_receive_ll(c_void_p(self.instance), c_char_p(data), c_int(len(data)), c_int(phy), 144 c_int(rssi)) 157 …al.ffi_controller_receive_ll(c_void_p(self.instance), c_char_p(data), c_int(len(data)), c_int(phy), 158 c_int(rssi))
|
/packages/modules/Bluetooth/system/audio/asrc/ |
D | asrc_resampler_test.py | 37 c_int = ctypes.c_int 54 …lib.resample_i16(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int16_… 57 …lib.resample_i32(c_int(channels), c_int(bitdepth), c_double(ratio), xs_int.ctypes.data_as(c_int32_…
|
/packages/modules/Virtualization/virtualizationservice/vmnic/src/ |
D | aidl.rs | 20 use libc::{c_char, c_int, c_short, ifreq, IFF_NO_PI, IFF_TAP, IFF_UP, IFF_VNET_HDR, IFNAMSIZ}; 30 const TUNGETIFF: ioctl_num_type = 0x800454d2u32 as c_int; 47 fn create_tap_interface(fd: RawFd, sockfd: c_int, ifname: &[c_char]) -> Result<()> { in create_tap_interface() argument 72 fn delete_tap_interface(fd: RawFd, sockfd: c_int, ifr: &mut ifreq) -> Result<()> { in delete_tap_interface() argument
|
/packages/services/Car/tools/telemetry/lua-interpreter/ |
D | app.py | 26 ('size', ctypes.c_int), ('saved_state', ctypes.c_char_p)]
|
/packages/modules/Virtualization/authfs/src/ |
D | fusefs.rs | 380 fn check_access_mode(flags: u32, mode: libc::c_int) -> io::Result<()> { in check_access_mode() 391 fn blk_size() -> libc::c_int { CHUNK_SIZE as libc::c_int }
|
/packages/modules/Bluetooth/system/gd/rust/topshim/src/ |
D | btif.rs | 1186 extern "C" fn wake_lock_noop(_0: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int { in wake_lock_noop() argument
|