Home
last modified time | relevance | path

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

12345678910>>...16

/drivers/input/joystick/
Dwalkera0701.c66 static inline void walkera0701_parse_frame(struct walkera_dev *w) in walkera0701_parse_frame() argument
74 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
75 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
77 if ((w->buf[10] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
79 if (((w->buf[10] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
82 crc1 += w->buf[i] & 7; in walkera0701_parse_frame()
83 crc2 += (w->buf[i] & 8) >> 3; in walkera0701_parse_frame()
85 if ((w->buf[23] & 7) != (crc1 & 7)) in walkera0701_parse_frame()
87 if (((w->buf[23] & 8) >> 3) != (((crc1 >> 3) + crc2) & 1)) in walkera0701_parse_frame()
89 val1 = ((w->buf[0] & 7) * 256 + w->buf[1] * 16 + w->buf[2]) >> 2; in walkera0701_parse_frame()
[all …]
/drivers/media/platform/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()
122 win->w = new_win->w; in omap_vout_new_window()
129 if ((crop->height/win->w.height) >= 2) in omap_vout_new_window()
130 crop->height = win->w.height * 2; in omap_vout_new_window()
132 if ((crop->width/win->w.width) >= 2) in omap_vout_new_window()
133 crop->width = win->w.width * 2; in omap_vout_new_window()
140 if (crop->height != win->w.height) in omap_vout_new_window()
145 if ((crop->height/win->w.height) >= 4) in omap_vout_new_window()
146 crop->height = win->w.height * 4; in omap_vout_new_window()
[all …]
/drivers/media/platform/s5p-g2d/
Dg2d-hw.c18 #define w(x, a) writel((x), d->regs + (a)) macro
24 w(1, SOFT_RESET_REG); in g2d_reset()
31 w(0, SRC_SELECT_REG); in g2d_set_src_size()
32 w(f->stride & 0xFFFF, SRC_STRIDE_REG); in g2d_set_src_size()
37 w(n, SRC_LEFT_TOP_REG); in g2d_set_src_size()
42 w(n, SRC_RIGHT_BOTTOM_REG); in g2d_set_src_size()
44 w(f->fmt->hw, SRC_COLOR_MODE_REG); in g2d_set_src_size()
49 w(a, SRC_BASE_ADDR_REG); in g2d_set_src_addr()
56 w(0, DST_SELECT_REG); in g2d_set_dst_size()
57 w(f->stride & 0xFFFF, DST_STRIDE_REG); in g2d_set_dst_size()
[all …]
/drivers/staging/skein/
Dskein_block.c69 u64 w[WCNT]; /* local copy of input block */ in skein_256_process_block() local
95 skein_get64_lsb_first(w, blk_ptr, WCNT); in skein_256_process_block()
97 skein_show_block(BLK_BITS, &ctx->h, ctx->x, blk_ptr, w, ks, ts); in skein_256_process_block()
99 X0 = w[0] + ks[0]; /* do the first full key injection */ in skein_256_process_block()
100 X1 = w[1] + ks[1] + ts[0]; in skein_256_process_block()
101 X2 = w[2] + ks[2] + ts[1]; in skein_256_process_block()
102 X3 = w[3] + ks[3]; in skein_256_process_block()
225 ctx->x[0] = X0 ^ w[0]; in skein_256_process_block()
226 ctx->x[1] = X1 ^ w[1]; in skein_256_process_block()
227 ctx->x[2] = X2 ^ w[2]; in skein_256_process_block()
[all …]
Dskein.c28 u64 w[SKEIN_256_STATE_WORDS]; in skein_256_init() member
57 cfg.w[0] = skein_swap64(SKEIN_SCHEMA_VER); in skein_256_init()
59 cfg.w[1] = skein_swap64(hash_bit_len); in skein_256_init()
60 cfg.w[2] = skein_swap64(SKEIN_CFG_TREE_INFO_SEQUENTIAL); in skein_256_init()
62 memset(&cfg.w[3], 0, sizeof(cfg) - 3*sizeof(cfg.w[0])); in skein_256_init()
86 u64 w[SKEIN_256_STATE_WORDS]; in skein_256_init_ext() member
121 memset(&cfg.w, 0, sizeof(cfg.w)); in skein_256_init_ext()
122 cfg.w[0] = skein_swap64(SKEIN_SCHEMA_VER); in skein_256_init_ext()
124 cfg.w[1] = skein_swap64(hash_bit_len); in skein_256_init_ext()
126 cfg.w[2] = skein_swap64(tree_info); in skein_256_init_ext()
[all …]
/drivers/input/gameport/
Dfm801-gp.c46 unsigned short w; in fm801_gp_cooked_read() local
48 w = inw(gameport->io + 2); in fm801_gp_cooked_read()
49 *buttons = (~w >> 14) & 0x03; in fm801_gp_cooked_read()
50 axes[0] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
51 w = inw(gameport->io + 4); in fm801_gp_cooked_read()
52 axes[1] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
53 w = inw(gameport->io + 6); in fm801_gp_cooked_read()
54 *buttons |= ((~w >> 14) & 0x03) << 2; in fm801_gp_cooked_read()
55 axes[2] = (w == 0xffff) ? -1 : ((w & 0x1fff) << 5); in fm801_gp_cooked_read()
56 w = inw(gameport->io + 8); in fm801_gp_cooked_read()
[all …]
/drivers/md/bcache/
Dwriteback.c106 static void dirty_init(struct keybuf_key *w) in dirty_init() argument
108 struct dirty_io *io = w->private; in dirty_init()
115 bio->bi_iter.bi_size = KEY_SIZE(&w->key) << 9; in dirty_init()
116 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&w->key), PAGE_SECTORS); in dirty_init()
117 bio->bi_private = w; in dirty_init()
131 struct keybuf_key *w = io->bio.bi_private; in write_dirty_finish() local
140 if (KEY_DIRTY(&w->key)) { in write_dirty_finish()
147 bkey_copy(keys.top, &w->key); in write_dirty_finish()
151 for (i = 0; i < KEY_PTRS(&w->key); i++) in write_dirty_finish()
152 atomic_inc(&PTR_BUCKET(dc->disk.c, &w->key, i)->pin); in write_dirty_finish()
[all …]
Dmovinggc.c16 struct keybuf_key *w; member
54 trace_bcache_gc_copy_collision(&io->w->key); in write_moving_finish()
56 bch_keybuf_del(&io->op.c->moving_gc_keys, io->w); in write_moving_finish()
87 bio->bi_iter.bi_size = KEY_SIZE(&io->w->key) << 9; in moving_init()
88 bio->bi_max_vecs = DIV_ROUND_UP(KEY_SIZE(&io->w->key), in moving_init()
103 io->bio.bio.bi_iter.bi_sector = KEY_START(&io->w->key); in write_moving()
107 op->writeback = KEY_DIRTY(&io->w->key); in write_moving()
108 op->csum = KEY_CSUM(&io->w->key); in write_moving()
110 bkey_copy(&op->replace_key, &io->w->key); in write_moving()
124 bch_submit_bbio(bio, io->op.c, &io->w->key, 0); in read_moving_submit()
[all …]
Djournal.c40 struct jset *j, *data = ca->set->journal.w[0].data; in journal_read_bucket()
530 j->cur = (j->cur == j->w) in bch_journal_next()
531 ? &j->w[1] in bch_journal_next()
532 : &j->w[0]; in bch_journal_next()
552 struct journal_write *w = bio->bi_private; in journal_write_endio() local
554 cache_set_err_on(error, w->c, "journal io error"); in journal_write_endio()
555 closure_put(&w->c->journal.io); in journal_write_endio()
563 struct journal_write *w = (j->cur == j->w) in journal_write_done() local
564 ? &j->w[1] in journal_write_done()
565 : &j->w[0]; in journal_write_done()
[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.c42 int w, l , i, j; in atafb_iplan2p2_copyarea() local
59 w = width >> 4; in atafb_iplan2p2_copyarea()
60 if (w) { in atafb_iplan2p2_copyarea()
63 w *= BPL / 2; in atafb_iplan2p2_copyarea()
64 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
66 for (i = w; i > 0; i--) in atafb_iplan2p2_copyarea()
85 w = width >> 4; in atafb_iplan2p2_copyarea()
86 if (w) { in atafb_iplan2p2_copyarea()
89 w *= BPL / 2; in atafb_iplan2p2_copyarea()
90 l = next_line - w * 4; in atafb_iplan2p2_copyarea()
[all …]
Datafb_iplan2p4.c42 int w, l , i, j; in atafb_iplan2p4_copyarea() local
59 w = width >> 4; in atafb_iplan2p4_copyarea()
60 if (w) { in atafb_iplan2p4_copyarea()
63 w *= BPL / 2; in atafb_iplan2p4_copyarea()
64 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
66 for (i = w; i > 0; i--) in atafb_iplan2p4_copyarea()
85 w = width >> 4; in atafb_iplan2p4_copyarea()
86 if (w) { in atafb_iplan2p4_copyarea()
89 w *= BPL / 2; in atafb_iplan2p4_copyarea()
90 l = next_line - w * 4; in atafb_iplan2p4_copyarea()
[all …]
Datafb_iplan2p8.c49 int w, l , i, j; in atafb_iplan2p8_copyarea() local
66 w = width >> 4; in atafb_iplan2p8_copyarea()
67 if (w) { in atafb_iplan2p8_copyarea()
70 w *= BPL / 2; in atafb_iplan2p8_copyarea()
71 l = next_line - w * 4; in atafb_iplan2p8_copyarea()
73 for (i = w; i > 0; i--) in atafb_iplan2p8_copyarea()
92 w = width >> 4; in atafb_iplan2p8_copyarea()
93 if (w) { in atafb_iplan2p8_copyarea()
96 w *= BPL / 2; in atafb_iplan2p8_copyarea()
97 l = next_line - w * 4; in atafb_iplan2p8_copyarea()
[all …]
/drivers/spi/
Dspi-omap-uwire.c125 u16 w, val = 0; in omap_uwire_configure_mode() local
140 w = uwire_read_reg(reg); in omap_uwire_configure_mode()
141 w &= ~(0x3f << shift); in omap_uwire_configure_mode()
142 w |= val << shift; in omap_uwire_configure_mode()
143 uwire_write_reg(reg, w); in omap_uwire_configure_mode()
148 u16 w; in wait_uwire_csr_flag() local
153 w = uwire_read_reg(UWIRE_CSR); in wait_uwire_csr_flag()
154 if ((w & mask) == val) in wait_uwire_csr_flag()
159 __func__, w, mask, val); in wait_uwire_csr_flag()
171 u16 w; in uwire_set_clk1_div() local
[all …]
/drivers/media/platform/s5p-mfc/
Dregs-mfc-v6.h379 #define S5P_FIMV_TMV_BUFFER_SIZE_V6(w, h) (((w) + 1) * ((h) + 3) * 8) argument
383 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V6(w, h) (((w) * 192) + 64) argument
384 #define S5P_FIMV_SCRATCH_BUF_SIZE_MPEG4_DEC_V6(w, h) \ argument
385 ((w) * 144 + 8192 * (h) + 49216 + 1048576)
386 #define S5P_FIMV_SCRATCH_BUF_SIZE_VC1_DEC_V6(w, h) \ argument
387 (2096 * ((w) + (h) + 1))
388 #define S5P_FIMV_SCRATCH_BUF_SIZE_H263_DEC_V6(w, h) ((w) * 400) argument
389 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V6(w, h) \ argument
390 ((w) * 32 + (h) * 128 + (((w) + 1) / 2) * 64 + 2112)
391 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V6(w, h) \ argument
[all …]
Dregs-mfc-v8.h100 #define S5P_FIMV_TMV_BUFFER_SIZE_V8(w, h) (((w) + 1) * ((h) + 1) * 8) argument
102 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_DEC_V8(w, h) (((w) * 704) + 2176) argument
103 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_DEC_V8(w, h) \ argument
104 (((w) * 576 + (h) * 128) + 4128)
106 #define S5P_FIMV_SCRATCH_BUF_SIZE_H264_ENC_V8(w, h) \ argument
107 (((w) * 592) + 2336)
108 #define S5P_FIMV_SCRATCH_BUF_SIZE_VP8_ENC_V8(w, h) \ argument
109 (((w) * 576) + 10512 + \
110 ((((((w) * 16) * ((h) * 16)) * 3) / 2) * 4))
/drivers/memory/
Dmvebu-devbus.c123 struct devbus_write_params *w) in devbus_get_timing_params() argument
180 &w->sync_enable); in devbus_get_timing_params()
190 &w->ale_wr); in devbus_get_timing_params()
195 &w->wr_low); in devbus_get_timing_params()
200 &w->wr_high); in devbus_get_timing_params()
210 struct devbus_write_params *w) in devbus_orion_set_timing_params() argument
224 (w->ale_wr & ORION_ALE_WR_MASK) << ORION_ALE_WR_SHIFT | in devbus_orion_set_timing_params()
225 (w->wr_low & ORION_WR_LOW_MASK) << ORION_WR_LOW_SHIFT | in devbus_orion_set_timing_params()
226 (w->wr_high & ORION_WR_HIGH_MASK) << ORION_WR_HIGH_SHIFT | in devbus_orion_set_timing_params()
231 ((w->ale_wr & ORION_ALE_WR_EXT_MASK) ? ORION_ALE_WR_EXT_BIT : 0) | in devbus_orion_set_timing_params()
[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
234 event_word_t new, old, w; in clear_masked() local
236 w = *word; in clear_masked()
239 old = w & ~(1 << EVTCHN_FIFO_BUSY); in clear_masked()
241 w = sync_cmpxchg(word, old, new); in clear_masked()
242 } while (w != old); in clear_masked()
[all …]
/drivers/clk/samsung/
Dclk.h138 #define __MUX(_id, dname, cname, pnames, o, s, w, f, mf, a) \ argument
148 .width = w, \
153 #define MUX(_id, cname, pnames, o, s, w) \ argument
154 __MUX(_id, NULL, cname, pnames, o, s, w, 0, 0, NULL)
156 #define MUX_A(_id, cname, pnames, o, s, w, a) \ argument
157 __MUX(_id, NULL, cname, pnames, o, s, w, 0, 0, a)
159 #define MUX_F(_id, cname, pnames, o, s, w, f, mf) \ argument
160 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, NULL)
162 #define MUX_FA(_id, cname, pnames, o, s, w, f, mf, a) \ argument
163 __MUX(_id, NULL, cname, pnames, o, s, w, f, mf, a)
[all …]
/drivers/net/wireless/iwlwifi/
Diwl-notif-wait.c84 struct iwl_notification_wait *w; in iwl_notification_wait_notify() local
87 list_for_each_entry(w, &notif_wait->notif_waits, list) { in iwl_notification_wait_notify()
97 if (w->triggered || w->aborted) in iwl_notification_wait_notify()
100 for (i = 0; i < w->n_cmds; i++) { in iwl_notification_wait_notify()
101 if (w->cmds[i] == pkt->hdr.cmd) { in iwl_notification_wait_notify()
109 if (!w->fn || w->fn(notif_wait, pkt, w->fn_data)) { in iwl_notification_wait_notify()
110 w->triggered = true; in iwl_notification_wait_notify()
/drivers/md/persistent-data/
Ddm-block-manager.c127 static void __wait(struct waiter *w) in __wait() argument
132 if (!w->task) in __wait()
141 static void __wake_waiter(struct waiter *w) in __wake_waiter() argument
145 list_del(&w->list); in __wake_waiter()
146 task = w->task; in __wake_waiter()
148 w->task = NULL; in __wake_waiter()
157 struct waiter *w, *tmp; in __wake_many() local
160 list_for_each_entry_safe(w, tmp, &lock->waiters, list) { in __wake_many()
164 if (w->wants_write) { in __wake_many()
169 __add_holder(lock, w->task); in __wake_many()
[all …]
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c34 static s32 sita_reserve_2d(struct tcm *tcm, u16 h, u16 w, u8 align,
43 static s32 scan_areas_and_find_fit(struct tcm *tcm, u16 w, u16 h, u16 align,
46 static s32 scan_l2r_t2b(struct tcm *tcm, u16 w, u16 h, u16 align,
49 static s32 scan_r2l_t2b(struct tcm *tcm, u16 w, u16 h, u16 align,
58 static s32 is_area_free(struct tcm_area ***map, u16 x0, u16 y0, u16 w, u16 h);
60 static s32 update_candidate(struct tcm *tcm, u16 x0, u16 y0, u16 w, u16 h,
208 static s32 sita_reserve_2d(struct tcm *tcm, u16 h, u16 w, u8 align, in sita_reserve_2d() argument
222 ret = scan_areas_and_find_fit(tcm, w, h, align, area); in sita_reserve_2d()
274 static s32 scan_r2l_t2b(struct tcm *tcm, u16 w, u16 h, u16 align, in scan_r2l_t2b() argument
293 if (w > LEN(start_x, end_x) || h > LEN(end_y, start_y)) in scan_r2l_t2b()
[all …]
/drivers/i2c/busses/
Di2c-davinci.c172 u16 w; in davinci_i2c_reset_ctrl() local
174 w = davinci_i2c_read_reg(i2c_dev, DAVINCI_I2C_MDR_REG); in davinci_i2c_reset_ctrl()
176 w &= ~DAVINCI_I2C_MDR_IRS; in davinci_i2c_reset_ctrl()
178 w |= DAVINCI_I2C_MDR_IRS; in davinci_i2c_reset_ctrl()
180 davinci_i2c_write_reg(i2c_dev, DAVINCI_I2C_MDR_REG, w); in davinci_i2c_reset_ctrl()
306 u16 w; in i2c_davinci_xfer_msg() local
337 w = davinci_i2c_read_reg(dev, DAVINCI_I2C_IMR_REG); in i2c_davinci_xfer_msg()
339 w |= DAVINCI_I2C_IMR_RRDY; in i2c_davinci_xfer_msg()
341 w |= DAVINCI_I2C_IMR_XRDY; in i2c_davinci_xfer_msg()
342 davinci_i2c_write_reg(dev, DAVINCI_I2C_IMR_REG, w); in i2c_davinci_xfer_msg()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_uld.h54 #define INIT_TP_WR(w, tid) do { \ argument
55 (w)->wr.wr_hi = htonl(FW_WR_OP(FW_TP_WR) | \
56 FW_WR_IMMDLEN(sizeof(*w) - sizeof(w->wr))); \
57 (w)->wr.wr_mid = htonl(FW_WR_LEN16(DIV_ROUND_UP(sizeof(*w), 16)) | \
59 (w)->wr.wr_lo = cpu_to_be64(0); \
62 #define INIT_TP_WR_CPL(w, cpl, tid) do { \ argument
63 INIT_TP_WR(w, tid); \
64 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
67 #define INIT_ULPTX_WR(w, wrlen, atomic, tid) do { \ argument
68 (w)->wr.wr_hi = htonl(FW_WR_OP(FW_ULPTX_WR) | FW_WR_ATOMIC(atomic)); \
[all …]

12345678910>>...16