/drivers/scsi/aacraid/ |
D | dpcsup.c | 59 struct fib * fib; in aac_response_normal() local 75 fib = &dev->fibs[index >> 2]; in aac_response_normal() 76 hwfib = fib->hw_fib_va; in aac_response_normal() 89 if (unlikely(fib->flags & FIB_CONTEXT_FLAG_TIMED_OUT)) { in aac_response_normal() 91 aac_fib_complete(fib); in aac_response_normal() 92 aac_fib_free(fib); in aac_response_normal() 104 fib->flags |= FIB_CONTEXT_FLAG_FASTRESP; in aac_response_normal() 125 fib->flags &= FIB_CONTEXT_FLAG_FASTRESP; in aac_response_normal() 126 fib->callback(fib->callback_data, fib); in aac_response_normal() 129 spin_lock_irqsave(&fib->event_lock, flagv); in aac_response_normal() [all …]
|
D | commsup.c | 100 struct fib *fibptr = NULL; in aac_fib_vector_assign() 128 struct fib *fibptr; in aac_fib_setup() 165 fibptr->size = sizeof(struct fib); in aac_fib_setup() 205 struct fib *aac_fib_alloc_tag(struct aac_dev *dev, struct scsi_cmnd *scmd) in aac_fib_alloc_tag() 207 struct fib *fibptr; in aac_fib_alloc_tag() 230 struct fib *aac_fib_alloc(struct aac_dev *dev) in aac_fib_alloc() 232 struct fib * fibptr; in aac_fib_alloc() 246 fibptr->size = sizeof(struct fib); in aac_fib_alloc() 266 void aac_fib_free(struct fib *fibptr) in aac_fib_free() 293 void aac_fib_init(struct fib *fibptr) in aac_fib_init() [all …]
|
D | aachba.c | 320 struct fib *fibptr) { in aac_valid_context() 347 struct fib * fibptr; in aac_get_config_status() 441 struct fib * fibptr; in aac_get_containers() 503 static void get_container_name_callback(void *context, struct fib * fibptr) in get_container_name_callback() 552 struct fib * cmd_fibcontext; in aac_get_container_name() 600 static void _aac_probe_container2(void * context, struct fib * fibptr) in _aac_probe_container2() 651 static void _aac_probe_container1(void * context, struct fib * fibptr) in _aac_probe_container1() 706 struct fib * fibptr; in _aac_probe_container() 921 static void get_container_serial_callback(void *context, struct fib * fibptr) in get_container_serial_callback() 1032 struct fib * cmd_fibcontext; in aac_get_container_serial() [all …]
|
D | aacraid.h | 545 struct fib; 563 int (*adapter_deliver)(struct fib * fib); 565 int (*adapter_read)(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count); 566 int (*adapter_write)(struct fib * fib, struct scsi_cmnd * cmd, u64 lba, u32 count, int fua); 567 int (*adapter_scsi)(struct fib * fib, struct scsi_cmnd * cmd); 868 typedef void (*fib_callback)(void *ctxt, struct fib *fibctx); 935 struct fib { struct 1135 struct fib *fibs; 1137 struct fib *free_fib; 1243 struct fib *sync_fib; [all …]
|
D | src.c | 116 struct fib, in aac_src_intr_message() 457 static int aac_src_deliver_message(struct fib *fib) in aac_src_deliver_message() argument 459 struct aac_dev *dev = fib->dev; in aac_src_deliver_message() 468 u16 hdr_size = le16_to_cpu(fib->hw_fib_va->header.Size); in aac_src_deliver_message() 473 if (dev->msi_enabled && fib->hw_fib_va->header.Command != AifRequest && in aac_src_deliver_message() 475 vector_no = fib->vector_no; in aac_src_deliver_message() 476 fib->hw_fib_va->header.Handle += (vector_no << 16); in aac_src_deliver_message() 489 address = fib->hw_fib_pa; in aac_src_deliver_message() 490 fib->hw_fib_va->header.StructType = FIB_MAGIC2; in aac_src_deliver_message() 491 fib->hw_fib_va->header.SenderFibAddress = (u32)address; in aac_src_deliver_message() [all …]
|
D | commctrl.c | 63 struct fib *fibptr; in ioctl_send_fib() 253 struct fib *fib; in next_getadapter_fib() local 307 fib = list_entry(entry, struct fib, fiblink); in next_getadapter_fib() 310 if (copy_to_user(f.fib, fib->hw_fib_va, sizeof(struct hw_fib))) { in next_getadapter_fib() 311 kfree(fib->hw_fib_va); in next_getadapter_fib() 312 kfree(fib); in next_getadapter_fib() 318 kfree(fib->hw_fib_va); in next_getadapter_fib() 319 kfree(fib); in next_getadapter_fib() 352 struct fib *fib; in aac_close_fib_context() local 364 fib = list_entry(entry, struct fib, fiblink); in aac_close_fib_context() [all …]
|
D | linit.c | 553 struct fib * fib = &aac->fibs[count]; in aac_eh_abort() local 554 if (fib->hw_fib_va->header.XferState && in aac_eh_abort() 555 (fib->flags & FIB_CONTEXT_FLAG) && in aac_eh_abort() 556 (fib->callback_data == cmd)) { in aac_eh_abort() 557 fib->flags |= FIB_CONTEXT_FLAG_TIMED_OUT; in aac_eh_abort() 567 struct fib * fib = &aac->fibs[count]; in aac_eh_abort() local 568 if ((fib->hw_fib_va->header.XferState & cpu_to_le32(Async | NoResponseExpected)) && in aac_eh_abort() 569 (fib->flags & FIB_CONTEXT_FLAG) && in aac_eh_abort() 570 ((command = fib->callback_data)) && in aac_eh_abort() 572 fib->flags |= FIB_CONTEXT_FLAG_TIMED_OUT; in aac_eh_abort() [all …]
|
D | rx.c | 399 int aac_rx_deliver_producer(struct fib * fib) in aac_rx_deliver_producer() argument 401 struct aac_dev *dev = fib->dev; in aac_rx_deliver_producer() 406 aac_queue_get( dev, &Index, AdapNormCmdQueue, fib->hw_fib_va, 1, fib, &nointr); in aac_rx_deliver_producer() 422 static int aac_rx_deliver_message(struct fib * fib) in aac_rx_deliver_message() argument 424 struct aac_dev *dev = fib->dev; in aac_rx_deliver_message() 445 addr = fib->hw_fib_pa; in aac_rx_deliver_message() 450 writel(le16_to_cpu(fib->hw_fib_va->header.Size), device); in aac_rx_deliver_message()
|
D | comminit.c | 225 struct fib * fibctx; in aac_send_shutdown()
|
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 151 static int mlxsw_sp_fib_entry_insert(struct mlxsw_sp_fib *fib, in mlxsw_sp_fib_entry_insert() argument 157 err = rhashtable_insert_fast(&fib->ht, &fib_entry->ht_node, in mlxsw_sp_fib_entry_insert() 161 list_add_tail(&fib_entry->list, &fib->entry_list); in mlxsw_sp_fib_entry_insert() 162 if (fib->prefix_ref_count[prefix_len]++ == 0) in mlxsw_sp_fib_entry_insert() 163 mlxsw_sp_prefix_usage_set(&fib->prefix_usage, prefix_len); in mlxsw_sp_fib_entry_insert() 167 static void mlxsw_sp_fib_entry_remove(struct mlxsw_sp_fib *fib, in mlxsw_sp_fib_entry_remove() argument 172 if (--fib->prefix_ref_count[prefix_len] == 0) in mlxsw_sp_fib_entry_remove() 173 mlxsw_sp_prefix_usage_clear(&fib->prefix_usage, prefix_len); in mlxsw_sp_fib_entry_remove() 175 rhashtable_remove_fast(&fib->ht, &fib_entry->ht_node, in mlxsw_sp_fib_entry_remove() 180 mlxsw_sp_fib_entry_create(struct mlxsw_sp_fib *fib, const void *addr, in mlxsw_sp_fib_entry_create() argument [all …]
|
D | spectrum.h | 208 struct mlxsw_sp_fib *fib; member
|