• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/mpt2sas/

Lines Matching refs:buffer_type

67 static int _ctl_send_release(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type,
1319 * @buffer_type: specifies either TRACE, SNAPSHOT, or EXTENDED
1324 _ctl_diag_capability(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type)
1328 switch (buffer_type) {
1364 u8 buffer_type;
1380 buffer_type = diag_register->buffer_type;
1381 if (!_ctl_diag_capability(ioc, buffer_type)) {
1383 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1387 if (ioc->diag_buffer_status[buffer_type] &
1390 "buffer for buffer_type(0x%02x)\n", ioc->name, __func__,
1391 buffer_type);
1415 request_data = ioc->diag_buffer[buffer_type];
1417 ioc->unique_id[buffer_type] = diag_register->unique_id;
1418 ioc->diag_buffer_status[buffer_type] = 0;
1419 memcpy(ioc->product_specific[buffer_type],
1421 ioc->diagnostic_flags[buffer_type] = diag_register->diagnostic_flags;
1424 request_data_dma = ioc->diag_buffer_dma[buffer_type];
1425 if (request_data_sz != ioc->diag_buffer_sz[buffer_type]) {
1427 ioc->diag_buffer_sz[buffer_type],
1434 ioc->diag_buffer_sz[buffer_type] = 0;
1435 ioc->diag_buffer_dma[buffer_type] = 0;
1445 ioc->diag_buffer[buffer_type] = request_data;
1446 ioc->diag_buffer_sz[buffer_type] = request_data_sz;
1447 ioc->diag_buffer_dma[buffer_type] = request_data_dma;
1451 mpi_request->BufferType = diag_register->buffer_type;
1465 cpu_to_le32(ioc->product_specific[buffer_type][i]);
1494 ioc->diag_buffer_status[buffer_type] |=
1538 diag_register.buffer_type = MPI2_DIAG_BUF_TYPE_TRACE;
1548 diag_register.buffer_type = MPI2_DIAG_BUF_TYPE_SNAPSHOT;
1558 diag_register.buffer_type = MPI2_DIAG_BUF_TYPE_EXTENDED;
1613 u8 buffer_type;
1626 buffer_type = karg.unique_id & 0x000000ff;
1627 if (!_ctl_diag_capability(ioc, buffer_type)) {
1629 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1633 if ((ioc->diag_buffer_status[buffer_type] &
1635 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) is not "
1636 "registered\n", ioc->name, __func__, buffer_type);
1639 if ((ioc->diag_buffer_status[buffer_type] &
1641 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) has not been "
1642 "released\n", ioc->name, __func__, buffer_type);
1646 if (karg.unique_id != ioc->unique_id[buffer_type]) {
1652 request_data = ioc->diag_buffer[buffer_type];
1655 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1659 request_data_sz = ioc->diag_buffer_sz[buffer_type];
1660 request_data_dma = ioc->diag_buffer_dma[buffer_type];
1663 ioc->diag_buffer[buffer_type] = NULL;
1664 ioc->diag_buffer_status[buffer_type] = 0;
1672 * The application will send only buffer_type and unique_id. Driver will
1683 u8 buffer_type;
1697 buffer_type = karg.buffer_type;
1699 if (!_ctl_diag_capability(ioc, buffer_type)) {
1701 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1705 if ((ioc->diag_buffer_status[buffer_type] &
1707 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) is not "
1708 "registered\n", ioc->name, __func__, buffer_type);
1713 if (karg.unique_id != ioc->unique_id[buffer_type]) {
1721 request_data = ioc->diag_buffer[buffer_type];
1724 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1728 if (ioc->diag_buffer_status[buffer_type] & MPT2_DIAG_BUFFER_IS_RELEASED)
1738 ioc->product_specific[buffer_type][i];
1740 karg.total_buffer_size = ioc->diag_buffer_sz[buffer_type];
1742 karg.unique_id = ioc->unique_id[buffer_type];
1743 karg.diagnostic_flags = ioc->diagnostic_flags[buffer_type];
1756 * @buffer_type - specifies either TRACE, SNAPSHOT, or EXTENDED
1761 _ctl_send_release(struct MPT2SAS_ADAPTER *ioc, u8 buffer_type, u8 *issue_reset)
1807 mpi_request->BufferType = buffer_type;
1839 ioc->diag_buffer_status[buffer_type] |=
1871 u8 buffer_type;
1885 buffer_type = karg.unique_id & 0x000000ff;
1886 if (!_ctl_diag_capability(ioc, buffer_type)) {
1888 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1892 if ((ioc->diag_buffer_status[buffer_type] &
1894 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) is not "
1895 "registered\n", ioc->name, __func__, buffer_type);
1899 if (karg.unique_id != ioc->unique_id[buffer_type]) {
1905 if (ioc->diag_buffer_status[buffer_type] &
1907 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) "
1909 buffer_type);
1913 request_data = ioc->diag_buffer[buffer_type];
1917 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1922 if ((ioc->diag_buffer_status[buffer_type] &
1924 ioc->diag_buffer_status[buffer_type] |=
1926 ioc->diag_buffer_status[buffer_type] &=
1928 printk(MPT2SAS_ERR_FMT "%s: buffer_type(0x%02x) "
1930 buffer_type);
1939 rc = _ctl_send_release(ioc, buffer_type, &issue_reset);
1964 u8 buffer_type;
1981 buffer_type = karg.unique_id & 0x000000ff;
1982 if (!_ctl_diag_capability(ioc, buffer_type)) {
1984 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
1988 if (karg.unique_id != ioc->unique_id[buffer_type]) {
1994 request_data = ioc->diag_buffer[buffer_type];
1997 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type);
2025 "buffer_type(0x%02x)\n", ioc->name, __func__, buffer_type));
2026 if ((ioc->diag_buffer_status[buffer_type] &
2029 "buffer_type(0x%02x) is still registered\n", ioc->name,
2030 __func__, buffer_type));
2062 mpi_request->BufferType = buffer_type;
2064 cpu_to_le32(ioc->diag_buffer_sz[buffer_type]);
2066 cpu_to_le64(ioc->diag_buffer_dma[buffer_type]);
2069 cpu_to_le32(ioc->product_specific[buffer_type][i]);
2100 ioc->diag_buffer_status[buffer_type] |=
2849 diag_register.buffer_type = MPI2_DIAG_BUF_TYPE_TRACE;