/drivers/staging/lustre/lustre/obdclass/ |
D | llog_obd.c | 47 struct llog_ctxt *ctxt; in llog_new_ctxt() local 49 OBD_ALLOC_PTR(ctxt); in llog_new_ctxt() 50 if (!ctxt) in llog_new_ctxt() 53 ctxt->loc_obd = obd; in llog_new_ctxt() 54 atomic_set(&ctxt->loc_refcount, 1); in llog_new_ctxt() 56 return ctxt; in llog_new_ctxt() 59 static void llog_ctxt_destroy(struct llog_ctxt *ctxt) in llog_ctxt_destroy() argument 61 if (ctxt->loc_exp) { in llog_ctxt_destroy() 62 class_export_put(ctxt->loc_exp); in llog_ctxt_destroy() 63 ctxt->loc_exp = NULL; in llog_ctxt_destroy() [all …]
|
D | llog.c | 745 int llog_open_create(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_open_create() argument 753 rc = llog_open(env, ctxt, res, logid, name, LLOG_OPEN_NEW); in llog_open_create() 787 int llog_erase(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_erase() argument 797 rc = llog_open(env, ctxt, &handle, logid, name, LLOG_OPEN_EXISTS); in llog_erase() 853 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt, in llog_open() argument 860 LASSERT(ctxt); in llog_open() 861 LASSERT(ctxt->loc_logops); in llog_open() 863 if (ctxt->loc_logops->lop_open == NULL) { in llog_open() 871 (*lgh)->lgh_ctxt = ctxt; in llog_open() 872 (*lgh)->lgh_logops = ctxt->loc_logops; in llog_open() [all …]
|
D | llog_cat.c | 440 struct llog_ctxt *ctxt; in llog_cat_add() local 445 ctxt = cathandle->lgh_ctxt; in llog_cat_add() 446 LASSERT(ctxt); in llog_cat_add() 447 LASSERT(ctxt->loc_exp); in llog_cat_add() 450 dt = ctxt->loc_exp->exp_obd->obd_lvfs_ctxt.dt; in llog_cat_add()
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | llog_net.c | 55 int llog_initiator_connect(struct llog_ctxt *ctxt) in llog_initiator_connect() argument 59 LASSERT(ctxt); in llog_initiator_connect() 60 new_imp = ctxt->loc_obd->u.cli.cl_import; in llog_initiator_connect() 61 LASSERTF(ctxt->loc_imp == NULL || ctxt->loc_imp == new_imp, in llog_initiator_connect() 62 "%p - %p\n", ctxt->loc_imp, new_imp); in llog_initiator_connect() 63 mutex_lock(&ctxt->loc_mutex); in llog_initiator_connect() 64 if (ctxt->loc_imp != new_imp) { in llog_initiator_connect() 65 if (ctxt->loc_imp) in llog_initiator_connect() 66 class_import_put(ctxt->loc_imp); in llog_initiator_connect() 67 ctxt->loc_imp = class_import_get(new_imp); in llog_initiator_connect() [all …]
|
D | llog_client.c | 52 #define LLOG_CLIENT_ENTRY(ctxt, imp) do { \ argument 53 mutex_lock(&ctxt->loc_mutex); \ 54 if (ctxt->loc_imp) { \ 55 imp = class_import_get(ctxt->loc_imp); \ 60 ctxt->loc_idx); \ 62 mutex_unlock(&ctxt->loc_mutex); \ 65 mutex_unlock(&ctxt->loc_mutex); \ 68 #define LLOG_CLIENT_EXIT(ctxt, imp) do { \ argument 69 mutex_lock(&ctxt->loc_mutex); \ 70 if (ctxt->loc_imp != imp) \ [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_log.h | 132 int llog_open(const struct lu_env *env, struct llog_ctxt *ctxt, 136 int llog_is_empty(const struct lu_env *env, struct llog_ctxt *ctxt, 139 struct llog_ctxt *ctxt, struct llog_ctxt *bak_ctxt, 203 int __llog_ctxt_put(const struct lu_env *env, struct llog_ctxt *ctxt); 205 int llog_sync(struct llog_ctxt *ctxt, struct obd_export *exp, int flags); 206 int llog_cancel(const struct lu_env *env, struct llog_ctxt *ctxt, 210 int llog_initiator_connect(struct llog_ctxt *ctxt); 225 int (*lop_sync)(struct llog_ctxt *ctxt, struct obd_export *exp, 227 int (*lop_cleanup)(const struct lu_env *env, struct llog_ctxt *ctxt); 228 int (*lop_cancel)(const struct lu_env *env, struct llog_ctxt *ctxt, [all …]
|
/drivers/net/wireless/iwlwifi/mvm/ |
D | phy-ctxt.c | 127 static void iwl_mvm_phy_ctxt_cmd_hdr(struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_cmd_hdr() argument 133 cmd->id_and_color = cpu_to_le32(FW_CMD_ID_AND_COLOR(ctxt->id, in iwl_mvm_phy_ctxt_cmd_hdr() 134 ctxt->color)); in iwl_mvm_phy_ctxt_cmd_hdr() 189 struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_apply() argument 198 iwl_mvm_phy_ctxt_cmd_hdr(ctxt, &cmd, action, apply_time); in iwl_mvm_phy_ctxt_apply() 215 int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, in iwl_mvm_phy_ctxt_add() argument 220 ctxt->ref); in iwl_mvm_phy_ctxt_add() 223 ctxt->channel = chandef->chan; in iwl_mvm_phy_ctxt_add() 225 return iwl_mvm_phy_ctxt_apply(mvm, ctxt, chandef, in iwl_mvm_phy_ctxt_add() 234 void iwl_mvm_phy_ctxt_ref(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt) in iwl_mvm_phy_ctxt_ref() argument [all …]
|
D | Makefile | 2 iwlmvm-y += fw.o mac80211.o nvm.o ops.o phy-ctxt.o mac-ctxt.o
|
D | mvm.h | 890 int iwl_mvm_phy_ctxt_add(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, 893 int iwl_mvm_phy_ctxt_changed(struct iwl_mvm *mvm, struct iwl_mvm_phy_ctxt *ctxt, 897 struct iwl_mvm_phy_ctxt *ctxt); 899 struct iwl_mvm_phy_ctxt *ctxt);
|
/drivers/scsi/be2iscsi/ |
D | be_cmds.c | 953 void *ctxt = &req->context; in beiscsi_cmd_cq_create() local 967 ctxt, coalesce_wm); in beiscsi_cmd_cq_create() 968 AMAP_SET_BITS(struct amap_cq_context, nodelay, ctxt, no_delay); in beiscsi_cmd_cq_create() 969 AMAP_SET_BITS(struct amap_cq_context, count, ctxt, in beiscsi_cmd_cq_create() 971 AMAP_SET_BITS(struct amap_cq_context, valid, ctxt, 1); in beiscsi_cmd_cq_create() 972 AMAP_SET_BITS(struct amap_cq_context, solevent, ctxt, sol_evts); in beiscsi_cmd_cq_create() 973 AMAP_SET_BITS(struct amap_cq_context, eventable, ctxt, 1); in beiscsi_cmd_cq_create() 974 AMAP_SET_BITS(struct amap_cq_context, eqid, ctxt, eq->id); in beiscsi_cmd_cq_create() 975 AMAP_SET_BITS(struct amap_cq_context, armed, ctxt, 1); in beiscsi_cmd_cq_create() 976 AMAP_SET_BITS(struct amap_cq_context, func, ctxt, in beiscsi_cmd_cq_create() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_file_ops.c | 189 kinfo->spi_uregbase = (u64) dd->uregbase + dd->ureg_align * rcd->ctxt; in qib_get_base_info() 238 kinfo->spi_ctxt = rcd->ctxt; in qib_get_base_info() 304 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_update() 494 ctxttid = rcd->ctxt * dd->rcvtidcnt; in qib_tid_free() 684 dd->f_rcvctrl(rcd->ppd, rcvctrl_op, rcd->ctxt); in qib_manage_rcvq() 761 what, rcd->ctxt, pfn, len, ret); in qib_mmap_mem() 1040 ureg = dd->uregbase + dd->ureg_align * rcd->ctxt; in qib_mmapf() 1133 dd->f_rcvctrl(rcd->ppd, QIB_RCVCTRL_INTRAVAIL_ENB, rcd->ctxt); in qib_poll_next() 1304 static int setup_ctxt(struct qib_pportdata *ppd, int ctxt, in setup_ctxt() argument 1320 rcd = qib_create_ctxtdata(ppd, ctxt, numa_id); in setup_ctxt() [all …]
|
D | qib_tx.c | 135 unsigned ctxt; in find_ctxt() local 139 for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) { in find_ctxt() 140 rcd = dd->rcd[ctxt]; in find_ctxt() 461 unsigned ctxt; in qib_cancel_sends() local 473 for (ctxt = dd->first_user_ctxt; ctxt < dd->cfgctxts; ctxt++) { in qib_cancel_sends() 475 rcd = dd->rcd[ctxt]; in qib_cancel_sends()
|
D | qib_init.c | 177 struct qib_ctxtdata *qib_create_ctxtdata(struct qib_pportdata *ppd, u32 ctxt, in qib_create_ctxtdata() argument 190 rcd->ctxt = ctxt; in qib_create_ctxtdata() 191 dd->rcd[ctxt] = rcd; in qib_create_ctxtdata() 193 if (ctxt < dd->first_user_ctxt) { /* N/A for PSM contexts */ in qib_create_ctxtdata() 1353 int ctxt; in cleanup_device_data() local 1392 for (ctxt = 0; ctxt < dd->cfgctxts; ctxt++) { in cleanup_device_data() 1393 int ctxt_tidbase = ctxt * dd->rcvtidcnt; in cleanup_device_data() 1423 for (ctxt = 0; tmp && ctxt < dd->ctxtcnt; ctxt++) { in cleanup_device_data() 1424 struct qib_ctxtdata *rcd = tmp[ctxt]; in cleanup_device_data() 1426 tmp[ctxt] = NULL; /* debugging paranoia */ in cleanup_device_data() [all …]
|
D | qib_iba6120.c | 307 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument 315 dd->ureg_align * ctxt)); in qib_read_ureg32() 320 dd->ureg_align * ctxt)); in qib_read_ureg32() 333 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument 339 dd->ureg_align * ctxt); in qib_write_ureg() 344 dd->ureg_align * ctxt); in qib_write_ureg() 382 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument 385 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt() 1982 u32 ctxt; in qib_6120_clear_tids() local 1988 ctxt = rcd->ctxt; in qib_6120_clear_tids() [all …]
|
D | qib_iba7220.c | 230 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument 238 dd->ureg_align * ctxt)); in qib_read_ureg32() 243 dd->ureg_align * ctxt)); in qib_read_ureg32() 256 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument 263 dd->ureg_align * ctxt); in qib_write_ureg() 268 dd->ureg_align * ctxt); in qib_write_ureg() 282 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument 285 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt() 2224 u32 ctxt; in qib_7220_clear_tids() local 2230 ctxt = rcd->ctxt; in qib_7220_clear_tids() [all …]
|
D | qib_iba7322.c | 775 enum qib_ureg regno, int ctxt) in qib_read_ureg32() argument 780 (dd->ureg_align * ctxt) + (dd->userbase ? in qib_read_ureg32() 796 enum qib_ureg regno, int ctxt) in qib_read_ureg() argument 802 (dd->ureg_align * ctxt) + (dd->userbase ? in qib_read_ureg() 817 enum qib_ureg regno, u64 value, int ctxt) in qib_write_ureg() argument 823 dd->ureg_align * ctxt); in qib_write_ureg() 828 dd->ureg_align * ctxt); in qib_write_ureg() 885 const u16 regno, unsigned ctxt, in qib_write_kreg_ctxt() argument 888 qib_write_kreg(dd, regno + ctxt, value); in qib_write_kreg_ctxt() 2708 if (cspec->rhdr_cpu[rcd->ctxt] != cpu) { in qib_update_rhdrq_dca() [all …]
|
D | qib_ud.c | 399 unsigned ctxt = ppd->hw_pidx; in qib_lookup_pkey() local 404 for (i = 0; i < ARRAY_SIZE(dd->rcd[ctxt]->pkeys); ++i) in qib_lookup_pkey() 405 if ((dd->rcd[ctxt]->pkeys[i] & 0x7fff) == pkey) in qib_lookup_pkey()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.c | 1058 void *ctxt; in be_cmd_cq_create() local 1066 ctxt = &req->context; in be_cmd_cq_create() 1075 AMAP_SET_BITS(struct amap_cq_context_be, coalescwm, ctxt, in be_cmd_cq_create() 1078 ctxt, no_delay); in be_cmd_cq_create() 1079 AMAP_SET_BITS(struct amap_cq_context_be, count, ctxt, in be_cmd_cq_create() 1081 AMAP_SET_BITS(struct amap_cq_context_be, valid, ctxt, 1); in be_cmd_cq_create() 1082 AMAP_SET_BITS(struct amap_cq_context_be, eventable, ctxt, 1); in be_cmd_cq_create() 1083 AMAP_SET_BITS(struct amap_cq_context_be, eqid, ctxt, eq->id); in be_cmd_cq_create() 1093 ctxt, coalesce_wm); in be_cmd_cq_create() 1094 AMAP_SET_BITS(struct amap_cq_context_v2, nodelay, ctxt, in be_cmd_cq_create() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl_pf.c | 721 struct i40e_vsi_context ctxt; in i40e_enable_pf_switch_lb() local 724 ctxt.seid = pf->main_vsi_seid; in i40e_enable_pf_switch_lb() 725 ctxt.pf_num = pf->hw.pf_id; in i40e_enable_pf_switch_lb() 726 ctxt.vf_num = 0; in i40e_enable_pf_switch_lb() 727 aq_ret = i40e_aq_get_vsi_params(&pf->hw, &ctxt, NULL); in i40e_enable_pf_switch_lb() 734 ctxt.flags = I40E_AQ_VSI_TYPE_PF; in i40e_enable_pf_switch_lb() 735 ctxt.info.valid_sections = cpu_to_le16(I40E_AQ_VSI_PROP_SWITCH_VALID); in i40e_enable_pf_switch_lb() 736 ctxt.info.switch_id |= cpu_to_le16(I40E_AQ_VSI_SW_ID_FLAG_ALLOW_LB); in i40e_enable_pf_switch_lb() 738 aq_ret = i40e_aq_update_vsi_params(&vsi->back->hw, &ctxt, NULL); in i40e_enable_pf_switch_lb() 756 struct i40e_vsi_context ctxt; in i40e_disable_pf_switch_lb() local [all …]
|
D | i40e_main.c | 1474 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map() argument 1479 struct i40e_vsi_context *ctxt, in i40e_vsi_setup_queue_map() 1569 ctxt->info.tc_mapping[i] = cpu_to_le16(qmap); in i40e_vsi_setup_queue_map() 1579 ctxt->info.up_enable_bits = enabled_tc; in i40e_vsi_setup_queue_map() 1582 ctxt->info.mapping_flags |= in i40e_vsi_setup_queue_map() 1585 ctxt->info.queue_mapping[i] = in i40e_vsi_setup_queue_map() 1588 ctxt->info.mapping_flags |= in i40e_vsi_setup_queue_map() 1590 ctxt->info.queue_mapping[0] = cpu_to_le16(vsi->base_queue); in i40e_vsi_setup_queue_map() 1592 ctxt->info.valid_sections |= cpu_to_le16(sections); in i40e_vsi_setup_queue_map() 1952 struct i40e_vsi_context ctxt; in i40e_vlan_stripping_enable() local [all …]
|
D | i40e_fcoe.c | 376 int i40e_fcoe_vsi_init(struct i40e_vsi *vsi, struct i40e_vsi_context *ctxt) in i40e_fcoe_vsi_init() argument 378 struct i40e_aqc_vsi_properties_data *info = &ctxt->info; in i40e_fcoe_vsi_init() 390 ctxt->pf_num = hw->pf_id; in i40e_fcoe_vsi_init() 391 ctxt->vf_num = 0; in i40e_fcoe_vsi_init() 392 ctxt->uplink_seid = vsi->uplink_seid; in i40e_fcoe_vsi_init() 393 ctxt->connection_type = 0x1; in i40e_fcoe_vsi_init() 394 ctxt->flags = I40E_AQ_VSI_TYPE_PF; in i40e_fcoe_vsi_init() 408 i40e_vsi_setup_queue_map(vsi, ctxt, enabled_tc, true); in i40e_fcoe_vsi_init()
|
/drivers/staging/lustre/lustre/mgc/ |
D | mgc_request.c | 632 struct llog_ctxt *ctxt; in mgc_llog_init() local 642 ctxt = llog_get_context(obd, LLOG_CONFIG_REPL_CTXT); in mgc_llog_init() 643 LASSERT(ctxt); in mgc_llog_init() 645 llog_initiator_connect(ctxt); in mgc_llog_init() 646 llog_ctxt_put(ctxt); in mgc_llog_init() 653 struct llog_ctxt *ctxt; in mgc_llog_fini() local 655 ctxt = llog_get_context(obd, LLOG_CONFIG_REPL_CTXT); in mgc_llog_fini() 656 if (ctxt) in mgc_llog_fini() 657 llog_cleanup(env, ctxt); in mgc_llog_fini() 1468 struct llog_ctxt *ctxt; in mgc_process_cfg_log() local [all …]
|
/drivers/staging/lustre/lustre/mdc/ |
D | mdc_request.c | 1596 struct llog_ctxt *ctxt = NULL; in mdc_changelog_send_thread() local 1611 ctxt = llog_get_context(cs->cs_obd, LLOG_CHANGELOG_REPL_CTXT); in mdc_changelog_send_thread() 1612 if (ctxt == NULL) { in mdc_changelog_send_thread() 1616 rc = llog_open(NULL, ctxt, &llh, NULL, CHANGELOG_CATALOG, in mdc_changelog_send_thread() 1642 if (ctxt) in mdc_changelog_send_thread() 1643 llog_ctxt_put(ctxt); in mdc_changelog_send_thread() 2400 struct llog_ctxt *ctxt; in mdc_llog_init() local 2408 ctxt = llog_group_get_ctxt(olg, LLOG_CHANGELOG_REPL_CTXT); in mdc_llog_init() 2409 llog_initiator_connect(ctxt); in mdc_llog_init() 2410 llog_ctxt_put(ctxt); in mdc_llog_init() [all …]
|
/drivers/media/usb/pvrusb2/ |
D | pvrusb2-encoder.c | 141 static int pvr2_encoder_cmd(void *ctxt, in pvr2_encoder_cmd() argument 155 struct pvr2_hdw *hdw = (struct pvr2_hdw *)ctxt; in pvr2_encoder_cmd()
|
/drivers/xen/ |
D | xen-acpi-memhotplug.c | 376 u32 level, void *ctxt, void **retv) in acpi_memory_register_notify_handler() argument 392 u32 level, void *ctxt, void **retv) in acpi_memory_deregister_notify_handler() argument
|