/linux/drivers/pcmcia/ |
A D | electra_cf.c | 193 cf = kzalloc(sizeof(*cf), GFP_KERNEL); in electra_cf_probe() 194 if (!cf) in electra_cf_probe() 203 cf->mem_base = ioremap(cf->mem_phys, cf->mem_size); in electra_cf_probe() 217 cf->iomem.start = (unsigned long)cf->mem_base; in electra_cf_probe() 230 cf->socket.pci_irq = cf->irq; in electra_cf_probe() 254 cf->socket.io_offset = cf->io_base; in electra_cf_probe() 284 cf->mem_phys, io.start, cf->irq); in electra_cf_probe() 291 release_region(cf->io_base, cf->io_size); in electra_cf_probe() 296 free_irq(cf->irq, cf); in electra_cf_probe() 319 free_irq(cf->irq, cf); in electra_cf_remove() [all …]
|
A D | omap_cf.c | 81 struct omap_cf_socket *cf = from_timer(cf, t, timer); in omap_cf_timer() local 91 if (cf->active) in omap_cf_timer() 218 cf = kzalloc(sizeof *cf, GFP_KERNEL); in omap_cf_probe() 219 if (!cf) in omap_cf_probe() 231 cf->irq = irq; in omap_cf_probe() 248 cf->iomem.start = cf->phys_cf; in omap_cf_probe() 249 cf->iomem.end = cf->iomem.end + SZ_8K - 1; in omap_cf_probe() 299 cf->socket.io[0].res = &cf->iomem; in omap_cf_probe() 316 kfree(cf); in omap_cf_probe() 329 free_irq(cf->irq, cf); in omap_cf_remove() [all …]
|
A D | at91_cf.c | 84 cf->present = present; in at91_cf_irq() 96 struct at91_cf_socket *cf; in at91_cf_get_status() local 104 if (at91_cf_present(cf)) { in at91_cf_get_status() 122 struct at91_cf_socket *cf; in at91_cf_set_socket() local 157 struct at91_cf_socket *cf; in at91_cf_set_io_map() local 195 struct at91_cf_socket *cf; in at91_cf_set_mem_map() local 230 struct at91_cf_socket *cf; in at91_cf_probe() local 255 cf = devm_kzalloc(&pdev->dev, sizeof(*cf), GFP_KERNEL); in at91_cf_probe() 256 if (!cf) in at91_cf_probe() 259 cf->board = board; in at91_cf_probe() [all …]
|
/linux/drivers/clk/sunxi-ng/ |
A D | ccu_frac.c | 14 struct ccu_frac_internal *cf) in ccu_frac_helper_is_enabled() argument 23 struct ccu_frac_internal *cf) in ccu_frac_helper_enable() argument 38 struct ccu_frac_internal *cf) in ccu_frac_helper_disable() 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() 80 return (reg & cf->select) ? cf->rates[1] : cf->rates[0]; in ccu_frac_helper_read_rate() 93 if (cf->rates[0] == rate) in ccu_frac_helper_set_rate() 95 else if (cf->rates[1] == rate) in ccu_frac_helper_set_rate() 96 sel = cf->select; in ccu_frac_helper_set_rate() [all …]
|
/linux/net/can/ |
A D | gw.c | 241 mod_store_ccdlc(cf); in mod_and_ccdlc() 247 mod_or_len(cf, mod); in mod_or_ccdlc() 248 mod_store_ccdlc(cf); in mod_or_ccdlc() 651 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 658 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 665 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() 672 memcpy(&mb.cf, &gwj->mod.modframe.set, sizeof(mb.cf)); in cgw_put_job() 681 memcpy(&mb.cf, &gwj->mod.modframe.and, sizeof(mb.cf)); in cgw_put_job() 688 memcpy(&mb.cf, &gwj->mod.modframe.or, sizeof(mb.cf)); in cgw_put_job() 695 memcpy(&mb.cf, &gwj->mod.modframe.xor, sizeof(mb.cf)); in cgw_put_job() [all …]
|
A D | isotp.c | 314 cf->len != padlen(cf->len)) in check_pad() 600 struct canfd_frame *cf; in isotp_rcv() local 681 cf->can_id = so->txid; in isotp_fill_dataframe() 682 cf->len = num + pcilen; in isotp_fill_dataframe() 687 cf->len = padlen(cf->len); in isotp_fill_dataframe() 688 memset(cf->data, so->opt.txpad_content, cf->len); in isotp_fill_dataframe() 691 cf->len = padlen(cf->len); in isotp_fill_dataframe() 693 cf->len); in isotp_fill_dataframe() 710 cf->can_id = so->txid; in isotp_create_fframe() 711 cf->len = so->tx.ll_dl; in isotp_create_fframe() [all …]
|
/linux/drivers/net/can/ |
A D | xilinx_can.c | 615 if (cf->len > 0) in xcan_write_frame() 617 if (cf->len > 4) in xcan_write_frame() 745 struct can_frame *cf; in xcan_rx() local 786 if (cf->len > 0) in xcan_rx() 788 if (cf->len > 4) in xcan_rx() 814 struct canfd_frame *cf; in xcanfd_rx() local 931 if (cf) { in xcan_set_error_state() 932 cf->data[6] = txerr; in xcan_set_error_state() 933 cf->data[7] = rxerr; in xcan_set_error_state() 962 struct can_frame *cf; in xcan_update_error_state_after_rxtx() local [all …]
|
A 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() 165 cf.can_id = CAN_RTR_FLAG; in slc_bump() 182 cf.can_id |= tmpid; in slc_bump() 185 if (cf.len >= '0' && cf.len < '9') in slc_bump() 186 cf.len -= '0'; in slc_bump() 196 cf.data[i] = (tmp << 4); in slc_bump() 200 cf.data[i] |= tmp; in slc_bump() 257 canid_t id = cf->can_id; in slc_encaps() [all …]
|
A D | janz-ican3.c | 920 memcpy(cf->data, &desc->data[2], cf->len); in ican3_to_can_frame() 937 memcpy(cf->data, &desc->data[6], cf->len); in ican3_to_can_frame() 973 memcpy(&desc->data[6], cf->data, cf->len); in can_frame_to_ican3() 994 struct can_frame *cf; in ican3_handle_msglost() local 1038 struct can_frame *cf; in ican3_handle_cevtind() local 1150 cf->data[6] = txerr; in ican3_handle_cevtind() 1151 cf->data[7] = rxerr; in ican3_handle_cevtind() 1169 cf->data[6] = txerr; in ican3_handle_cevtind() 1170 cf->data[7] = rxerr; in ican3_handle_cevtind() 1297 dlc = cf->len; in ican3_get_echo_skb() [all …]
|
A D | at91_can.c | 483 stats->tx_bytes += cf->len; in at91_start_xmit() 543 struct can_frame *cf; in at91_rx_overflow_err() local 553 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err() 557 stats->rx_bytes += cf->len; in at91_rx_overflow_err() 571 struct can_frame *cf) in at91_read_mb() argument 610 struct can_frame *cf; in at91_read_msg() local 619 at91_read_mb(dev, mb, cf); in at91_read_msg() 622 stats->rx_bytes += cf->len; in at91_read_msg() 746 cf->can_id |= CAN_ERR_ACK; in at91_poll_err_frame() 771 struct can_frame *cf; in at91_poll_err() local [all …]
|
/linux/drivers/net/can/peak_canfd/ |
A D | peak_canfd.c | 254 struct canfd_frame *cf; in pucan_handle_can_rx() local 296 cf->flags |= CANFD_BRS; in pucan_handle_can_rx() 299 cf->flags |= CANFD_ESI; in pucan_handle_can_rx() 308 cf->len = cf_len; in pucan_handle_can_rx() 316 memcpy(cf->data, msg->d, cf->len); in pucan_handle_can_rx() 318 stats->rx_bytes += cf->len; in pucan_handle_can_rx() 342 struct can_frame *cf; in pucan_handle_status() local 413 stats->rx_bytes += cf->len; in pucan_handle_status() 423 struct can_frame *cf; in pucan_handle_cache_critical() local 696 len = cf->len; in peak_canfd_start_xmit() [all …]
|
/linux/include/linux/can/ |
A D | length.h | 135 static inline u8 can_get_cc_dlc(const struct can_frame *cf, const u32 ctrlmode) in can_get_cc_dlc() argument 139 (cf->len == CAN_MAX_DLEN) && in can_get_cc_dlc() 140 (cf->len8_dlc > CAN_MAX_DLEN && cf->len8_dlc <= CAN_MAX_RAW_DLC)) in can_get_cc_dlc() 141 return cf->len8_dlc; in can_get_cc_dlc() 144 return cf->len; in can_get_cc_dlc() 148 static inline void can_frame_set_cc_len(struct can_frame *cf, const u8 dlc, in can_frame_set_cc_len() argument 153 cf->len8_dlc = dlc; in can_frame_set_cc_len() 156 cf->len = can_cc_dlc2len(dlc); in can_frame_set_cc_len()
|
/linux/drivers/net/can/ifi_canfd/ |
A D | ifi_canfd.c | 252 struct canfd_frame *cf; in ifi_canfd_read_fifo() local 294 cf->can_id = id; in ifi_canfd_read_fifo() 297 cf->flags |= CANFD_ESI; in ifi_canfd_read_fifo() 306 cf->flags |= CANFD_BRS; in ifi_canfd_read_fifo() 309 *(u32 *)(cf->data + i) = in ifi_canfd_read_fifo() 381 struct can_frame *cf; in ifi_canfd_handle_lec_err() local 460 struct can_frame *cf; in ifi_canfd_handle_state_change() local 505 cf->data[6] = bec.txerr; in ifi_canfd_handle_state_change() 506 cf->data[7] = bec.rxerr; in ifi_canfd_handle_state_change() 514 cf->data[6] = bec.txerr; in ifi_canfd_handle_state_change() [all …]
|
/linux/drivers/net/can/rcar/ |
A D | rcar_can.c | 227 struct can_frame *cf; in rcar_can_error() local 239 cf->can_id |= CAN_ERR_CRTL; in rcar_can_error() 240 cf->data[6] = txerr; in rcar_can_error() 241 cf->data[7] = rxerr; in rcar_can_error() 286 cf->can_id |= CAN_ERR_ACK; in rcar_can_error() 367 stats->rx_bytes += cf->len; in rcar_can_error() 611 writeb(cf->data[i], in rcar_can_start_xmit() 644 struct can_frame *cf; in rcar_can_rx_pkt() local 664 cf->can_id |= CAN_RTR_FLAG; in rcar_can_rx_pkt() 667 cf->data[dlc] = in rcar_can_rx_pkt() [all …]
|
/linux/drivers/net/can/cc770/ |
A D | cc770.c | 393 dlc = cf->len; in cc770_tx() 394 id = cf->can_id; in cc770_tx() 452 struct can_frame *cf; in cc770_rx() local 470 cf->can_id = CAN_RTR_FLAG; in cc770_rx() 473 cf->len = 0; in cc770_rx() 488 cf->can_id = id; in cc770_rx() 495 stats->rx_bytes += cf->len; in cc770_rx() 503 struct can_frame *cf; in cc770_err() local 529 if (cf->data[7] > 127) { in cc770_err() 575 stats->rx_bytes += cf->len; in cc770_err() [all …]
|
/linux/drivers/net/can/usb/ |
A D | usb_8dev.c | 339 struct can_frame *cf; in usb_8dev_rx_err_msg() local 364 cf->can_id |= CAN_ERR_PROT; in usb_8dev_rx_err_msg() 376 cf->can_id |= CAN_ERR_CRTL; in usb_8dev_rx_err_msg() 390 cf->can_id |= CAN_ERR_ACK; in usb_8dev_rx_err_msg() 446 cf->data[6] = txerr; in usb_8dev_rx_err_msg() 447 cf->data[7] = rxerr; in usb_8dev_rx_err_msg() 453 stats->rx_bytes += cf->len; in usb_8dev_rx_err_msg() 461 struct can_frame *cf; in usb_8dev_rx_can_msg() local 482 memcpy(cf->data, msg->data, cf->len); in usb_8dev_rx_can_msg() 642 memcpy(msg->data, cf->data, cf->len); in usb_8dev_start_xmit() [all …]
|
A D | ems_usb.c | 301 struct can_frame *cf; in ems_usb_rx_can_msg() local 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() 326 stats->rx_bytes += cf->len; in ems_usb_rx_can_msg() 332 struct can_frame *cf; in ems_usb_rx_err() local 345 cf->can_id |= CAN_ERR_BUSOFF; in ems_usb_rx_err() 388 cf->can_id |= CAN_ERR_CRTL; in ems_usb_rx_err() 393 cf->can_id |= CAN_ERR_CRTL; in ems_usb_rx_err() 401 stats->rx_bytes += cf->len; in ems_usb_rx_err() [all …]
|
/linux/drivers/net/can/usb/kvaser_usb/ |
A D | kvaser_usb_leaf.c | 399 *frame_len = cf->len; in kvaser_usb_leaf_frame_to_cmd() 433 memcpy(&cmd->u.tx_can.data[6], cf->data, cf->len); in kvaser_usb_leaf_frame_to_cmd() 638 struct can_frame *cf; in kvaser_usb_leaf_tx_acknowledge() local 761 struct can_frame *cf; in kvaser_usb_leaf_rx_error() local 797 memcpy(cf, &tmp_cf, sizeof(*cf)); in kvaser_usb_leaf_rx_error() 843 cf->data[6] = es->txerr; in kvaser_usb_leaf_rx_error() 844 cf->data[7] = es->rxerr; in kvaser_usb_leaf_rx_error() 992 struct can_frame *cf; in kvaser_usb_leaf_rx_can_msg() local 1053 cf->len); in kvaser_usb_leaf_rx_can_msg() 1058 cf->can_id <<= 18; in kvaser_usb_leaf_rx_can_msg() [all …]
|
A D | kvaser_usb_hydra.c | 870 struct can_frame *cf; in kvaser_usb_hydra_update_state() local 919 cf->data[6] = bec->txerr; in kvaser_usb_hydra_update_state() 1018 struct can_frame *cf; in kvaser_usb_hydra_error_frame() local 1074 cf->data[6] = bec.txerr; in kvaser_usb_hydra_error_frame() 1075 cf->data[7] = bec.rxerr; in kvaser_usb_hydra_error_frame() 1090 struct can_frame *cf; in kvaser_usb_hydra_one_shot_fail() local 1166 struct can_frame *cf; in kvaser_usb_hydra_rx_msg_std() local 1214 memcpy(cf->data, cmd->rx_can.data, cf->len); in kvaser_usb_hydra_rx_msg_std() 1226 struct canfd_frame *cf; in kvaser_usb_hydra_rx_msg_ext() local 1292 memcpy(cf->data, cmd->rx_can.kcan_payload, cf->len); in kvaser_usb_hydra_rx_msg_ext() [all …]
|
/linux/drivers/media/test-drivers/vicodec/ |
A D | codec-fwht.c | 712 quantize_intra(cf->coeffs, cf->de_coeffs, in encode_plane() 713 cf->i_frame_qp); 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() 779 struct fwht_cframe *cf, in fwht_encode_frame() argument 785 __be16 *rlco = cf->rlc_data; in fwht_encode_frame() 804 cf, chroma_h, chroma_w, in fwht_encode_frame() 812 cf, chroma_h, chroma_w, in fwht_encode_frame() 831 cf->size = (rlco - cf->rlc_data) * sizeof(*rlco); in fwht_encode_frame() [all …]
|
/linux/drivers/net/can/sja1000/ |
A D | sja1000.c | 298 id = cf->can_id; in sja1000_start_xmit() 318 for (i = 0; i < cf->len; i++) in sja1000_start_xmit() 340 struct can_frame *cf; in sja1000_rx() local 377 cf->can_id = id; in sja1000_rx() 383 stats->rx_bytes += cf->len; in sja1000_rx() 393 struct can_frame *cf; in sja1000_err() local 407 cf->data[6] = txerr; in sja1000_err() 408 cf->data[7] = rxerr; in sja1000_err() 413 cf->can_id |= CAN_ERR_CRTL; in sja1000_err() 477 cf->data[0] = alc & 0x1f; in sja1000_err() [all …]
|
/linux/drivers/dma/ |
A D | fsl_raid.c | 244 cf[index].efrl32 = efrl; in fill_cfd_frame() 261 desc->cf_addr = cf; in fsl_re_init_desc() 274 void *cf; in fsl_re_chan_alloc_desc() local 298 if (!cf) { in fsl_re_chan_alloc_desc() 322 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_genq() local 366 cf = desc->cf_addr; in fsl_re_prep_dma_genq() 409 struct fsl_re_cmpnd_frame *cf; in fsl_re_prep_dma_pq() local 487 cf = desc->cf_addr; in fsl_re_prep_dma_pq() 557 cf = desc->cf_addr; in fsl_re_prep_dma_memcpy() 575 void *cf; in fsl_re_alloc_chan_resources() local [all …]
|
/linux/tools/testing/selftests/rcutorture/bin/ |
A 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 |
|
/linux/lib/ |
A 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()
|
/linux/drivers/net/can/usb/peak_usb/ |
A D | pcan_usb.c | 455 struct can_frame *cf; in pcan_usb_decode_error() local 471 if (cf) { in pcan_usb_decode_error() 472 cf->can_id |= CAN_ERR_CRTL; in pcan_usb_decode_error() 504 } else if (cf && (cf->can_id & CAN_ERR_CRTL)) { in pcan_usb_decode_error() 634 struct can_frame *cf; in pcan_usb_decode_data() local 668 memset(cf->data, 0x0, sizeof(cf->data)); in pcan_usb_decode_data() 670 cf->can_id |= CAN_RTR_FLAG; in pcan_usb_decode_data() 675 memcpy(cf->data, mc->ptr, cf->len); in pcan_usb_decode_data() 769 if (cf->can_id & CAN_RTR_FLAG) in pcan_usb_encode_msg() 804 memcpy(pc, cf->data, cf->len); in pcan_usb_encode_msg() [all …]
|