Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 1446) sorted by relevance

12345678910>>...58

/drivers/net/wan/
Dz85230.c111 static void z8530_rx_done(struct z8530_channel *c);
112 static void z8530_tx_done(struct z8530_channel *c);
126 static inline u8 read_zsreg(struct z8530_channel *c, u8 reg) in read_zsreg() argument
129 z8530_write_port(c->ctrlio, reg); in read_zsreg()
130 return z8530_read_port(c->ctrlio); in read_zsreg()
141 static inline u8 read_zsdata(struct z8530_channel *c) in read_zsdata() argument
144 r=z8530_read_port(c->dataio); in read_zsdata()
160 static inline void write_zsreg(struct z8530_channel *c, u8 reg, u8 val) in write_zsreg() argument
163 z8530_write_port(c->ctrlio, reg); in write_zsreg()
164 z8530_write_port(c->ctrlio, val); in write_zsreg()
[all …]
/drivers/staging/most/aim-cdev/
Dcdev.c53 static inline bool ch_has_mbo(struct aim_channel *c) in ch_has_mbo() argument
55 return channel_has_mbo(c->iface, c->channel_id, &cdev_aim) > 0; in ch_has_mbo()
58 static inline bool ch_get_mbo(struct aim_channel *c, struct mbo **mbo) in ch_get_mbo() argument
60 if (!kfifo_peek(&c->fifo, mbo)) { in ch_get_mbo()
61 *mbo = most_get_mbo(c->iface, c->channel_id, &cdev_aim); in ch_get_mbo()
63 kfifo_in(&c->fifo, mbo, 1); in ch_get_mbo()
70 struct aim_channel *c, *tmp; in get_channel() local
75 list_for_each_entry_safe(c, tmp, &channel_list, list) { in get_channel()
76 if ((c->iface == iface) && (c->channel_id == id)) { in get_channel()
84 return c; in get_channel()
[all …]
/drivers/scsi/
Datp870u.c43 static void send_s870(struct atp_unit *dev,unsigned char c);
44 static void atp_is(struct atp_unit *dev, unsigned char c, bool wide_chip, unsigned char lvdmode);
121 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local
131 for (c = 0; c < 2; c++) { in atp870u_intr_handle()
132 j = atp_readb_io(dev, c, 0x1f); in atp870u_intr_handle()
135 dev->in_int[c] = 0; in atp870u_intr_handle()
142 dev->in_int[c] = 1; in atp870u_intr_handle()
143 cmdp = atp_readb_io(dev, c, 0x10); in atp870u_intr_handle()
144 if (dev->working[c] != 0) { in atp870u_intr_handle()
146 if ((atp_readb_io(dev, c, 0x16) & 0x80) == 0) in atp870u_intr_handle()
[all …]
/drivers/media/firewire/
Dfiredtv-avc.c94 static inline void clear_operands(struct avc_command_frame *c, int from, int to) in clear_operands() argument
96 memset(&c->operand[from], 0, to - from + 1); in clear_operands()
99 static void pad_operands(struct avc_command_frame *c, int from) in pad_operands() argument
104 clear_operands(c, from, to); in pad_operands()
340 struct avc_command_frame *c = (void *)fdtv->avc_data; in avc_tuner_tuneqpsk() local
342 c->opcode = AVC_OPCODE_VENDOR; in avc_tuner_tuneqpsk()
344 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_tuner_tuneqpsk()
345 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_tuner_tuneqpsk()
346 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_tuner_tuneqpsk()
348 c->operand[3] = SFE_VENDOR_OPCODE_TUNE_QPSK2; in avc_tuner_tuneqpsk()
[all …]
/drivers/iommu/
Dmsm_iommu_hw-8xxx.h38 #define GET_CONTEXT_FIELD(b, c, r, F) \ argument
39 GET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT)
43 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument
44 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v))
134 #define SET_SCTLR(b, c, v) SET_CTX_REG(SCTLR, (b), (c), (v)) argument
135 #define SET_ACTLR(b, c, v) SET_CTX_REG(ACTLR, (b), (c), (v)) argument
136 #define SET_CONTEXTIDR(b, c, v) SET_CTX_REG(CONTEXTIDR, (b), (c), (v)) argument
137 #define SET_TTBR0(b, c, v) SET_CTX_REG(TTBR0, (b), (c), (v)) argument
138 #define SET_TTBR1(b, c, v) SET_CTX_REG(TTBR1, (b), (c), (v)) argument
139 #define SET_TTBCR(b, c, v) SET_CTX_REG(TTBCR, (b), (c), (v)) argument
[all …]
/drivers/staging/most/mostcore/
Dcore.c180 struct most_c_obj *c = mbo->context; in most_free_mbo_coherent() local
181 u16 const coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len; in most_free_mbo_coherent()
186 if (atomic_sub_and_test(1, &c->mbo_ref)) in most_free_mbo_coherent()
187 complete(&c->cleanup); in most_free_mbo_coherent()
194 static void flush_channel_fifos(struct most_c_obj *c) in flush_channel_fifos() argument
199 if (list_empty(&c->fifo) && list_empty(&c->halt_fifo)) in flush_channel_fifos()
202 spin_lock_irqsave(&c->fifo_lock, flags); in flush_channel_fifos()
203 list_for_each_entry_safe(mbo, tmp, &c->fifo, list) { in flush_channel_fifos()
205 spin_unlock_irqrestore(&c->fifo_lock, flags); in flush_channel_fifos()
207 spin_lock_irqsave(&c->fifo_lock, flags); in flush_channel_fifos()
[all …]
/drivers/mtd/onenand/
Domap2.c68 struct omap2_onenand *c = data; in omap2_onenand_dma_cb() local
70 complete(&c->dma_done); in omap2_onenand_dma_cb()
75 struct omap2_onenand *c = dev_id; in omap2_onenand_interrupt() local
77 complete(&c->irq_done); in omap2_onenand_interrupt()
82 static inline unsigned short read_reg(struct omap2_onenand *c, int reg) in read_reg() argument
84 return readw(c->onenand.base + reg); in read_reg()
87 static inline void write_reg(struct omap2_onenand *c, unsigned short value, in write_reg() argument
90 writew(value, c->onenand.base + reg); in write_reg()
108 struct omap2_onenand *c = container_of(mtd, struct omap2_onenand, mtd); in omap2_onenand_wait() local
134 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
[all …]
/drivers/md/
Ddm-bufio.c162 struct dm_bufio_client *c; member
178 static inline int dm_bufio_cache_index(struct dm_bufio_client *c) in dm_bufio_cache_index() argument
180 unsigned ret = c->blocks_per_page_bits - 1; in dm_bufio_cache_index()
187 #define DM_BUFIO_CACHE(c) (dm_bufio_caches[dm_bufio_cache_index(c)]) argument
188 #define DM_BUFIO_CACHE_NAME(c) (dm_bufio_cache_names[dm_bufio_cache_index(c)]) argument
192 static void dm_bufio_lock(struct dm_bufio_client *c) in dm_bufio_lock() argument
194 mutex_lock_nested(&c->lock, dm_bufio_in_request()); in dm_bufio_lock()
197 static int dm_bufio_trylock(struct dm_bufio_client *c) in dm_bufio_trylock() argument
199 return mutex_trylock(&c->lock); in dm_bufio_trylock()
202 static void dm_bufio_unlock(struct dm_bufio_client *c) in dm_bufio_unlock() argument
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ptp.c130 struct fw_ptp_cmd c; in cxgb4_ptprx_timestamping() local
133 memset(&c, 0, sizeof(c)); in cxgb4_ptprx_timestamping()
134 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptprx_timestamping()
138 c.retval_len16 = cpu_to_be32(FW_CMD_LEN16_V(sizeof(c) / 16)); in cxgb4_ptprx_timestamping()
139 c.u.init.sc = FW_PTP_SC_RXTIME_STAMP; in cxgb4_ptprx_timestamping()
140 c.u.init.mode = cpu_to_be16(mode); in cxgb4_ptprx_timestamping()
142 err = t4_wr_mbox(adapter, adapter->mbox, &c, sizeof(c), NULL); in cxgb4_ptprx_timestamping()
151 struct fw_ptp_cmd c; in cxgb4_ptp_txtype() local
154 memset(&c, 0, sizeof(c)); in cxgb4_ptp_txtype()
155 c.op_to_portid = cpu_to_be32(FW_CMD_OP_V(FW_PTP_CMD) | in cxgb4_ptp_txtype()
[all …]
/drivers/spi/
Dspi-txx9.c86 static u32 txx9spi_rd(struct txx9spi *c, int reg) in txx9spi_rd() argument
88 return __raw_readl(c->membase + reg); in txx9spi_rd()
90 static void txx9spi_wr(struct txx9spi *c, u32 val, int reg) in txx9spi_wr() argument
92 __raw_writel(val, c->membase + reg); in txx9spi_wr()
95 static void txx9spi_cs_func(struct spi_device *spi, struct txx9spi *c, in txx9spi_cs_func() argument
102 if (c->last_chipselect >= 0) in txx9spi_cs_func()
103 gpio_set_value(c->last_chipselect, in txx9spi_cs_func()
104 !c->last_chipselect_val); in txx9spi_cs_func()
105 c->last_chipselect = spi->chip_select; in txx9spi_cs_func()
106 c->last_chipselect_val = val; in txx9spi_cs_func()
[all …]
/drivers/mmc/core/
Dcard.h16 #define mmc_card_name(c) ((c)->cid.prod_name) argument
17 #define mmc_card_id(c) (dev_name(&(c)->dev)) argument
29 #define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT) argument
30 #define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY) argument
31 #define mmc_card_blockaddr(c) ((c)->state & MMC_STATE_BLOCKADDR) argument
32 #define mmc_card_ext_capacity(c) ((c)->state & MMC_CARD_SDXC) argument
33 #define mmc_card_removed(c) ((c) && ((c)->state & MMC_CARD_REMOVED)) argument
34 #define mmc_card_doing_bkops(c) ((c)->state & MMC_STATE_DOING_BKOPS) argument
35 #define mmc_card_suspended(c) ((c)->state & MMC_STATE_SUSPENDED) argument
37 #define mmc_card_set_present(c) ((c)->state |= MMC_STATE_PRESENT) argument
[all …]
/drivers/video/console/
Dvgacon.c69 static void vgacon_init(struct vc_data *c, int init);
70 static void vgacon_deinit(struct vc_data *c);
71 static void vgacon_cursor(struct vc_data *c, int mode);
72 static int vgacon_switch(struct vc_data *c);
73 static int vgacon_blank(struct vc_data *c, int blank, int mode_switch);
74 static void vgacon_scrolldelta(struct vc_data *c, int lines);
75 static int vgacon_set_origin(struct vc_data *c);
76 static void vgacon_save_screen(struct vc_data *c);
77 static void vgacon_invert_region(struct vc_data *c, u16 * p, int count);
158 static inline void vga_set_mem_top(struct vc_data *c) in vga_set_mem_top() argument
[all …]
/drivers/usb/misc/sisusbvga/
Dsisusb_con.c76 #define sisusbcon_memmovew(d, s, c) memmove(d, s, c) argument
77 #define sisusbcon_memcpyw(d, s, c) memcpy(d, s, c) argument
86 sisusbcon_memsetw(u16 *s, u16 c, unsigned int count) in sisusbcon_memsetw() argument
90 sisusbcon_writew(c, s++); in sisusbcon_memsetw()
107 sisusbcon_set_start_address(struct sisusb_usb_data *sisusb, struct vc_data *c) in sisusbcon_set_start_address() argument
109 sisusb->cur_start_addr = (c->vc_visible_origin - sisusb->scrbuf) / 2; in sisusbcon_set_start_address()
188 sisusb_is_inactive(struct vc_data *c, struct sisusb_usb_data *sisusb) in sisusb_is_inactive() argument
192 c->vc_mode != KD_TEXT) in sisusb_is_inactive()
207 sisusbcon_init(struct vc_data *c, int init) in sisusbcon_init() argument
218 sisusb = sisusb_get_sisusb(c->vc_num); in sisusbcon_init()
[all …]
/drivers/md/bcache/
Dsuper.c280 struct cache_set *c = container_of(cl, struct cache_set, sb_write); in bcache_write_super_unlock() local
282 up(&c->sb_write_mutex); in bcache_write_super_unlock()
285 void bcache_write_super(struct cache_set *c) in bcache_write_super() argument
287 struct closure *cl = &c->sb_write; in bcache_write_super()
291 down(&c->sb_write_mutex); in bcache_write_super()
292 closure_init(cl, &c->cl); in bcache_write_super()
294 c->sb.seq++; in bcache_write_super()
296 for_each_cache(ca, c, i) { in bcache_write_super()
300 ca->sb.seq = c->sb.seq; in bcache_write_super()
301 ca->sb.last_mount = c->sb.last_mount; in bcache_write_super()
[all …]
Dbtree.c96 #define PTR_HASH(c, k) \ argument
97 (((k)->ptr[0] >> c->bucket_bits) | PTR_GEN(k, 0))
123 struct btree *_child = bch_btree_node_get((b)->c, op, key, l, \
139 #define btree_root(fn, c, op, ...) \ argument
143 struct btree *_b = (c)->root; \
146 if (_b == (c)->root && \
151 bch_cannibalize_unlock(c); \
156 finish_wait(&(c)->btree_cache_wait, &(op)->wait); \
162 return ((void *) btree_bset_first(b)) + b->written * block_bytes(b->c); in write_block()
169 bch_btree_sort(&b->keys, &b->c->sort); in bch_btree_init_next()
[all …]
Djournal.c145 int bch_journal_read(struct cache_set *c, struct list_head *list) in bch_journal_read() argument
159 for_each_cache(ca, c, iter) { in bch_journal_read()
259 c->journal.seq = list_entry(list->prev, in bch_journal_read()
267 void bch_journal_mark(struct cache_set *c, struct list_head *list) in bch_journal_mark() argument
272 struct journal *j = &c->journal; in bch_journal_mark()
301 if (!__bch_extent_invalid(c, k)) { in bch_journal_mark()
305 if (ptr_available(c, k, j)) in bch_journal_mark()
306 atomic_inc(&PTR_BUCKET(c, k, j)->pin); in bch_journal_mark()
308 bch_initial_mark_key(c, 0, k); in bch_journal_mark()
387 static void btree_flush_write(struct cache_set *c) in btree_flush_write() argument
[all …]
/drivers/dma/
Domap-dma.c217 static inline struct omap_chan *to_omap_dma_chan(struct dma_chan *c) in to_omap_dma_chan() argument
219 return container_of(c, struct omap_chan, vc.chan); in to_omap_dma_chan()
348 static void omap_dma_chan_write(struct omap_chan *c, unsigned reg, unsigned val) in omap_dma_chan_write() argument
350 const struct omap_dma_reg *r = c->reg_map + reg; in omap_dma_chan_write()
352 omap_dma_write(val, r->type, c->channel_base + r->offset); in omap_dma_chan_write()
355 static unsigned omap_dma_chan_read(struct omap_chan *c, unsigned reg) in omap_dma_chan_read() argument
357 const struct omap_dma_reg *r = c->reg_map + reg; in omap_dma_chan_read()
359 return omap_dma_read(r->type, c->channel_base + r->offset); in omap_dma_chan_read()
362 static void omap_dma_clear_csr(struct omap_chan *c) in omap_dma_clear_csr() argument
365 omap_dma_chan_read(c, CSR); in omap_dma_clear_csr()
[all …]
Dbcm2835-dma.c93 struct bcm2835_chan *c; member
182 static inline size_t bcm2835_dma_max_frame_length(struct bcm2835_chan *c) in bcm2835_dma_max_frame_length() argument
185 return c->is_lite_channel ? MAX_LITE_DMA_LEN : MAX_DMA_LEN; in bcm2835_dma_max_frame_length()
200 static inline struct bcm2835_chan *to_bcm2835_dma_chan(struct dma_chan *c) in to_bcm2835_dma_chan() argument
202 return container_of(c, struct bcm2835_chan, vc.chan); in to_bcm2835_dma_chan()
216 dma_pool_free(desc->c->cb_pool, desc->cb_list[i].cb, in bcm2835_dma_free_cb_chain()
271 struct bcm2835_chan *c, in bcm2835_dma_count_frames_for_sg() argument
278 size_t plength = bcm2835_dma_max_frame_length(c); in bcm2835_dma_count_frames_for_sg()
313 struct bcm2835_chan *c = to_bcm2835_dma_chan(chan); in bcm2835_dma_create_cb_chain() local
329 d->c = c; in bcm2835_dma_create_cb_chain()
[all …]
/drivers/media/pci/ttpci/
Dav7110_ipack.c149 int c = 0; in av7110_ipack_instant_repack() local
151 while (c < count && (p->mpeg == 0 || in av7110_ipack_instant_repack()
158 if (buf[c] == 0x00) in av7110_ipack_instant_repack()
162 c++; in av7110_ipack_instant_repack()
165 if (buf[c] == 0x01) in av7110_ipack_instant_repack()
167 else if (buf[c] == 0) in av7110_ipack_instant_repack()
171 c++; in av7110_ipack_instant_repack()
175 switch (buf[c]) { in av7110_ipack_instant_repack()
190 p->cid = buf[c]; in av7110_ipack_instant_repack()
191 c++; in av7110_ipack_instant_repack()
[all …]
/drivers/clk/ti/
Dautoidle.c48 struct clk_hw_omap *c; in omap2_clk_deny_idle() local
50 c = to_clk_hw_omap(__clk_get_hw(clk)); in omap2_clk_deny_idle()
51 if (c->ops && c->ops->deny_idle) in omap2_clk_deny_idle()
52 c->ops->deny_idle(c); in omap2_clk_deny_idle()
64 struct clk_hw_omap *c; in omap2_clk_allow_idle() local
66 c = to_clk_hw_omap(__clk_get_hw(clk)); in omap2_clk_allow_idle()
67 if (c->ops && c->ops->allow_idle) in omap2_clk_allow_idle()
68 c->ops->allow_idle(c); in omap2_clk_allow_idle()
108 struct clk_ti_autoidle *c; in _clk_generic_allow_autoidle_all() local
110 list_for_each_entry(c, &autoidle_clks, node) in _clk_generic_allow_autoidle_all()
[all …]
/drivers/media/common/siano/
Dsmsdvb-main.c132 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in smsdvb_stats_not_ready() local
145 c->strength.len = 1; in smsdvb_stats_not_ready()
146 c->cnr.len = 1; in smsdvb_stats_not_ready()
147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready()
151 c->post_bit_error.len = n_layers; in smsdvb_stats_not_ready()
152 c->post_bit_count.len = n_layers; in smsdvb_stats_not_ready()
153 c->block_error.len = n_layers; in smsdvb_stats_not_ready()
154 c->block_count.len = n_layers; in smsdvb_stats_not_ready()
161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready()
[all …]
/drivers/media/dvb-frontends/
Dcxd2820r_t2.c28 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_set_frontend_t2() local
75 c->delivery_system, c->modulation, c->frequency, in cxd2820r_set_frontend_t2()
76 c->bandwidth_hz, c->inversion, c->stream_id); in cxd2820r_set_frontend_t2()
78 switch (c->bandwidth_hz) { in cxd2820r_set_frontend_t2()
131 if (c->stream_id > 255) { in cxd2820r_set_frontend_t2()
138 ret = regmap_write(priv->regmap[0], 0x23af, c->stream_id & 0xff); in cxd2820r_set_frontend_t2()
170 struct dtv_frontend_properties *c) in cxd2820r_get_frontend_t2() argument
186 c->transmission_mode = TRANSMISSION_MODE_2K; in cxd2820r_get_frontend_t2()
189 c->transmission_mode = TRANSMISSION_MODE_8K; in cxd2820r_get_frontend_t2()
192 c->transmission_mode = TRANSMISSION_MODE_4K; in cxd2820r_get_frontend_t2()
[all …]
Dcxd2820r_t.c28 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_set_frontend_t() local
61 c->delivery_system, c->modulation, c->frequency, in cxd2820r_set_frontend_t()
62 c->bandwidth_hz, c->inversion); in cxd2820r_set_frontend_t()
64 switch (c->bandwidth_hz) { in cxd2820r_set_frontend_t()
140 struct dtv_frontend_properties *c) in cxd2820r_get_frontend_t() argument
156 c->modulation = QPSK; in cxd2820r_get_frontend_t()
159 c->modulation = QAM_16; in cxd2820r_get_frontend_t()
162 c->modulation = QAM_64; in cxd2820r_get_frontend_t()
168 c->transmission_mode = TRANSMISSION_MODE_2K; in cxd2820r_get_frontend_t()
171 c->transmission_mode = TRANSMISSION_MODE_8K; in cxd2820r_get_frontend_t()
[all …]
/drivers/scsi/fnic/
Dfnic_res.c36 struct vnic_fc_config *c = &fnic->config; in fnic_get_vnic_config() local
43 sizeof(c->m), &c->m); \ in fnic_get_vnic_config()
73 c->wq_enet_desc_count = in fnic_get_vnic_config()
76 c->wq_enet_desc_count)); in fnic_get_vnic_config()
77 c->wq_enet_desc_count = ALIGN(c->wq_enet_desc_count, 16); in fnic_get_vnic_config()
79 c->wq_copy_desc_count = in fnic_get_vnic_config()
82 c->wq_copy_desc_count)); in fnic_get_vnic_config()
83 c->wq_copy_desc_count = ALIGN(c->wq_copy_desc_count, 16); in fnic_get_vnic_config()
85 c->rq_desc_count = in fnic_get_vnic_config()
88 c->rq_desc_count)); in fnic_get_vnic_config()
[all …]
/drivers/media/pci/bt8xx/
Dbtcx-risc.c101 clips[n].c.left = 0; in btcx_screen_clips()
102 clips[n].c.top = 0; in btcx_screen_clips()
103 clips[n].c.width = -win->left; in btcx_screen_clips()
104 clips[n].c.height = win->height; in btcx_screen_clips()
109 clips[n].c.left = swidth - win->left; in btcx_screen_clips()
110 clips[n].c.top = 0; in btcx_screen_clips()
111 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips()
112 clips[n].c.height = win->height; in btcx_screen_clips()
117 clips[n].c.left = 0; in btcx_screen_clips()
118 clips[n].c.top = 0; in btcx_screen_clips()
[all …]

12345678910>>...58