Home
last modified time | relevance | path

Searched refs:ic (Results 1 – 25 of 210) sorted by relevance

123456789

/openbmc/linux/drivers/md/
H A Ddm-integrity.c107 #define journal_entry_tag(ic, je) ((__u8 *)&(je)->last_bytes[(ic)->sectors_per_block]) argument
302 struct dm_integrity_c *ic; member
320 struct dm_integrity_c *ic; member
332 struct dm_integrity_c *ic; member
376 static void dm_integrity_io_error(struct dm_integrity_c *ic, const char *msg, int err) in dm_integrity_io_error() argument
379 atomic64_inc(&ic->number_of_mismatches); in dm_integrity_io_error()
380 if (!cmpxchg(&ic->failed, 0, err)) in dm_integrity_io_error()
384 static int dm_integrity_failed(struct dm_integrity_c *ic) in dm_integrity_failed() argument
386 return READ_ONCE(ic->failed); in dm_integrity_failed()
389 static bool dm_integrity_disable_recalculate(struct dm_integrity_c *ic) in dm_integrity_disable_recalculate() argument
[all …]
/openbmc/linux/net/rds/
H A Dib_cm.c59 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_set_flow_control() local
63 ic->i_flowctl = 1; in rds_ib_set_flow_control()
66 ic->i_flowctl = 0; in rds_ib_set_flow_control()
76 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_cm_connect_complete() local
124 ic->i_active_side ? "Active" : "Passive", in rds_ib_cm_connect_complete()
128 ic->i_flowctl ? ", flow control" : ""); in rds_ib_cm_connect_complete()
131 ic->i_sl = ic->i_cm_id->route.path_rec->sl; in rds_ib_cm_connect_complete()
133 atomic_set(&ic->i_cq_quiesce, 0); in rds_ib_cm_connect_complete()
139 rds_ib_send_init_ring(ic); in rds_ib_cm_connect_complete()
140 rds_ib_recv_init_ring(ic); in rds_ib_cm_connect_complete()
[all …]
H A Dib_recv.c48 void rds_ib_recv_init_ring(struct rds_ib_connection *ic) in rds_ib_recv_init_ring() argument
53 for (i = 0, recv = ic->i_recvs; i < ic->i_recv_ring.w_nr; i++, recv++) { in rds_ib_recv_init_ring()
65 sge->addr = ic->i_recv_hdrs_dma[i]; in rds_ib_recv_init_ring()
67 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
72 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_recv_init_ring()
122 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic, gfp_t gfp) in rds_ib_recv_alloc_caches() argument
126 ret = rds_ib_recv_alloc_cache(&ic->i_cache_incs, gfp); in rds_ib_recv_alloc_caches()
128 ret = rds_ib_recv_alloc_cache(&ic->i_cache_frags, gfp); in rds_ib_recv_alloc_caches()
130 free_percpu(ic->i_cache_incs.percpu); in rds_ib_recv_alloc_caches()
156 void rds_ib_recv_free_caches(struct rds_ib_connection *ic) in rds_ib_recv_free_caches() argument
[all …]
H A Dib_send.c73 static void rds_ib_send_unmap_data(struct rds_ib_connection *ic, in rds_ib_send_unmap_data() argument
78 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_data()
83 static void rds_ib_send_unmap_rdma(struct rds_ib_connection *ic, in rds_ib_send_unmap_rdma() argument
88 ib_dma_unmap_sg(ic->i_cm_id->device, in rds_ib_send_unmap_rdma()
123 static void rds_ib_send_unmap_atomic(struct rds_ib_connection *ic, in rds_ib_send_unmap_atomic() argument
129 ib_dma_unmap_sg(ic->i_cm_id->device, op->op_sg, 1, in rds_ib_send_unmap_atomic()
150 static struct rds_message *rds_ib_send_unmap_op(struct rds_ib_connection *ic, in rds_ib_send_unmap_op() argument
161 rds_ib_send_unmap_data(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
168 rds_ib_send_unmap_rdma(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
175 rds_ib_send_unmap_atomic(ic, send->s_op, wc_status); in rds_ib_send_unmap_op()
[all …]
H A Dib.c75 struct rds_ib_connection *ic; in rds_ib_nodev_connect() local
78 list_for_each_entry(ic, &ib_nodev_conns, ib_node) in rds_ib_nodev_connect()
79 rds_conn_connect_if_down(ic->conn); in rds_ib_nodev_connect()
85 struct rds_ib_connection *ic; in rds_ib_dev_shutdown() local
89 list_for_each_entry(ic, &rds_ibdev->conn_list, ib_node) in rds_ib_dev_shutdown()
90 rds_conn_path_drop(&ic->conn->c_path[0], true); in rds_ib_dev_shutdown()
298 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_conn_info_visitor() local
308 if (ic) { in rds_ib_conn_info_visitor()
310 iinfo->sl = ic->i_sl; in rds_ib_conn_info_visitor()
318 rdma_read_gids(ic->i_cm_id, (union ib_gid *)&iinfo->src_gid, in rds_ib_conn_info_visitor()
[all …]
H A Dib_frmr.c47 atomic_dec(&ibmr->ic->i_fastreg_inuse_count); in rds_transition_frwr_state()
129 while (atomic_dec_return(&ibmr->ic->i_fastreg_wrs) <= 0) { in rds_ib_post_reg_frmr()
130 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_reg_frmr()
143 atomic_inc(&ibmr->ic->i_fastreg_inuse_count); in rds_ib_post_reg_frmr()
164 ret = ib_post_send(ibmr->ic->i_cm_id->qp, &reg_wr.wr, NULL); in rds_ib_post_reg_frmr()
169 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_reg_frmr()
270 struct rdma_cm_id *i_cm_id = ibmr->ic->i_cm_id; in rds_ib_post_inv()
279 while (atomic_dec_return(&ibmr->ic->i_fastreg_wrs) <= 0) { in rds_ib_post_inv()
280 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_inv()
301 atomic_inc(&ibmr->ic->i_fastreg_wrs); in rds_ib_post_inv()
[all …]
H A Dib.h392 void rds_ib_mr_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc);
398 int rds_ib_recv_alloc_caches(struct rds_ib_connection *ic, gfp_t gfp);
399 void rds_ib_recv_free_caches(struct rds_ib_connection *ic);
403 void rds_ib_recv_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc,
406 void rds_ib_recv_init_ring(struct rds_ib_connection *ic);
407 void rds_ib_recv_clear_ring(struct rds_ib_connection *ic);
408 void rds_ib_recv_init_ack(struct rds_ib_connection *ic);
409 void rds_ib_attempt_ack(struct rds_ib_connection *ic);
410 void rds_ib_ack_send_complete(struct rds_ib_connection *ic);
411 u64 rds_ib_piggyb_ack(struct rds_ib_connection *ic);
[all …]
H A Dib_rdma.c128 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_add_conn() local
133 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_add_conn()
134 list_del(&ic->ib_node); in rds_ib_add_conn()
137 list_add_tail(&ic->ib_node, &rds_ibdev->conn_list); in rds_ib_add_conn()
141 ic->rds_ibdev = rds_ibdev; in rds_ib_add_conn()
147 struct rds_ib_connection *ic = conn->c_transport_data; in rds_ib_remove_conn() local
153 BUG_ON(list_empty(&ic->ib_node)); in rds_ib_remove_conn()
154 list_del(&ic->ib_node); in rds_ib_remove_conn()
157 list_add_tail(&ic->ib_node, &ib_nodev_conns); in rds_ib_remove_conn()
161 ic->rds_ibdev = NULL; in rds_ib_remove_conn()
[all …]
/openbmc/linux/drivers/gpu/ipu-v3/
H A Dipu-ic.c164 static inline u32 ipu_ic_read(struct ipu_ic *ic, unsigned offset) in ipu_ic_read() argument
166 return readl(ic->priv->base + offset); in ipu_ic_read()
169 static inline void ipu_ic_write(struct ipu_ic *ic, u32 value, unsigned offset) in ipu_ic_write() argument
171 writel(value, ic->priv->base + offset); in ipu_ic_write()
174 static int init_csc(struct ipu_ic *ic, in init_csc() argument
178 struct ipu_ic_priv *priv = ic->priv; in init_csc()
185 (priv->tpmem_base + ic->reg->tpmem_csc[csc_index]); in init_csc()
216 static int calc_resize_coeffs(struct ipu_ic *ic, in calc_resize_coeffs() argument
221 struct ipu_ic_priv *priv = ic->priv; in calc_resize_coeffs()
268 void ipu_ic_task_enable(struct ipu_ic *ic) in ipu_ic_task_enable() argument
[all …]
/openbmc/linux/fs/jffs2/
H A Dbuild.c37 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c) in next_inode() argument
40 if (ic->next) in next_inode()
41 return ic->next; in next_inode()
46 #define for_each_inode(i, c, ic) \ argument
47 for (i = 0, ic = first_inode_chain(&i, (c)); \
48 ic; \
49 ic = next_inode(&i, ic, (c)))
53 struct jffs2_inode_cache *ic, in jffs2_build_inode_pass1() argument
58 dbg_fsbuild("building directory inode #%u\n", ic->ino); in jffs2_build_inode_pass1()
61 for(fd = ic->scan_dents; fd; fd = fd->next) { in jffs2_build_inode_pass1()
[all …]
H A Dxattr.c525 rr.ino = cpu_to_je32(ref->ic->ino); in save_xattr_ref()
545 dbg_xattr("success on saving xref (ino=%u, xid=%u)\n", ref->ic->ino, ref->xd->xid); in save_xattr_ref()
550 …tic struct jffs2_xattr_ref *create_xattr_ref(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, in create_xattr_ref() argument
560 ref->ic = ic; in create_xattr_ref()
570 ref->next = ic->xref; in create_xattr_ref()
571 ic->xref = ref; in create_xattr_ref()
583 ref->ino = ref->ic->ino; in delete_xattr_ref()
596 void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic) in jffs2_xattr_delete_inode() argument
602 if (!ic || ic->pino_nlink > 0) in jffs2_xattr_delete_inode()
606 for (ref = ic->xref; ref; ref = _ref) { in jffs2_xattr_delete_inode()
[all …]
H A Dgc.c26 struct jffs2_inode_cache *ic,
127 struct jffs2_inode_cache *ic; in jffs2_garbage_collect_pass() local
159 for (ic = c->inocache_list[bucket]; ic; ic = ic->next) { in jffs2_garbage_collect_pass()
160 if (ic->ino < want_ino) in jffs2_garbage_collect_pass()
163 if (ic->state != INO_STATE_CHECKEDABSENT && in jffs2_garbage_collect_pass()
164 ic->state != INO_STATE_PRESENT) in jffs2_garbage_collect_pass()
168 ic->ino); in jffs2_garbage_collect_pass()
189 c->check_ino = ic->ino + c->inocache_hashsize; in jffs2_garbage_collect_pass()
191 if (!ic->pino_nlink) { in jffs2_garbage_collect_pass()
193 ic->ino); in jffs2_garbage_collect_pass()
[all …]
H A Dxattr.h55 struct jffs2_inode_cache *ic; /* reference to jffs2_inode_cache */ member
80 extern void jffs2_xattr_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
81 extern void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
82 extern void jffs2_xattr_free_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic);
109 #define jffs2_xattr_do_crccheck_inode(c, ic) argument
110 #define jffs2_xattr_delete_inode(c, ic) argument
111 #define jffs2_xattr_free_inode(c, ic) argument
H A Derase.c209 struct jffs2_inode_cache *ic = NULL; in jffs2_remove_node_refs_from_ino_list() local
220 ic = (struct jffs2_inode_cache *)(*prev); in jffs2_remove_node_refs_from_ino_list()
221 prev = &ic->nodes; in jffs2_remove_node_refs_from_ino_list()
243 if (!ic) { in jffs2_remove_node_refs_from_ino_list()
250 jeb->offset, jeb->offset + c->sector_size, ic->ino); in jffs2_remove_node_refs_from_ino_list()
257 this = ic->nodes; in jffs2_remove_node_refs_from_ino_list()
272 switch (ic->class) { in jffs2_remove_node_refs_from_ino_list()
275 jffs2_release_xattr_datum(c, (struct jffs2_xattr_datum *)ic); in jffs2_remove_node_refs_from_ino_list()
278 jffs2_release_xattr_ref(c, (struct jffs2_xattr_ref *)ic); in jffs2_remove_node_refs_from_ino_list()
282 if (ic->nodes == (void *)ic && ic->pino_nlink == 0) in jffs2_remove_node_refs_from_ino_list()
[all …]
H A Dscan.c967 struct jffs2_inode_cache *ic; in jffs2_scan_make_ino_cache() local
969 ic = jffs2_get_ino_cache(c, ino); in jffs2_scan_make_ino_cache()
970 if (ic) in jffs2_scan_make_ino_cache()
971 return ic; in jffs2_scan_make_ino_cache()
976 ic = jffs2_alloc_inode_cache(); in jffs2_scan_make_ino_cache()
977 if (!ic) { in jffs2_scan_make_ino_cache()
981 memset(ic, 0, sizeof(*ic)); in jffs2_scan_make_ino_cache()
983 ic->ino = ino; in jffs2_scan_make_ino_cache()
984 ic->nodes = (void *)ic; in jffs2_scan_make_ino_cache()
985 jffs2_add_ino_cache(c, ic); in jffs2_scan_make_ino_cache()
[all …]
/openbmc/linux/drivers/base/
H A Dattribute_container.c33 struct internal_container *ic = in internal_container_klist_get() local
35 get_device(&ic->classdev); in internal_container_klist_get()
40 struct internal_container *ic = in internal_container_klist_put() local
42 put_device(&ic->classdev); in internal_container_klist_put()
56 struct internal_container *ic = in attribute_container_classdev_to_container() local
58 return ic->cont; in attribute_container_classdev_to_container()
114 struct internal_container *ic in attribute_container_release() local
118 kfree(ic); in attribute_container_release()
150 struct internal_container *ic; in attribute_container_add_device() local
158 ic = kzalloc(sizeof(*ic), GFP_KERNEL); in attribute_container_add_device()
[all …]
/openbmc/linux/drivers/gpio/
H A Dgpio-lpc18xx.c55 static inline void lpc18xx_gpio_pin_ic_isel(struct lpc18xx_gpio_pin_ic *ic, in lpc18xx_gpio_pin_ic_isel() argument
58 u32 val = readl_relaxed(ic->base + LPC18XX_GPIO_PIN_IC_ISEL); in lpc18xx_gpio_pin_ic_isel()
65 writel_relaxed(val, ic->base + LPC18XX_GPIO_PIN_IC_ISEL); in lpc18xx_gpio_pin_ic_isel()
68 static inline void lpc18xx_gpio_pin_ic_set(struct lpc18xx_gpio_pin_ic *ic, in lpc18xx_gpio_pin_ic_set() argument
71 writel_relaxed(BIT(pin), ic->base + reg); in lpc18xx_gpio_pin_ic_set()
76 struct lpc18xx_gpio_pin_ic *ic = d->chip_data; in lpc18xx_gpio_pin_ic_mask() local
79 raw_spin_lock(&ic->lock); in lpc18xx_gpio_pin_ic_mask()
82 lpc18xx_gpio_pin_ic_set(ic, d->hwirq, in lpc18xx_gpio_pin_ic_mask()
86 lpc18xx_gpio_pin_ic_set(ic, d->hwirq, in lpc18xx_gpio_pin_ic_mask()
89 raw_spin_unlock(&ic->lock); in lpc18xx_gpio_pin_ic_mask()
[all …]
/openbmc/linux/drivers/irqchip/
H A Dirq-lpc32xx.c35 static inline u32 lpc32xx_ic_read(struct lpc32xx_irq_chip *ic, u32 reg) in lpc32xx_ic_read() argument
37 return readl_relaxed(ic->base + reg); in lpc32xx_ic_read()
40 static inline void lpc32xx_ic_write(struct lpc32xx_irq_chip *ic, in lpc32xx_ic_write() argument
43 writel_relaxed(val, ic->base + reg); in lpc32xx_ic_write()
48 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_mask() local
51 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) & ~mask; in lpc32xx_irq_mask()
52 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_mask()
57 struct lpc32xx_irq_chip *ic = irq_data_get_irq_chip_data(d); in lpc32xx_irq_unmask() local
60 val = lpc32xx_ic_read(ic, LPC32XX_INTC_MASK) | mask; in lpc32xx_irq_unmask()
61 lpc32xx_ic_write(ic, LPC32XX_INTC_MASK, val); in lpc32xx_irq_unmask()
[all …]
H A Dirq-apple-aic.c319 static u32 aic_ic_read(struct aic_irq_chip *ic, u32 reg) in aic_ic_read() argument
321 return readl_relaxed(ic->base + reg); in aic_ic_read()
324 static void aic_ic_write(struct aic_irq_chip *ic, u32 reg, u32 val) in aic_ic_write() argument
326 writel_relaxed(val, ic->base + reg); in aic_ic_write()
336 struct aic_irq_chip *ic = irq_data_get_irq_chip_data(d); in aic_irq_mask() local
338 u32 off = AIC_HWIRQ_DIE(hwirq) * ic->info.die_stride; in aic_irq_mask()
341 aic_ic_write(ic, ic->info.mask_set + off + MASK_REG(irq), MASK_BIT(irq)); in aic_irq_mask()
347 struct aic_irq_chip *ic = irq_data_get_irq_chip_data(d); in aic_irq_unmask() local
349 u32 off = AIC_HWIRQ_DIE(hwirq) * ic->info.die_stride; in aic_irq_unmask()
352 aic_ic_write(ic, ic->info.mask_clr + off + MASK_REG(irq), MASK_BIT(irq)); in aic_irq_unmask()
[all …]
/openbmc/linux/drivers/md/persistent-data/
H A Ddm-space-map-common.c520 static inline void init_inc_context(struct inc_context *ic) in init_inc_context() argument
522 ic->bitmap_block = NULL; in init_inc_context()
523 ic->bitmap = NULL; in init_inc_context()
524 ic->overflow_leaf = NULL; in init_inc_context()
527 static inline void exit_inc_context(struct ll_disk *ll, struct inc_context *ic) in exit_inc_context() argument
529 if (ic->bitmap_block) in exit_inc_context()
530 dm_tm_unlock(ll->tm, ic->bitmap_block); in exit_inc_context()
531 if (ic->overflow_leaf) in exit_inc_context()
532 dm_tm_unlock(ll->tm, ic->overflow_leaf); in exit_inc_context()
535 static inline void reset_inc_context(struct ll_disk *ll, struct inc_context *ic) in reset_inc_context() argument
[all …]
/openbmc/linux/net/netfilter/ipset/
H A Dip_set_getport.c68 const struct icmphdr *ic; in get_port() local
70 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port()
71 if (!ic) in get_port()
74 *port = (__force __be16)htons((ic->type << 8) | ic->code); in get_port()
79 const struct icmp6hdr *ic; in get_port() local
81 ic = skb_header_pointer(skb, protooff, sizeof(_ich), &_ich); in get_port()
82 if (!ic) in get_port()
86 htons((ic->icmp6_type << 8) | ic->icmp6_code); in get_port()
/openbmc/qemu/hw/arm/
H A Dbcm2835_peripherals.c93 object_initialize_child(obj, "ic", &s->ic, TYPE_BCM2835_IC); in raspi_peripherals_base_init()
195 qdev_get_gpio_in_named(DEVICE(&s_base->ic), BCM2835_IC_GPU_IRQ, in bcm2835_peripherals_realize()
201 qdev_get_gpio_in_named(DEVICE(&s_base->ic), in bcm2835_peripherals_realize()
215 qdev_get_gpio_in_named(DEVICE(&s_base->ic), in bcm2835_peripherals_realize()
280 if (!sysbus_realize(SYS_BUS_DEVICE(&s->ic), errp)) { in bcm_soc_peripherals_common_realize()
294 sysbus_mmio_get_region(SYS_BUS_DEVICE(&s->ic), 0)); in bcm_soc_peripherals_common_realize()
295 sysbus_pass_irq(SYS_BUS_DEVICE(s), SYS_BUS_DEVICE(&s->ic)); in bcm_soc_peripherals_common_realize()
304 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
307 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
310 qdev_get_gpio_in_named(DEVICE(&s->ic), BCM2835_IC_GPU_IRQ, in bcm_soc_peripherals_common_realize()
[all …]
/openbmc/linux/net/netfilter/
H A Dxt_tcpudp.c191 const struct icmphdr *ic; in icmp_match() local
199 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp_match()
200 if (!ic) { in icmp_match()
211 ic->type, ic->code, in icmp_match()
218 const struct icmp6hdr *ic; in icmp6_match() local
226 ic = skb_header_pointer(skb, par->thoff, sizeof(_icmph), &_icmph); in icmp6_match()
227 if (!ic) { in icmp6_match()
238 ic->icmp6_type, ic->icmp6_code, in icmp6_match()
/openbmc/linux/Documentation/devicetree/bindings/gpio/
H A Dnxp,lpc1850-gpio.txt8 - reg-names : Should be "gpio", "gpio-pin-ic", "gpio-group0-ic" and
9 "gpio-gpoup1-ic"
36 reg-names = "gpio", "gpio-pin-ic",
37 "gpio-group0-ic", "gpio-gpoup1-ic";
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2.c49 const struct atomisp_in_fmt_conv *ic = atomisp_in_fmt_conv; in csi2_enum_mbus_code() local
52 while (ic->code) { in csi2_enum_mbus_code()
54 code->code = ic->code; in csi2_enum_mbus_code()
57 i++, ic++; in csi2_enum_mbus_code()
96 const struct atomisp_in_fmt_conv *ic; in atomisp_csi2_set_ffmt() local
99 ic = atomisp_find_in_fmt_conv(ffmt->code); in atomisp_csi2_set_ffmt()
100 if (ic) in atomisp_csi2_set_ffmt()
101 actual_ffmt->code = ic->code; in atomisp_csi2_set_ffmt()

123456789