Lines Matching defs:buf
381 struct mcp_cmd *buf;
382 char buf_bytes[sizeof(*buf) + 8];
388 /* ensure buf is aligned to 8 bytes */
389 buf = (struct mcp_cmd *)ALIGN((unsigned long)buf_bytes, 8);
391 buf->data0 = htonl(data->data0);
392 buf->data1 = htonl(data->data1);
393 buf->data2 = htonl(data->data2);
394 buf->cmd = htonl(cmd);
398 buf->response_addr.low = htonl(dma_low);
399 buf->response_addr.high = htonl(dma_high);
402 myri10ge_pio_copy(cmd_addr, buf, sizeof(*buf));
511 __be32 buf[16] __attribute__ ((__aligned__(8)));
526 buf[0] = htonl(dma_high); /* confirm addr MSW */
527 buf[1] = htonl(dma_low); /* confirm addr LSW */
528 buf[2] = MYRI10GE_NO_CONFIRM_DATA; /* confirm data */
529 buf[3] = htonl(dma_high); /* dummy addr MSW */
530 buf[4] = htonl(dma_low); /* dummy addr LSW */
531 buf[5] = htonl(enable); /* enable? */
535 myri10ge_pio_copy(submit, &buf, sizeof(buf));
713 __be32 buf[16] __attribute__ ((__aligned__(8)));
765 buf[0] = htonl(dma_high); /* confirm addr MSW */
766 buf[1] = htonl(dma_low); /* confirm addr LSW */
767 buf[2] = MYRI10GE_NO_CONFIRM_DATA; /* confirm data */
773 buf[3] = htonl(MYRI10GE_FW_OFFSET + 8); /* where the code starts */
774 buf[4] = htonl(size - 8); /* length of code */
775 buf[5] = htonl(8); /* where to copy to */
776 buf[6] = htonl(0); /* where to jump to */
780 myri10ge_pio_copy(submit, &buf, sizeof(buf));