node-drivers/base-driver/drivers/vca/plx87xx/plx_main.c
static void
plx_device_init(struct plx_device *xdev, struct pci_dev *pdev)
{
	int i;
	xdev->pdev = pdev;
	xdev->irq_info.next_avail_src = 0;
	mutex_init(&xdev->mmio_lock);
	mutex_init(&xdev->reset_lock);
	mutex_lock(&xdev->reset_lock);
	xdev->reset_ts = INITIAL_JIFFIES - msecs_to_jiffies(RESET_GRACE_PERIOD_MS);
	for (i = 0; i < MAX_VCA_CARD_CPUS; ++i)
		xdev->power_ts[i] = INITIAL_JIFFIES - msecs_to_jiffies(POWER_GRACE_PERIOD_MS);
	mutex_unlock(&xdev->reset_lock);

}
/**
 * plx_device_init - Allocates and initializes the VCA device structure
 *
 * @xdev: pointer to plx_device instance
 * @pdev: The pci device structure
 *
 * returns none.
 */
Allocates and initializes the VCA device structure
@xdev: pointer to plx_device instance
@pdev: The pci device structure

returns none.
Allocates and initializes the VCA device structure @xdev : pointer to plx_device instance @pdev : The pci device structure returns none .
static void
plx_device_init(struct plx_device *xdev, struct pci_dev *pdev)
{
	int i;
	xdev->pdev = pdev;
	xdev->irq_info.next_avail_src = 0;
	mutex_init(&xdev->mmio_lock);
	mutex_init(&xdev->reset_lock);
	mutex_lock(&xdev->reset_lock);
	xdev->reset_ts = INITIAL_JIFFIES - msecs_to_jiffies(RESET_GRACE_PERIOD_MS);
	for (i = 0; i < MAX_VCA_CARD_CPUS; ++i)
		xdev->power_ts[i] = INITIAL_JIFFIES - msecs_to_jiffies(POWER_GRACE_PERIOD_MS);
	mutex_unlock(&xdev->reset_lock);
}
static void plx_device_init ( struct plx_device * xdev , struct pci_dev * pdev ) { int i ; xdev -> pdev = pdev ; xdev -> irq_info . next_avail_src = 0 ; mutex_init ( & xdev -> mmio_lock ) ; mutex_init ( & xdev -> reset_lock ) ; mutex_lock ( & xdev -> reset_lock ) ; xdev -> reset_ts = INITIAL_JIFFIES - msecs_to_jiffies ( RESET_GRACE_PERIOD_MS ) ; for ( i = 0 ; i < MAX_VCA_CARD_CPUS ; ++ i ) xdev -> power_ts [ i ] = INITIAL_JIFFIES - msecs_to_jiffies ( POWER_GRACE_PERIOD_MS ) ; mutex_unlock ( & xdev -> reset_lock ) ; }
plx_device_init - Allocates and initializes the VCA device structure
 @xdev: pointer to plx_device instance
 @pdev: The pci device structure
plx_device_init - Allocates and initializes the VCA device structure @xdev : pointer to plx_device instance @pdev : The pci device structure