| /OK3568_Linux_fs/app/forlinx/quectelCM/ |
| H A D | qmap_bridge_mode.c | 50 int ql_bridge_mode_detect(PROFILE_T *profile) { in ql_bridge_mode_detect() argument 51 …const char *ifname = profile->qmapnet_adapter[0] ? profile->qmapnet_adapter : profile->usbnet_adap… in ql_bridge_mode_detect() 60 driver = profile->driver_name; in ql_bridge_mode_detect() 90 …if (strstr(bridge_ipv4, "/sys/class/net/") || profile->qmap_mode == 0 || profile->qmap_mode == 1) { in ql_bridge_mode_detect() 91 snprintf(ipv4, sizeof(ipv4), "0x%x", profile->ipv4.Address); in ql_bridge_mode_detect() 96 snprintf(ipv4, sizeof(ipv4), "0x%x:%d", profile->ipv4.Address, profile->muxid); in ql_bridge_mode_detect() 104 int ql_enable_qmi_wwan_rawip_mode(PROFILE_T *profile) { in ql_enable_qmi_wwan_rawip_mode() argument 110 if (!qmidev_is_qmiwwan(profile->qmichannel)) in ql_enable_qmi_wwan_rawip_mode() 113 snprintf(filename, sizeof(filename), "/sys/class/net/%s/qmi/rawip", profile->usbnet_adapter); in ql_enable_qmi_wwan_rawip_mode() 140 int ql_driver_type_detect(PROFILE_T *profile) { in ql_driver_type_detect() argument [all …]
|
| H A D | main.c | 32 extern int ql_capture_usbmon_log(PROFILE_T *profile, const char *log_path); 33 extern void ql_stop_usbmon_log(PROFILE_T *profile); 41 static void usbnet_link_change(int link, PROFILE_T *profile) { in usbnet_link_change() argument 48 memset(&profile->ipv4, 0, sizeof(IPV4_T)); in usbnet_link_change() 51 memset(&profile->ipv6, 0, sizeof(IPV6_T)); in usbnet_link_change() 54 udhcpc_start(profile); in usbnet_link_change() 56 udhcpc_stop(profile); in usbnet_link_change() 60 static int check_ipv4_address(PROFILE_T *profile) { in check_ipv4_address() argument 61 uint32_t oldAddress = profile->ipv4.Address; in check_ipv4_address() 63 if (profile->request_ops == &mbim_request_ops) in check_ipv4_address() [all …]
|
| H A D | udhcpc_netlink.c | 48 void ql_set_driver_link_state(PROFILE_T *profile, int link_state) in ql_set_driver_link_state() argument 54 snprintf(link_file, sizeof(link_file), "/sys/class/net/%s/link_state", profile->usbnet_adapter); in ql_set_driver_link_state() 63 if (profile->qmap_mode <= 1) in ql_set_driver_link_state() 68 new_state = (link_state ? 0x00 : 0x80) + profile->pdp; in ql_set_driver_link_state() 74 if (link_state == 0 && profile->qmap_mode > 1) in ql_set_driver_link_state() 82 if_link_down(profile->usbnet_adapter); in ql_set_driver_link_state() 89 void udhcpc_start(PROFILE_T *profile) in udhcpc_start() argument 91 char *ifname = profile->usbnet_adapter; in udhcpc_start() 93 ql_set_driver_link_state(profile, 1); in udhcpc_start() 96 if (profile->qmapnet_adapter) in udhcpc_start() [all …]
|
| H A D | udhcpc.c | 183 void ql_set_driver_link_state(PROFILE_T *profile, int link_state) { in ql_set_driver_link_state() argument 188 snprintf(link_file, sizeof(link_file), "/sys/class/net/%s/link_state", profile->usbnet_adapter); in ql_set_driver_link_state() 196 if (profile->qmap_mode <= 1) in ql_set_driver_link_state() 200 new_state = (link_state ? 0x00 : 0x80) + (profile->muxid - 0x80); in ql_set_driver_link_state() 206 if (link_state == 0 && profile->qmapnet_adapter[0] in ql_set_driver_link_state() 207 && strcmp(profile->qmapnet_adapter, profile->usbnet_adapter)) { in ql_set_driver_link_state() 213 snprintf(link_file, sizeof(link_file), "ifconfig %s down", profile->usbnet_adapter); in ql_set_driver_link_state() 470 void udhcpc_start(PROFILE_T *profile) { in udhcpc_start() argument 471 char *ifname = profile->usbnet_adapter; in udhcpc_start() 474 ql_set_driver_link_state(profile, 1); in udhcpc_start() [all …]
|
| H A D | device.c | 260 BOOL qmidevice_detect(char *qmichannel, char *usbnet_adapter, unsigned bufsize, PROFILE_T *profile)… in qmidevice_detect() argument 286 query_usb_device_info(pl->path, &profile->usb_dev); in qmidevice_detect() 287 if (profile->usb_dev.idVendor == CM_INVALID_VAL) in qmidevice_detect() 290 if (profile->usb_dev.idVendor == 0x2c7c || profile->usb_dev.idVendor == 0x05c6) { in qmidevice_detect() 292 rootdir, ent->d_name, profile->usb_dev.idVendor, profile->usb_dev.idProduct, in qmidevice_detect() 293 profile->usb_dev.busnum, profile->usb_dev.devnum); in qmidevice_detect() 300 for (netIntf = 0; netIntf < (profile->usb_dev.bNumInterfaces + 8); netIntf++) { in qmidevice_detect() 318 query_usb_interface_info(pl->path, &profile->usb_intf); in qmidevice_detect() 332 query_usb_interface_info(pl->path, &profile->usb_intf); in qmidevice_detect() 333 driver_type = get_driver_type(profile); in qmidevice_detect() [all …]
|
| H A D | udhcpc_script.c | 79 void udhcpc_start(PROFILE_T *profile) in udhcpc_start() argument 97 profile->usbnet_adapter, in udhcpc_start() 98 profile->qmapnet_adapter ? profile->qmapnet_adapter : profile->usbnet_adapter, in udhcpc_start() 99 profile->ipv4.Mtu, in udhcpc_start() 100 ipaddr_to_string_v4(ntohl(profile->ipv4.Address), ip, sizeof(ip)), in udhcpc_start() 101 ipaddr_to_string_v4(ntohl(profile->ipv4.SubnetMask), subnet, sizeof(subnet)), in udhcpc_start() 102 … ipaddr_to_string_v4(ntohl(broadcast_from_mask(profile->ipv4.Address, profile->ipv4.SubnetMask)), in udhcpc_start() 104 ipaddr_to_string_v4(ntohl(profile->ipv4.Gateway), router, sizeof(router)), in udhcpc_start() 105 ipaddr_to_string_v4(ntohl(profile->ipv4.DnsPrimary), domain1, sizeof(domain1)), in udhcpc_start() 106 ipaddr_to_string_v4(ntohl(profile->ipv4.DnsSecondary), domain2, sizeof(domain2)), in udhcpc_start() [all …]
|
| H A D | QMIThread.h | 139 int (*init)(struct __PROFILE *profile); 271 extern void udhcpc_start(PROFILE_T *profile); 272 extern void udhcpc_stop(PROFILE_T *profile); 273 extern void ql_set_driver_link_state(PROFILE_T *profile, int link_state); 274 extern void ql_set_driver_qmap_setting(PROFILE_T *profile, QMAP_SETTING *qmap_settings); 275 extern void ql_get_driver_rmnet_info(PROFILE_T *profile, RMNET_INFO *rmnet_info); 281 int (*requestBaseBandVersion)(PROFILE_T *profile); 282 int (*requestSetEthMode)(PROFILE_T *profile); 286 int (*requestSetProfile)(PROFILE_T *profile) ; 287 int (*requestGetProfile)(PROFILE_T *profile); [all …]
|
| H A D | QMIThread.c | 182 PROFILE_T *profile = (PROFILE_T *)arg; in WdsStartNwInterfaceReq() local 183 const char *profile_user = profile->user; in WdsStartNwInterfaceReq() 184 const char *profile_password = profile->password; in WdsStartNwInterfaceReq() 185 int profile_auth = profile->auth; in WdsStartNwInterfaceReq() 207 if (profile->apn && !s_is_cdma) { //cdma no apn in WdsStartNwInterfaceReq() 210 pApnName->TLVLength = cpu_to_le16(strlen(profile->apn)); in WdsStartNwInterfaceReq() 211 qstrcpy((char *)&pApnName->ApnName, profile->apn); in WdsStartNwInterfaceReq() 246 pIpFamily->IpFamily = profile->curIpFamily; in WdsStartNwInterfaceReq() 250 if (profile->pdp && !s_is_cdma) { //cdma only support one pdp, so no need to set profile index in WdsStartNwInterfaceReq() 254 pProfileIndex->ProfileIndex = profile->pdp; in WdsStartNwInterfaceReq() [all …]
|
| H A D | QmiWwanCM.c | 200 static int QmiWwanInit(PROFILE_T *profile) { in QmiWwanInit() argument 205 if (profile->proxy[0] && !strcmp(profile->proxy, LIBQMI_PROXY)) { in QmiWwanInit() 206 ret = libqmi_proxy_open(profile->qmichannel); in QmiWwanInit() 211 if (!profile->proxy[0]) { in QmiWwanInit() 223 if (profile->qmap_mode) { in QmiWwanInit() 236 …profile->qmap_version = (pResponse->CTLMsg.GetVersionRsp.TypeVersion[NumElements].MinorVersion > 1… in QmiWwanInit() 243 if (profile->enable_ipv6) in QmiWwanInit() 249 profile->wda_client = qmiclientId[QMUX_TYPE_WDS_ADMIN]; in QmiWwanInit() 315 PROFILE_T *profile = (PROFILE_T *)pData; in QmiWwanThread() local 316 const char *cdc_wdm = (const char *)profile->qmichannel; in QmiWwanThread() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/infiniband/hw/mthca/ |
| H A D | mthca_profile.c | 79 struct mthca_resource *profile; in mthca_make_profile() local 82 profile = kcalloc(MTHCA_RES_NUM, sizeof(*profile), GFP_KERNEL); in mthca_make_profile() 83 if (!profile) in mthca_make_profile() 86 profile[MTHCA_RES_QP].size = dev_lim->qpc_entry_sz; in mthca_make_profile() 87 profile[MTHCA_RES_EEC].size = dev_lim->eec_entry_sz; in mthca_make_profile() 88 profile[MTHCA_RES_SRQ].size = dev_lim->srq_entry_sz; in mthca_make_profile() 89 profile[MTHCA_RES_CQ].size = dev_lim->cqc_entry_sz; in mthca_make_profile() 90 profile[MTHCA_RES_EQP].size = dev_lim->eqpc_entry_sz; in mthca_make_profile() 91 profile[MTHCA_RES_EEEC].size = dev_lim->eeec_entry_sz; in mthca_make_profile() 92 profile[MTHCA_RES_EQ].size = dev_lim->eqc_entry_sz; in mthca_make_profile() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | profile.c | 84 struct mlx4_resource *profile; in mlx4_make_profile() local 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile() 89 if (!profile) in mlx4_make_profile() 111 profile[MLX4_RES_QP].size = dev_cap->qpc_entry_sz; in mlx4_make_profile() 112 profile[MLX4_RES_RDMARC].size = dev_cap->rdmarc_entry_sz; in mlx4_make_profile() 113 profile[MLX4_RES_ALTC].size = dev_cap->altc_entry_sz; in mlx4_make_profile() 114 profile[MLX4_RES_AUXC].size = dev_cap->aux_entry_sz; in mlx4_make_profile() 115 profile[MLX4_RES_SRQ].size = dev_cap->srq_entry_sz; in mlx4_make_profile() 116 profile[MLX4_RES_CQ].size = dev_cap->cqc_entry_sz; in mlx4_make_profile() 117 profile[MLX4_RES_EQ].size = dev_cap->eqc_entry_sz; in mlx4_make_profile() [all …]
|
| /OK3568_Linux_fs/kernel/security/apparmor/ |
| H A D | domain.c | 97 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument 104 state = aa_dfa_match(profile->file.dfa, state, "&"); in match_component() 105 if (profile->ns == tp->ns) in match_component() 106 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component() 109 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 110 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component() 111 state = aa_dfa_match(profile->file.dfa, state, ns_name); in match_component() 112 state = aa_dfa_match_len(profile->file.dfa, state, ":", 1); in match_component() 113 return aa_dfa_match(profile->file.dfa, state, tp->base.hname); in match_component() 132 static int label_compound_match(struct aa_profile *profile, in label_compound_match() argument [all …]
|
| H A D | policy.c | 109 static void __add_profile(struct list_head *list, struct aa_profile *profile) in __add_profile() argument 114 AA_BUG(!profile); in __add_profile() 115 AA_BUG(!profile->ns); in __add_profile() 116 AA_BUG(!mutex_is_locked(&profile->ns->lock)); in __add_profile() 118 list_add_rcu(&profile->base.list, list); in __add_profile() 120 aa_get_profile(profile); in __add_profile() 121 l = aa_label_insert(&profile->ns->labels, &profile->label); in __add_profile() 122 AA_BUG(l != &profile->label); in __add_profile() 138 static void __list_remove_profile(struct aa_profile *profile) in __list_remove_profile() argument 140 AA_BUG(!profile); in __list_remove_profile() [all …]
|
| H A D | capability.c | 33 struct aa_profile *profile; member 64 static int audit_caps(struct common_audit_data *sa, struct aa_profile *profile, in audit_caps() argument 74 if (likely((AUDIT_MODE(profile) != AUDIT_ALL) && in audit_caps() 75 !cap_raised(profile->caps.audit, cap))) in audit_caps() 78 } else if (KILL_MODE(profile) || in audit_caps() 79 cap_raised(profile->caps.kill, cap)) { in audit_caps() 81 } else if (cap_raised(profile->caps.quiet, cap) && in audit_caps() 82 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_caps() 83 AUDIT_MODE(profile) != AUDIT_ALL) { in audit_caps() 90 if (profile == ent->profile && cap_raised(ent->caps, cap)) { in audit_caps() [all …]
|
| H A D | policy_unpack.c | 109 struct aa_profile *profile = labels_profile(aa_current_raw_label()); in audit_iface() local 121 return aa_audit(AUDIT_APPARMOR_STATUS, profile, &sa, audit_cb); in audit_iface() 477 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile) in unpack_trans_table() argument 489 profile->file.trans.table = kcalloc(size, sizeof(char *), in unpack_trans_table() 491 if (!profile->file.trans.table) in unpack_trans_table() 494 profile->file.trans.size = size; in unpack_trans_table() 503 profile->file.trans.table[i] = str; in unpack_trans_table() 541 aa_free_domain_entries(&profile->file.trans); in unpack_trans_table() 546 static bool unpack_xattrs(struct aa_ext *e, struct aa_profile *profile) in unpack_xattrs() argument 554 profile->xattr_count = size; in unpack_xattrs() [all …]
|
| H A D | mount.c | 130 static int audit_mount(struct aa_profile *profile, const char *op, in audit_mount() argument 142 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in audit_mount() 160 AUDIT_MODE(profile) != AUDIT_NOQUIET && in audit_mount() 161 AUDIT_MODE(profile) != AUDIT_ALL) in audit_mount() 178 return aa_audit(audit_type, profile, &sa, audit_cb); in audit_mount() 293 static int path_flags(struct aa_profile *profile, const struct path *path) in path_flags() argument 295 AA_BUG(!profile); in path_flags() 298 return profile->path_flags | in path_flags() 316 static int match_mnt_path_str(struct aa_profile *profile, in match_mnt_path_str() argument 326 AA_BUG(!profile); in match_mnt_path_str() [all …]
|
| H A D | net.c | 108 int aa_profile_af_perm(struct aa_profile *profile, struct common_audit_data *sa, in aa_profile_af_perm() argument 118 if (profile_unconfined(profile)) in aa_profile_af_perm() 120 state = PROFILE_MEDIATES(profile, AA_CLASS_NET); in aa_profile_af_perm() 126 state = aa_dfa_match_len(profile->policy.dfa, state, (char *) &buffer, in aa_profile_af_perm() 128 aa_compute_perms(profile->policy.dfa, state, &perms); in aa_profile_af_perm() 129 aa_apply_modes_to_perms(profile, &perms); in aa_profile_af_perm() 131 return aa_check_perms(profile, &perms, request, sa, audit_net_cb); in aa_profile_af_perm() 137 struct aa_profile *profile; in aa_af_perm() local 140 return fn_for_each_confined(label, profile, in aa_af_perm() 141 aa_profile_af_perm(profile, &sa, request, family, in aa_af_perm() [all …]
|
| H A D | file.c | 90 int aa_audit_file(struct aa_profile *profile, struct aa_perms *perms, in aa_audit_file() argument 111 if (unlikely(AUDIT_MODE(profile) == AUDIT_ALL)) in aa_audit_file() 130 AUDIT_MODE(profile) != AUDIT_NOQUIET && in aa_audit_file() 131 AUDIT_MODE(profile) != AUDIT_ALL) in aa_audit_file() 139 return aa_audit(type, profile, &sa, file_audit_cb); in aa_audit_file() 159 struct aa_profile *profile; in path_name() local 166 fn_for_each_confined(label, profile, in path_name() 167 aa_audit_file(profile, &nullperms, op, request, *name, in path_name() 266 int __aa_path_perm(const char *op, struct aa_profile *profile, const char *name, in __aa_path_perm() argument 272 if (profile_unconfined(profile)) in __aa_path_perm() [all …]
|
| H A D | ipc.c | 63 static int profile_ptrace_perm(struct aa_profile *profile, in profile_ptrace_perm() argument 70 aa_profile_match_label(profile, peer, AA_CLASS_PTRACE, request, in profile_ptrace_perm() 72 aa_apply_modes_to_perms(profile, &perms); in profile_ptrace_perm() 73 return aa_check_perms(profile, &perms, request, sa, audit_ptrace_cb); in profile_ptrace_perm() 121 struct aa_profile *profile; in aa_may_ptrace() local 125 return xcheck_labels(tracer, tracee, profile, in aa_may_ptrace() 126 profile_tracer_perm(profile, tracee, request, &sa), in aa_may_ptrace() 127 profile_tracee_perm(profile, tracer, xrequest, &sa)); in aa_may_ptrace() 187 static int profile_signal_perm(struct aa_profile *profile, in profile_signal_perm() argument 194 if (profile_unconfined(profile) || in profile_signal_perm() [all …]
|
| H A D | apparmorfs.c | 608 static void profile_query_cb(struct aa_profile *profile, struct aa_perms *perms, in profile_query_cb() argument 615 if (profile_unconfined(profile)) in profile_query_cb() 617 if (profile->file.dfa && *match_str == AA_CLASS_FILE) { in profile_query_cb() 618 dfa = profile->file.dfa; in profile_query_cb() 619 state = aa_dfa_match_len(dfa, profile->file.start, in profile_query_cb() 626 } else if (profile->policy.dfa) { in profile_query_cb() 627 if (!PROFILE_MEDIATES(profile, *match_str)) in profile_query_cb() 629 dfa = profile->policy.dfa; in profile_query_cb() 630 state = aa_dfa_match_len(dfa, profile->policy.start[0], in profile_query_cb() 635 aa_apply_modes_to_perms(profile, &tmp); in profile_query_cb() [all …]
|
| H A D | label.c | 317 struct aa_profile *profile; in aa_label_destroy() local 322 label_for_each(i, label, profile) { in aa_label_destroy() 323 aa_put_profile(profile); in aa_label_destroy() 1258 static inline bool label_is_visible(struct aa_profile *profile, in label_is_visible() argument 1261 return aa_ns_visible(profile->ns, labels_ns(label), true); in label_is_visible() 1269 static inline unsigned int match_component(struct aa_profile *profile, in match_component() argument 1275 if (profile->ns == tp->ns) in match_component() 1276 return aa_dfa_match(profile->policy.dfa, state, tp->base.hname); in match_component() 1279 ns_name = aa_ns_name(profile->ns, tp->ns, true); in match_component() 1280 state = aa_dfa_match_len(profile->policy.dfa, state, ":", 1); in match_component() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | ppatomfwctrl.c | 282 struct atom_asic_profiling_info_v4_1 *profile; in pp_atomfwctrl_get_avfs_information() local 286 profile = (struct atom_asic_profiling_info_v4_1 *) in pp_atomfwctrl_get_avfs_information() 290 if (!profile) in pp_atomfwctrl_get_avfs_information() 293 format_revision = ((struct atom_common_table_header *)profile)->format_revision; in pp_atomfwctrl_get_avfs_information() 294 content_revision = ((struct atom_common_table_header *)profile)->content_revision; in pp_atomfwctrl_get_avfs_information() 297 param->ulMaxVddc = le32_to_cpu(profile->maxvddc); in pp_atomfwctrl_get_avfs_information() 298 param->ulMinVddc = le32_to_cpu(profile->minvddc); in pp_atomfwctrl_get_avfs_information() 300 le32_to_cpu(profile->avfs_meannsigma_acontant0); in pp_atomfwctrl_get_avfs_information() 302 le32_to_cpu(profile->avfs_meannsigma_acontant1); in pp_atomfwctrl_get_avfs_information() 304 le32_to_cpu(profile->avfs_meannsigma_acontant2); in pp_atomfwctrl_get_avfs_information() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/devfreq/ |
| H A D | devfreq.c | 123 unsigned long *freq_table = devfreq->profile->freq_table; in get_freq_range() 133 if (freq_table[0] < freq_table[devfreq->profile->max_state - 1]) { in get_freq_range() 135 *max_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 137 *min_freq = freq_table[devfreq->profile->max_state - 1]; in get_freq_range() 168 for (lev = 0; lev < devfreq->profile->max_state; lev++) in devfreq_get_freq_level() 169 if (freq == devfreq->profile->freq_table[lev]) in devfreq_get_freq_level() 177 struct devfreq_dev_profile *profile = devfreq->profile; in set_freq_table() local 187 profile->max_state = count; in set_freq_table() 188 profile->freq_table = devm_kcalloc(devfreq->dev.parent, in set_freq_table() 189 profile->max_state, in set_freq_table() [all …]
|
| H A D | governor_passive.c | 50 if (!devfreq->profile || !devfreq->profile->freq_table in devfreq_passive_get_target_freq() 51 || devfreq->profile->max_state <= 0) in devfreq_passive_get_target_freq() 71 for (i = 0; i < parent_devfreq->profile->max_state; i++) in devfreq_passive_get_target_freq() 72 if (parent_devfreq->profile->freq_table[i] == *freq) in devfreq_passive_get_target_freq() 75 if (i == parent_devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 81 if (i < devfreq->profile->max_state) { in devfreq_passive_get_target_freq() 82 child_freq = devfreq->profile->freq_table[i]; in devfreq_passive_get_target_freq() 84 count = devfreq->profile->max_state; in devfreq_passive_get_target_freq() 85 child_freq = devfreq->profile->freq_table[count - 1]; in devfreq_passive_get_target_freq() 108 ret = devfreq->profile->target(devfreq->dev.parent, &freq, 0); in update_devfreq_passive() [all …]
|
| /OK3568_Linux_fs/kernel/Documentation/ABI/obsolete/ |
| H A D | sysfs-driver-hid-roccat-savu | 5 press of a button. A profile is split into general settings and 8 respective profile buttons to the mouse. The data has to be 11 Which profile to write is determined by the profile number 14 which profile to read. 21 profile will be read next. The data has to be 3 bytes long. 29 press of a button. A profile is split into general settings and 30 button settings. A profile holds information like resolution, 32 When written, this file lets one write the respective profile 35 Which profile to write is determined by the profile number 52 keystrokes for a specific button for a specific profile. [all …]
|