Home
last modified time | relevance | path

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

12345678910>>...25

/drivers/input/joystick/
Dwalkera0701.c62 static inline void walkera0701_parse_frame(struct walkera_dev *w) in walkera0701_parse_frame() argument
70 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
71 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
73 if ((w->buf[10] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
75 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
78 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
79 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
81 if ((w->buf[23] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
83 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
85 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
[all …]
/drivers/infiniband/hw/hfi1/
Diowait.h299 static inline u16 iowait_get_desc(struct iowait_work *w) in iowait_get_desc() argument
304 if (!list_empty(&w->tx_head)) { in iowait_get_desc()
305 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_get_desc()
309 w->iow->priority++; in iowait_get_desc()
314 static inline u32 iowait_get_all_desc(struct iowait *w) in iowait_get_all_desc() argument
318 num_desc = iowait_get_desc(&w->wait[IOWAIT_IB_SE]); in iowait_get_all_desc()
319 num_desc += iowait_get_desc(&w->wait[IOWAIT_TID_SE]); in iowait_get_all_desc()
323 static inline void iowait_update_priority(struct iowait_work *w) in iowait_update_priority() argument
327 if (!list_empty(&w->tx_head)) { in iowait_update_priority()
328 tx = list_first_entry(&w->tx_head, struct sdma_txreq, in iowait_update_priority()
[all …]
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/net/wireless/mediatek/mt76/
Dutil.h58 mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w, in mt76_worker_setup() argument
66 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()
71 ret = PTR_ERR(w->task); in mt76_worker_setup()
72 w->task = NULL; in mt76_worker_setup()
79 static inline void mt76_worker_schedule(struct mt76_worker *w) in mt76_worker_schedule() argument
81 if (!w->task) in mt76_worker_schedule()
84 if (!test_and_set_bit(MT76_WORKER_SCHEDULED, &w->state) && in mt76_worker_schedule()
85 !test_bit(MT76_WORKER_RUNNING, &w->state)) in mt76_worker_schedule()
[all …]
/drivers/media/platform/ti/omap/
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()
133 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
134 crop->height = win->w.height * 2; in omap_vout_new_window()
136 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
137 crop->width = win->w.width * 2; in omap_vout_new_window()
144 if (crop->height != win->w.height) in omap_vout_new_window()
149 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
150 crop->height = win->w.height * 4; in omap_vout_new_window()
[all …]
/drivers/media/platform/samsung/s5p-g2d/
Dg2d-hw.c14 #define w(x, a) writel((x), d->regs + (a)) macro
20 w(1, SOFT_RESET_REG); in g2d_reset()
27 w(0, SRC_SELECT_REG); in g2d_set_src_size()
28 w(f->stride & 0xFFFF, SRC_STRIDE_REG); in g2d_set_src_size()
33 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
38 w(n, SRC_RIGHT_BOTTOM_REG); in g2d_set_src_size()
40 w(f->fmt->hw, SRC_COLOR_MODE_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()
53 w(f->stride & 0xFFFF, DST_STRIDE_REG); in g2d_set_dst_size()
[all …]
/drivers/md/
Ddm-cache-background-tracker.c64 struct bt_work *w, *tmp; in btracker_destroy() local
67 list_for_each_entry_safe (w, tmp, &b->queued, list) { in btracker_destroy()
68 list_del(&w->list); in btracker_destroy()
69 kmem_cache_free(b->work_cache, w); in btracker_destroy()
92 struct bt_work *w; in __insert_pending() local
96 w = container_of(*new, struct bt_work, node); in __insert_pending()
99 cmp = cmp_oblock(w->work.oblock, nw->work.oblock); in __insert_pending()
121 struct bt_work *w; in __find_pending() local
125 w = container_of(*new, struct bt_work, node); in __find_pending()
127 cmp = cmp_oblock(w->work.oblock, oblock); in __find_pending()
[all …]
/drivers/video/fbdev/omap/
Dlcd_dma.c137 u16 w; in set_b1_regs() local
256 w = omap_readw(OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
257 w &= ~0x03; in set_b1_regs()
258 w |= lcd_dma.data_type; in set_b1_regs()
259 omap_writew(w, OMAP1610_DMA_LCD_CSDP); in set_b1_regs()
261 w = omap_readw(OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
263 w &= ~(0x03 << 6); in set_b1_regs()
265 w |= 1 << 1; /* Block interrupt enable */ in set_b1_regs()
267 w &= ~(1 << 1); in set_b1_regs()
268 omap_writew(w, OMAP1610_DMA_LCD_CTRL); in set_b1_regs()
[all …]
/drivers/staging/greybus/
Daudio_helper.c18 struct snd_soc_dapm_widget *w; in gbaudio_dapm_link_dai_widget() local
23 list_for_each_entry(w, &card->widgets, list) { in gbaudio_dapm_link_dai_widget()
24 if (w->dapm != dai_w->dapm) in gbaudio_dapm_link_dai_widget()
27 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()
90 static void gbaudio_dapm_free_widget(struct snd_soc_dapm_widget *w) in gbaudio_dapm_free_widget() argument
95 list_del(&w->list); in gbaudio_dapm_free_widget()
102 snd_soc_dapm_widget_for_each_path_safe(w, dir, p, next_p) in gbaudio_dapm_free_widget()
[all …]
/drivers/md/bcache/
Dmovinggc.c17 struct keybuf_key *w; member
53 trace_bcache_gc_copy_collision(&io->w->key); in write_moving_finish()
55 bch_keybuf_del(&io->op.c->moving_gc_keys, io->w); in write_moving_finish()
83 DIV_ROUND_UP(KEY_SIZE(&io->w->key), PAGE_SECTORS), 0); in moving_init()
87 bio->bi_iter.bi_size = KEY_SIZE(&io->w->key) << 9; in moving_init()
100 io->bio.bio.bi_iter.bi_sector = KEY_START(&io->w->key); in write_moving()
104 op->writeback = KEY_DIRTY(&io->w->key); in write_moving()
105 op->csum = KEY_CSUM(&io->w->key); in write_moving()
107 bkey_copy(&op->replace_key, &io->w->key); in write_moving()
121 bch_submit_bbio(bio, io->op.c, &io->w->key, 0); in read_moving_submit()
[all …]
Djournal.c42 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket()
698 j->cur = (j->cur == j->w) in bch_journal_next()
699 ? &j->w[1] in bch_journal_next()
700 : &j->w[0]; in bch_journal_next()
720 struct journal_write *w = bio->bi_private; in journal_write_endio() local
722 cache_set_err_on(bio->bi_status, w->c, "journal io error"); in journal_write_endio()
723 closure_put(&w->c->journal.io); in journal_write_endio()
731 struct journal_write *w = (j->cur == j->w) in journal_write_done() local
732 ? &j->w[1] in journal_write_done()
733 : &j->w[0]; in journal_write_done()
[all …]
/drivers/input/gameport/
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/
Dspi-omap-uwire.c117 u16 w, val = 0; in omap_uwire_configure_mode() local
132 w = uwire_read_reg(reg); in omap_uwire_configure_mode()
133 w &= ~(0x3f << shift); in omap_uwire_configure_mode()
134 w |= val << shift; in omap_uwire_configure_mode()
135 uwire_write_reg(reg, w); in omap_uwire_configure_mode()
140 u16 w; in wait_uwire_csr_flag() local
145 w = uwire_read_reg(UWIRE_CSR); in wait_uwire_csr_flag()
146 if ((w & mask) == val) in wait_uwire_csr_flag()
151 __func__, w, mask, val); in wait_uwire_csr_flag()
163 u16 w; in uwire_set_clk1_div() local
[all …]
/drivers/video/fbdev/
Dc2p_iplan2.c92 u32 dst_idx, first, last, w; in c2p_iplan2() local
105 w = width; in c2p_iplan2()
117 w = width; in c2p_iplan2()
120 w = 16 - dst_idx; in c2p_iplan2()
122 memcpy(d.pixels+dst_idx, c, w); in c2p_iplan2()
123 c += w; in c2p_iplan2()
127 w = width-w; in c2p_iplan2()
130 while (w >= 16) { in c2p_iplan2()
136 w -= 16; in c2p_iplan2()
139 w %= 16; in c2p_iplan2()
[all …]
Dc2p_planar.c94 u32 dst_idx, first, last, w; in c2p_planar() local
105 w = width; in c2p_planar()
118 w = width; in c2p_planar()
121 w = 32 - dst_idx; in c2p_planar()
123 memcpy(d.pixels+dst_idx, c, w); in c2p_planar()
124 c += w; in c2p_planar()
129 w = width-w; in c2p_planar()
132 while (w >= 32) { in c2p_planar()
138 w -= 32; in c2p_planar()
141 w %= 32; in c2p_planar()
[all …]
Datafb_iplan2p2.c41 int w, l , i, j; in atafb_iplan2p2_copyarea() local
58 w = width >> 4; in atafb_iplan2p2_copyarea()
59 if (w) { in atafb_iplan2p2_copyarea()
62 w *= BPL / 2; in atafb_iplan2p2_copyarea()
63 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
65 for (i = w; i > 0; i--) in atafb_iplan2p2_copyarea()
84 w = width >> 4; in atafb_iplan2p2_copyarea()
85 if (w) { in atafb_iplan2p2_copyarea()
88 w *= BPL / 2; in atafb_iplan2p2_copyarea()
89 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
[all …]
Datafb_iplan2p4.c41 int w, l , i, j; in atafb_iplan2p4_copyarea() local
58 w = width >> 4; in atafb_iplan2p4_copyarea()
59 if (w) { in atafb_iplan2p4_copyarea()
62 w *= BPL / 2; in atafb_iplan2p4_copyarea()
63 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
65 for (i = w; i > 0; i--) in atafb_iplan2p4_copyarea()
84 w = width >> 4; in atafb_iplan2p4_copyarea()
85 if (w) { in atafb_iplan2p4_copyarea()
88 w *= BPL / 2; in atafb_iplan2p4_copyarea()
89 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
[all …]
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c28 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument
34 bitmap_clear(map, pos, w); in free_slots()
43 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument
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()
79 static int l2r_t2b(u16 w, u16 h, u16 a, s16 offset, in l2r_t2b() argument
97 *pos = bitmap_find_next_zero_area(map, num_bits, curr_bit, w, in l2r_t2b()
[all …]
/drivers/media/platform/samsung/s5p-mfc/
Dregs-mfc-v6.h377 #define S5P_FIMV_TMV_BUFFER_SIZE_V6(w, h) (((w) + 1) * ((h) + 3) * 8) argument
381 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V6(w, h) (((w) * 192) + 64) argument
382 #define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h) \ argument
383 ((w) * 144 + 8192 * (h) + 49216 + 1048576)
384 #define S5P_FIMV_SCRATCH_BUF_SIZE_VC1_DEC_V6(w, h) \ argument
385 (2096 * ((w) + (h) + 1))
386 #define S5P_FIMV_SCRATCH_BUF_SIZE_H263_DEC_V6(w, h) \ argument
387 S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h)
388 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V6(w, h) \ argument
389 ((w) * 32 + (h) * 128 + (((w) + 1) / 2) * 64 + 2112)
[all …]
Dregs-mfc-v8.h99 #define S5P_FIMV_TMV_BUFFER_SIZE_V8(w, h) (((w) + 1) * ((h) + 1) * 8) argument
101 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V8(w, h) (((w) * 704) + 2176) argument
102 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V8(w, h) \ argument
103 (((w) * 576 + (h) * 128) + 4128)
105 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V8(w, h) \ argument
106 (((w) * 592) + 2336)
107 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V8(w, h) \ argument
108 (((w) * 576) + 10512 + \
109 ((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
/drivers/memory/
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
212 (w->ale_wr & ORION_ALE_WR_MASK) << ORION_ALE_WR_SHIFT | in devbus_orion_set_timing_params()
213 (w->wr_low & ORION_WR_LOW_MASK) << ORION_WR_LOW_SHIFT | in devbus_orion_set_timing_params()
214 (w->wr_high & ORION_WR_HIGH_MASK) << ORION_WR_HIGH_SHIFT | in devbus_orion_set_timing_params()
219 ((w->ale_wr & ORION_ALE_WR_EXT_MASK) ? ORION_ALE_WR_EXT_BIT : 0) | in devbus_orion_set_timing_params()
[all …]
/drivers/staging/media/atomisp/pci/
Dbits.h92 #define _hrt_get_bits(w, b, n) \ argument
93 (((w) >> (b)) & _hrt_ones(n))
94 #define _hrt_set_bits(w, b, n, v) \ argument
95 (((w) & ~_hrt_mask(b, n)) | (((v) & _hrt_ones(n)) << (b)))
96 #define _hrt_get_bit(w, b) \ argument
97 (((w) >> (b)) & 1)
98 #define _hrt_set_bit(w, b, v) \ argument
99 (((w) & (~(1 << (b)))) | (((v) & 1) << (b)))
100 #define _hrt_set_lower_half(w, v) \ argument
101 _hrt_set_bits(w, 0, 16, v)
[all …]
/drivers/xen/events/
Devents_fifo.c74 #define BM(w) (unsigned long *)((unsigned long)w & ~0x7UL) argument
75 #define EVTCHN_FIFO_BIT(b, w) \ argument
76 (((unsigned long)w & 0x4UL) ? (EVTCHN_FIFO_ ##b + 32) : EVTCHN_FIFO_ ##b)
80 #define BM(w) ((unsigned long *)(w)) argument
81 #define EVTCHN_FIFO_BIT(b, w) EVTCHN_FIFO_ ##b argument
229 event_word_t new, old, w; in clear_masked_cond() local
231 w = *word; in clear_masked_cond()
234 if (!(w & (1 << EVTCHN_FIFO_MASKED))) in clear_masked_cond()
237 if (w & (1 << EVTCHN_FIFO_PENDING)) in clear_masked_cond()
240 old = w & ~(1 << EVTCHN_FIFO_BUSY); in clear_masked_cond()
[all …]
/drivers/watchdog/
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()
66 static int mt7621_wdt_set_timeout(struct watchdog_device *w, unsigned int t) in mt7621_wdt_set_timeout() argument
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
[all …]
/drivers/net/wireless/intel/iwlwifi/fw/
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()

12345678910>>...25