Lines Matching refs:cfg_entry
174 if (RES_IS_VSET(temp->cfg_entry)) { in pmcraid_slave_alloc()
176 target = temp->cfg_entry.unique_flags1; in pmcraid_slave_alloc()
178 target = le16_to_cpu(temp->cfg_entry.array_id) & 0xFF; in pmcraid_slave_alloc()
184 } else if (RES_IS_GSCSI(temp->cfg_entry)) { in pmcraid_slave_alloc()
185 target = RES_TARGET(temp->cfg_entry.resource_address); in pmcraid_slave_alloc()
187 lun = RES_LUN(temp->cfg_entry.resource_address); in pmcraid_slave_alloc()
233 if (RES_IS_GSCSI(res->cfg_entry) && in pmcraid_slave_configure()
243 if (RES_IS_GSCSI(res->cfg_entry)) { in pmcraid_slave_configure()
245 } else if (RES_IS_VSET(res->cfg_entry)) { in pmcraid_slave_configure()
256 if (!RES_IS_GSCSI(res->cfg_entry) && !RES_IS_VSET(res->cfg_entry)) in pmcraid_slave_configure()
1535 struct pmcraid_config_table_entry *cfg_entry; in pmcraid_handle_config_change() local
1548 cfg_entry = &ccn_hcam->cfg_entry; in pmcraid_handle_config_change()
1561 RES_IS_VSET(*cfg_entry) ? PMCRAID_VSET_BUS_ID : in pmcraid_handle_config_change()
1562 (RES_IS_GSCSI(*cfg_entry) ? PMCRAID_PHYS_BUS_ID : in pmcraid_handle_config_change()
1563 RES_BUS(cfg_entry->resource_address)), in pmcraid_handle_config_change()
1564 RES_IS_VSET(*cfg_entry) ? in pmcraid_handle_config_change()
1566 cfg_entry->unique_flags1 : in pmcraid_handle_config_change()
1567 le16_to_cpu(cfg_entry->array_id) & 0xFF) : in pmcraid_handle_config_change()
1568 RES_TARGET(cfg_entry->resource_address), in pmcraid_handle_config_change()
1569 RES_LUN(cfg_entry->resource_address)); in pmcraid_handle_config_change()
1591 cfg_entry->resource_type == RES_TYPE_VSET) { in pmcraid_handle_config_change()
1592 hidden_entry = (cfg_entry->unique_flags1 & 0x80) != 0; in pmcraid_handle_config_change()
1593 } else if (!pmcraid_expose_resource(fw_version, cfg_entry)) { in pmcraid_handle_config_change()
1599 rc = memcmp(&res->cfg_entry.resource_address, in pmcraid_handle_config_change()
1600 &cfg_entry->resource_address, in pmcraid_handle_config_change()
1601 sizeof(cfg_entry->resource_address)); in pmcraid_handle_config_change()
1642 memcpy(&res->cfg_entry, cfg_entry, pinstance->config_table_entry_size); in pmcraid_handle_config_change()
1648 res->cfg_entry.unique_flags1 &= 0x7F; in pmcraid_handle_config_change()
1650 res->cfg_entry.array_id &= cpu_to_le16(0xFF); in pmcraid_handle_config_change()
1652 res->cfg_entry.resource_handle = in pmcraid_handle_config_change()
2511 if (RES_IS_GSCSI(res->cfg_entry)) in pmcraid_cancel_all()
2546 if (RES_IS_VSET(res->cfg_entry) && in pmcraid_frame_auto_sense()
2580 if (RES_IS_VSET(res->cfg_entry)) in pmcraid_frame_auto_sense()
2628 if (!RES_IS_GSCSI(res->cfg_entry) && in pmcraid_error_handler()
2690 if (RES_IS_GSCSI(res->cfg_entry)) in pmcraid_error_handler()
2761 le32_to_cpu(res->cfg_entry.resource_address)); in pmcraid_reset_device()
2773 ioarcb->resource_handle = res->cfg_entry.resource_handle; in pmcraid_reset_device()
3402 ioarcb->resource_handle = res->cfg_entry.resource_handle; in pmcraid_queuecommand_lck()
3414 if (RES_IS_GSCSI(res->cfg_entry) || RES_IS_VSET(res->cfg_entry)) { in pmcraid_queuecommand_lck()
3428 if (RES_IS_GSCSI(res->cfg_entry)) in pmcraid_queuecommand_lck()
3437 RES_IS_VSET(res->cfg_entry) ? PMCRAID_VSET_BUS_ID : in pmcraid_queuecommand_lck()
3439 RES_IS_VSET(res->cfg_entry) ? in pmcraid_queuecommand_lck()
3441 res->cfg_entry.unique_flags1 : in pmcraid_queuecommand_lck()
3442 le16_to_cpu(res->cfg_entry.array_id) & 0xFF) : in pmcraid_queuecommand_lck()
3443 RES_TARGET(res->cfg_entry.resource_address), in pmcraid_queuecommand_lck()
3444 RES_LUN(res->cfg_entry.resource_address)); in pmcraid_queuecommand_lck()
4350 res->cfg_entry.resource_address); in pmcraid_worker_function()
4374 &res->cfg_entry)) in pmcraid_worker_function()
4377 if (RES_IS_VSET(res->cfg_entry)) { in pmcraid_worker_function()
4380 target = res->cfg_entry.unique_flags1; in pmcraid_worker_function()
4382 target = le16_to_cpu(res->cfg_entry.array_id) & 0xFF; in pmcraid_worker_function()
4388 res->cfg_entry.resource_address); in pmcraid_worker_function()
4389 lun = RES_LUN(res->cfg_entry.resource_address); in pmcraid_worker_function()
5559 rc = memcmp(&res->cfg_entry.resource_address, in pmcraid_init_res_table()
5592 memcpy(&res->cfg_entry, cfgte, in pmcraid_init_res_table()
5595 res->cfg_entry.resource_type, in pmcraid_init_res_table()
5597 res->cfg_entry.unique_flags1 : in pmcraid_init_res_table()
5598 le16_to_cpu(res->cfg_entry.array_id) & 0xFF), in pmcraid_init_res_table()
5599 le32_to_cpu(res->cfg_entry.resource_address)); in pmcraid_init_res_table()
5608 res->cfg_entry.resource_handle = in pmcraid_init_res_table()