Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 650) sorted by relevance

12345678910>>...26

/drivers/input/joystick/
A Dwalkera0701.c85 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
87 val2 = (w->buf[2] & 1) << 8 | (w->buf[3] << 4) | w->buf[4]; in walkera0701_parse_frame()
89 val3 = ((w->buf[5] & 7) * 256 + w->buf[6] * 16 + w->buf[7]) >> 2; in walkera0701_parse_frame()
91 val4 = (w->buf[7] & 1) << 8 | (w->buf[8] << 4) | w->buf[9]; in walkera0701_parse_frame()
93 val5 = ((w->buf[11] & 7) * 256 + w->buf[12] * 16 + w->buf[13]) >> 2; in walkera0701_parse_frame()
95 val6 = (w->buf[13] & 1) << 8 | (w->buf[14] << 4) | w->buf[15]; in walkera0701_parse_frame()
99 val8 = (w->buf[18] & 1) << 8 | (w->buf[19] << 4) | w->buf[20]; in walkera0701_parse_frame()
130 w->irq_lasttime = w->irq_time; in walkera0701_irq_handler()
141 w->buf[w->counter] = 8; in walkera0701_irq_handler()
144 w->buf[w->counter] = 0; in walkera0701_irq_handler()
[all …]
/drivers/infiniband/hw/hfi1/
A Diowait.h309 w->iow->priority++; in iowait_get_desc()
343 w->priority = 0; in iowait_init_priority()
345 w->init_priority(w); in iowait_init_priority()
374 w->starved_cnt = 0; in iowait_queue()
376 w->starved_cnt++; in iowait_queue()
395 w->starved_cnt = 0; in iowait_starve_clear()
419 if (!w) in iowait_inc_wait_count()
421 w->iow->tx_count++; in iowait_inc_wait_count()
422 w->iow->count += n; in iowait_inc_wait_count()
449 if (likely(w)) in iowait_ioww_to_iow()
[all …]
A Diowait.c81 void iowait_cancel_work(struct iowait *w) in iowait_cancel_work() argument
83 cancel_work_sync(&iowait_get_ib_work(w)->iowork); in iowait_cancel_work()
85 if (iowait_get_tid_work(w)->iowork.func) in iowait_cancel_work()
86 cancel_work_sync(&iowait_get_tid_work(w)->iowork); in iowait_cancel_work()
93 int iowait_set_work_flag(struct iowait_work *w) in iowait_set_work_flag() argument
95 if (w == &w->iow->wait[IOWAIT_IB_SE]) { in iowait_set_work_flag()
96 iowait_set_flag(w->iow, IOWAIT_PENDING_IB); in iowait_set_work_flag()
99 iowait_set_flag(w->iow, IOWAIT_PENDING_TID); in iowait_set_work_flag()
114 uint iowait_priority_update_top(struct iowait *w, in iowait_priority_update_top() argument
121 cnt = (w->priority << IOWAIT_PRIORITY_STARVE_SHIFT) + w->starved_cnt; in iowait_priority_update_top()
/drivers/watchdog/
A Dbd96801_wdt.c170 struct device *dev = w->dev; in bd96801_set_wdt_mode()
337 struct wdtbd96801 *w; in bd96801_wdt_probe() local
341 w = devm_kzalloc(&pdev->dev, sizeof(*w), GFP_KERNEL); in bd96801_wdt_probe()
342 if (!w) in bd96801_wdt_probe()
346 w->dev = &pdev->dev; in bd96801_wdt_probe()
348 w->wdt.info = &bd96801_wdt_info; in bd96801_wdt_probe()
349 w->wdt.ops = &bd96801_wdt_ops; in bd96801_wdt_probe()
350 w->wdt.parent = pdev->dev.parent; in bd96801_wdt_probe()
352 watchdog_set_drvdata(&w->wdt, w); in bd96801_wdt_probe()
374 ret = init_wdg_hw(w); in bd96801_wdt_probe()
[all …]
A Dmt7621_wdt.c57 static int mt7621_wdt_ping(struct watchdog_device *w) in mt7621_wdt_ping() argument
59 struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w); in mt7621_wdt_ping()
68 struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w); in mt7621_wdt_set_timeout()
70 w->timeout = t; in mt7621_wdt_set_timeout()
72 mt7621_wdt_ping(w); in mt7621_wdt_set_timeout()
77 static int mt7621_wdt_start(struct watchdog_device *w) in mt7621_wdt_start() argument
79 struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w); in mt7621_wdt_start()
85 mt7621_wdt_set_timeout(w, w->timeout); in mt7621_wdt_start()
94 static int mt7621_wdt_stop(struct watchdog_device *w) in mt7621_wdt_stop() argument
96 struct mt7621_wdt_data *drvdata = watchdog_get_drvdata(w); in mt7621_wdt_stop()
[all …]
/drivers/net/wireless/mediatek/mt76/
A Dutil.h66 w->fn = fn; in mt76_worker_setup()
67 w->task = kthread_run(__mt76_worker_fn, w, in mt76_worker_setup()
70 if (IS_ERR(w->task)) { in mt76_worker_setup()
72 w->task = NULL; in mt76_worker_setup()
81 if (!w->task) in mt76_worker_schedule()
91 if (!w->task) in mt76_worker_disable()
94 kthread_park(w->task); in mt76_worker_disable()
100 if (!w->task) in mt76_worker_enable()
109 if (!w->task) in mt76_worker_teardown()
112 kthread_stop(w->task); in mt76_worker_teardown()
[all …]
/drivers/media/platform/ti/omap/
A Domap_voutlib.c69 try_win = new_win->w; in omap_vout_try_window()
97 new_win->w = try_win; in omap_vout_try_window()
126 win->w = new_win->w; in omap_vout_new_window()
221 win->w.height = 2; in omap_vout_new_crop()
222 if (win->w.height + win->w.top > fbuf->fmt.height) { in omap_vout_new_crop()
227 win->w.height = (fbuf->fmt.height - win->w.top) & ~1; in omap_vout_new_crop()
240 win->w.width = 2; in omap_vout_new_crop()
241 if (win->w.width + win->w.left > fbuf->fmt.width) { in omap_vout_new_crop()
246 win->w.width = (fbuf->fmt.width - win->w.left) & ~1; in omap_vout_new_crop()
297 win->w.left = ((fbuf->fmt.width - win->w.width) >> 1) & ~1; in omap_vout_new_format()
[all …]
/drivers/media/platform/samsung/s5p-g2d/
A Dg2d-hw.c20 w(1, SOFT_RESET_REG); in g2d_reset()
27 w(0, SRC_SELECT_REG); in g2d_set_src_size()
33 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
45 w(a, SRC_BASE_ADDR_REG); in g2d_set_src_addr()
52 w(0, DST_SELECT_REG); in g2d_set_dst_size()
58 w(n, DST_LEFT_TOP_REG); in g2d_set_dst_size()
70 w(a, DST_BASE_ADDR_REG); in g2d_set_dst_addr()
75 w(r, ROP4_REG); in g2d_set_rop4()
102 w(0x7, CACHECTL_REG); in g2d_start()
105 w(1, INTEN_REG); in g2d_start()
[all …]
/drivers/md/
A Ddm-cache-background-tracker.c56 list_del(&w->list); in btracker_destroy()
79 struct bt_work *w; in __insert_pending() local
108 struct bt_work *w; in __find_pending() local
131 switch (w->op) { in update_stats()
171 struct bt_work *w; in btracker_queue() local
176 w = alloc_work(b); in btracker_queue()
177 if (!w) in btracker_queue()
192 *pwork = &w->work; in btracker_queue()
207 struct bt_work *w; in btracker_issue() local
214 *work = &w->work; in btracker_issue()
[all …]
/drivers/video/fbdev/omap/
A Dlcd_dma.c138 u16 w; in set_b1_regs() local
258 w &= ~0x03; in set_b1_regs()
287 u16 w; in lcd_dma_irq_handler() local
295 w |= (1 << 3); in lcd_dma_irq_handler()
351 u16 w; in omap_enable_lcd_dma() local
362 w |= 1 << 8; in omap_enable_lcd_dma()
368 w |= 1 << 7; in omap_enable_lcd_dma()
384 u16 w; in omap_setup_lcd_dma() local
402 u16 w; in omap_stop_lcd_dma() local
409 w &= ~(1 << 7); in omap_stop_lcd_dma()
[all …]
/drivers/staging/greybus/
A Daudio_helper.c27 switch (w->id) { in gbaudio_dapm_link_dai_widget()
35 if (!w->sname || !strstr(w->sname, dai_w->sname)) in gbaudio_dapm_link_dai_widget()
46 sink = w; in gbaudio_dapm_link_dai_widget()
48 src = w; in gbaudio_dapm_link_dai_widget()
95 list_del(&w->list); in gbaudio_dapm_free_widget()
106 kfree(w->kcontrols); in gbaudio_dapm_free_widget()
107 kfree_const(w->name); in gbaudio_dapm_free_widget()
109 kfree(w); in gbaudio_dapm_free_widget()
122 w = NULL; in gbaudio_dapm_free_controls()
126 w = tmp_w; in gbaudio_dapm_free_controls()
[all …]
/drivers/md/bcache/
A Dmovinggc.c17 struct keybuf_key *w; member
105 op->csum = KEY_CSUM(&io->w->key); in CLOSURE_CALLBACK()
128 struct keybuf_key *w; in read_moving() local
140 if (!w) in read_moving()
143 if (ptr_stale(c, &w->key, 0)) { in read_moving()
154 w->private = io; in read_moving()
155 io->w = w; in read_moving()
156 io->op.inode = KEY_INODE(&w->key); in read_moving()
169 trace_bcache_gc_copy(&w->key); in read_moving()
176 err: if (!IS_ERR_OR_NULL(w->private)) in read_moving()
[all …]
A Djournal.c699 ? &j->w[1] in bch_journal_next()
700 : &j->w[0]; in bch_journal_next()
731 struct journal_write *w = (j->cur == j->w) in CLOSURE_CALLBACK() local
732 ? &j->w[1] in CLOSURE_CALLBACK()
733 : &j->w[0]; in CLOSURE_CALLBACK()
786 w->data->csum = csum_set(w->data);
866 sectors = __set_blocks(w->data, w->data->keys + nkeys, in journal_wait_for_write()
872 return w; in journal_wait_for_write()
950 w->dirty = true; in bch_journal()
991 j->w[0].c = c; in bch_journal_alloc()
[all …]
/drivers/input/gameport/
A Dfm801-gp.c31 unsigned short w; in fm801_gp_cooked_read() local
33 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
34 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read()
35 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
36 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
37 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
38 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
39 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
40 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
41 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
[all …]
/drivers/spi/
A Dspi-omap-uwire.c117 u16 w, val = 0; in omap_uwire_configure_mode() local
134 w |= val << shift; in omap_uwire_configure_mode()
140 u16 w; in wait_uwire_csr_flag() local
163 u16 w; in uwire_set_clk1_div() local
166 w &= ~(0x03 << 1); in uwire_set_clk1_div()
167 w |= div1_idx << 1; in uwire_set_clk1_div()
174 u16 w; in uwire_chipselect() local
184 w &= ~CS_CMD; in uwire_chipselect()
197 w |= CS_CMD; in uwire_chipselect()
207 u16 val, w; in uwire_txrx() local
[all …]
/drivers/video/fbdev/
A Dc2p_iplan2.c106 w = width; in c2p_iplan2()
118 w = width; in c2p_iplan2()
121 w = 16 - dst_idx; in c2p_iplan2()
124 c += w; in c2p_iplan2()
128 w = width-w; in c2p_iplan2()
131 while (w >= 16) { in c2p_iplan2()
137 w -= 16; in c2p_iplan2()
140 w %= 16; in c2p_iplan2()
141 if (w > 0) { in c2p_iplan2()
142 memcpy(d.pixels, c, w); in c2p_iplan2()
[all …]
A Dc2p_planar.c106 w = width; in c2p_planar()
119 w = width; in c2p_planar()
122 w = 32 - dst_idx; in c2p_planar()
125 c += w; in c2p_planar()
130 w = width-w; in c2p_planar()
133 while (w >= 32) { in c2p_planar()
139 w -= 32; in c2p_planar()
142 w %= 32; in c2p_planar()
143 if (w > 0) { in c2p_planar()
144 memcpy(d.pixels, c, w); in c2p_planar()
[all …]
A Datafb_iplan2p2.c41 int w, l , i, j; in atafb_iplan2p2_copyarea() local
59 if (w) { in atafb_iplan2p2_copyarea()
62 w *= BPL / 2; in atafb_iplan2p2_copyarea()
85 if (w) { in atafb_iplan2p2_copyarea()
88 w *= BPL / 2; in atafb_iplan2p2_copyarea()
114 w = width; in atafb_iplan2p2_copyarea()
117 w += 8; in atafb_iplan2p2_copyarea()
121 w >>= 4; in atafb_iplan2p2_copyarea()
156 w = width; in atafb_iplan2p2_copyarea()
161 w += 8; in atafb_iplan2p2_copyarea()
[all …]
A Datafb_iplan2p4.c41 int w, l , i, j; in atafb_iplan2p4_copyarea() local
59 if (w) { in atafb_iplan2p4_copyarea()
62 w *= BPL / 2; in atafb_iplan2p4_copyarea()
85 if (w) { in atafb_iplan2p4_copyarea()
88 w *= BPL / 2; in atafb_iplan2p4_copyarea()
114 w = width; in atafb_iplan2p4_copyarea()
117 w += 8; in atafb_iplan2p4_copyarea()
121 w >>= 4; in atafb_iplan2p4_copyarea()
163 w = width; in atafb_iplan2p4_copyarea()
168 w += 8; in atafb_iplan2p4_copyarea()
[all …]
/drivers/gpu/drm/omapdrm/
A Dtcm-sita.c34 bitmap_clear(map, pos, w); in free_slots()
50 *pos = num_bits - w; in r2l_b2t_1d()
55 if (bit - *pos >= w) { in r2l_b2t_1d()
57 bitmap_set(map, *pos, w); in r2l_b2t_1d()
62 search_count = num_bits - bit + w; in r2l_b2t_1d()
63 *pos = bit - w; in r2l_b2t_1d()
129 (*pos % BITS_PER_LONG) + w)) { in l2r_t2b()
148 bitmap_set(map, index, w); in l2r_t2b()
187 area->p1.x = area->p0.x + w - 1; in sita_reserve_2d()
203 u16 w, h; in sita_free() local
[all …]
/drivers/media/platform/samsung/s5p-mfc/
A Dregs-mfc-v6.h378 #define S5P_FIMV_TMV_BUFFER_SIZE_V6(w, h) (((w) + 1) * ((h) + 3) * 8) argument
382 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V6(w, h) (((w) * 192) + 64) argument
384 ((w) * 144 + 8192 * (h) + 49216 + 1048576)
385 #define S5P_FIMV_SCRATCH_BUF_SIZE_VC1_DEC_V6(w, h) \ argument
386 (2096 * ((w) + (h) + 1))
387 #define S5P_FIMV_SCRATCH_BUF_SIZE_H263_DEC_V6(w, h) \ argument
388 S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h)
389 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V6(w, h) \ argument
390 ((w) * 32 + (h) * 128 + (((w) + 1) / 2) * 64 + 2112)
392 (((w) * 64) + (((w) + 1) * 16) + (4096 * 16))
[all …]
A Dregs-mfc-v8.h102 #define S5P_FIMV_TMV_BUFFER_SIZE_V8(w, h) (((w) + 1) * ((h) + 1) * 8) argument
104 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V8(w, h) (((w) * 704) + 2176) argument
105 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V8(w, h) \ argument
106 (((w) * 576 + (h) * 128) + 4128)
108 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V8(w, h) \ argument
109 (((w) * 592) + 2336)
110 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V8(w, h) \ argument
111 (((w) * 576) + 10512 + \
112 ((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
/drivers/memory/
A Dmvebu-devbus.c111 struct devbus_write_params *w) in devbus_get_timing_params() argument
168 &w->sync_enable); in devbus_get_timing_params()
178 &w->ale_wr); in devbus_get_timing_params()
183 &w->wr_low); in devbus_get_timing_params()
188 &w->wr_high); in devbus_get_timing_params()
198 struct devbus_write_params *w) in devbus_orion_set_timing_params() argument
231 struct devbus_write_params *w) in devbus_armada_set_timing_params() argument
252 w->wr_low << ARMADA_WR_LOW_SHIFT | in devbus_armada_set_timing_params()
253 w->wr_high << ARMADA_WR_HIGH_SHIFT | in devbus_armada_set_timing_params()
254 w->ale_wr; in devbus_armada_set_timing_params()
[all …]
/drivers/staging/media/atomisp/pci/
A Dbits.h83 #define _hrt_get_bits(w, b, n) \ argument
84 (((w) >> (b)) & _hrt_ones(n))
85 #define _hrt_set_bits(w, b, n, v) \ argument
87 #define _hrt_get_bit(w, b) \ argument
88 (((w) >> (b)) & 1)
89 #define _hrt_set_bit(w, b, v) \ argument
90 (((w) & (~(1 << (b)))) | (((v) & 1) << (b)))
91 #define _hrt_set_lower_half(w, v) \ argument
92 _hrt_set_bits(w, 0, 16, v)
93 #define _hrt_set_upper_half(w, v) \ argument
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/
A Dnotif-wait.c27 struct iwl_notification_wait *w; in iwl_notification_wait() local
30 list_for_each_entry(w, &notif_wait->notif_waits, list) { in iwl_notification_wait()
40 if (w->triggered || w->aborted) in iwl_notification_wait()
43 for (i = 0; i < w->n_cmds; i++) { in iwl_notification_wait()
47 if (w->cmds[i] == rec_id || in iwl_notification_wait()
48 (!iwl_cmd_groupid(w->cmds[i]) && in iwl_notification_wait()
49 DEF_ID(w->cmds[i]) == rec_id)) { in iwl_notification_wait()
57 if (!w->fn || w->fn(notif_wait, pkt, w->fn_data)) { in iwl_notification_wait()
58 w->triggered = true; in iwl_notification_wait()

Completed in 56 milliseconds

12345678910>>...26