Home
last modified time | relevance | path

Searched refs:wi (Results 1 – 15 of 15) sorted by relevance

/drivers/staging/lustre/lustre/libcfs/
Dworkitem.c123 cfs_wi_exit(struct cfs_wi_sched *sched, cfs_workitem_t *wi) in cfs_wi_exit() argument
130 LASSERT(wi->wi_running); in cfs_wi_exit()
131 if (wi->wi_scheduled) { /* cancel pending schedules */ in cfs_wi_exit()
132 LASSERT(!list_empty(&wi->wi_list)); in cfs_wi_exit()
133 list_del_init(&wi->wi_list); in cfs_wi_exit()
139 LASSERT(list_empty(&wi->wi_list)); in cfs_wi_exit()
141 wi->wi_scheduled = 1; /* LBUG future schedule attempts */ in cfs_wi_exit()
152 cfs_wi_deschedule(struct cfs_wi_sched *sched, cfs_workitem_t *wi) in cfs_wi_deschedule() argument
166 rc = !(wi->wi_running); in cfs_wi_deschedule()
168 if (wi->wi_scheduled) { /* cancel pending schedules */ in cfs_wi_deschedule()
[all …]
Dhash.c974 static int cfs_hash_rehash_worker(cfs_workitem_t *wi);
977 static int cfs_hash_dep_print(cfs_workitem_t *wi) in cfs_hash_dep_print() argument
979 struct cfs_hash *hs = container_of(wi, struct cfs_hash, hs_dep_wi); in cfs_hash_dep_print()
1876 cfs_hash_rehash_worker(cfs_workitem_t *wi) in cfs_hash_rehash_worker() argument
1878 struct cfs_hash *hs = container_of(wi, struct cfs_hash, hs_rehash_wi); in cfs_hash_rehash_worker()
1963 cfs_wi_exit(cfs_sched_rehash, wi); in cfs_hash_rehash_worker()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_workitem.h90 cfs_wi_init(cfs_workitem_t *wi, void *data, cfs_wi_action_t action) in cfs_wi_init() argument
92 INIT_LIST_HEAD(&wi->wi_list); in cfs_wi_init()
94 wi->wi_running = 0; in cfs_wi_init()
95 wi->wi_scheduled = 0; in cfs_wi_init()
96 wi->wi_data = data; in cfs_wi_init()
97 wi->wi_action = action; in cfs_wi_init()
100 void cfs_wi_schedule(struct cfs_wi_sched *sched, cfs_workitem_t *wi);
101 int cfs_wi_deschedule(struct cfs_wi_sched *sched, cfs_workitem_t *wi);
102 void cfs_wi_exit(struct cfs_wi_sched *sched, cfs_workitem_t *wi);
/drivers/video/fbdev/
Dleo.c451 struct fb_wid_item *wi; in leo_wid_put() local
460 for (i = 0, wi = wl->wl_list; i < wl->wl_count; i++, wi++) { in leo_wid_put()
461 switch (wi->wi_type) { in leo_wid_put()
463 j = (wi->wi_index & 0xf) + 0x40; in leo_wid_put()
467 j = wi->wi_index & 0x3f; in leo_wid_put()
474 sbus_writel(wi->wi_values[0], &lx_krn->krn_value); in leo_wid_put()
487 struct fb_wid_item wi; in leo_init_wids() local
491 wl.wl_list = &wi; in leo_init_wids()
492 wi.wi_type = FB_WID_DBL_8; in leo_init_wids()
493 wi.wi_index = 0; in leo_init_wids()
[all …]
/drivers/staging/lustre/lnet/selftest/
Drpc.c74 int srpc_handle_rpc(swi_workitem_t *wi);
247 int srpc_add_buffer(struct swi_workitem *wi);
520 srpc_add_buffer(struct swi_workitem *wi) in srpc_add_buffer() argument
522 struct srpc_service_cd *scd = wi->swi_workitem.wi_data; in srpc_add_buffer()
960 srpc_handle_rpc(swi_workitem_t *wi) in srpc_handle_rpc() argument
962 struct srpc_server_rpc *rpc = wi->swi_workitem.wi_data; in srpc_handle_rpc()
968 LASSERT(wi == &rpc->srpc_wi); in srpc_handle_rpc()
988 switch (wi->swi_state) { in srpc_handle_rpc()
1021 wi->swi_state = SWI_STATE_BULK_STARTED; in srpc_handle_rpc()
1047 wi->swi_state = SWI_STATE_REPLY_SUBMITTED; in srpc_handle_rpc()
[all …]
Dselftest.h442 int srpc_send_rpc(swi_workitem_t *wi);
464 swi_wi_action(cfs_workitem_t *wi) in swi_wi_action() argument
466 swi_workitem_t *swi = container_of(wi, swi_workitem_t, swi_workitem); in swi_wi_action()
482 swi_schedule_workitem(swi_workitem_t *wi) in swi_schedule_workitem() argument
484 cfs_wi_schedule(wi->swi_sched, &wi->swi_workitem); in swi_schedule_workitem()
Dframework.c942 sfw_run_test(swi_workitem_t *wi) in sfw_run_test() argument
944 sfw_test_unit_t *tsu = wi->swi_workitem.wi_data; in sfw_run_test()
948 LASSERT(wi == &tsu->tsu_worker); in sfw_run_test()
986 swi_exit_workitem(wi); in sfw_run_test()
994 swi_workitem_t *wi; in sfw_run_batch() local
1016 wi = &tsu->tsu_worker; in sfw_run_batch()
1017 swi_init_workitem(wi, tsu, sfw_run_test, in sfw_run_batch()
1020 swi_schedule_workitem(wi); in sfw_run_batch()
/drivers/md/persistent-data/
Ddm-array.c779 struct walk_info *wi = context; in walk_ablock() local
789 r = get_ablock(wi->info, le64_to_cpu(block_le), &block, &ab); in walk_ablock()
796 r = wi->fn(wi->context, keys[0] * max_entries + i, in walk_ablock()
797 element_at(wi->info, ab, i)); in walk_ablock()
803 unlock_ablock(wi->info, block); in walk_ablock()
811 struct walk_info wi; in dm_array_walk() local
813 wi.info = info; in dm_array_walk()
814 wi.fn = fn; in dm_array_walk()
815 wi.context = context; in dm_array_walk()
817 return dm_btree_walk(&info->btree_info, root, walk_ablock, &wi); in dm_array_walk()
/drivers/input/serio/
Dhp_sdc.c140 hp_sdc.wi = 0xff; in hp_sdc_status_out8()
494 if (hp_sdc.wi > 0x73 || hp_sdc.wi < 0x70 || in hp_sdc_put()
495 w7[hp_sdc.wi - 0x70] == hp_sdc.r7[hp_sdc.wi - 0x70]) { in hp_sdc_put()
504 hp_sdc.wi = 0x70 + i; in hp_sdc_put()
517 hp_sdc_data_out8(w7[hp_sdc.wi - 0x70]); in hp_sdc_put()
518 hp_sdc.r7[hp_sdc.wi - 0x70] = w7[hp_sdc.wi - 0x70]; in hp_sdc_put()
519 hp_sdc.wi++; /* write index register autoincrements */ in hp_sdc_put()
849 hp_sdc.wi = 0xff; in hp_sdc_init()
/drivers/video/fbdev/omap2/dss/
Ddispc.c2773 int dispc_wb_setup(const struct omap_dss_writeback_info *wi, in dispc_wb_setup() argument
2789 "rot %d, mir %d\n", wi->paddr, wi->p_uv_addr, in_width, in dispc_wb_setup()
2790 in_height, wi->width, wi->height, wi->color_mode, wi->rotation, in dispc_wb_setup()
2791 wi->mirror); in dispc_wb_setup()
2793 r = dispc_ovl_setup_common(plane, caps, wi->paddr, wi->p_uv_addr, in dispc_wb_setup()
2794 wi->buf_width, pos_x, pos_y, in_width, in_height, wi->width, in dispc_wb_setup()
2795 wi->height, wi->color_mode, wi->rotation, wi->mirror, zorder, in dispc_wb_setup()
2796 wi->pre_mult_alpha, global_alpha, wi->rotation_type, in dispc_wb_setup()
2799 switch (wi->color_mode) { in dispc_wb_setup()
Ddss.h416 int dispc_wb_setup(const struct omap_dss_writeback_info *wi,
/drivers/net/ethernet/brocade/bna/
Dbfi_enet.h108 } __packed wi; member
112 #define wi_hdr wi.base
113 #define wi_ext_hdr wi.ext
Dbnad.c2841 txqent->hdr.wi.vlan_tag = htons(vlan_tag); in bnad_txq_wi_prepare()
2851 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND); in bnad_txq_wi_prepare()
2852 txqent->hdr.wi.lso_mss = 0; in bnad_txq_wi_prepare()
2855 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND_LSO); in bnad_txq_wi_prepare()
2856 txqent->hdr.wi.lso_mss = htons(gso_size); in bnad_txq_wi_prepare()
2865 txqent->hdr.wi.l4_hdr_size_n_offset = in bnad_txq_wi_prepare()
2869 txqent->hdr.wi.opcode = htons(BNA_TXQ_WI_SEND); in bnad_txq_wi_prepare()
2870 txqent->hdr.wi.lso_mss = 0; in bnad_txq_wi_prepare()
2891 txqent->hdr.wi.l4_hdr_size_n_offset = in bnad_txq_wi_prepare()
2905 txqent->hdr.wi.l4_hdr_size_n_offset = in bnad_txq_wi_prepare()
[all …]
Dbna_hw_defs.h381 } wi; member
/drivers/acpi/
Dec.c162 u8 wi; member
548 if (t->wlen > t->wi) { in advance_transaction()
550 acpi_ec_write_data(ec, t->wdata[t->wi++]); in advance_transaction()
565 } else if (t->wlen == t->wi && in advance_transaction()
611 ec->curr->irq_count = ec->curr->wi = ec->curr->ri = 0; in start_transaction()