Lines Matching defs:buf

75 static int configure_memory(const unsigned char *buf, 
87 c = get_8(buf+len);
93 res->start = mem_parent->start + get_24(buf+len+2);
94 res->end = res->start + get_16(buf+len+5)*1024;
115 static int configure_irq(const unsigned char *buf)
124 c = get_8(buf+len);
146 static int configure_dma(const unsigned char *buf)
155 c = get_8(buf+len);
167 static int configure_port(const unsigned char *buf, struct resource *io_parent,
179 c = get_8(buf+len);
183 res->start = get_16(buf+len+1);
184 res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1;
209 static int configure_port_init(const unsigned char *buf)
216 c = get_8(buf+len);
223 outb((inb(get_16(buf+len+1) &
224 get_8(buf+len+3)) |
225 get_8(buf+len+4)), get_16(buf+len+1));
228 outb(get_8(buf+len+3), get_16(buf+len+1));
236 outw((inw(get_16(buf+len+1)) &
237 get_16(buf+len+3)) |
238 get_16(buf+len+5),
239 get_16(buf+len+1));
241 outw(cpu_to_le16(get_16(buf+len+3)), get_16(buf+len+1));
248 outl((inl(get_16(buf+len+1) &
249 get_32(buf+len+3)) |
250 get_32(buf+len+7)), get_16(buf+len+1));
252 outl(cpu_to_le32(get_32(buf+len+3)), get_16(buf+len+1));
274 static int configure_choise(const unsigned char *buf, u_int8_t *info)
282 len = get_8(buf);
283 *info=get_8(buf+len+1);
288 static int configure_type_string(const unsigned char *buf)
293 len = get_8(buf);
301 static int configure_function(const unsigned char *buf, int *more)
307 *more = get_16(buf);
313 const unsigned char *buf,
339 pos+=configure_function(buf+pos, &function_len);
346 pos += configure_choise(buf+pos, &flags);
370 pos += configure_type_string(buf+pos);
375 pos += configure_memory(buf+pos, mem_parent, board);
379 pos += configure_irq(buf+pos);
383 pos += configure_dma(buf+pos);
388 pos += configure_port(buf+pos, io_parent, board);
392 pos += configure_port_init(buf+pos);