Home
last modified time | relevance | path

Searched refs:cf (Results 1 – 25 of 79) sorted by relevance

1234

/drivers/pcmcia/
Delectra_cf.c55 static int electra_cf_present(struct electra_cf_socket *cf) in electra_cf_present() argument
59 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present()
60 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present()
71 struct electra_cf_socket *cf = from_timer(cf, t, timer); in electra_cf_timer() local
72 int present = electra_cf_present(cf); in electra_cf_timer()
74 if (present != cf->present) { in electra_cf_timer()
75 cf->present = present; in electra_cf_timer()
76 pcmcia_parse_events(&cf->socket, SS_DETECT); in electra_cf_timer()
79 if (cf->active) in electra_cf_timer()
80 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in electra_cf_timer()
[all …]
Domap_cf.c80 struct omap_cf_socket *cf = from_timer(cf, t, timer); in omap_cf_timer() local
83 if (present != cf->present) { in omap_cf_timer()
84 cf->present = present; in omap_cf_timer()
87 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer()
90 if (cf->active) in omap_cf_timer()
91 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_timer()
100 struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf; in omap_cf_irq() local
102 omap_cf_timer(&cf->timer); in omap_cf_irq()
113 struct omap_cf_socket *cf; in omap_cf_get_status() local
116 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status()
[all …]
/drivers/clk/sunxi-ng/
Dccu_frac.c14 struct ccu_frac_internal *cf) in ccu_frac_helper_is_enabled() argument
19 return !(readl(common->base + common->reg) & cf->enable); in ccu_frac_helper_is_enabled()
24 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument
34 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable()
40 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() argument
50 writel(reg | cf->enable, common->base + common->reg); in ccu_frac_helper_disable()
56 struct ccu_frac_internal *cf, in ccu_frac_helper_has_rate() argument
62 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate()
67 struct ccu_frac_internal *cf) in ccu_frac_helper_read_rate() argument
77 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate()
[all …]
Dccu_frac.h28 struct ccu_frac_internal *cf);
30 struct ccu_frac_internal *cf);
32 struct ccu_frac_internal *cf);
35 struct ccu_frac_internal *cf,
39 struct ccu_frac_internal *cf);
42 struct ccu_frac_internal *cf,
/drivers/net/can/slcan/
Dslcan-core.c174 struct can_frame *cf; in slcan_bump_frame() local
179 skb = alloc_can_skb(sl->dev, &cf); in slcan_bump_frame()
187 cf->can_id = CAN_RTR_FLAG; in slcan_bump_frame()
191 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_SFF_ID_LEN]; in slcan_bump_frame()
197 cf->can_id = CAN_RTR_FLAG; in slcan_bump_frame()
200 cf->can_id |= CAN_EFF_FLAG; in slcan_bump_frame()
202 cf->len = sl->rbuff[SLCAN_CMD_LEN + SLCAN_EFF_ID_LEN]; in slcan_bump_frame()
214 cf->can_id |= tmpid; in slcan_bump_frame()
217 if (cf->len >= '0' && cf->len < '9') in slcan_bump_frame()
218 cf->len -= '0'; in slcan_bump_frame()
[all …]
/drivers/net/can/
Dxilinx_can.c587 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in xcan_write_frame() local
592 if (cf->can_id & CAN_EFF_FLAG) { in xcan_write_frame()
594 id = ((cf->can_id & CAN_EFF_MASK) << XCAN_IDR_ID2_SHIFT) & in xcan_write_frame()
596 id |= (((cf->can_id & CAN_EFF_MASK) >> in xcan_write_frame()
605 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
610 id = ((cf->can_id & CAN_SFF_MASK) << XCAN_IDR_ID1_SHIFT) & in xcan_write_frame()
613 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame()
618 dlc = can_fd_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame()
620 if (cf->flags & CANFD_BRS) in xcan_write_frame()
640 for (i = 0; i < cf->len; i += 4) { in xcan_write_frame()
[all …]
Djanz-ican3.c912 struct can_frame *cf) in ican3_to_can_frame() argument
916 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
918 cf->can_id |= desc->data[0] << 3; in ican3_to_can_frame()
919 cf->can_id |= (desc->data[1] & 0xe0) >> 5; in ican3_to_can_frame()
920 cf->len = can_cc_dlc2len(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
921 memcpy(cf->data, &desc->data[2], cf->len); in ican3_to_can_frame()
923 cf->len = can_cc_dlc2len(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame()
925 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame()
928 cf->can_id |= CAN_EFF_FLAG; in ican3_to_can_frame()
929 cf->can_id |= desc->data[2] << 21; /* 28-21 */ in ican3_to_can_frame()
[all …]
Dat91_can.c451 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit() local
467 reg_mid = at91_can_id_to_reg_mid(cf->can_id); in at91_start_xmit()
468 reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) | in at91_start_xmit()
469 (cf->len << 16) | AT91_MCR_MTCR; in at91_start_xmit()
476 at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0)); in at91_start_xmit()
477 at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4)); in at91_start_xmit()
540 struct can_frame *cf; in at91_rx_overflow_err() local
546 skb = alloc_can_err_skb(dev, &cf); in at91_rx_overflow_err()
550 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err()
551 cf->data[1] = CAN_ERR_CRTL_RX_OVERFLOW; in at91_rx_overflow_err()
[all …]
Dsun4i_can.c431 struct can_frame *cf = (struct can_frame *)skb->data; in sun4ican_start_xmit() local
442 id = cf->can_id; in sun4ican_start_xmit()
443 dlc = cf->len; in sun4ican_start_xmit()
463 writel(cf->data[i], priv->base + (dreg + i * 4)); in sun4ican_start_xmit()
481 struct can_frame *cf; in sun4i_can_rx() local
489 skb = alloc_can_skb(dev, &cf); in sun4i_can_rx()
494 cf->len = can_cc_dlc2len(fi & 0x0F); in sun4i_can_rx()
512 for (i = 0; i < cf->len; i++) in sun4i_can_rx()
513 cf->data[i] = readl(priv->base + dreg + i * 4); in sun4i_can_rx()
515 stats->rx_bytes += cf->len; in sun4i_can_rx()
[all …]
Dpch_can.c484 struct can_frame *cf; in pch_can_error() local
489 skb = alloc_can_err_skb(ndev, &cf); in pch_can_error()
498 cf->can_id |= CAN_ERR_BUSOFF; in pch_can_error()
502 cf->can_id |= CAN_ERR_CNT; in pch_can_error()
503 cf->data[6] = errc & PCH_TEC; in pch_can_error()
504 cf->data[7] = (errc & PCH_REC) >> 8; in pch_can_error()
511 cf->can_id |= CAN_ERR_CRTL; in pch_can_error()
513 cf->data[1] |= CAN_ERR_CRTL_RX_WARNING; in pch_can_error()
515 cf->data[1] |= CAN_ERR_CRTL_TX_WARNING; in pch_can_error()
523 cf->can_id |= CAN_ERR_CRTL; in pch_can_error()
[all …]
Dti_hecc.c469 struct can_frame *cf = (struct can_frame *)skb->data; in ti_hecc_xmit() local
490 data = cf->len | (get_tx_head_prio(priv) << 8); in ti_hecc_xmit()
491 if (cf->can_id & CAN_RTR_FLAG) /* Remote transmission request */ in ti_hecc_xmit()
495 if (cf->can_id & CAN_EFF_FLAG) /* Extended frame format */ in ti_hecc_xmit()
496 data = (cf->can_id & CAN_EFF_MASK) | HECC_CANMID_IDE; in ti_hecc_xmit()
498 data = (cf->can_id & CAN_SFF_MASK) << 18; in ti_hecc_xmit()
501 be32_to_cpu(*(__be32 *)(cf->data))); in ti_hecc_xmit()
502 if (cf->len > 4) in ti_hecc_xmit()
504 be32_to_cpu(*(__be32 *)(cf->data + 4))); in ti_hecc_xmit()
506 *(u32 *)(cf->data + 4) = 0; in ti_hecc_xmit()
[all …]
/drivers/net/can/peak_canfd/
Dpeak_canfd.c255 struct canfd_frame *cf; in pucan_handle_can_rx() local
291 skb = alloc_canfd_skb(priv->ndev, &cf); in pucan_handle_can_rx()
296 cf->flags |= CANFD_BRS; in pucan_handle_can_rx()
299 cf->flags |= CANFD_ESI; in pucan_handle_can_rx()
302 skb = alloc_can_skb(priv->ndev, (struct can_frame **)&cf); in pucan_handle_can_rx()
307 cf->can_id = le32_to_cpu(msg->can_id); in pucan_handle_can_rx()
308 cf->len = cf_len; in pucan_handle_can_rx()
311 cf->can_id |= CAN_EFF_FLAG; in pucan_handle_can_rx()
314 cf->can_id |= CAN_RTR_FLAG; in pucan_handle_can_rx()
316 memcpy(cf->data, msg->d, cf->len); in pucan_handle_can_rx()
[all …]
/drivers/net/can/ctucanfd/
Dctucanfd_base.c515 static bool ctucan_insert_frame(struct ctucan_priv *priv, const struct canfd_frame *cf, u8 buf, in ctucan_insert_frame() argument
529 if (cf->len > CANFD_MAX_DLEN) in ctucan_insert_frame()
533 if (cf->can_id & CAN_RTR_FLAG) in ctucan_insert_frame()
536 if (cf->can_id & CAN_EFF_FLAG) in ctucan_insert_frame()
541 if (cf->flags & CANFD_BRS) in ctucan_insert_frame()
545 ffw |= FIELD_PREP(REG_FRAME_FORMAT_W_DLC, can_fd_len2dlc(cf->len)); in ctucan_insert_frame()
548 if (cf->can_id & CAN_EFF_FLAG) in ctucan_insert_frame()
549 idw = cf->can_id & CAN_EFF_MASK; in ctucan_insert_frame()
551 idw = FIELD_PREP(REG_IDENTIFIER_W_IDENTIFIER_BASE, cf->can_id & CAN_SFF_MASK); in ctucan_insert_frame()
559 if (!(cf->can_id & CAN_RTR_FLAG)) { in ctucan_insert_frame()
[all …]
/drivers/net/can/ifi_canfd/
Difi_canfd.c253 struct canfd_frame *cf; in ifi_canfd_read_fifo() local
263 skb = alloc_canfd_skb(ndev, &cf); in ifi_canfd_read_fifo()
265 skb = alloc_can_skb(ndev, (struct can_frame **)&cf); in ifi_canfd_read_fifo()
275 cf->len = can_fd_dlc2len(dlc); in ifi_canfd_read_fifo()
277 cf->len = can_cc_dlc2len(dlc); in ifi_canfd_read_fifo()
295 cf->can_id = id; in ifi_canfd_read_fifo()
298 cf->flags |= CANFD_ESI; in ifi_canfd_read_fifo()
304 cf->can_id |= CAN_RTR_FLAG; in ifi_canfd_read_fifo()
307 cf->flags |= CANFD_BRS; in ifi_canfd_read_fifo()
309 for (i = 0; i < cf->len; i += 4) { in ifi_canfd_read_fifo()
[all …]
/drivers/net/can/sja1000/
Dsja1000.c287 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit() local
299 fi = can_get_cc_dlc(cf, priv->can.ctrlmode); in sja1000_start_xmit()
300 id = cf->can_id; in sja1000_start_xmit()
320 for (i = 0; i < cf->len; i++) in sja1000_start_xmit()
321 priv->write_reg(priv, dreg++, cf->data[i]); in sja1000_start_xmit()
342 struct can_frame *cf; in sja1000_rx() local
350 skb = alloc_can_skb(dev, &cf); in sja1000_rx()
371 can_frame_set_cc_len(cf, fi & 0x0F, priv->can.ctrlmode); in sja1000_rx()
375 for (i = 0; i < cf->len; i++) in sja1000_rx()
376 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx()
[all …]
/drivers/media/test-drivers/vicodec/
Dcodec-fwht.c685 struct fwht_cframe *cf, u32 height, u32 width, in encode_plane() argument
711 fwht(input, cf->coeffs, stride, input_step, 1); in encode_plane()
712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane()
713 cf->i_frame_qp); in encode_plane()
717 fwht16(deltablock, cf->coeffs, 8, 0); in encode_plane()
718 quantize_inter(cf->coeffs, cf->de_coeffs, in encode_plane()
719 cf->p_frame_qp); in encode_plane()
722 ifwht(cf->de_coeffs, cf->de_fwht, blocktype); in encode_plane()
725 add_deltas(cf->de_fwht, refp, 8, 1); in encode_plane()
726 fill_decoder_block(refp, cf->de_fwht, 8, 1); in encode_plane()
[all …]
/drivers/net/can/rcar/
Drcar_can.c225 struct can_frame *cf; in rcar_can_error() local
230 skb = alloc_can_err_skb(ndev, &cf); in rcar_can_error()
237 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error()
245 cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT; in rcar_can_error()
253 cf->data[3] = CAN_ERR_PROT_LOC_ACK_DEL; in rcar_can_error()
260 cf->data[2] |= CAN_ERR_PROT_BIT0; in rcar_can_error()
267 cf->data[2] |= CAN_ERR_PROT_BIT1; in rcar_can_error()
274 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in rcar_can_error()
281 cf->can_id |= CAN_ERR_ACK; in rcar_can_error()
282 cf->data[3] = CAN_ERR_PROT_LOC_ACK; in rcar_can_error()
[all …]
/drivers/net/can/usb/
Dusb_8dev.c336 struct can_frame *cf; in usb_8dev_rx_err_msg() local
354 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg()
361 cf->can_id |= CAN_ERR_PROT; in usb_8dev_rx_err_msg()
362 cf->data[2] = CAN_ERR_PROT_ACTIVE; in usb_8dev_rx_err_msg()
366 cf->can_id |= CAN_ERR_BUSOFF; in usb_8dev_rx_err_msg()
373 cf->can_id |= CAN_ERR_CRTL; in usb_8dev_rx_err_msg()
377 cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR; in usb_8dev_rx_err_msg()
387 cf->can_id |= CAN_ERR_ACK; in usb_8dev_rx_err_msg()
391 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in usb_8dev_rx_err_msg()
395 cf->data[2] |= CAN_ERR_PROT_BIT0; in usb_8dev_rx_err_msg()
[all …]
Dems_usb.c301 struct can_frame *cf; in ems_usb_rx_can_msg() local
306 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg()
310 cf->can_id = le32_to_cpu(msg->msg.can_msg.id); in ems_usb_rx_can_msg()
311 cf->len = can_cc_dlc2len(msg->msg.can_msg.length & 0xF); in ems_usb_rx_can_msg()
315 cf->can_id |= CAN_EFF_FLAG; in ems_usb_rx_can_msg()
319 cf->can_id |= CAN_RTR_FLAG; in ems_usb_rx_can_msg()
321 for (i = 0; i < cf->len; i++) in ems_usb_rx_can_msg()
322 cf->data[i] = msg->msg.can_msg.msg[i]; in ems_usb_rx_can_msg()
324 stats->rx_bytes += cf->len; in ems_usb_rx_can_msg()
333 struct can_frame *cf; in ems_usb_rx_err() local
[all …]
Dmcba_usb.c178 struct can_frame *cf) in mcba_usb_get_free_ctx() argument
188 if (cf) in mcba_usb_get_free_ctx()
309 struct can_frame *cf = (struct can_frame *)skb->data; in mcba_usb_start_xmit() local
321 ctx = mcba_usb_get_free_ctx(priv, cf); in mcba_usb_start_xmit()
325 if (cf->can_id & CAN_EFF_FLAG) { in mcba_usb_start_xmit()
331 sid |= (cf->can_id & 0x1ffc0000) >> 13; in mcba_usb_start_xmit()
333 sid |= (cf->can_id & 0x30000) >> 16; in mcba_usb_start_xmit()
337 put_unaligned_be16(cf->can_id & 0xffff, &usb_msg.eid); in mcba_usb_start_xmit()
342 put_unaligned_be16((cf->can_id & CAN_SFF_MASK) << 5, in mcba_usb_start_xmit()
347 usb_msg.dlc = cf->len; in mcba_usb_start_xmit()
[all …]
/drivers/dma/
Dfsl_raid.c238 static void fill_cfd_frame(struct fsl_re_cmpnd_frame *cf, u8 index, in fill_cfd_frame() argument
244 cf[index].efrl32 = efrl; in fill_cfd_frame()
245 cf[index].addr_high = upper_32_bits(addr); in fill_cfd_frame()
246 cf[index].addr_low = lower_32_bits(addr); in fill_cfd_frame()
251 void *cf, dma_addr_t paddr) in fsl_re_init_desc() argument
261 desc->cf_addr = cf; in fsl_re_init_desc()
264 desc->cdb_addr = (void *)(cf + FSL_RE_CF_DESC_SIZE); in fsl_re_init_desc()
274 void *cf; in fsl_re_chan_alloc_desc() local
296 cf = dma_pool_alloc(re_chan->re_dev->cf_desc_pool, GFP_NOWAIT, in fsl_re_chan_alloc_desc()
298 if (!cf) { in fsl_re_chan_alloc_desc()
[all …]
/drivers/net/can/usb/kvaser_usb/
Dkvaser_usb_hydra.c923 struct can_frame *cf; in kvaser_usb_hydra_update_state() local
942 skb = alloc_can_err_skb(netdev, &cf); in kvaser_usb_hydra_update_state()
950 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_update_state()
972 cf->can_id |= CAN_ERR_CNT; in kvaser_usb_hydra_update_state()
973 cf->data[6] = bec->txerr; in kvaser_usb_hydra_update_state()
974 cf->data[7] = bec->rxerr; in kvaser_usb_hydra_update_state()
1070 struct can_frame *cf; in kvaser_usb_hydra_error_frame() local
1088 skb = alloc_can_err_skb(netdev, &cf); in kvaser_usb_hydra_error_frame()
1099 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_error_frame()
1104 cf->can_id |= CAN_ERR_RESTARTED; in kvaser_usb_hydra_error_frame()
[all …]
Dkvaser_usb_leaf.c540 struct can_frame *cf = (struct can_frame *)skb->data; in kvaser_usb_leaf_frame_to_cmd() local
560 if (cf->can_id & CAN_EFF_FLAG) { in kvaser_usb_leaf_frame_to_cmd()
562 cmd->u.tx_can.data[0] = (cf->can_id >> 24) & 0x1f; in kvaser_usb_leaf_frame_to_cmd()
563 cmd->u.tx_can.data[1] = (cf->can_id >> 18) & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
564 cmd->u.tx_can.data[2] = (cf->can_id >> 14) & 0x0f; in kvaser_usb_leaf_frame_to_cmd()
565 cmd->u.tx_can.data[3] = (cf->can_id >> 6) & 0xff; in kvaser_usb_leaf_frame_to_cmd()
566 cmd->u.tx_can.data[4] = cf->can_id & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
569 cmd->u.tx_can.data[0] = (cf->can_id >> 6) & 0x1f; in kvaser_usb_leaf_frame_to_cmd()
570 cmd->u.tx_can.data[1] = cf->can_id & 0x3f; in kvaser_usb_leaf_frame_to_cmd()
573 cmd->u.tx_can.data[5] = cf->len; in kvaser_usb_leaf_frame_to_cmd()
[all …]
/drivers/net/can/cc770/
Dcc770.c389 struct can_frame *cf = (struct can_frame *)priv->tx_skb->data; in cc770_tx() local
394 dlc = cf->len; in cc770_tx()
395 id = cf->can_id; in cc770_tx()
396 rtr = cf->can_id & CAN_RTR_FLAG ? 0 : MSGCFG_DIR; in cc770_tx()
419 cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]); in cc770_tx()
453 struct can_frame *cf; in cc770_rx() local
459 skb = alloc_can_skb(dev, &cf); in cc770_rx()
471 cf->can_id = CAN_RTR_FLAG; in cc770_rx()
473 cf->can_id |= CAN_EFF_FLAG; in cc770_rx()
474 cf->len = 0; in cc770_rx()
[all …]
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c456 struct can_frame *cf; in pcan_usb_decode_error() local
465 skb = alloc_can_err_skb(mc->netdev, &cf); in pcan_usb_decode_error()
472 if (cf) { in pcan_usb_decode_error()
473 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error()
474 cf->data[1] |= CAN_ERR_CRTL_RX_OVERFLOW; in pcan_usb_decode_error()
501 can_change_state(mc->netdev, cf, tx_state, rx_state); in pcan_usb_decode_error()
505 } else if (cf && (cf->can_id & CAN_ERR_CRTL)) { in pcan_usb_decode_error()
509 cf->can_id = CAN_ERR_CNT; in pcan_usb_decode_error()
510 cf->data[6] = mc->pdev->bec.txerr; in pcan_usb_decode_error()
511 cf->data[7] = mc->pdev->bec.rxerr; in pcan_usb_decode_error()
[all …]

1234