Home
last modified time | relevance | path

Searched refs:const_ptr (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_legacy_tv.c243 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_get_std_mode() local
259 const_ptr = &available_tv_modes[0]; in radeon_legacy_tv_get_std_mode()
261 const_ptr = &available_tv_modes[2]; in radeon_legacy_tv_get_std_mode()
264 const_ptr = &available_tv_modes[1]; in radeon_legacy_tv_get_std_mode()
266 const_ptr = &available_tv_modes[3]; in radeon_legacy_tv_get_std_mode()
268 return const_ptr; in radeon_legacy_tv_get_std_mode()
432 const struct radeon_tv_mode_constants *const_ptr; in radeon_legacy_tv_init_restarts() local
434 const_ptr = radeon_legacy_tv_get_std_mode(radeon_encoder, NULL); in radeon_legacy_tv_init_restarts()
435 if (!const_ptr) in radeon_legacy_tv_init_restarts()
438 h_total = const_ptr->hor_total; in radeon_legacy_tv_init_restarts()
[all …]
/openbmc/linux/rust/kernel/
H A Derror.rs280 let const_ptr: *const core::ffi::c_void = ptr.cast(); in from_err_ptr() localVariable
282 if unsafe { bindings::IS_ERR(const_ptr) } { in from_err_ptr()
284 let err = unsafe { bindings::PTR_ERR(const_ptr) }; in from_err_ptr()