Home
last modified time | relevance | path

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

12

/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.cpp36 const char* dev_name, in SensorBase() argument
38 : dev_name(dev_name) in SensorBase()
55 if (dev_fd<0 && dev_name) { in open_device()
56 dev_fd = open(dev_name, O_RDONLY); in open_device()
57 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()
1272 char dev_name[32]; in get_sensor_info() local
1274 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_sensor_info()
1275 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info()
1376 char dev_name[32]; in get_num_of_cameras() local
1378 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1379 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
1415 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()
257 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
270 __func__, dev_name, strerror(errno)); in mm_camera_open()
292 __func__, dev_name, strerror(errno)); in mm_camera_open()
/device/samsung/manta/libsensors/
DSensorBase.cpp39 const char* dev_name, in SensorBase() argument
41 : mDevName(dev_name), mDataName(data_name), in SensorBase()
44 ALOGV("%s(): dev_name=%s", __func__, dev_name); in SensorBase()
DIioSensorBase.cpp41 IioSensorBase::IioSensorBase(const char *dev_name, in IioSensorBase() argument
46 : SensorBase(dev_name, data_name), in IioSensorBase()
54 ALOGV("%s(): dev_name=%s", __func__, dev_name); in IioSensorBase()
DSensorBase.h43 SensorBase(const char* dev_name,
DIioSensorBase.h52 IioSensorBase(const char* dev_name,
/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/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()
/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()
255 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
268 __func__, dev_name, strerror(errno)); in mm_camera_open()
290 __func__, dev_name, strerror(errno)); in mm_camera_open()
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera_interface.c73 char *dev_name = NULL; in mm_camera_util_get_dev_name() local
75 dev_name = g_cam_ctrl.camera[cam_idx].video_dev_name; in mm_camera_util_get_dev_name()
76 return dev_name; in mm_camera_util_get_dev_name()
759 char dev_name[32]; in camera_query() local
760 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in camera_query()
761 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in camera_query()
Dmm_camera.c202 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
211 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
216 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
229 __func__, dev_name, strerror(errno)); in mm_camera_open()
251 __func__, dev_name, strerror(errno)); in mm_camera_open()
/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()
/device/lge/mako/camera/mm-camera-interface/
Dmm_camera_stream.c568 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_stream_fsm_notused() local
572 snprintf(dev_name, sizeof(dev_name), "/dev/%s", mm_camera_util_get_dev_name(my_obj)); in mm_camera_stream_fsm_notused()
574 __func__, dev_name, *((mm_camera_stream_type_t *)val)); in mm_camera_stream_fsm_notused()
575 stream->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_stream_fsm_notused()
Dmm_camera_interface2.c605 char dev_name[32]; in mm_camera_query() local
606 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in mm_camera_query()
607 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_query()
Dmm_camera.c957 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
975 snprintf(dev_name, sizeof(dev_name), "/dev/%s", mm_camera_util_get_dev_name(my_obj)); in mm_camera_open()
981 my_obj->ctrl_fd = open(dev_name,O_RDWR | O_NONBLOCK); in mm_camera_open()
1069 __func__, dev_name, my_obj->ctrl_fd, my_obj->op_mode, rc); in mm_camera_open()
/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()

12