Lines Matching refs:buf
25 char buf[DEBUGFS_FORMAT_BUFFER_SIZE]; in mac80211_format_buffer() local
29 res = vscnprintf(buf, sizeof(buf), fmt, args); in mac80211_format_buffer()
32 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in mac80211_format_buffer()
101 char *buf = kzalloc(mxln, GFP_KERNEL); in hwflags_read() local
104 if (!buf) in hwflags_read()
107 sf += scnprintf(buf, mxln - sf, "0x%x\n", local->hw.flags); in hwflags_read()
109 sf += scnprintf(buf + sf, mxln - sf, "HAS_RATE_CONTROL\n"); in hwflags_read()
111 sf += scnprintf(buf + sf, mxln - sf, "RX_INCLUDES_FCS\n"); in hwflags_read()
113 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
116 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
119 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
122 sf += scnprintf(buf + sf, mxln - sf, "SIGNAL_UNSPEC\n"); in hwflags_read()
124 sf += scnprintf(buf + sf, mxln - sf, "SIGNAL_DBM\n"); in hwflags_read()
126 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
129 sf += scnprintf(buf + sf, mxln - sf, "SPECTRUM_MGMT\n"); in hwflags_read()
131 sf += scnprintf(buf + sf, mxln - sf, "AMPDU_AGGREGATION\n"); in hwflags_read()
133 sf += scnprintf(buf + sf, mxln - sf, "SUPPORTS_PS\n"); in hwflags_read()
135 sf += scnprintf(buf + sf, mxln - sf, "PS_NULLFUNC_STACK\n"); in hwflags_read()
137 sf += scnprintf(buf + sf, mxln - sf, "SUPPORTS_DYNAMIC_PS\n"); in hwflags_read()
139 sf += scnprintf(buf + sf, mxln - sf, "MFP_CAPABLE\n"); in hwflags_read()
141 sf += scnprintf(buf + sf, mxln - sf, in hwflags_read()
144 sf += scnprintf(buf + sf, mxln - sf, "CONNECTION_MONITOR\n"); in hwflags_read()
146 sf += scnprintf(buf + sf, mxln - sf, "SUPPORTS_PER_STA_GTK\n"); in hwflags_read()
148 sf += scnprintf(buf + sf, mxln - sf, "AP_LINK_PS\n"); in hwflags_read()
150 sf += scnprintf(buf + sf, mxln - sf, "TX_AMPDU_SETUP_IN_HW\n"); in hwflags_read()
152 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in hwflags_read()
153 kfree(buf); in hwflags_read()
162 char buf[IEEE80211_MAX_QUEUES * 20]; in queues_read() local
167 res += sprintf(buf + res, "%02d: %#.8lx/%d\n", q, in queues_read()
172 return simple_read_from_buffer(user_buf, count, ppos, buf, res); in queues_read()
183 int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, in format_devstat_counter() argument
187 char buf[20]; in format_devstat_counter() local
195 res = printvalue(&stats, buf, sizeof(buf)); in format_devstat_counter()
196 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in format_devstat_counter()
201 char *buf, int buflen) \
203 return scnprintf(buf, buflen, "%u\n", stats->name); \