Home
last modified time | relevance | path

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

123

/hardware/qcom/audio/hal/audio_extn/
Dhwdep_cal.c70 char dev_name[256]; in hw_util_open() local
72 snprintf(dev_name, sizeof(dev_name), "/dev/snd/hwC%uD%u", in hw_util_open()
74 ALOGD("%s: Opening device %s\n", __func__, dev_name); in hw_util_open()
75 fd = open(dev_name, O_WRONLY); in hw_util_open()
77 ALOGE("%s: cannot open device '%s'\n", __func__, dev_name); in hw_util_open()
/hardware/invensense/6515/libsensors_iio/
DSensorBase.cpp48 SensorBase::SensorBase(const char* dev_name, in SensorBase() argument
50 : dev_name(dev_name), in SensorBase()
110 if (dev_fd<0 && dev_name) { in open_device()
111 dev_fd = open(dev_name, O_RDONLY); in open_device()
112 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
DSensorBase.h71 const char *dev_name;
87 SensorBase(const char* dev_name, const char* data_name);
DCompassSensor.IIO.primary.cpp57 if(!strcmp(dev_name, "USE_SYSFS")) { in CompassSensor()
70 if (fill_dev_full_name_by_prefix(dev_name, in CompassSensor()
73 "magnetometer will likely not work.", dev_name); in CompassSensor()
78 strncpy(dev_full_name, dev_name, in CompassSensor()
DCompassSensor.IIO.9150.cpp76 dev_name = sensor_name; in CompassSensor()
78 LOGI_IF(PROCESS_VERBOSE, "HAL:Secondary Chip Id: %s", dev_name); in CompassSensor()
408 inv_get_input_number(dev_name, &num); in inv_init_sysfs_attributes()
/hardware/invensense/65xx/libsensors_iio/
DSensorBase.cpp46 SensorBase::SensorBase(const char* dev_name, in SensorBase() argument
48 : dev_name(dev_name), in SensorBase()
104 if (dev_fd<0 && dev_name) { in open_device()
105 dev_fd = open(dev_name, O_RDONLY); in open_device()
106 LOGE_IF(dev_fd<0, "Couldn't open %s (%s)", dev_name, strerror(errno)); in open_device()
DSensorBase.h70 const char *dev_name;
86 SensorBase(const char* dev_name, const char* data_name);
DCompassSensor.IIO.primary.cpp57 if(!strcmp(dev_name, "USE_SYSFS")) { in CompassSensor()
70 if (fill_dev_full_name_by_prefix(dev_name, in CompassSensor()
73 "magnetometer will likely not work.", dev_name); in CompassSensor()
78 strncpy(dev_full_name, dev_name, in CompassSensor()
DCompassSensor.IIO.9150.cpp76 dev_name = sensor_name; in CompassSensor()
78 LOGI_IF(PROCESS_VERBOSE, "HAL:Secondary Chip Id: %s", dev_name); in CompassSensor()
379 inv_get_input_number(dev_name, &num); in inv_init_sysfs_attributes()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Iface.cpp74 memcpy(dev_name, in IPACM_Iface()
108 IPACMDBG("No rx properties registered for iface %s\n", dev_name); in handle_software_routing_enable()
243 IPACMDBG("No rx properties registered for iface %s\n", dev_name); in handle_software_routing_disable()
526 IPACMDBG_H("iface name %s\n", dev_name); in query_iface_property()
527 memcpy(iface_query->name, dev_name, sizeof(dev_name)); in query_iface_property()
547 memcpy(tx_prop->name, dev_name, sizeof(tx_prop->name)); in query_iface_property()
574 ((memcmp(dev_name, "wlan0", sizeof("wlan0")) == 0) || in query_iface_property()
575 (memcmp(dev_name, "wlan1", sizeof("wlan1")) == 0))) in query_iface_property()
598 memcpy(rx_prop->name, dev_name, in query_iface_property()
622 IPACMDBG_H(" Has rx/tx properties registered for iface %s, add for NATTING \n", dev_name); in query_iface_property()
[all …]
DIPACM_Netlink.cpp609 char dev_name[IF_NAME_LEN]={0}; in ipa_nl_decode_nlmsg() local
623 memset(dev_name,0,IF_NAME_LEN); in ipa_nl_decode_nlmsg()
655 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
672 …IPACMDBG_H("Interface %s bring up with IP-family: %d \n", dev_name, msg_ptr->nl_link_info.metainfo… in ipa_nl_decode_nlmsg()
680 …IPACMDBG_H("Interface %s bring down with IP-family: %d \n", dev_name, msg_ptr->nl_link_info.metain… in ipa_nl_decode_nlmsg()
707 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
713 …IPACMDBG("Got a usb link_up event (Interface %s, %d) \n", dev_name, msg_ptr->nl_link_info.metainfo… in ipa_nl_decode_nlmsg()
734 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
740 IPACMDBG_H("Got a usb link_down event (Interface %s) \n", dev_name); in ipa_nl_decode_nlmsg()
781 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
[all …]
DIPACM_LanToLan.cpp71 IPACMDBG_H("Interface %s is WLAN interface.\n", p_iface->dev_name); in IPACM_LanToLan_Iface()
75 IPACMDBG_H("Interface %s is guest AP.\n", p_iface->dev_name); in IPACM_LanToLan_Iface()
151 IPACMDBG_H("Interface name: %s IP type: %d\n", data->p_iface->dev_name, data->iptype); in handle_iface_up()
184 IPACMERR("The interface %s does not have tx_prop or rx_prop.\n", data->p_iface->dev_name); in handle_iface_up()
239 IPACMDBG_H("Interface name: %s\n", data->p_iface->dev_name); in handle_iface_down()
269 …te peer info between: new_iface %s, existing iface %s\n", new_iface->get_iface_pointer()->dev_name, in handle_new_iface_up()
270 exist_iface->get_iface_pointer()->dev_name); in handle_new_iface_up()
306 …ta->mac_addr[2], data->mac_addr[3], data->mac_addr[4], data->mac_addr[5], data->p_iface->dev_name); in handle_client_add()
340 …ta->mac_addr[2], data->mac_addr[3], data->mac_addr[4], data->mac_addr[5], data->p_iface->dev_name); in handle_client_del()
364 IPACMDBG_H("Incoming interface: %s\n", data->p_iface->dev_name); in handle_wlan_scc_mcc_switch()
[all …]
DIPACM_Config.cpp462 int IPACM_Config::AddNatIfaces(char *dev_name) in AddNatIfaces() argument
468 if(strncmp(dev_name, in AddNatIfaces()
472 IPACMDBG("Interface (%s) is add to nat iface already\n", dev_name); in AddNatIfaces()
478 dev_name, ipa_nat_iface_entries); in AddNatIfaces()
484 dev_name, IPA_IFACE_NAME_LEN); in AddNatIfaces()
494 int IPACM_Config::DelNatIfaces(char *dev_name) in DelNatIfaces() argument
498 dev_name, ipa_nat_iface_entries); in DelNatIfaces()
502 if (strcmp(dev_name, pNatIfaces[i].iface_name) == 0) in DelNatIfaces()
525 dev_name, ipa_nat_iface_entries); in DelNatIfaces()
529 int IPACM_Config::CheckNatIfaces(const char *dev_name) in CheckNatIfaces() argument
[all …]
DIPACM_OffloadManager.cpp237 …memcpy(event_cache[latest_cache_index].dev_name, downstream_name, sizeof(event_cache[latest_cache_… in addDownstream()
244 event_cache[latest_cache_index].dev_name, in addDownstream()
258 event_cache[latest_cache_index].dev_name, in addDownstream()
396 …memcpy(event_cache[latest_cache_index].dev_name, upstream_name, sizeof(event_cache[latest_cache_in… in setUpstream()
403 event_cache[latest_cache_index].dev_name, in setUpstream()
415 event_cache[latest_cache_index].dev_name, in setUpstream()
713 if (strncmp(event_cache[i].dev_name, in search_framwork_cache()
715 sizeof(event_cache[i].dev_name)) == 0) in search_framwork_cache()
DIPACM_IfaceManager.cpp291 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", lan->dev_name, lan->ipa_if_nu… in create_iface_instance()
314 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", ETH->dev_name, ETH->ipa_if_nu… in create_iface_instance()
340 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", odu->dev_name, odu->ipa_if_nu… in create_iface_instance()
356 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", odu->dev_name, odu->ipa_if_nu… in create_iface_instance()
407 …IPACMDBG_H("ipa_WLAN (%s):ipa_index (%d) instance open/registr ok\n", wl->dev_name, wl->ipa_if_num… in create_iface_instance()
459 … IPACMDBG_H("ipa_WAN (%s):ipa_index (%d) instance open/registr ok\n", w->dev_name, w->ipa_if_num); in create_iface_instance()
473 …IPACMDBG("ipa_WAN (%s):ipa_index (%d) instance open/registr ok\n", embms->dev_name, embms->ipa_if_… in create_iface_instance()
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Netlink.cpp609 char dev_name[IF_NAME_LEN]={0}; in ipa_nl_decode_nlmsg() local
623 memset(dev_name,0,IF_NAME_LEN); in ipa_nl_decode_nlmsg()
655 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
672 …IPACMDBG_H("Interface %s bring up with IP-family: %d \n", dev_name, msg_ptr->nl_link_info.metainfo… in ipa_nl_decode_nlmsg()
680 …IPACMDBG_H("Interface %s bring down with IP-family: %d \n", dev_name, msg_ptr->nl_link_info.metain… in ipa_nl_decode_nlmsg()
708 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
714 …IPACMDBG_H("Got a usb link_up event (Interface %s, %d) \n", dev_name, msg_ptr->nl_link_info.metain… in ipa_nl_decode_nlmsg()
716 if (!strncmp(dev_name,"rmnet_data",strlen("rmnet_data"))) in ipa_nl_decode_nlmsg()
741 ret_val = ipa_get_if_name(dev_name, msg_ptr->nl_link_info.metainfo.ifi_index); in ipa_nl_decode_nlmsg()
747 IPACMDBG_H("Got a usb link_down event (Interface %s) \n", dev_name); in ipa_nl_decode_nlmsg()
[all …]
DIPACM_Iface.cpp74 memcpy(dev_name, in IPACM_Iface()
110 IPACMDBG("No rx properties registered for iface %s\n", dev_name); in handle_software_routing_enable()
275 IPACMDBG("No rx properties registered for iface %s\n", dev_name); in handle_software_routing_disable()
597 IPACMDBG_H("iface name %s\n", dev_name); in query_iface_property()
598 memcpy(iface_query->name, dev_name, sizeof(dev_name)); in query_iface_property()
618 memcpy(tx_prop->name, dev_name, sizeof(tx_prop->name)); in query_iface_property()
645 ((memcmp(dev_name, "wlan0", sizeof("wlan0")) == 0) || in query_iface_property()
646 (memcmp(dev_name, "wlan1", sizeof("wlan1")) == 0))) in query_iface_property()
669 memcpy(rx_prop->name, dev_name, in query_iface_property()
711 …IPACMDBG_H(" NOT add producer dependency on dev %s with registered rx-prop cat:%d \n", dev_name, I… in init_fl_rule()
[all …]
DIPACM_OffloadManager.cpp275 memcpy(event_cache[latest_cache_index].dev_name, downstream_name, in addDownstream()
276 sizeof(event_cache[latest_cache_index].dev_name)); in addDownstream()
284 event_cache[latest_cache_index].dev_name, in addDownstream()
298 event_cache[latest_cache_index].dev_name, in addDownstream()
455 memcpy(event_cache[latest_cache_index].dev_name, upstream_name, in setUpstream()
456 sizeof(event_cache[latest_cache_index].dev_name)); in setUpstream()
465 event_cache[latest_cache_index].dev_name, in setUpstream()
477 event_cache[latest_cache_index].dev_name, in setUpstream()
819 if (strncmp(event_cache[i].dev_name, in search_framwork_cache()
821 sizeof(event_cache[i].dev_name)) == 0) in search_framwork_cache()
[all …]
DIPACM_Config.cpp486 int IPACM_Config::AddNatIfaces(char *dev_name, ipa_ip_type ip_type) in AddNatIfaces() argument
492 if(strncmp(dev_name, in AddNatIfaces()
496 IPACMDBG_H("Interface (%s) is add to nat iface already\n", dev_name); in AddNatIfaces()
510 dev_name, ipa_nat_iface_entries); in AddNatIfaces()
516 dev_name, IPA_IFACE_NAME_LEN); in AddNatIfaces()
533 int IPACM_Config::DelNatIfaces(char *dev_name) in DelNatIfaces() argument
537 dev_name, ipa_nat_iface_entries); in DelNatIfaces()
541 if (strcmp(dev_name, pNatIfaces[i].iface_name) == 0) in DelNatIfaces()
570 dev_name, ipa_nat_iface_entries); in DelNatIfaces()
574 int IPACM_Config::CheckNatIfaces(const char *dev_name, ipa_ip_type ip_type) in CheckNatIfaces() argument
[all …]
DIPACM_LanToLan.cpp75 IPACMDBG_H("Interface %s is WLAN interface.\n", p_iface->dev_name); in IPACM_LanToLan_Iface()
79 IPACMDBG_H("Interface %s is guest AP.\n", p_iface->dev_name); in IPACM_LanToLan_Iface()
248 IPACMDBG_H("Interface name: %s IP type: %d\n", data->p_iface->dev_name, data->iptype); in handle_iface_up()
281 IPACMERR("The interface %s does not have tx_prop or rx_prop.\n", data->p_iface->dev_name); in handle_iface_up()
360 IPACMDBG_H("Interface name: %s\n", data->p_iface->dev_name); in handle_iface_down()
411 …te peer info between: new_iface %s, existing iface %s\n", new_iface->get_iface_pointer()->dev_name, in handle_new_iface_up()
412 exist_iface->get_iface_pointer()->dev_name); in handle_new_iface_up()
451 …ta->mac_addr[2], data->mac_addr[3], data->mac_addr[4], data->mac_addr[5], data->p_iface->dev_name); in handle_client_add()
501 …ta->mac_addr[2], data->mac_addr[3], data->mac_addr[4], data->mac_addr[5], data->p_iface->dev_name); in handle_client_del()
525 IPACMDBG_H("Incoming interface: %s\n", data->p_iface->dev_name); in handle_wlan_scc_mcc_switch()
[all …]
DIPACM_IfaceManager.cpp300 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", lan->dev_name, lan->ipa_if_nu… in create_iface_instance()
323 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", ETH->dev_name, ETH->ipa_if_nu… in create_iface_instance()
349 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", odu->dev_name, odu->ipa_if_nu… in create_iface_instance()
365 …IPACMDBG_H("ipa_LAN (%s):ipa_index (%d) instance open/registr ok\n", odu->dev_name, odu->ipa_if_nu… in create_iface_instance()
431 …IPACMDBG_H("ipa_WLAN (%s):ipa_index (%d) instance open/registr ok\n", wl->dev_name, wl->ipa_if_num… in create_iface_instance()
505 … IPACMDBG_H("ipa_WAN (%s):ipa_index (%d) instance open/registr ok\n", w->dev_name, w->ipa_if_num); in create_iface_instance()
519 …IPACMDBG("ipa_WAN (%s):ipa_index (%d) instance open/registr ok\n", embms->dev_name, embms->ipa_if_… in create_iface_instance()
DIPACM_Wan.cpp167 memcpy(mtu_info->if_name, dev_name, IPA_IFACE_NAME_LEN); in IPACM_Wan()
216 …IPACMDBG_H("One extended property for iface %s, replace %d to Q6_MHI_WAN\n", dev_name, is_sta_mode… in IPACM_Wan()
262 IPACMDBG_H("dev %s add producer dependency\n", dev_name); in IPACM_Wan()
510 …/tx properties registered for iface %s, add for NATTING for ip-family %d \n", dev_name, IPA_IP_v6); in handle_addr_evt()
511 IPACM_Iface::ipacmcfg->AddNatIfaces(dev_name, IPA_IP_v6); in handle_addr_evt()
604 …IPACMDBG_H("Already setup device (%s) ipv4 and it didn't change(0x%x)\n", dev_name, data->ipv4_add… in handle_addr_evt()
609 IPACMDBG_H(" device (%s) ipv4 addr is changed\n", dev_name); in handle_addr_evt()
774 …/tx properties registered for iface %s, add for NATTING for ip-family %d \n", dev_name, IPA_IP_v4); in handle_addr_evt()
775 IPACM_Iface::ipacmcfg->AddNatIfaces(dev_name, IPA_IP_v4); in handle_addr_evt()
798 IPACMDBG_H(" check iface %s if having set_upstream cache events\n", dev_name); in handle_addr_evt()
[all …]
/hardware/qcom/camera/msm8998/usbcamcore/inc/
DQCameraUsbPriv.h101 camHal->fd = open(camHal->dev_name, O_RDWR | O_NONBLOCK, 0);\
155 char dev_name[FILENAME_LENGTH]; member
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/
DIPACM_Config.h233 int AddNatIfaces(char *dev_name);
235 int DelNatIfaces(char *dev_name);
237 int CheckNatIfaces(const char *dev_name);
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/inc/
DIPACM_Config.h240 int AddNatIfaces(char *dev_name, ipa_ip_type ip_type);
242 int DelNatIfaces(char *dev_name);
244 int CheckNatIfaces(const char *dev_name, ipa_ip_type ip_type);

123