Home
last modified time | relevance | path

Searched refs:dev_name (Results 1 – 20 of 20) sorted by relevance

/device/moto/shamu/dataservices/rmnetctl/inc/
Dlibrmnetctl.h169 const char *dev_name,
189 const char *dev_name,
212 const char *dev_name,
230 const char *dev_name,
253 const char *dev_name,
271 const char *dev_name,
278 const char *dev_name, in rmnet_set_link_ingress_data_format() argument
284 dev_name, in rmnet_set_link_ingress_data_format()
289 const char *dev_name, in rmnet_get_link_ingress_data_format() argument
294 dev_name, in rmnet_get_link_ingress_data_format()
[all …]
/device/moto/shamu/dataservices/rmnetctl/src/
Dlibrmnetctl.c197 static inline int _rmnetctl_check_dev_name(const char *dev_name) { in _rmnetctl_check_dev_name() argument
200 if (!dev_name) in _rmnetctl_check_dev_name()
202 if (strlen(dev_name) >= RMNET_MAX_STR_LEN) in _rmnetctl_check_dev_name()
359 const char *dev_name, in rmnet_associate_network_device() argument
366 if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) || in rmnet_associate_network_device()
379 str_len = strlcpy((char *)(request.data), dev_name, RMNET_MAX_STR_LEN); in rmnet_associate_network_device()
394 const char *dev_name, in rmnet_get_network_device_associated() argument
401 _rmnetctl_check_dev_name(dev_name)) { in rmnet_get_network_device_associated()
409 str_len = strlcpy((char *)(request.data), dev_name, RMNET_MAX_STR_LEN); in rmnet_get_network_device_associated()
430 const char *dev_name, in rmnet_set_link_egress_data_format() argument
[all …]
/device/htc/flounder/sensor_hub/libsensors/
DSensorBase.cpp37 const char* dev_name, in SensorBase() argument
39 : dev_name(dev_name) in SensorBase()
56 if (dev_fd<0 && dev_name) { in open_device()
57 dev_fd = open(dev_name, O_RDONLY); in open_device()
58 ALOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
DSensorBase.h35 const char* dev_name;
55 const char* dev_name,
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c108 char *dev_name = NULL; in mm_camera_util_get_dev_name() local
111 dev_name = g_cam_ctrl.video_dev_name[cam_idx]; in mm_camera_util_get_dev_name()
113 return dev_name; in mm_camera_util_get_dev_name()
1315 char dev_name[32]; in get_sensor_info() local
1317 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_sensor_info()
1318 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info()
1419 char dev_name[32]; in get_num_of_cameras() local
1421 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1422 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
1458 snprintf(subdev_name, sizeof(dev_name), "/dev/%s", entity.name); in get_num_of_cameras()
[all …]
Dmm_camera.c239 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
250 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
252 sscanf(dev_name, "/dev/video%u", &cam_idx); in mm_camera_open()
253 CDBG_HIGH("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
258 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
271 __func__, dev_name, strerror(errno)); in mm_camera_open()
293 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c378 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
395 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
398 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/device/lge/hammerhead/libsensors/
DProximitySensor.cpp58 if (!mEnabled && dev_name != NULL) { in enable()
86 if (!mEnabled && dev_name != NULL) { in enable()
DLightSensor.cpp77 if (!mEnabled && dev_name != NULL) { in enable()
105 if (!mEnabled && dev_name != NULL) { in enable()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/inc/
DQCameraUsbPriv.h101 camHal->fd = open(camHal->dev_name, O_RDWR | O_NONBLOCK, 0);\
155 char dev_name[FILENAME_LENGTH]; member
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c103 char *dev_name = NULL; in mm_camera_util_get_dev_name() local
106 dev_name = g_cam_ctrl.video_dev_name[cam_idx]; in mm_camera_util_get_dev_name()
108 return dev_name; in mm_camera_util_get_dev_name()
1257 char dev_name[32]; in get_num_of_cameras() local
1259 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1260 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
Dmm_camera.c240 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
248 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
250 sscanf(dev_name, "/dev/video%u", &cam_idx); in mm_camera_open()
251 CDBG_HIGH("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
256 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
269 __func__, dev_name, strerror(errno)); in mm_camera_open()
291 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c378 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
390 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
393 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_interface.c103 char *dev_name = NULL; in mm_camera_util_get_dev_name() local
106 dev_name = g_cam_ctrl.video_dev_name[cam_idx]; in mm_camera_util_get_dev_name()
108 return dev_name; in mm_camera_util_get_dev_name()
1257 char dev_name[32]; in get_num_of_cameras() local
1259 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1260 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
Dmm_camera.c239 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
247 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
249 sscanf(dev_name, "/dev/video%u", &cam_idx); in mm_camera_open()
250 CDBG_ERROR("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
254 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
267 __func__, dev_name, strerror(errno)); in mm_camera_open()
289 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c397 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
409 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
412 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_interface.c80 char *dev_name = NULL; in mm_camera_util_get_dev_name() local
82 dev_name = g_cam_ctrl.camera[cam_idx].video_dev_name; in mm_camera_util_get_dev_name()
83 return dev_name; in mm_camera_util_get_dev_name()
1112 char dev_name[32]; in camera_query() local
1113 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in camera_query()
1114 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in camera_query()
Dmm_camera.c268 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
277 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
282 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
295 __func__, dev_name, strerror(errno)); in mm_camera_open()
317 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c417 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
431 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
434 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/device/moto/shamu/camera/QCamera/HAL/usbcamcore/src/
DQualcommUsbCamera.cpp181 char *dev_name; in usbcam_camera_device_open() local
203 dev_name = camHal->dev_name; in usbcam_camera_device_open()
205 rc = get_uvc_device(dev_name); in usbcam_camera_device_open()
206 if(rc || *dev_name == '\0'){ in usbcam_camera_device_open()
211 camHal->fd = open(dev_name, O_RDWR /* required */ | O_NONBLOCK, 0); in usbcam_camera_device_open()
214 ALOGE("%s: Cannot open '%s'", __func__, dev_name); in usbcam_camera_device_open()