Home
last modified time | relevance | path

Searched refs:dev_name (Results 1 – 23 of 23) 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/lge/bullhead/dataservices/rmnetctl/inc/
Dlibrmnetctl.h213 const char *dev_name,
233 const char *dev_name,
256 const char *dev_name,
274 const char *dev_name,
297 const char *dev_name,
315 const char *dev_name,
322 const char *dev_name, in rmnet_set_link_ingress_data_format() argument
328 dev_name, in rmnet_set_link_ingress_data_format()
333 const char *dev_name, in rmnet_get_link_ingress_data_format() argument
338 dev_name, in rmnet_get_link_ingress_data_format()
[all …]
/device/huawei/angler/dataservices/rmnetctl/inc/
Dlibrmnetctl.h213 const char *dev_name,
233 const char *dev_name,
256 const char *dev_name,
274 const char *dev_name,
297 const char *dev_name,
315 const char *dev_name,
322 const char *dev_name, in rmnet_set_link_ingress_data_format() argument
328 dev_name, in rmnet_set_link_ingress_data_format()
333 const char *dev_name, in rmnet_get_link_ingress_data_format() argument
338 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/lge/bullhead/dataservices/rmnetctl/src/
Dlibrmnetctl.c215 static inline int _rmnetctl_check_dev_name(const char *dev_name) { in _rmnetctl_check_dev_name() argument
218 if (!dev_name) in _rmnetctl_check_dev_name()
220 if (strlen(dev_name) >= RMNET_MAX_STR_LEN) in _rmnetctl_check_dev_name()
381 const char *dev_name, in rmnet_associate_network_device() argument
389 if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) || in rmnet_associate_network_device()
402 str_len = strlcpy((char *)(request.data), dev_name, (size_t)RMNET_MAX_STR_LEN); in rmnet_associate_network_device()
417 const char *dev_name, in rmnet_get_network_device_associated() argument
425 _rmnetctl_check_dev_name(dev_name)) { in rmnet_get_network_device_associated()
433 str_len = strlcpy((char *)(request.data), dev_name, RMNET_MAX_STR_LEN); in rmnet_get_network_device_associated()
454 const char *dev_name, in rmnet_set_link_egress_data_format() argument
[all …]
/device/huawei/angler/dataservices/rmnetctl/src/
Dlibrmnetctl.c214 static inline int _rmnetctl_check_dev_name(const char *dev_name) { in _rmnetctl_check_dev_name() argument
217 if (!dev_name) in _rmnetctl_check_dev_name()
219 if (strlen(dev_name) >= RMNET_MAX_STR_LEN) in _rmnetctl_check_dev_name()
380 const char *dev_name, in rmnet_associate_network_device() argument
388 if ((!hndl) || (!error_code) || _rmnetctl_check_dev_name(dev_name) || in rmnet_associate_network_device()
401 str_len = strlcpy((char *)(request.data), dev_name, (size_t)RMNET_MAX_STR_LEN); in rmnet_associate_network_device()
416 const char *dev_name, in rmnet_get_network_device_associated() argument
424 _rmnetctl_check_dev_name(dev_name)) { in rmnet_get_network_device_associated()
432 str_len = strlcpy((char *)(request.data), dev_name, RMNET_MAX_STR_LEN); in rmnet_get_network_device_associated()
453 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/bullhead/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()
1390 char dev_name[32]; in get_sensor_info() local
1391 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_sensor_info()
1392 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info()
1549 char dev_name[32]; in get_num_of_cameras() local
1551 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1552 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
1588 snprintf(subdev_name, sizeof(dev_name), "/dev/%s", entity.name); in get_num_of_cameras()
[all …]
Dmm_camera.c250 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
283 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
285 sscanf(dev_name, "/dev/video%d", &cam_idx); in mm_camera_open()
286 CDBG("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
291 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
298 ALOGE("%s: Failed to open %s: %s(%d).", __func__, dev_name, in mm_camera_open()
310 __func__, dev_name, strerror(errno)); in mm_camera_open()
335 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c463 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
493 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
496 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/device/huawei/angler/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()
1390 char dev_name[32]; in get_sensor_info() local
1391 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_sensor_info()
1392 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_sensor_info()
1549 char dev_name[32]; in get_num_of_cameras() local
1551 snprintf(dev_name, sizeof(dev_name), "/dev/media%d", num_media_devices); in get_num_of_cameras()
1552 dev_fd = open(dev_name, O_RDWR | O_NONBLOCK); in get_num_of_cameras()
1588 snprintf(subdev_name, sizeof(dev_name), "/dev/%s", entity.name); in get_num_of_cameras()
[all …]
Dmm_camera.c250 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_camera_open() local
283 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_camera_open()
285 sscanf(dev_name, "/dev/video%d", &cam_idx); in mm_camera_open()
286 CDBG("%s: dev name = %s, cam_idx = %d", __func__, dev_name, cam_idx); in mm_camera_open()
291 my_obj->ctrl_fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_camera_open()
298 ALOGE("%s: Failed to open %s: %s(%d).", __func__, dev_name, in mm_camera_open()
310 __func__, dev_name, strerror(errno)); in mm_camera_open()
335 __func__, dev_name, strerror(errno)); in mm_camera_open()
Dmm_camera_stream.c463 char dev_name[MM_CAMERA_DEV_NAME_LEN]; in mm_stream_fsm_inited() local
493 snprintf(dev_name, sizeof(dev_name), "/dev/%s", in mm_stream_fsm_inited()
496 my_obj->fd = open(dev_name, O_RDWR | O_NONBLOCK); in mm_stream_fsm_inited()
/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/google/dragon/sensor_hub/
Dsensors.cpp430 char dev_name[IIO_MAX_NAME_LENGTH + 1]; in cros_ec_get_sensors_names() local
431 if (cros_ec_sysfs_get_attr(path_device, "name", dev_name)) in cros_ec_get_sensors_names()
446 if (!strcmp(cros_ec_sensor_names[i], dev_name)) { in cros_ec_get_sensors_names()
523 if (!strcmp(cros_ec_sensor_names[CROS_EC_RING], dev_name)) { in cros_ec_get_sensors_names()
530 if (!strncmp(trigger_name, dev_name, strlen(trigger_name))) { in cros_ec_get_sensors_names()
531 *ring_trigger_name = strdup(dev_name); in cros_ec_get_sensors_names()
/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()