/kernel/linux/linux-5.10/drivers/pcmcia/ |
D | electra_cf.c | 55 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 …]
|
D | omap_cf.c | 81 struct omap_cf_socket *cf = from_timer(cf, t, timer); in omap_cf_timer() local 84 if (present != cf->present) { in omap_cf_timer() 85 cf->present = present; in omap_cf_timer() 88 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer() 91 if (cf->active) in omap_cf_timer() 92 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_timer() 101 struct omap_cf_socket *cf = (struct omap_cf_socket *)_cf; in omap_cf_irq() local 103 omap_cf_timer(&cf->timer); in omap_cf_irq() 114 struct omap_cf_socket *cf; in omap_cf_get_status() local 117 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status() [all …]
|
D | at91_cf.c | 53 static inline int at91_cf_present(struct at91_cf_socket *cf) in at91_cf_present() argument 55 return !gpio_get_value(cf->board->det_pin); in at91_cf_present() 67 struct at91_cf_socket *cf = _cf; in at91_cf_irq() local 69 if (irq == gpio_to_irq(cf->board->det_pin)) { in at91_cf_irq() 70 unsigned present = at91_cf_present(cf); in at91_cf_irq() 73 if (present != cf->present) { in at91_cf_irq() 74 cf->present = present; in at91_cf_irq() 75 dev_dbg(&cf->pdev->dev, "card %s\n", in at91_cf_irq() 77 pcmcia_parse_events(&cf->socket, SS_DETECT); in at91_cf_irq() 86 struct at91_cf_socket *cf; in at91_cf_get_status() local [all …]
|
/kernel/linux/linux-5.10/drivers/clk/sunxi-ng/ |
D | ccu_frac.c | 14 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() 23 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument 33 writel(reg & ~cf->enable, common->base + common->reg); in ccu_frac_helper_enable() 38 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() argument 48 writel(reg | cf->enable, common->base + common->reg); in ccu_frac_helper_disable() 53 struct ccu_frac_internal *cf, in ccu_frac_helper_has_rate() argument 59 return (cf->rates[0] == rate) || (cf->rates[1] == rate); in ccu_frac_helper_has_rate() 63 struct ccu_frac_internal *cf) in ccu_frac_helper_read_rate() argument 73 clk_hw_get_name(&common->hw), cf->rates[0], cf->rates[1]); in ccu_frac_helper_read_rate() [all …]
|
D | ccu_frac.h | 28 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,
|
/kernel/linux/linux-5.10/net/can/ |
D | gw.c | 98 void (*modfunc[MAX_MODFUNCTIONS])(struct canfd_frame *cf, 107 void (*xor)(struct canfd_frame *cf, 109 void (*crc8)(struct canfd_frame *cf, 153 #define MODFUNC(func, op) static void func(struct canfd_frame *cf, \ 156 MODFUNC(mod_and_id, cf->can_id &= mod->modframe.and.can_id) 157 MODFUNC(mod_and_len, cf->len &= mod->modframe.and.len) 158 MODFUNC(mod_and_flags, cf->flags &= mod->modframe.and.flags) 159 MODFUNC(mod_and_data, *(u64 *)cf->data &= *(u64 *)mod->modframe.and.data) 160 MODFUNC(mod_or_id, cf->can_id |= mod->modframe.or.can_id) 161 MODFUNC(mod_or_len, cf->len |= mod->modframe.or.len) [all …]
|
D | isotp.c | 281 static int check_optimized(struct canfd_frame *cf, int start_index) in check_optimized() argument 288 if (cf->len <= CAN_MAX_DLEN) in check_optimized() 289 return (cf->len != start_index); in check_optimized() 297 return (cf->len != padlen(start_index)); in check_optimized() 301 static int check_pad(struct isotp_sock *so, struct canfd_frame *cf, in check_pad() argument 309 return check_optimized(cf, start_index); in check_pad() 317 cf->len != padlen(cf->len)) in check_pad() 322 for (i = start_index; i < cf->len; i++) in check_pad() 323 if (cf->data[i] != content) in check_pad() 329 static int isotp_rcv_fc(struct isotp_sock *so, struct canfd_frame *cf, int ae) in isotp_rcv_fc() argument [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/peak_canfd/ |
D | peak_canfd.c | 254 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 …]
|
/kernel/linux/linux-5.10/drivers/net/can/ |
D | xilinx_can.c | 555 struct canfd_frame *cf = (struct canfd_frame *)skb->data; in xcan_write_frame() local 560 if (cf->can_id & CAN_EFF_FLAG) { in xcan_write_frame() 562 id = ((cf->can_id & CAN_EFF_MASK) << XCAN_IDR_ID2_SHIFT) & in xcan_write_frame() 564 id |= (((cf->can_id & CAN_EFF_MASK) >> in xcan_write_frame() 573 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame() 578 id = ((cf->can_id & CAN_SFF_MASK) << XCAN_IDR_ID1_SHIFT) & in xcan_write_frame() 581 if (cf->can_id & CAN_RTR_FLAG) in xcan_write_frame() 586 dlc = can_len2dlc(cf->len) << XCAN_DLCR_DLC_SHIFT; in xcan_write_frame() 588 if (cf->flags & CANFD_BRS) in xcan_write_frame() 608 for (i = 0; i < cf->len; i += 4) { in xcan_write_frame() [all …]
|
D | slcan.c | 146 struct can_frame cf; in slc_bump() local 151 memset(&cf, 0, sizeof(cf)); in slc_bump() 155 cf.can_id = CAN_RTR_FLAG; in slc_bump() 159 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_SFF_ID_LEN]; in slc_bump() 165 cf.can_id = CAN_RTR_FLAG; in slc_bump() 168 cf.can_id |= CAN_EFF_FLAG; in slc_bump() 170 cf.can_dlc = sl->rbuff[SLC_CMD_LEN + SLC_EFF_ID_LEN]; in slc_bump() 182 cf.can_id |= tmpid; in slc_bump() 185 if (cf.can_dlc >= '0' && cf.can_dlc < '9') in slc_bump() 186 cf.can_dlc -= '0'; in slc_bump() [all …]
|
D | janz-ican3.c | 911 struct can_frame *cf) in ican3_to_can_frame() argument 915 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame() 917 cf->can_id |= desc->data[0] << 3; in ican3_to_can_frame() 918 cf->can_id |= (desc->data[1] & 0xe0) >> 5; in ican3_to_can_frame() 919 cf->can_dlc = get_can_dlc(desc->data[1] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame() 920 memcpy(cf->data, &desc->data[2], cf->can_dlc); in ican3_to_can_frame() 922 cf->can_dlc = get_can_dlc(desc->data[0] & ICAN3_CAN_DLC_MASK); in ican3_to_can_frame() 924 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame() 927 cf->can_id |= CAN_EFF_FLAG; in ican3_to_can_frame() 928 cf->can_id |= desc->data[2] << 21; /* 28-21 */ in ican3_to_can_frame() [all …]
|
D | at91_can.c | 453 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit() local 469 reg_mid = at91_can_id_to_reg_mid(cf->can_id); in at91_start_xmit() 470 reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) | in at91_start_xmit() 471 (cf->can_dlc << 16) | AT91_MCR_MTCR; in at91_start_xmit() 478 at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0)); in at91_start_xmit() 479 at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4)); in at91_start_xmit() 484 stats->tx_bytes += cf->can_dlc; in at91_start_xmit() 543 struct can_frame *cf; in at91_rx_overflow_err() local 549 skb = alloc_can_err_skb(dev, &cf); in at91_rx_overflow_err() 553 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/rcutorture/bin/ |
D | configNR_CPUS.sh | 15 cf=$1 16 if test ! -r $cf 18 echo Unreadable config fragment $cf 1>&2 21 if grep -q '^CONFIG_SMP=n$' $cf 26 if grep -q '^CONFIG_NR_CPUS=' $cf 28 grep '^CONFIG_NR_CPUS=' $cf |
|
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 451 struct can_frame *cf; in pcan_usb_decode_error() local 528 skb = alloc_can_err_skb(mc->netdev, &cf); in pcan_usb_decode_error() 534 cf->can_id |= CAN_ERR_BUSOFF; in pcan_usb_decode_error() 540 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error() 541 cf->data[1] = (mc->pdev->bec.txerr > mc->pdev->bec.rxerr) ? in pcan_usb_decode_error() 544 cf->data[6] = mc->pdev->bec.txerr; in pcan_usb_decode_error() 545 cf->data[7] = mc->pdev->bec.rxerr; in pcan_usb_decode_error() 551 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error() 552 cf->data[1] = (mc->pdev->bec.txerr > mc->pdev->bec.rxerr) ? in pcan_usb_decode_error() 555 cf->data[6] = mc->pdev->bec.txerr; in pcan_usb_decode_error() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/ifi_canfd/ |
D | ifi_canfd.c | 252 struct canfd_frame *cf; in ifi_canfd_read_fifo() local 262 skb = alloc_canfd_skb(ndev, &cf); in ifi_canfd_read_fifo() 264 skb = alloc_can_skb(ndev, (struct can_frame **)&cf); in ifi_canfd_read_fifo() 274 cf->len = can_dlc2len(dlc); in ifi_canfd_read_fifo() 276 cf->len = get_can_dlc(dlc); in ifi_canfd_read_fifo() 294 cf->can_id = id; in ifi_canfd_read_fifo() 297 cf->flags |= CANFD_ESI; in ifi_canfd_read_fifo() 303 cf->can_id |= CAN_RTR_FLAG; in ifi_canfd_read_fifo() 306 cf->flags |= CANFD_BRS; in ifi_canfd_read_fifo() 308 for (i = 0; i < cf->len; i += 4) { in ifi_canfd_read_fifo() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | decompress.c | 66 const struct compress_format *cf; in decompress_method() local 76 for (cf = compressed_formats; cf->name; cf++) { in decompress_method() 77 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method() 82 *name = cf->name; in decompress_method() 83 return cf->decompressor; in decompress_method()
|
/kernel/linux/linux-5.10/drivers/net/can/rcar/ |
D | rcar_can.c | 227 struct can_frame *cf; in rcar_can_error() local 232 skb = alloc_can_err_skb(ndev, &cf); in rcar_can_error() 239 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error() 247 cf->can_id |= CAN_ERR_BUSERROR | CAN_ERR_PROT; in rcar_can_error() 255 cf->data[3] = CAN_ERR_PROT_LOC_ACK_DEL; in rcar_can_error() 262 cf->data[2] |= CAN_ERR_PROT_BIT0; in rcar_can_error() 269 cf->data[2] |= CAN_ERR_PROT_BIT1; in rcar_can_error() 276 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in rcar_can_error() 283 cf->can_id |= CAN_ERR_ACK; in rcar_can_error() 284 cf->data[3] = CAN_ERR_PROT_LOC_ACK; in rcar_can_error() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/cc770/ |
D | cc770.c | 388 struct can_frame *cf = (struct can_frame *)priv->tx_skb->data; in cc770_tx() local 393 dlc = cf->can_dlc; in cc770_tx() 394 id = cf->can_id; in cc770_tx() 395 rtr = cf->can_id & CAN_RTR_FLAG ? 0 : MSGCFG_DIR; in cc770_tx() 418 cc770_write_reg(priv, msgobj[mo].data[i], cf->data[i]); in cc770_tx() 452 struct can_frame *cf; in cc770_rx() local 458 skb = alloc_can_skb(dev, &cf); in cc770_rx() 470 cf->can_id = CAN_RTR_FLAG; in cc770_rx() 472 cf->can_id |= CAN_EFF_FLAG; in cc770_rx() 473 cf->can_dlc = 0; in cc770_rx() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/usb/ |
D | usb_8dev.c | 339 struct can_frame *cf; in usb_8dev_rx_err_msg() local 357 skb = alloc_can_err_skb(priv->netdev, &cf); in usb_8dev_rx_err_msg() 364 cf->can_id |= CAN_ERR_PROT; in usb_8dev_rx_err_msg() 365 cf->data[2] = CAN_ERR_PROT_ACTIVE; in usb_8dev_rx_err_msg() 369 cf->can_id |= CAN_ERR_BUSOFF; in usb_8dev_rx_err_msg() 376 cf->can_id |= CAN_ERR_CRTL; in usb_8dev_rx_err_msg() 380 cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR; in usb_8dev_rx_err_msg() 390 cf->can_id |= CAN_ERR_ACK; in usb_8dev_rx_err_msg() 394 cf->data[3] = CAN_ERR_PROT_LOC_CRC_SEQ; in usb_8dev_rx_err_msg() 398 cf->data[2] |= CAN_ERR_PROT_BIT0; in usb_8dev_rx_err_msg() [all …]
|
D | ems_usb.c | 301 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->can_dlc = get_can_dlc(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->can_dlc; i++) in ems_usb_rx_can_msg() 322 cf->data[i] = msg->msg.can_msg.msg[i]; in ems_usb_rx_can_msg() 326 stats->rx_bytes += cf->can_dlc; in ems_usb_rx_can_msg() 332 struct can_frame *cf; in ems_usb_rx_err() local [all …]
|
/kernel/linux/linux-5.10/drivers/media/test-drivers/vicodec/ |
D | codec-fwht.c | 684 struct fwht_cframe *cf, u32 height, u32 width, in encode_plane() argument 710 fwht(input, cf->coeffs, stride, input_step, 1); in encode_plane() 711 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane() 712 cf->i_frame_qp); in encode_plane() 716 fwht16(deltablock, cf->coeffs, 8, 0); in encode_plane() 717 quantize_inter(cf->coeffs, cf->de_coeffs, in encode_plane() 718 cf->p_frame_qp); in encode_plane() 721 ifwht(cf->de_coeffs, cf->de_fwht, blocktype); in encode_plane() 724 add_deltas(cf->de_fwht, refp, 8, 1); in encode_plane() 725 fill_decoder_block(refp, cf->de_fwht, 8, 1); in encode_plane() [all …]
|
/kernel/linux/linux-5.10/drivers/dma/ |
D | fsl_raid.c | 238 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 …]
|
/kernel/linux/linux-5.10/drivers/net/can/sja1000/ |
D | sja1000.c | 285 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit() local 298 fi = dlc = cf->can_dlc; in sja1000_start_xmit() 299 id = cf->can_id; in sja1000_start_xmit() 320 priv->write_reg(priv, dreg++, cf->data[i]); in sja1000_start_xmit() 341 struct can_frame *cf; in sja1000_rx() local 349 skb = alloc_can_skb(dev, &cf); in sja1000_rx() 370 cf->can_dlc = get_can_dlc(fi & 0x0F); in sja1000_rx() 374 for (i = 0; i < cf->can_dlc; i++) in sja1000_rx() 375 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx() 378 cf->can_id = id; in sja1000_rx() [all …]
|
/kernel/linux/linux-5.10/drivers/net/can/usb/kvaser_usb/ |
D | kvaser_usb_hydra.c | 891 struct can_frame *cf; in kvaser_usb_hydra_update_state() local 911 skb = alloc_can_err_skb(netdev, &cf); in kvaser_usb_hydra_update_state() 919 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_update_state() 941 cf->data[6] = bec->txerr; in kvaser_usb_hydra_update_state() 942 cf->data[7] = bec->rxerr; in kvaser_usb_hydra_update_state() 947 stats->rx_bytes += cf->can_dlc; in kvaser_usb_hydra_update_state() 1041 struct can_frame *cf; in kvaser_usb_hydra_error_frame() local 1059 skb = alloc_can_err_skb(netdev, &cf); in kvaser_usb_hydra_error_frame() 1070 can_change_state(netdev, cf, tx_state, rx_state); in kvaser_usb_hydra_error_frame() 1075 cf->can_id |= CAN_ERR_RESTARTED; in kvaser_usb_hydra_error_frame() [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/powerpc/fsl/ |
D | ccf.txt | 11 fsl,corenet1-cf - CoreNet coherency fabric version 1. 14 fsl,corenet2-cf - CoreNet coherency fabric version 2. 17 fsl,corenet-cf - Used to represent the common registers 22 "fsl,corenet1-cf" or "fsl,corenet2-cf". 40 corenet-cf@18000 { 41 compatible = "fsl,corenet2-cf", "fsl,corenet-cf";
|