Displaying 6 results from an estimated 6 matches for "cmpringnumpages".
2009 Sep 09
1
[PATCH] SCSI driver for VMware's virtual HBA - V4.
...hould be 0.
> + */
> +
> +typedef struct PVSCSICmdDescAbortCmd {
> + u64 context;
> + u32 target;
> + u32 _pad;
> +} __packed PVSCSICmdDescAbortCmd;
> +
> +/*
> + * Command descriptor for PVSCSI_CMD_SETUP_RINGS --
> + *
> + * Notes:
> + * - reqRingNumPages and cmpRingNumPages need to be power of two.
> + * - reqRingNumPages and cmpRingNumPages need to be different from 0,
> + * - reqRingNumPages and cmpRingNumPages need to be inferior to
> + * PVSCSI_SETUP_RINGS_MAX_NUM_PAGES.
> + */
> +
> +#define PVSCSI_SETUP_RINGS_MAX_NUM_PAGES 32
> +typ...
2009 Sep 09
1
[PATCH] SCSI driver for VMware's virtual HBA - V4.
...hould be 0.
> + */
> +
> +typedef struct PVSCSICmdDescAbortCmd {
> + u64 context;
> + u32 target;
> + u32 _pad;
> +} __packed PVSCSICmdDescAbortCmd;
> +
> +/*
> + * Command descriptor for PVSCSI_CMD_SETUP_RINGS --
> + *
> + * Notes:
> + * - reqRingNumPages and cmpRingNumPages need to be power of two.
> + * - reqRingNumPages and cmpRingNumPages need to be different from 0,
> + * - reqRingNumPages and cmpRingNumPages need to be inferior to
> + * PVSCSI_SETUP_RINGS_MAX_NUM_PAGES.
> + */
> +
> +#define PVSCSI_SETUP_RINGS_MAX_NUM_PAGES 32
> +typ...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...setup_all_rings(const struct pvscsi_adapter *adapter)
> +{
> + struct PVSCSICmdDescSetupRings cmd = { 0 };
> + dma_addr_t base;
> + unsigned i;
> +
> + cmd.ringsStatePPN = adapter->ringStatePA >> PAGE_SHIFT;
> + cmd.reqRingNumPages = adapter->req_pages;
> + cmd.cmpRingNumPages = adapter->cmp_pages;
> +
> + base = adapter->reqRingPA;
> + for (i = 0; i < adapter->req_pages; i++) {
> + cmd.reqRingPPNs[i] = base >> PAGE_SHIFT;
> + base += PAGE_SIZE;
> + }
> +
> + base = adapter->cmpRingPA;
> + for (i = 0; i < adapter->c...
2009 Sep 30
1
SCSI driver for VMware's virtual HBA - V5.
...setup_all_rings(const struct pvscsi_adapter *adapter)
> +{
> + struct PVSCSICmdDescSetupRings cmd = { 0 };
> + dma_addr_t base;
> + unsigned i;
> +
> + cmd.ringsStatePPN = adapter->ringStatePA >> PAGE_SHIFT;
> + cmd.reqRingNumPages = adapter->req_pages;
> + cmd.cmpRingNumPages = adapter->cmp_pages;
> +
> + base = adapter->reqRingPA;
> + for (i = 0; i < adapter->req_pages; i++) {
> + cmd.reqRingPPNs[i] = base >> PAGE_SHIFT;
> + base += PAGE_SIZE;
> + }
> +
> + base = adapter->cmpRingPA;
> + for (i = 0; i < adapter->c...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...+
+ return 0;
+}
+
+static void pvscsi_setup_all_rings(const struct pvscsi_adapter *adapter)
+{
+ struct PVSCSICmdDescSetupRings cmd = { 0 };
+ dma_addr_t base;
+ unsigned i;
+
+ cmd.ringsStatePPN = adapter->ringStatePA >> PAGE_SHIFT;
+ cmd.reqRingNumPages = adapter->req_pages;
+ cmd.cmpRingNumPages = adapter->cmp_pages;
+
+ base = adapter->reqRingPA;
+ for (i = 0; i < adapter->req_pages; i++) {
+ cmd.reqRingPPNs[i] = base >> PAGE_SHIFT;
+ base += PAGE_SIZE;
+ }
+
+ base = adapter->cmpRingPA;
+ for (i = 0; i < adapter->cmp_pages; i++) {
+ cmd.cmpRingPPNs[i] = base...
2009 Oct 13
1
SCSI driver for VMware's virtual HBA - V6.
...+
+ return 0;
+}
+
+static void pvscsi_setup_all_rings(const struct pvscsi_adapter *adapter)
+{
+ struct PVSCSICmdDescSetupRings cmd = { 0 };
+ dma_addr_t base;
+ unsigned i;
+
+ cmd.ringsStatePPN = adapter->ringStatePA >> PAGE_SHIFT;
+ cmd.reqRingNumPages = adapter->req_pages;
+ cmd.cmpRingNumPages = adapter->cmp_pages;
+
+ base = adapter->reqRingPA;
+ for (i = 0; i < adapter->req_pages; i++) {
+ cmd.reqRingPPNs[i] = base >> PAGE_SHIFT;
+ base += PAGE_SIZE;
+ }
+
+ base = adapter->cmpRingPA;
+ for (i = 0; i < adapter->cmp_pages; i++) {
+ cmd.cmpRingPPNs[i] = base...