Lines Matching defs:buf
19 * @buf: buffer containing the command, must work with dma
22 int wl1251_cmd_send(struct wl1251 *wl, u16 id, void *buf, size_t len)
29 cmd = buf;
35 wl1251_mem_write(wl, wl->cmd_box_addr, buf, len);
65 * @buf: buffer containing the command, with all headers, must work with dma
69 int wl1251_cmd_test(struct wl1251 *wl, void *buf, size_t buf_len, u8 answer)
75 ret = wl1251_cmd_send(wl, CMD_TEST, buf, buf_len);
90 wl1251_mem_read(wl, wl->cmd_box_addr, buf, buf_len);
92 cmd_answer = buf;
107 * @buf: buffer for the response, including all headers, must work with dma
108 * @len: length of buf
110 int wl1251_cmd_interrogate(struct wl1251 *wl, u16 id, void *buf, size_t len)
112 struct acx_header *acx = buf;
129 wl1251_mem_read(wl, wl->cmd_box_addr, buf, len);
131 acx = buf;
145 * @buf: buffer containing acx, including all headers, must work with dma
146 * @len: length of buf
148 int wl1251_cmd_configure(struct wl1251 *wl, u16 id, void *buf, size_t len)
150 struct acx_header *acx = buf;
381 void *buf, size_t buf_len)
399 if (buf)
400 memcpy(cmd->data, buf, buf_len);