Lines Matching refs:bd_count
1660 int bd_count = 0; in bnx2fc_map_sg() local
1678 bd_count); in bnx2fc_map_sg()
1682 bd[bd_count].buf_addr_lo = addr & 0xffffffff; in bnx2fc_map_sg()
1683 bd[bd_count].buf_addr_hi = addr >> 32; in bnx2fc_map_sg()
1684 bd[bd_count].buf_len = (u16)sg_len; in bnx2fc_map_sg()
1685 bd[bd_count].flags = 0; in bnx2fc_map_sg()
1687 bd_count += sg_frags; in bnx2fc_map_sg()
1694 return bd_count; in bnx2fc_map_sg()
1701 int bd_count; in bnx2fc_build_bd_list_from_sg() local
1704 bd_count = bnx2fc_map_sg(io_req); in bnx2fc_build_bd_list_from_sg()
1705 if (bd_count == 0) in bnx2fc_build_bd_list_from_sg()
1708 bd_count = 0; in bnx2fc_build_bd_list_from_sg()
1712 io_req->bd_tbl->bd_valid = bd_count; in bnx2fc_build_bd_list_from_sg()
1718 if (bd_count > BNX2FC_FW_MAX_BDS_PER_CMD) { in bnx2fc_build_bd_list_from_sg()
1720 bd_count, io_req->xid); in bnx2fc_build_bd_list_from_sg()