Lines Matching defs:bytes

388 	/* ensure buf is aligned to 8 bytes */
647 const size_t bytes = sizeof(struct mcp_gen_header);
662 hdr = kmalloc(bytes, GFP_KERNEL);
666 memcpy_fromio(hdr, mgp->sram + hdr_offset, bytes);
771 * do not. Therefore the handoff copy must skip the first 8 bytes
919 size_t bytes;
935 * Use non-ndis mcp_slot (eg, 4 bytes total,
945 bytes = mgp->max_intr_slots * sizeof(*mgp->ss[0].rx_done.entry);
946 cmd.data0 = (u32) bytes;
1050 memset(ss->rx_done.entry, 0, bytes);
1181 int bytes, int watchdog)
1196 if (rx->page_offset + bytes <= MYRI10GE_ALLOC_SIZE) {
1236 rx->page_offset += SKB_DATA_ALIGN(bytes);
1240 end_offset = rx->page_offset + bytes - 1;
1256 struct myri10ge_rx_buffer_state *info, int bytes)
1259 if (bytes >= MYRI10GE_ALLOC_SIZE / 2 ||
1260 (info->page_offset + 2 * bytes) > MYRI10GE_ALLOC_SIZE) {
1313 int i, idx, remainder, bytes;
1320 bytes = mgp->small_bytes;
1323 bytes = mgp->big_bytes;
1335 myri10ge_unmap_rx_page(pdev, &rx->info[idx], bytes);
1346 myri10ge_unmap_rx_page(pdev, &rx->info[idx], bytes);
1944 size_t bytes;
1966 bytes = 8 + (MYRI10GE_MAX_SEND_DESC_TSO + 4)
1968 ss->tx.req_bytes = kzalloc(bytes, GFP_KERNEL);
1972 /* ensure req_list entries are aligned to 8 bytes */
1977 bytes = rx_ring_entries * sizeof(*ss->rx_small.shadow);
1978 ss->rx_small.shadow = kzalloc(bytes, GFP_KERNEL);
1982 bytes = rx_ring_entries * sizeof(*ss->rx_big.shadow);
1983 ss->rx_big.shadow = kzalloc(bytes, GFP_KERNEL);
1989 bytes = tx_ring_entries * sizeof(*ss->tx.info);
1990 ss->tx.info = kzalloc(bytes, GFP_KERNEL);
1994 bytes = rx_ring_entries * sizeof(*ss->rx_small.info);
1995 ss->rx_small.info = kzalloc(bytes, GFP_KERNEL);
1999 bytes = rx_ring_entries * sizeof(*ss->rx_big.info);
2000 ss->rx_big.info = kzalloc(bytes, GFP_KERNEL);
2534 * at most 32 bytes at a time, so as to avoid involving the software
2559 mb(); /* force write every 32 bytes */
2715 /* pad frames to at least ETH_ZLEN bytes */
3531 size_t bytes;
3540 bytes = mgp->max_intr_slots *
3542 dma_free_coherent(&pdev->dev, bytes,
3547 bytes = sizeof(*ss->fw_stats);
3548 dma_free_coherent(&pdev->dev, bytes,
3564 size_t bytes;
3567 bytes = sizeof(*mgp->ss) * mgp->num_slices;
3568 mgp->ss = kzalloc(bytes, GFP_KERNEL);
3575 bytes = mgp->max_intr_slots * sizeof(*ss->rx_done.entry);
3576 ss->rx_done.entry = dma_alloc_coherent(&pdev->dev, bytes,
3581 bytes = sizeof(*ss->fw_stats);
3582 ss->fw_stats = dma_alloc_coherent(&pdev->dev, bytes,
3799 dev_err(&pdev->dev, "ioremap failed for %ld bytes at 0x%lx\n",