Lines Matching refs:bd_count
149 int bd_count = 0; in bnx2i_map_scsi_sg() local
162 bd[bd_count].buffer_addr_lo = addr & 0xffffffff; in bnx2i_map_scsi_sg()
163 bd[bd_count].buffer_addr_hi = addr >> 32; in bnx2i_map_scsi_sg()
164 bd[bd_count].buffer_length = sg_len; in bnx2i_map_scsi_sg()
165 bd[bd_count].flags = 0; in bnx2i_map_scsi_sg()
166 if (bd_count == 0) in bnx2i_map_scsi_sg()
167 bd[bd_count].flags = ISCSI_BD_FIRST_IN_BD_CHAIN; in bnx2i_map_scsi_sg()
170 bd_count++; in bnx2i_map_scsi_sg()
173 if (bd_count) in bnx2i_map_scsi_sg()
174 bd[bd_count - 1].flags |= ISCSI_BD_LAST_IN_BD_CHAIN; in bnx2i_map_scsi_sg()
177 return bd_count; in bnx2i_map_scsi_sg()
188 int bd_count; in bnx2i_iscsi_map_sg_list() local
190 bd_count = bnx2i_map_scsi_sg(cmd->conn->hba, cmd); in bnx2i_iscsi_map_sg_list()
191 if (!bd_count) { in bnx2i_iscsi_map_sg_list()
197 cmd->io_tbl.bd_valid = bd_count; in bnx2i_iscsi_map_sg_list()