Lines Matching refs:bd_count
1654 int bd_count = 0; in bnx2fc_map_sg() local
1672 bd_count); in bnx2fc_map_sg()
1676 bd[bd_count].buf_addr_lo = addr & 0xffffffff; in bnx2fc_map_sg()
1677 bd[bd_count].buf_addr_hi = addr >> 32; in bnx2fc_map_sg()
1678 bd[bd_count].buf_len = (u16)sg_len; in bnx2fc_map_sg()
1679 bd[bd_count].flags = 0; in bnx2fc_map_sg()
1681 bd_count += sg_frags; in bnx2fc_map_sg()
1688 return bd_count; in bnx2fc_map_sg()
1695 int bd_count; in bnx2fc_build_bd_list_from_sg() local
1698 bd_count = bnx2fc_map_sg(io_req); in bnx2fc_build_bd_list_from_sg()
1699 if (bd_count == 0) in bnx2fc_build_bd_list_from_sg()
1702 bd_count = 0; in bnx2fc_build_bd_list_from_sg()
1706 io_req->bd_tbl->bd_valid = bd_count; in bnx2fc_build_bd_list_from_sg()
1712 if (bd_count > BNX2FC_FW_MAX_BDS_PER_CMD) { in bnx2fc_build_bd_list_from_sg()
1714 bd_count, io_req->xid); in bnx2fc_build_bd_list_from_sg()