Home
last modified time | relevance | path

Searched refs:cr (Results 1 – 25 of 120) sorted by relevance

12345

/drivers/target/iscsi/
Discsi_target_erl2.c85 struct iscsi_conn_recovery *cr) in iscsit_attach_active_connection_recovery_entry() argument
88 list_add_tail(&cr->cr_list, &sess->cr_active_list); in iscsit_attach_active_connection_recovery_entry()
96 struct iscsi_conn_recovery *cr) in iscsit_attach_inactive_connection_recovery_entry() argument
99 list_add_tail(&cr->cr_list, &sess->cr_inactive_list); in iscsit_attach_inactive_connection_recovery_entry()
113 struct iscsi_conn_recovery *cr; in iscsit_get_inactive_connection_recovery_entry() local
116 list_for_each_entry(cr, &sess->cr_inactive_list, cr_list) { in iscsit_get_inactive_connection_recovery_entry()
117 if (cr->cid == cid) { in iscsit_get_inactive_connection_recovery_entry()
119 return cr; in iscsit_get_inactive_connection_recovery_entry()
130 struct iscsi_conn_recovery *cr, *cr_tmp; in iscsit_free_connection_recovery_entires() local
133 list_for_each_entry_safe(cr, cr_tmp, &sess->cr_active_list, cr_list) { in iscsit_free_connection_recovery_entires()
[all …]
Discsi_target_tmr.c119 struct iscsi_conn_recovery *cr = NULL; in iscsit_tmr_task_reassign() local
135 ret = iscsit_find_cmd_for_recovery(conn->sess, &ref_cmd, &cr, hdr->rtt); in iscsit_tmr_task_reassign()
138 " %hu\n", ref_cmd->init_task_tag, cr->cid); in iscsit_tmr_task_reassign()
149 if (cr->maxrecvdatasegmentlength != in iscsit_tmr_task_reassign()
156 if (cr->maxxmitdatasegmentlength != in iscsit_tmr_task_reassign()
175 tmr_req->conn_recovery = cr; in iscsit_tmr_task_reassign()
187 struct iscsi_conn_recovery *cr, in iscsit_task_reassign_remove_cmd() argument
192 spin_lock(&cr->conn_recovery_cmd_lock); in iscsit_task_reassign_remove_cmd()
194 spin_unlock(&cr->conn_recovery_cmd_lock); in iscsit_task_reassign_remove_cmd()
197 " %hu on SID: %u\n", cr->cid, sess->sid); in iscsit_task_reassign_remove_cmd()
[all …]
/drivers/staging/lustre/lnet/lnet/
Dacceptor.c145 lnet_acceptor_connreq_t cr; in lnet_connect() local
151 CLASSERT(sizeof(cr) <= 16); /* not too big to be on the stack */ in lnet_connect()
169 cr.acr_magic = LNET_PROTO_ACCEPTOR_MAGIC; in lnet_connect()
170 cr.acr_version = LNET_PROTO_ACCEPTOR_VERSION; in lnet_connect()
171 cr.acr_nid = peer_nid; in lnet_connect()
177 cr.acr_version++; in lnet_connect()
181 cr.acr_magic = LNET_PROTO_MAGIC; in lnet_connect()
187 rc = libcfs_sock_write(sock, &cr, sizeof(cr), in lnet_connect()
213 lnet_acceptor_connreq_t cr; in lnet_accept() local
221 LASSERT(sizeof(cr) <= 16); /* not too big for the stack */ in lnet_accept()
[all …]
/drivers/iommu/
Domap-iommu2.c154 static void omap2_tlb_read_cr(struct omap_iommu *obj, struct cr_regs *cr) in omap2_tlb_read_cr() argument
156 cr->cam = iommu_read_reg(obj, MMU_READ_CAM); in omap2_tlb_read_cr()
157 cr->ram = iommu_read_reg(obj, MMU_READ_RAM); in omap2_tlb_read_cr()
160 static void omap2_tlb_load_cr(struct omap_iommu *obj, struct cr_regs *cr) in omap2_tlb_load_cr() argument
162 iommu_write_reg(obj, cr->cam | MMU_CAM_V, MMU_CAM); in omap2_tlb_load_cr()
163 iommu_write_reg(obj, cr->ram, MMU_RAM); in omap2_tlb_load_cr()
166 static u32 omap2_cr_to_virt(struct cr_regs *cr) in omap2_cr_to_virt() argument
168 u32 page_size = cr->cam & MMU_CAM_PGSZ_MASK; in omap2_cr_to_virt()
169 u32 mask = get_cam_va_mask(cr->cam & page_size); in omap2_cr_to_virt()
171 return cr->cam & mask; in omap2_cr_to_virt()
[all …]
Domap-iommu.c41 #define for_each_iotlb_cr(obj, n, __i, cr) \ argument
43 (__i < (n)) && (cr = __iotlb_read_cr((obj), __i), true); \
190 void omap_iotlb_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e) in omap_iotlb_cr_to_e() argument
192 BUG_ON(!cr || !e); in omap_iotlb_cr_to_e()
194 arch_iommu->cr_to_e(cr, e); in omap_iotlb_cr_to_e()
198 static inline int iotlb_cr_valid(struct cr_regs *cr) in iotlb_cr_valid() argument
200 if (!cr) in iotlb_cr_valid()
203 return arch_iommu->cr_valid(cr); in iotlb_cr_valid()
215 static u32 iotlb_cr_to_virt(struct cr_regs *cr) in iotlb_cr_to_virt() argument
217 return arch_iommu->cr_to_virt(cr); in iotlb_cr_to_virt()
[all …]
Domap-iommu.h79 void (*tlb_read_cr)(struct omap_iommu *obj, struct cr_regs *cr);
80 void (*tlb_load_cr)(struct omap_iommu *obj, struct cr_regs *cr);
84 int (*cr_valid)(struct cr_regs *cr);
85 u32 (*cr_to_virt)(struct cr_regs *cr);
86 void (*cr_to_e)(struct cr_regs *cr, struct iotlb_entry *e);
87 ssize_t (*dump_cr)(struct omap_iommu *obj, struct cr_regs *cr,
197 extern void omap_iotlb_cr_to_e(struct cr_regs *cr, struct iotlb_entry *e);
/drivers/media/platform/exynos4-is/
Dfimc-m2m.c400 struct v4l2_cropcap *cr) in fimc_m2m_cropcap() argument
405 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_cropcap()
409 cr->bounds.left = 0; in fimc_m2m_cropcap()
410 cr->bounds.top = 0; in fimc_m2m_cropcap()
411 cr->bounds.width = frame->o_width; in fimc_m2m_cropcap()
412 cr->bounds.height = frame->o_height; in fimc_m2m_cropcap()
413 cr->defrect = cr->bounds; in fimc_m2m_cropcap()
418 static int fimc_m2m_g_crop(struct file *file, void *fh, struct v4l2_crop *cr) in fimc_m2m_g_crop() argument
423 frame = ctx_get_frame(ctx, cr->type); in fimc_m2m_g_crop()
427 cr->c.left = frame->offs_h; in fimc_m2m_g_crop()
[all …]
/drivers/i2c/busses/
Di2c-iop3xx.c73 u32 cr = IOP3XX_ICR_GCD | IOP3XX_ICR_SCLEN | IOP3XX_ICR_UE; in iop3xx_i2c_enable() local
93 cr |= IOP3XX_ICR_ALD_IE | IOP3XX_ICR_BERR_IE | in iop3xx_i2c_enable()
96 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_enable()
102 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup() local
104 cr &= ~(IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE | in iop3xx_i2c_transaction_cleanup()
107 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_transaction_cleanup()
238 unsigned long cr = __raw_readl(iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr() local
251 cr &= ~(IOP3XX_ICR_MSTOP | IOP3XX_ICR_NACK); in iop3xx_i2c_send_target_addr()
252 cr |= IOP3XX_ICR_MSTART | IOP3XX_ICR_TBYTE; in iop3xx_i2c_send_target_addr()
254 __raw_writel(cr, iop3xx_adap->ioaddr + CR_OFFSET); in iop3xx_i2c_send_target_addr()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dllog_swab.c171 struct llog_changelog_rec *cr = (struct llog_changelog_rec *)rec; in lustre_swab_llog_rec() local
173 __swab16s(&cr->cr.cr_namelen); in lustre_swab_llog_rec()
174 __swab16s(&cr->cr.cr_flags); in lustre_swab_llog_rec()
175 __swab32s(&cr->cr.cr_type); in lustre_swab_llog_rec()
176 __swab64s(&cr->cr.cr_index); in lustre_swab_llog_rec()
177 __swab64s(&cr->cr.cr_prev); in lustre_swab_llog_rec()
178 __swab64s(&cr->cr.cr_time); in lustre_swab_llog_rec()
179 lustre_swab_lu_fid(&cr->cr.cr_tfid); in lustre_swab_llog_rec()
180 lustre_swab_lu_fid(&cr->cr.cr_pfid); in lustre_swab_llog_rec()
181 if (CHANGELOG_REC_EXTENDED(&cr->cr)) { in lustre_swab_llog_rec()
[all …]
/drivers/tty/serial/
Dapbuart.c46 unsigned int cr; in apbuart_stop_tx() local
48 cr = UART_GET_CTRL(port); in apbuart_stop_tx()
49 cr &= ~UART_CTRL_TI; in apbuart_stop_tx()
50 UART_PUT_CTRL(port, cr); in apbuart_stop_tx()
55 unsigned int cr; in apbuart_start_tx() local
57 cr = UART_GET_CTRL(port); in apbuart_start_tx()
58 cr |= UART_CTRL_TI; in apbuart_start_tx()
59 UART_PUT_CTRL(port, cr); in apbuart_start_tx()
67 unsigned int cr; in apbuart_stop_rx() local
69 cr = UART_GET_CTRL(port); in apbuart_stop_rx()
[all …]
Damba-pl010.c79 unsigned int cr; in pl010_stop_tx() local
81 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_tx()
82 cr &= ~UART010_CR_TIE; in pl010_stop_tx()
83 writel(cr, uap->port.membase + UART010_CR); in pl010_stop_tx()
89 unsigned int cr; in pl010_start_tx() local
91 cr = readb(uap->port.membase + UART010_CR); in pl010_start_tx()
92 cr |= UART010_CR_TIE; in pl010_start_tx()
93 writel(cr, uap->port.membase + UART010_CR); in pl010_start_tx()
99 unsigned int cr; in pl010_stop_rx() local
101 cr = readb(uap->port.membase + UART010_CR); in pl010_stop_rx()
[all …]
/drivers/net/ethernet/xilinx/
Dxilinx_axienet_main.c191 u32 cr; in axienet_dma_bd_init() local
240 cr = axienet_dma_in32(lp, XAXIDMA_RX_CR_OFFSET); in axienet_dma_bd_init()
242 cr = ((cr & ~XAXIDMA_COALESCE_MASK) | in axienet_dma_bd_init()
245 cr = ((cr & ~XAXIDMA_DELAY_MASK) | in axienet_dma_bd_init()
248 cr |= XAXIDMA_IRQ_ALL_MASK; in axienet_dma_bd_init()
250 axienet_dma_out32(lp, XAXIDMA_RX_CR_OFFSET, cr); in axienet_dma_bd_init()
253 cr = axienet_dma_in32(lp, XAXIDMA_TX_CR_OFFSET); in axienet_dma_bd_init()
255 cr = (((cr & ~XAXIDMA_COALESCE_MASK)) | in axienet_dma_bd_init()
258 cr = (((cr & ~XAXIDMA_DELAY_MASK)) | in axienet_dma_bd_init()
261 cr |= XAXIDMA_IRQ_ALL_MASK; in axienet_dma_bd_init()
[all …]
/drivers/media/platform/exynos-gsc/
Dgsc-core.c330 } else if (frm->addr.cr == addr) { in get_plane_info()
332 return frm->addr.cr; in get_plane_info()
354 t_min = min3(frm->addr.y, frm->addr.cb, frm->addr.cr); in gsc_set_prefbuf()
356 t_max = max3(frm->addr.y, frm->addr.cb, frm->addr.cr); in gsc_set_prefbuf()
365 mid_addr = frm->addr.cr; in gsc_set_prefbuf()
503 int gsc_g_crop(struct gsc_ctx *ctx, struct v4l2_crop *cr) in gsc_g_crop() argument
507 frame = ctx_get_frame(ctx, cr->type); in gsc_g_crop()
511 cr->c = frame->crop; in gsc_g_crop()
516 int gsc_try_crop(struct gsc_ctx *ctx, struct v4l2_crop *cr) in gsc_try_crop() argument
524 if (cr->c.top < 0 || cr->c.left < 0) { in gsc_try_crop()
[all …]
/drivers/scsi/
DBusLogic.h295 } cr; member
1138 union blogic_cntrl_reg cr; in blogic_busreset() local
1139 cr.all = 0; in blogic_busreset()
1140 cr.cr.bus_reset = true; in blogic_busreset()
1141 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_busreset()
1146 union blogic_cntrl_reg cr; in blogic_intreset() local
1147 cr.all = 0; in blogic_intreset()
1148 cr.cr.int_reset = true; in blogic_intreset()
1149 outb(cr.all, adapter->io_addr + BLOGIC_CNTRL_REG); in blogic_intreset()
1154 union blogic_cntrl_reg cr; in blogic_softreset() local
[all …]
/drivers/crypto/ccp/
Dccp-ops.c193 static int ccp_do_cmd(struct ccp_op *op, u32 *cr, unsigned int cr_count) in ccp_do_cmd() argument
226 iowrite32(*(cr + i), cr_addr); in ccp_do_cmd()
266 u32 cr[6]; in ccp_perform_aes() local
269 cr[0] = (CCP_ENGINE_AES << REQ1_ENGINE_SHIFT) in ccp_perform_aes()
274 cr[1] = op->src.u.dma.length - 1; in ccp_perform_aes()
275 cr[2] = ccp_addr_lo(&op->src.u.dma); in ccp_perform_aes()
276 cr[3] = (op->ksb_ctx << REQ4_KSB_SHIFT) in ccp_perform_aes()
279 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_aes()
280 cr[5] = (CCP_MEMTYPE_SYSTEM << REQ6_MEMTYPE_SHIFT) in ccp_perform_aes()
284 cr[0] |= ((0x7f) << REQ1_AES_CFB_SIZE_SHIFT); in ccp_perform_aes()
[all …]
/drivers/video/fbdev/
Dbt455.h35 static inline void bt455_read_cmap_entry(struct bt455_regs *regs, int cr, in bt455_read_cmap_entry() argument
38 bt455_select_reg(regs, cr); in bt455_read_cmap_entry()
47 static inline void bt455_write_cmap_entry(struct bt455_regs *regs, int cr, in bt455_write_cmap_entry() argument
50 bt455_select_reg(regs, cr); in bt455_write_cmap_entry()
59 static inline void bt455_write_ovly_entry(struct bt455_regs *regs, int cr, in bt455_write_ovly_entry() argument
62 bt455_select_reg(regs, cr); in bt455_write_ovly_entry()
/drivers/media/platform/s5p-g2d/
Dg2d.c415 struct v4l2_cropcap *cr) in vidioc_cropcap() argument
420 f = get_frame(ctx, cr->type); in vidioc_cropcap()
424 cr->bounds.left = 0; in vidioc_cropcap()
425 cr->bounds.top = 0; in vidioc_cropcap()
426 cr->bounds.width = f->width; in vidioc_cropcap()
427 cr->bounds.height = f->height; in vidioc_cropcap()
428 cr->defrect = cr->bounds; in vidioc_cropcap()
432 static int vidioc_g_crop(struct file *file, void *prv, struct v4l2_crop *cr) in vidioc_g_crop() argument
437 f = get_frame(ctx, cr->type); in vidioc_g_crop()
441 cr->c.left = f->o_height; in vidioc_g_crop()
[all …]
/drivers/isdn/hisax/
Dq931.c1192 unsigned char pd, cr_l, cr, mt; in dlogframe() local
1257 cr = *buf++; in dlogframe()
1259 cr = 0; in dlogframe()
1268 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1272 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1281 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1285 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
1358 cr = *buf++; in dlogframe()
1360 cr = 0; in dlogframe()
1369 cr & 0x7f, (cr & 0x80) ? "called" : "caller", in dlogframe()
[all …]
/drivers/rtc/
Drtc-ds1374.c174 int cr, sr; in ds1374_read_alarm() local
182 cr = ret = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_read_alarm()
199 alarm->enabled = !!(cr & DS1374_REG_CR_WACE); in ds1374_read_alarm()
213 int cr; in ds1374_set_alarm() local
239 ret = cr = i2c_smbus_read_byte_data(client, DS1374_REG_CR); in ds1374_set_alarm()
245 cr &= ~DS1374_REG_CR_WACE; in ds1374_set_alarm()
247 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
256 cr |= DS1374_REG_CR_WACE | DS1374_REG_CR_AIE; in ds1374_set_alarm()
257 cr &= ~DS1374_REG_CR_WDALM; in ds1374_set_alarm()
259 ret = i2c_smbus_write_byte_data(client, DS1374_REG_CR, cr); in ds1374_set_alarm()
/drivers/crypto/ux500/cryp/
Dcryp.c72 CRYP_PUT_BITS(&device_data->base->cr, in cryp_activity()
93 CRYP_SET_BITS(&device_data->base->cr, CRYP_CR_FFLUSH_MASK); in cryp_flush_inoutfifo()
147 writel_relaxed(cr_for_kse, &device_data->base->cr); in cryp_set_configuration()
170 CRYP_WRITE_BIT(&device_data->base->cr, in cryp_configure_protection()
173 CRYP_PUT_BITS(&device_data->base->cr, in cryp_configure_protection()
311 ctx->cr = readl_relaxed(&src_reg->cr) & CRYP_CR_CONTEXT_SAVE_MASK; in cryp_save_device_context()
332 algomode = ((ctx->cr & CRYP_CR_ALGOMODE_MASK) >> CRYP_CR_ALGOMODE_POS); in cryp_save_device_context()
/drivers/ipack/devices/
Dipoctal.c66 iowrite8(CR_DISABLE_RX | CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
68 iowrite8(CR_CMD_RESET_RX, &channel->regs->w.cr); in ipoctal_reset_channel()
69 iowrite8(CR_CMD_RESET_TX, &channel->regs->w.cr); in ipoctal_reset_channel()
70 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_reset_channel()
71 iowrite8(CR_CMD_RESET_MR, &channel->regs->w.cr); in ipoctal_reset_channel()
84 iowrite8(CR_ENABLE_RX, &channel->regs->w.cr); in ipoctal_port_activate()
162 iowrite8(CR_CMD_RESET_ERR_STATUS, &channel->regs->w.cr); in ipoctal_irq_rx()
223 iowrite8(CR_CMD_RESET_BREAK_CHANGE, &channel->regs->w.cr); in ipoctal_irq_channel()
226 iowrite8(CR_DISABLE_TX, &channel->regs->w.cr); in ipoctal_irq_channel()
230 iowrite8(CR_CMD_NEGATE_RTSN, &channel->regs->w.cr); in ipoctal_irq_channel()
[all …]
/drivers/hid/usbhid/
Dusbkbd.c103 struct usb_ctrlrequest *cr; member
257 if (!(kbd->cr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL))) in usb_kbd_alloc_mem()
270 kfree(kbd->cr); in usb_kbd_free_mem()
354 kbd->cr->bRequestType = USB_TYPE_CLASS | USB_RECIP_INTERFACE; in usb_kbd_probe()
355 kbd->cr->bRequest = 0x09; in usb_kbd_probe()
356 kbd->cr->wValue = cpu_to_le16(0x200); in usb_kbd_probe()
357 kbd->cr->wIndex = cpu_to_le16(interface->desc.bInterfaceNumber); in usb_kbd_probe()
358 kbd->cr->wLength = cpu_to_le16(1); in usb_kbd_probe()
361 (void *) kbd->cr, kbd->leds, 1, in usb_kbd_probe()
/drivers/spi/
Dspi-xilinx.c191 u16 cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET) in xilinx_spi_chipselect() local
194 cr |= XSPI_CR_CPHA; in xilinx_spi_chipselect()
196 cr |= XSPI_CR_CPOL; in xilinx_spi_chipselect()
197 xspi->write_fn(cr, xspi->regs + XSPI_CR_OFFSET); in xilinx_spi_chipselect()
256 u16 cr; in xilinx_spi_txrx_bufs() local
264 cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET) & in xilinx_spi_txrx_bufs()
266 xspi->write_fn(cr, xspi->regs + XSPI_CR_OFFSET); in xilinx_spi_txrx_bufs()
275 cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET); in xilinx_spi_txrx_bufs()
276 xspi->write_fn(cr | XSPI_CR_TRANS_INHIBIT, in xilinx_spi_txrx_bufs()
/drivers/usb/gadget/function/
Df_uac2.c1253 in_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_cur() argument
1259 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur()
1260 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur()
1261 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur()
1294 in_rq_range(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_range() argument
1300 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range()
1301 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range()
1302 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range()
1337 ac_rq_in(struct usb_function *fn, const struct usb_ctrlrequest *cr) in ac_rq_in() argument
1339 if (cr->bRequest == UAC2_CS_CUR) in ac_rq_in()
[all …]
/drivers/pwm/
Dpwm-imx.c119 u32 cr, sr; in imx_pwm_config_v2() local
143 cr = readl(imx->mmio_base + MX3_PWMCR); in imx_pwm_config_v2()
144 } while ((cr & MX3_PWMCR_SWR) && in imx_pwm_config_v2()
147 if (cr & MX3_PWMCR_SWR) in imx_pwm_config_v2()
175 cr = MX3_PWMCR_PRESCALER(prescale) | in imx_pwm_config_v2()
180 cr |= MX3_PWMCR_EN; in imx_pwm_config_v2()
182 writel(cr, imx->mmio_base + MX3_PWMCR); in imx_pwm_config_v2()

12345