Lines Matching full:pl
170 } *pl; in ql_qmi_qmap_mode_detect() local
172 pl = (typeof(pl)) malloc(sizeof(*pl)); in ql_qmi_qmap_mode_detect()
174 …snprintf(pl->linkname, sizeof(pl->linkname), "/sys/class/net/%s/device/driver", profile->usbnet_ad… in ql_qmi_qmap_mode_detect()
175 n = readlink(pl->linkname, pl->filename, sizeof(pl->filename)); in ql_qmi_qmap_mode_detect()
176 pl->filename[n] = '\0'; in ql_qmi_qmap_mode_detect()
177 while (pl->filename[n] != '/') in ql_qmi_qmap_mode_detect()
179 strncpy(profile->driver_name, &pl->filename[n+1], sizeof(profile->driver_name)); in ql_qmi_qmap_mode_detect()
198 …snprintf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/qmap_mode", profile->usbnet_adapte… in ql_qmi_qmap_mode_detect()
199 if (access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
201 dbg_time("fail to access %s, errno: %d (%s)", pl->filename, errno, strerror(errno)); in ql_qmi_qmap_mode_detect()
205 …snprintf(pl->filename, sizeof(pl->filename), "/sys/module/%s/parameters/qmap_mode", profile->drive… in ql_qmi_qmap_mode_detect()
206 if (access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
208 dbg_time("fail to access %s, errno: %d (%s)", pl->filename, errno, strerror(errno)); in ql_qmi_qmap_mode_detect()
212 …snprintf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/device/driver/module/parameters/qm… in ql_qmi_qmap_mode_detect()
213 if (access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
215 … dbg_time("fail to access %s, errno: %d (%s)", pl->filename, errno, strerror(errno)); in ql_qmi_qmap_mode_detect()
222 if (!access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
223 n = ql_fread(pl->filename, buf, sizeof(buf)); in ql_qmi_qmap_mode_detect()
239 snprintf(pl->filename, sizeof(pl->filename), "/sys/class/net/qmimux%d", profile->pdp - 1); in ql_qmi_qmap_mode_detect()
240 if (access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
242 dbg_time("fail to access %s, errno: %d (%s)", pl->filename, errno, strerror(errno)); in ql_qmi_qmap_mode_detect()
248 …snprintf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/qmi/add_mux", profile->usbnet_adap… in ql_qmi_qmap_mode_detect()
249 n = ql_fread(pl->filename, buf, sizeof(buf)); in ql_qmi_qmap_mode_detect()
306 …snprintf(pl->filename, sizeof(pl->filename), "/sys/class/net/%s/qmap_size", profile->usbnet_adapte… in ql_qmi_qmap_mode_detect()
307 if (!access(pl->filename, R_OK)) { in ql_qmi_qmap_mode_detect()
310 n = ql_fread(pl->filename, buf, sizeof(buf)); in ql_qmi_qmap_mode_detect()
325 free(pl); in ql_qmi_qmap_mode_detect()