/drivers/staging/lustre/lustre/ldlm/ |
H A D | ldlm_lib.c | 263 struct client_obd *cli = &obddev->u.cli; local 277 cli->cl_sp_me = LUSTRE_SP_CLI; 278 cli->cl_sp_to = LUSTRE_SP_OST; 285 cli->cl_sp_me = LUSTRE_SP_CLI; 286 cli->cl_sp_to = LUSTRE_SP_MDT; 292 cli->cl_sp_to = LUSTRE_SP_MDT; 298 cli->cl_sp_to = LUSTRE_SP_OST; 303 cli->cl_sp_me = LUSTRE_SP_CLI; 308 cli 495 struct client_obd *cli = &obd->u.cli; local 560 struct client_obd *cli; local [all...] |
/drivers/staging/lustre/lustre/osc/ |
H A D | lproc_osc.c | 51 rc = seq_printf(m, "%d\n", !dev->u.cli.cl_import->imp_deactive); 69 if (dev->u.cli.cl_import->imp_deactive == val) 70 rc = ptlrpc_set_import_active(dev->u.cli.cl_import, val); 81 struct client_obd *cli = &dev->u.cli; local 84 client_obd_list_lock(&cli->cl_loi_list_lock); 85 rc = seq_printf(m, "%u\n", cli->cl_max_rpcs_in_flight); 86 client_obd_list_unlock(&cli->cl_loi_list_lock); 94 struct client_obd *cli = &dev->u.cli; local 121 struct client_obd *cli = &dev->u.cli; local 137 struct client_obd *cli = &dev->u.cli; local 162 struct client_obd *cli = &dev->u.cli; local 182 struct client_obd *cli = &dev->u.cli; local 214 struct client_obd *cli = &dev->u.cli; local 227 struct client_obd *cli = &dev->u.cli; local 240 struct client_obd *cli = &obd->u.cli; local 272 struct client_obd *cli = &dev->u.cli; local 478 struct client_obd *cli = &dev->u.cli; local 574 struct client_obd *cli = &dev->u.cli; local 672 struct client_obd *cli = &dev->u.cli; local [all...] |
H A D | osc_quota.c | 45 int osc_quota_chkdq(struct client_obd *cli, const unsigned int qid[]) argument 52 oqi = cfs_hash_lookup(cli->cl_quota_hash[type], &qid[type]); 73 int osc_quota_setdq(struct client_obd *cli, const unsigned int qid[], argument 89 oqi = cfs_hash_lookup(cli->cl_quota_hash[type], &qid[type]); 102 rc = cfs_hash_add_unique(cli->cl_quota_hash[type], 111 cli->cl_import->imp_obd->obd_name, 120 oqi = cfs_hash_del_key(cli->cl_quota_hash[type], 126 cli->cl_import->imp_obd->obd_name, 207 struct client_obd *cli = &obd->u.cli; local 235 struct client_obd *cli = &obd->u.cli; local 288 struct client_obd *cli = &exp->exp_obd->u.cli; local 316 struct client_obd *cli = &exp->exp_obd->u.cli; local [all...] |
H A D | osc_page.c | 45 static void osc_lru_del(struct client_obd *cli, struct osc_page *opg, bool del); 46 static void osc_lru_add(struct client_obd *cli, struct osc_page *opg); 370 struct client_obd *cli = &osc_export(obj)->exp_obd->u.cli; local 393 cli->cl_r_in_flight, cli->cl_w_in_flight, 394 cli->cl_max_rpcs_in_flight, 395 cli->cl_avail_grant, 396 osc_list(&cli->cl_cache_waiters), 397 osc_list(&cli 598 osc_cache_too_much(struct client_obd *cli) argument 653 osc_lru_shrink(struct client_obd *cli, int target) argument 758 osc_lru_add(struct client_obd *cli, struct osc_page *opg) argument 782 osc_lru_del(struct client_obd *cli, struct osc_page *opg, bool del) argument 814 max_to_shrink(struct client_obd *cli) argument 819 osc_lru_reclaim(struct client_obd *cli) argument 877 struct client_obd *cli = osc_cli(obj); local [all...] |
H A D | osc_cache.c | 52 static void osc_ap_completion(const struct lu_env *env, struct client_obd *cli, 59 struct client_obd *cli, struct osc_object *osc); 60 static void osc_free_grant(struct client_obd *cli, unsigned int nr_pages, 591 struct client_obd *cli = osc_cli(obj); local 613 LASSERT(cli->cl_chunkbits >= PAGE_CACHE_SHIFT); 614 ppc_bits = cli->cl_chunkbits - PAGE_CACHE_SHIFT; 616 chunksize = 1 << cli->cl_chunkbits; 620 max_pages = cli->cl_max_pages_per_rpc; 638 LASSERTF(*grants >= chunksize + cli->cl_extent_tax, 639 "%u/%u/%u.\n", *grants, chunksize, cli 797 struct client_obd *cli = osc_cli(ext->oe_obj); local 915 struct client_obd *cli = osc_cli(obj); local 1104 struct client_obd *cli = osc_cli(obj); local 1312 osc_consume_write_grant(struct client_obd *cli, struct brw_page *pga) argument 1327 osc_release_write_grant(struct client_obd *cli, struct brw_page *pga) argument 1351 osc_reserve_grant(struct client_obd *cli, unsigned int bytes) argument 1363 __osc_unreserve_grant(struct client_obd *cli, unsigned int reserved, unsigned int unused) argument 1379 osc_unreserve_grant(struct client_obd *cli, unsigned int reserved, unsigned int unused) argument 1402 osc_free_grant(struct client_obd *cli, unsigned int nr_pages, unsigned int lost_grant) argument 1428 osc_exit_cache(struct client_obd *cli, struct osc_async_page *oap) argument 1439 osc_enter_cache_try(struct client_obd *cli, struct osc_async_page *oap, int bytes, int transient) argument 1467 ocw_granted(struct client_obd *cli, struct osc_cache_waiter *ocw) argument 1483 osc_enter_cache(const struct lu_env *env, struct client_obd *cli, struct osc_async_page *oap, int bytes) argument 1551 osc_wake_cache_waiters(struct client_obd *cli) argument 1583 osc_max_rpc_in_flight(struct client_obd *cli, struct osc_object *osc) argument 1592 osc_makes_rpc(struct client_obd *cli, struct osc_object *osc, int cmd) argument 1646 struct client_obd *cli = osc_cli(obj); local 1674 __osc_list_maint(struct client_obd *cli, struct osc_object *osc) argument 1696 osc_list_maint(struct client_obd *cli, struct osc_object *osc) argument 1732 osc_ap_completion(const struct lu_env *env, struct client_obd *cli, struct osc_async_page *oap, int sent, int rc) argument 1769 try_to_add_extent_for_io(struct client_obd *cli, struct osc_extent *ext, struct list_head *rpclist, int *pc, unsigned int *max_pages) argument 1820 struct client_obd *cli = osc_cli(obj); local 1881 osc_send_write_rpc(const struct lu_env *env, struct client_obd *cli, struct osc_object *osc, pdl_policy_t pol) argument 1953 osc_send_read_rpc(const struct lu_env *env, struct client_obd *cli, struct osc_object *osc, pdl_policy_t pol) argument 1997 osc_next_obj(struct client_obd *cli) argument 2027 osc_check_rpcs(const struct lu_env *env, struct client_obd *cli, pdl_policy_t pol) argument 2096 osc_io_unplug0(const struct lu_env *env, struct client_obd *cli, struct osc_object *osc, pdl_policy_t pol, int async) argument 2120 osc_io_unplug_async(const struct lu_env *env, struct client_obd *cli, struct osc_object *osc) argument 2127 osc_io_unplug(const struct lu_env *env, struct client_obd *cli, struct osc_object *osc, pdl_policy_t pol) argument 2168 struct client_obd *cli = oap->oap_cli; local 2449 struct client_obd *cli = osc_cli(obj); local 2505 struct client_obd *cli = osc_cli(obj); local 2564 struct client_obd *cli = osc_cli(obj); local [all...] |
H A D | osc_internal.h | 93 void osc_wake_cache_waiters(struct client_obd *cli); 94 int osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes); 95 void osc_update_next_shrink(struct client_obd *cli); 130 int osc_build_rpc(const struct lu_env *env, struct client_obd *cli, 132 int osc_lru_shrink(struct client_obd *cli, int target); 158 static inline unsigned long rpcs_in_flight(struct client_obd *cli) argument 160 return cli->cl_r_in_flight + cli->cl_w_in_flight; 199 int osc_quota_setdq(struct client_obd *cli, const unsigned int qid[], 201 int osc_quota_chkdq(struct client_obd *cli, cons [all...] |
H A D | osc_request.c | 695 struct client_obd *cli = &req->rq_import->imp_obd->u.cli; local 697 atomic_dec(&cli->cl_destroy_in_flight); 698 wake_up(&cli->cl_destroy_waitq); 702 static int osc_can_send_destroy(struct client_obd *cli) argument 704 if (atomic_inc_return(&cli->cl_destroy_in_flight) <= 705 cli->cl_max_rpcs_in_flight) { 709 if (atomic_dec_return(&cli->cl_destroy_in_flight) < 710 cli->cl_max_rpcs_in_flight) { 715 wake_up(&cli 759 struct client_obd *cli = &exp->exp_obd->u.cli; local 823 osc_announce_cached(struct client_obd *cli, struct obdo *oa, long writing_bytes) argument 868 osc_update_next_shrink(struct client_obd *cli) argument 876 __osc_update_grant(struct client_obd *cli, u64 grant) argument 883 osc_update_grant(struct client_obd *cli, struct ost_body *body) argument 899 struct client_obd *cli = &req->rq_import->imp_obd->u.cli; local 916 osc_shrink_grant_local(struct client_obd *cli, struct obdo *oa) argument 934 osc_shrink_grant(struct client_obd *cli) argument 947 osc_shrink_grant_to_target(struct client_obd *cli, __u64 target_bytes) argument 1052 osc_init_grant(struct client_obd *cli, struct obd_connect_data *ocd) argument 1245 osc_brw_prep_request(int cmd, struct client_obd *cli, struct obdo *oa, struct lov_stripe_md *lsm, u32 page_count, struct brw_page **pga, struct ptlrpc_request **reqp, struct obd_capa *ocapa, int reserve, int resend) argument 1501 struct client_obd *cli = aa->aa_cli; local 1765 struct client_obd *cli = aa->aa_cli; local 1866 osc_build_rpc(const struct lu_env *env, struct client_obd *cli, struct list_head *ext_list, int cmd, pdl_policy_t pol) argument 2911 struct client_obd *cli = &obd->u.cli; local 2928 struct client_obd *cli = &obd->u.cli; local 3004 struct client_obd *cli = &obd->u.cli; local 3056 struct client_obd *cli; local 3153 struct client_obd *cli = data; local 3164 struct client_obd *cli = &obd->u.cli; local 3235 struct client_obd *cli = &obd->u.cli; local 3261 struct client_obd *cli = &obd->u.cli; local [all...] |
/drivers/staging/lustre/lustre/include/ |
H A D | lustre_mdc.h | 151 struct client_obd *cli = &exp->exp_obd->u.cli; local 153 if (cli->cl_max_mds_easize < body->max_mdsize) { 154 cli->cl_max_mds_easize = body->max_mdsize; 155 cli->cl_default_mds_easize = 158 if (cli->cl_max_mds_cookiesize < body->max_cookiesize) { 159 cli->cl_max_mds_cookiesize = body->max_cookiesize; 160 cli->cl_default_mds_cookiesize =
|
/drivers/staging/lustre/lustre/mdc/ |
H A D | lproc_mdc.c | 45 struct client_obd *cli = &dev->u.cli; local 48 client_obd_list_lock(&cli->cl_loi_list_lock); 49 rc = seq_printf(m, "%u\n", cli->cl_max_rpcs_in_flight); 50 client_obd_list_unlock(&cli->cl_loi_list_lock); 61 struct client_obd *cli = &dev->u.cli; local 71 client_obd_list_lock(&cli->cl_loi_list_lock); 72 cli->cl_max_rpcs_in_flight = val; 73 client_obd_list_unlock(&cli [all...] |
H A D | mdc_lib.c | 535 static int mdc_req_avail(struct client_obd *cli, struct mdc_cache_waiter *mcw) argument 539 client_obd_list_lock(&cli->cl_loi_list_lock); 541 client_obd_list_unlock(&cli->cl_loi_list_lock); 545 /* We record requests in flight in cli->cl_r_in_flight here. 548 int mdc_enter_request(struct client_obd *cli) argument 554 client_obd_list_lock(&cli->cl_loi_list_lock); 555 if (cli->cl_r_in_flight >= cli->cl_max_rpcs_in_flight) { 556 list_add_tail(&mcw.mcw_entry, &cli->cl_cache_waiters); 558 client_obd_list_unlock(&cli 575 mdc_exit_request(struct client_obd *cli) argument [all...] |
H A D | mdc_request.c | 87 struct client_obd *cli = &req->rq_import->imp_obd->u.cli; local 93 rc = mdc_enter_request(cli); 98 mdc_exit_request(cli); 430 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); 435 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); 923 obd->u.cli.cl_default_mds_easize); 925 obd->u.cli.cl_default_mds_cookiesize); 929 mdc_get_rpc_lock(obd->u.cli.cl_close_lock, NULL); 931 mdc_put_rpc_lock(obd->u.cli 1689 struct client_obd *cli = &exp->exp_obd->u.cli; local 1718 struct client_obd *cli = &exp->exp_obd->u.cli; local 2313 struct client_obd *cli = &obd->u.cli; local 2353 struct client_obd *cli = &exp->exp_obd->u.cli; local 2361 struct client_obd *cli = &exp->exp_obd->u.cli; local 2426 struct client_obd *cli = &obd->u.cli; local 2484 struct client_obd *cli = &obd->u.cli; local 2523 struct client_obd *cli = &obd->u.cli; local [all...] |
/drivers/gpu/drm/nouveau/ |
H A D | nouveau_usif.c | 55 struct nouveau_cli *cli = nouveau_cli(filp); local 57 list_for_each_entry(ntfy, &cli->notifys, head) { 123 struct nouveau_cli *cli = nouveau_cli(f); local 124 struct nvif_client *client = &cli->base; 158 list_add(&ntfy->head, &cli->notifys); 167 struct nouveau_cli *cli = nouveau_cli(f); local 168 struct nvif_client *client = &cli->base; 190 struct nouveau_cli *cli = nouveau_cli(f); local 191 struct nvif_client *client = &cli->base; 229 struct nouveau_cli *cli local 266 struct nouveau_cli *cli = nouveau_cli(f); local 296 struct nouveau_cli *cli = nouveau_cli(filp); local 365 usif_client_fini(struct nouveau_cli *cli) argument 380 usif_client_init(struct nouveau_cli *cli) argument [all...] |
H A D | nouveau_gem.c | 54 struct nouveau_cli *cli = nouveau_cli(file_priv); local 59 if (!cli->vm) 66 vma = nouveau_bo_vma_find(nvbo, cli->vm); 74 ret = nouveau_bo_vma_add(nvbo, cli->vm, vma); 130 struct nouveau_cli *cli = nouveau_cli(file_priv); local 135 if (!cli->vm) 142 vma = nouveau_bo_vma_find(nvbo, cli->vm); 198 struct nouveau_cli *cli = nouveau_cli(file_priv); local 208 if (cli->vm) { 209 vma = nouveau_bo_vma_find(nvbo, cli 228 struct nouveau_cli *cli = nouveau_cli(file_priv); local 339 struct nouveau_cli *cli = nouveau_cli(file_priv); local 434 validate_list(struct nouveau_channel *chan, struct nouveau_cli *cli, struct list_head *list, struct drm_nouveau_gem_pushbuf_bo *pbbo, uint64_t user_pbbo_ptr) argument 501 struct nouveau_cli *cli = nouveau_cli(file_priv); local 559 nouveau_gem_pushbuf_reloc_apply(struct nouveau_cli *cli, struct drm_nouveau_gem_pushbuf *req, struct drm_nouveau_gem_pushbuf_bo *bo) argument 644 struct nouveau_cli *cli = nouveau_cli(file_priv); local [all...] |
H A D | nouveau_chan.c | 45 struct nouveau_cli *cli = (void *)nvif_client(chan->object); local 56 NV_PRINTK(error, cli, "failed to idle channel 0x%08x [%s]\n", 57 chan->object->handle, nvkm_client(&cli->base)->name); 90 struct nouveau_cli *cli = (void *)nvif_client(&device->base); local 129 ret = nouveau_bo_vma_add(chan->push.buffer, cli->vm, 139 args.limit = cli->vm->vmm->limit - 1; 283 struct nouveau_cli *cli = (void *)nvif_client(&device->base); local 298 args.limit = cli->vm->vmm->limit - 1; 316 args.limit = cli->vm->vmm->limit - 1; 390 save = cli 402 struct nouveau_cli *cli = (void *)nvif_client(&device->base); local [all...] |
H A D | nouveau_drm.c | 109 struct nouveau_cli *cli = *pcli = kzalloc(size, GFP_KERNEL); local 110 if (cli) { 113 &cli->base); 115 mutex_init(&cli->mutex); 116 usif_client_init(cli); 124 nouveau_cli_destroy(struct nouveau_cli *cli) argument 126 nouveau_vm_ref(NULL, &nvkm_client(&cli->base)->vm, NULL); 127 nvif_client_fini(&cli->base); 128 usif_client_fini(cli); 550 struct nouveau_cli *cli; local 640 struct nouveau_cli *cli; local 709 struct nouveau_cli *cli; local 756 struct nouveau_cli *cli = nouveau_cli(fpriv); local 773 struct nouveau_cli *cli = nouveau_cli(fpriv); local [all...] |
H A D | nouveau_abi16.c | 38 struct nouveau_cli *cli = nouveau_cli(file_priv); local 39 mutex_lock(&cli->mutex); 40 if (!cli->abi16) { 42 cli->abi16 = abi16 = kzalloc(sizeof(*abi16), GFP_KERNEL); 43 if (cli->abi16) { 54 if (nvif_device_init(&cli->base.base, NULL, 58 return cli->abi16; 60 kfree(cli->abi16); 61 cli->abi16 = NULL; 64 mutex_unlock(&cli 72 struct nouveau_cli *cli = (void *)nvif_client(&abi16->device.base); local 146 struct nouveau_cli *cli = (void *)nvif_client(&abi16->device.base); local 164 struct nouveau_cli *cli = nouveau_cli(file_priv); local 238 struct nouveau_cli *cli = nouveau_cli(file_priv); local [all...] |
/drivers/staging/lustre/lustre/fld/ |
H A D | fld_request.c | 63 static int fld_req_avail(struct client_obd *cli, struct mdc_cache_waiter *mcw) argument 67 client_obd_list_lock(&cli->cl_loi_list_lock); 69 client_obd_list_unlock(&cli->cl_loi_list_lock); 73 static void fld_enter_request(struct client_obd *cli) argument 78 client_obd_list_lock(&cli->cl_loi_list_lock); 79 if (cli->cl_r_in_flight >= cli->cl_max_rpcs_in_flight) { 80 list_add_tail(&mcw.mcw_entry, &cli->cl_cache_waiters); 82 client_obd_list_unlock(&cli->cl_loi_list_lock); 83 l_wait_event(mcw.mcw_waitq, fld_req_avail(cli, 90 fld_exit_request(struct client_obd *cli) argument [all...] |
/drivers/staging/lustre/lustre/ptlrpc/ |
H A D | sec_lproc.c | 79 struct client_obd *cli = &dev->u.cli; local 87 if (cli->cl_import) 88 sec = sptlrpc_import_sec_ref(cli->cl_import); 118 struct client_obd *cli = &dev->u.cli; local 125 if (cli->cl_import) 126 sec = sptlrpc_import_sec_ref(cli->cl_import);
|
H A D | llog_net.c | 60 new_imp = ctxt->loc_obd->u.cli.cl_import;
|
/drivers/i2c/busses/ |
H A D | i2c-nomadik.c | 161 * @cli: holder of client specific data. 178 struct i2c_nmk_client cli; member in struct:nmk_i2c_dev 289 dev->cli.operation = I2C_NO_OPERATION; 308 mcr |= GEN_MASK(dev->cli.slave_adr, I2C_MCR_A7, 1); 319 slave_adr_3msb_bits = (dev->cli.slave_adr >> 7) & 0x7; 331 if (dev->cli.operation == I2C_WRITE) 342 mcr |= GEN_MASK(dev->cli.count, I2C_MCR_LENGTH, 15); 485 dev->cli.slave_adr); 497 (dev->cli.count != 0); 500 writeb(*dev->cli [all...] |
/drivers/staging/lustre/lustre/fid/ |
H A D | fid_request.c | 111 mdc_get_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); 114 mdc_put_rpc_lock(exp->exp_obd->u.cli.cl_rpc_lock, NULL); 479 "cli-%s", prefix); 504 struct client_obd *cli = &obd->u.cli; local 508 OBD_ALLOC_PTR(cli->cl_seq); 509 if (cli->cl_seq == NULL) 518 snprintf(prefix, MAX_OBD_NAME + 5, "cli-%s", obd->obd_name); 521 rc = seq_client_init(cli->cl_seq, exp, type, prefix, NULL); 528 OBD_FREE_PTR(cli 536 struct client_obd *cli = &obd->u.cli; local [all...] |
H A D | lproc_fid.c | 203 struct client_obd *cli; local 209 cli = &seq->lcs_exp->exp_obd->u.cli; 210 rc = seq_printf(m, "%s\n", cli->cl_target_uuid.uuid);
|
/drivers/staging/lustre/lustre/llite/ |
H A D | llite_capa.c | 142 struct ll_inode_info *lli = ll_i2info(oc->u.cli.inode); 148 struct ll_inode_info *lli = ll_i2info(ocapa->u.cli.inode); 154 list_del_init(&ocapa->u.cli.lli_list); 211 !S_ISDIR(ocapa->u.cli.inode->i_mode) && 213 !ll_have_md_lock(ocapa->u.cli.inode, 233 inode = igrab(ocapa->u.cli.inode); 331 list_for_each_entry(ocapa, &lli->lli_oss_capas, u.cli.lli_list) { 402 ocapa->u.cli.inode = inode; 426 list_for_each_entry(ocapa, &lli->lli_oss_capas, u.cli.lli_list) { 450 list_for_each_entry(tmp, &lli->lli_oss_capas, u.cli [all...] |
/drivers/staging/lustre/lustre/lclient/ |
H A D | lcommon_misc.c | 98 struct client_obd *cli; local 103 cli = &watched->u.cli; 105 flags = cli->cl_import->imp_connect_data.ocd_connect_flags;
|
/drivers/video/backlight/ |
H A D | ili9320.h | 72 struct ili9320_client *cli);
|