/linux-2.6.39/drivers/pcmcia/ |
D | electra_cf.c | 66 static int electra_cf_present(struct electra_cf_socket *cf) in electra_cf_present() argument 70 gpio = in_le32(cf->gpio_base+0x40); in electra_cf_present() 71 return !(gpio & (1 << cf->gpio_detect)); in electra_cf_present() 82 struct electra_cf_socket *cf = (void *) _cf; in electra_cf_timer() local 83 int present = electra_cf_present(cf); in electra_cf_timer() 85 if (present != cf->present) { in electra_cf_timer() 86 cf->present = present; in electra_cf_timer() 87 pcmcia_parse_events(&cf->socket, SS_DETECT); in electra_cf_timer() 90 if (cf->active) in electra_cf_timer() 91 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in electra_cf_timer() [all …]
|
D | bfin_cf_pcmcia.c | 91 struct bfin_cf_socket *cf = (void *)_cf; in bfin_cf_timer() local 92 unsigned short present = bfin_cf_present(cf->cd_pfx); in bfin_cf_timer() 94 if (present != cf->present) { in bfin_cf_timer() 95 cf->present = present; in bfin_cf_timer() 96 dev_dbg(&cf->pdev->dev, ": card %s\n", in bfin_cf_timer() 98 pcmcia_parse_events(&cf->socket, SS_DETECT); in bfin_cf_timer() 101 if (cf->active) in bfin_cf_timer() 102 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in bfin_cf_timer() 107 struct bfin_cf_socket *cf; in bfin_cf_get_status() local 112 cf = container_of(s, struct bfin_cf_socket, socket); in bfin_cf_get_status() [all …]
|
D | omap_cf.c | 85 struct omap_cf_socket *cf = (void *) _cf; in omap_cf_timer() local 88 if (present != cf->present) { in omap_cf_timer() 89 cf->present = present; in omap_cf_timer() 92 pcmcia_parse_events(&cf->socket, SS_DETECT); in omap_cf_timer() 95 if (cf->active) in omap_cf_timer() 96 mod_timer(&cf->timer, jiffies + POLL_INTERVAL); in omap_cf_timer() 116 struct omap_cf_socket *cf; in omap_cf_get_status() local 119 cf = container_of(s, struct omap_cf_socket, socket); in omap_cf_get_status() 121 s->pci_irq = cf->irq; in omap_cf_get_status() 164 struct omap_cf_socket *cf; in omap_cf_set_io_map() local [all …]
|
D | at91_cf.c | 56 static inline int at91_cf_present(struct at91_cf_socket *cf) in at91_cf_present() argument 58 return !gpio_get_value(cf->board->det_pin); in at91_cf_present() 70 struct at91_cf_socket *cf = _cf; in at91_cf_irq() local 72 if (irq == cf->board->det_pin) { in at91_cf_irq() 73 unsigned present = at91_cf_present(cf); in at91_cf_irq() 76 if (present != cf->present) { in at91_cf_irq() 77 cf->present = present; in at91_cf_irq() 80 pcmcia_parse_events(&cf->socket, SS_DETECT); in at91_cf_irq() 89 struct at91_cf_socket *cf; in at91_cf_get_status() local 94 cf = container_of(s, struct at91_cf_socket, socket); in at91_cf_get_status() [all …]
|
/linux-2.6.39/arch/mips/pci/ |
D | ops-bridge.c | 51 u32 cf, shift, mask; in pci_conf0_read_config() local 55 if (get_dbe(cf, (u32 *) addr)) in pci_conf0_read_config() 62 if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) in pci_conf0_read_config() 93 if (get_dbe(cf, (u32 *) addr)) in pci_conf0_read_config() 98 *value = (cf >> shift) & mask; in pci_conf0_read_config() 112 u32 cf, shift, mask; in pci_conf1_read_config() local 117 if (get_dbe(cf, (u32 *) addr)) in pci_conf1_read_config() 124 if (cf == (PCI_VENDOR_ID_SGI | (PCI_DEVICE_ID_SGI_IOC3 << 16))) in pci_conf1_read_config() 157 if (get_dbe(cf, (u32 *) addr)) in pci_conf1_read_config() 162 *value = (cf >> shift) & mask; in pci_conf1_read_config() [all …]
|
/linux-2.6.39/lib/ |
D | decompress.c | 51 const struct compress_format *cf; in decompress_method() local 56 for (cf = compressed_formats; cf->name; cf++) { in decompress_method() 57 if (!memcmp(inbuf, cf->magic, 2)) in decompress_method() 62 *name = cf->name; in decompress_method() 63 return cf->decompressor; in decompress_method()
|
/linux-2.6.39/drivers/net/can/ |
D | flexcan.c | 250 struct can_frame *cf = (struct can_frame *)skb->data; in flexcan_start_xmit() local 252 u32 ctrl = FLEXCAN_MB_CNT_CODE(0xc) | (cf->can_dlc << 16); in flexcan_start_xmit() 259 if (cf->can_id & CAN_EFF_FLAG) { in flexcan_start_xmit() 260 can_id = cf->can_id & CAN_EFF_MASK; in flexcan_start_xmit() 263 can_id = (cf->can_id & CAN_SFF_MASK) << 18; in flexcan_start_xmit() 266 if (cf->can_id & CAN_RTR_FLAG) in flexcan_start_xmit() 269 if (cf->can_dlc > 0) { in flexcan_start_xmit() 270 u32 data = be32_to_cpup((__be32 *)&cf->data[0]); in flexcan_start_xmit() 273 if (cf->can_dlc > 3) { in flexcan_start_xmit() 274 u32 data = be32_to_cpup((__be32 *)&cf->data[4]); in flexcan_start_xmit() [all …]
|
D | at91_can.c | 386 struct can_frame *cf = (struct can_frame *)skb->data; in at91_start_xmit() local 402 reg_mid = at91_can_id_to_reg_mid(cf->can_id); in at91_start_xmit() 403 reg_mcr = ((cf->can_id & CAN_RTR_FLAG) ? AT91_MCR_MRTR : 0) | in at91_start_xmit() 404 (cf->can_dlc << 16) | AT91_MCR_MTCR; in at91_start_xmit() 411 at91_write(priv, AT91_MDL(mb), *(u32 *)(cf->data + 0)); in at91_start_xmit() 412 at91_write(priv, AT91_MDH(mb), *(u32 *)(cf->data + 4)); in at91_start_xmit() 417 stats->tx_bytes += cf->can_dlc; in at91_start_xmit() 476 struct can_frame *cf; in at91_rx_overflow_err() local 482 skb = alloc_can_err_skb(dev, &cf); in at91_rx_overflow_err() 486 cf->can_id |= CAN_ERR_CRTL; in at91_rx_overflow_err() [all …]
|
D | janz-ican3.c | 808 struct can_frame *cf) in ican3_to_can_frame() argument 812 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame() 814 cf->can_id |= desc->data[0] << 3; in ican3_to_can_frame() 815 cf->can_id |= (desc->data[1] & 0xe0) >> 5; in ican3_to_can_frame() 816 cf->can_dlc = desc->data[1] & ICAN3_CAN_DLC_MASK; in ican3_to_can_frame() 817 memcpy(cf->data, &desc->data[2], sizeof(cf->data)); in ican3_to_can_frame() 819 cf->can_dlc = desc->data[0] & ICAN3_CAN_DLC_MASK; in ican3_to_can_frame() 821 cf->can_id |= CAN_RTR_FLAG; in ican3_to_can_frame() 824 cf->can_id |= CAN_EFF_FLAG; in ican3_to_can_frame() 825 cf->can_id |= desc->data[2] << 21; /* 28-21 */ in ican3_to_can_frame() [all …]
|
D | bfin_can.c | 231 struct can_frame *cf = (struct can_frame *)skb->data; in bfin_can_start_xmit() local 232 u8 dlc = cf->can_dlc; in bfin_can_start_xmit() 233 canid_t id = cf->can_id; in bfin_can_start_xmit() 234 u8 *data = cf->data; in bfin_can_start_xmit() 285 struct can_frame *cf; in bfin_can_rx() local 291 skb = alloc_can_skb(dev, &cf); in bfin_can_rx() 298 cf->can_id = ((bfin_read16(®->chl[RECEIVE_EXT_CHL].id1) in bfin_can_rx() 301 cf->can_id |= CAN_EFF_FLAG; in bfin_can_rx() 305 cf->can_id = (bfin_read16(®->chl[RECEIVE_STD_CHL].id1) in bfin_can_rx() 310 cf->can_id |= CAN_RTR_FLAG; in bfin_can_rx() [all …]
|
D | slcan.c | 164 struct can_frame cf; in slc_bump() local 180 cf.can_dlc = sl->rbuff[dlc_pos] - '0'; /* get can_dlc from ASCII val */ in slc_bump() 187 cf.can_id = ultmp; in slc_bump() 190 cf.can_id |= CAN_EFF_FLAG; in slc_bump() 193 cf.can_id |= CAN_RTR_FLAG; in slc_bump() 195 *(u64 *) (&cf.data) = 0; /* clear payload */ in slc_bump() 197 for (i = 0, dlc_pos++; i < cf.can_dlc; i++) { in slc_bump() 202 cf.data[i] = (tmp << 4); in slc_bump() 206 cf.data[i] |= tmp; in slc_bump() 219 &cf, sizeof(struct can_frame)); in slc_bump() [all …]
|
D | ti_hecc.c | 485 struct can_frame *cf = (struct can_frame *)skb->data; in ti_hecc_xmit() local 506 if (cf->can_id & CAN_RTR_FLAG) /* Remote transmission request */ in ti_hecc_xmit() 511 if (cf->can_id & CAN_EFF_FLAG) /* Extended frame format */ in ti_hecc_xmit() 512 data = (cf->can_id & CAN_EFF_MASK) | HECC_CANMID_IDE; in ti_hecc_xmit() 514 data = (cf->can_id & CAN_SFF_MASK) << 18; in ti_hecc_xmit() 517 be32_to_cpu(*(u32 *)(cf->data))); in ti_hecc_xmit() 518 if (cf->can_dlc > 4) in ti_hecc_xmit() 520 be32_to_cpu(*(u32 *)(cf->data + 4))); in ti_hecc_xmit() 522 *(u32 *)(cf->data + 4) = 0; in ti_hecc_xmit() 544 struct can_frame *cf; in ti_hecc_rx_pkt() local [all …]
|
D | pch_can.c | 495 struct can_frame *cf; in pch_can_error() local 500 skb = alloc_can_err_skb(ndev, &cf); in pch_can_error() 508 cf->can_id |= CAN_ERR_BUSOFF; in pch_can_error() 517 cf->can_id |= CAN_ERR_CRTL; in pch_can_error() 519 cf->data[1] |= CAN_ERR_CRTL_RX_WARNING; in pch_can_error() 521 cf->data[1] |= CAN_ERR_CRTL_TX_WARNING; in pch_can_error() 529 cf->can_id |= CAN_ERR_CRTL; in pch_can_error() 531 cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE; in pch_can_error() 533 cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE; in pch_can_error() 541 cf->data[2] |= CAN_ERR_PROT_STUFF; in pch_can_error() [all …]
|
D | vcan.c | 75 struct can_frame *cf = (struct can_frame *)skb->data; in vcan_rx() local 79 stats->rx_bytes += cf->can_dlc; in vcan_rx() 91 struct can_frame *cf = (struct can_frame *)skb->data; in vcan_tx() local 99 stats->tx_bytes += cf->can_dlc; in vcan_tx() 113 stats->rx_bytes += cf->can_dlc; in vcan_tx()
|
D | dev.c | 358 struct can_frame *cf; in can_restart() local 370 skb = alloc_can_err_skb(dev, &cf); in can_restart() 375 cf->can_id |= CAN_ERR_RESTARTED; in can_restart() 380 stats->rx_bytes += cf->can_dlc; in can_restart() 448 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_skb() argument 459 *cf = (struct can_frame *)skb_put(skb, sizeof(struct can_frame)); in alloc_can_skb() 460 memset(*cf, 0, sizeof(struct can_frame)); in alloc_can_skb() 466 struct sk_buff *alloc_can_err_skb(struct net_device *dev, struct can_frame **cf) in alloc_can_err_skb() argument 470 skb = alloc_can_skb(dev, cf); in alloc_can_err_skb() 474 (*cf)->can_id = CAN_ERR_FLAG; in alloc_can_err_skb() [all …]
|
/linux-2.6.39/drivers/net/can/sja1000/ |
D | sja1000.c | 273 struct can_frame *cf = (struct can_frame *)skb->data; in sja1000_start_xmit() local 285 fi = dlc = cf->can_dlc; in sja1000_start_xmit() 286 id = cf->can_id; in sja1000_start_xmit() 307 priv->write_reg(priv, dreg++, cf->data[i]); in sja1000_start_xmit() 320 struct can_frame *cf; in sja1000_rx() local 328 skb = alloc_can_skb(dev, &cf); in sja1000_rx() 349 cf->can_dlc = get_can_dlc(fi & 0x0F); in sja1000_rx() 353 for (i = 0; i < cf->can_dlc; i++) in sja1000_rx() 354 cf->data[i] = priv->read_reg(priv, dreg++); in sja1000_rx() 357 cf->can_id = id; in sja1000_rx() [all …]
|
/linux-2.6.39/drivers/net/can/usb/ |
D | ems_usb.c | 307 struct can_frame *cf; in ems_usb_rx_can_msg() local 312 skb = alloc_can_skb(dev->netdev, &cf); in ems_usb_rx_can_msg() 316 cf->can_id = le32_to_cpu(msg->msg.can_msg.id); in ems_usb_rx_can_msg() 317 cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF); in ems_usb_rx_can_msg() 321 cf->can_id |= CAN_EFF_FLAG; in ems_usb_rx_can_msg() 325 cf->can_id |= CAN_RTR_FLAG; in ems_usb_rx_can_msg() 327 for (i = 0; i < cf->can_dlc; i++) in ems_usb_rx_can_msg() 328 cf->data[i] = msg->msg.can_msg.msg[i]; in ems_usb_rx_can_msg() 334 stats->rx_bytes += cf->can_dlc; in ems_usb_rx_can_msg() 339 struct can_frame *cf; in ems_usb_rx_err() local [all …]
|
D | esd_usb2.c | 228 struct can_frame *cf; in esd_usb2_rx_event() local 238 skb = alloc_can_err_skb(priv->netdev, &cf); in esd_usb2_rx_event() 250 cf->can_id |= CAN_ERR_BUSOFF; in esd_usb2_rx_event() 269 cf->can_id |= CAN_ERR_PROT | CAN_ERR_BUSERROR; in esd_usb2_rx_event() 273 cf->data[2] |= CAN_ERR_PROT_BIT; in esd_usb2_rx_event() 276 cf->data[2] |= CAN_ERR_PROT_FORM; in esd_usb2_rx_event() 279 cf->data[2] |= CAN_ERR_PROT_STUFF; in esd_usb2_rx_event() 282 cf->data[2] |= CAN_ERR_PROT_UNSPEC; in esd_usb2_rx_event() 283 cf->data[3] = ecc & SJA1000_ECC_SEG; in esd_usb2_rx_event() 289 cf->data[2] |= CAN_ERR_PROT_TX; in esd_usb2_rx_event() [all …]
|
/linux-2.6.39/include/linux/can/ |
D | dev.h | 71 const struct can_frame *cf = (struct can_frame *)skb->data; in can_dropped_invalid_skb() local 73 if (unlikely(skb->len != sizeof(*cf) || cf->can_dlc > 8)) { in can_dropped_invalid_skb() 99 struct sk_buff *alloc_can_skb(struct net_device *dev, struct can_frame **cf); 101 struct can_frame **cf);
|
/linux-2.6.39/drivers/misc/ |
D | apds990x.c | 138 struct apds990x_chip_factors cf; member 293 APDS_PARAM_SCALE * 64) / (chip->cf.ga * chip->cf.df); in apds990x_lux_to_threshold() 455 iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux() 456 iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE; in apds990x_get_lux() 461 lpc = APDS990X_LUX_OUTPUT_SCALE * (chip->cf.df * chip->cf.ga) / in apds990x_get_lux() 1071 if (chip->pdata->cf.ga == 0) { in apds990x_probe() 1073 chip->cf.ga = 1966; /* 0.48 * APDS_PARAM_SCALE */ in apds990x_probe() 1074 chip->cf.cf1 = 4096; /* 1.00 * APDS_PARAM_SCALE */ in apds990x_probe() 1075 chip->cf.irf1 = 9134; /* 2.23 * APDS_PARAM_SCALE */ in apds990x_probe() 1076 chip->cf.cf2 = 2867; /* 0.70 * APDS_PARAM_SCALE */ in apds990x_probe() [all …]
|
/linux-2.6.39/drivers/net/can/c_can/ |
D | c_can.c | 812 struct can_frame *cf; in c_can_handle_state_change() local 817 skb = alloc_can_err_skb(dev, &cf); in c_can_handle_state_change() 831 cf->can_id |= CAN_ERR_CRTL; in c_can_handle_state_change() 832 cf->data[1] = (bec.txerr > bec.rxerr) ? in c_can_handle_state_change() 835 cf->data[6] = bec.txerr; in c_can_handle_state_change() 836 cf->data[7] = bec.rxerr; in c_can_handle_state_change() 843 cf->can_id |= CAN_ERR_CRTL; in c_can_handle_state_change() 845 cf->data[1] |= CAN_ERR_CRTL_RX_PASSIVE; in c_can_handle_state_change() 847 cf->data[1] |= CAN_ERR_CRTL_TX_PASSIVE; in c_can_handle_state_change() 849 cf->data[6] = bec.txerr; in c_can_handle_state_change() [all …]
|
/linux-2.6.39/fs/ceph/ |
D | file.c | 68 struct ceph_file_info *cf; in ceph_init_file() local 76 cf = kmem_cache_alloc(ceph_file_cachep, GFP_NOFS | __GFP_ZERO); in ceph_init_file() 77 if (cf == NULL) { in ceph_init_file() 81 cf->fmode = fmode; in ceph_init_file() 82 cf->next_offset = 2; in ceph_init_file() 83 file->private_data = cf; in ceph_init_file() 124 struct ceph_file_info *cf = file->private_data; in ceph_open() local 129 if (cf) { in ceph_open() 259 struct ceph_file_info *cf = file->private_data; in ceph_release() local 262 ceph_put_fmode(ci, cf->fmode); in ceph_release() [all …]
|
/linux-2.6.39/fs/reiserfs/ |
D | ibalance.c | 29 int *d_key, struct buffer_head **cf) in internal_define_dest_src_infos() argument 45 *cf = tb->CFL[h]; in internal_define_dest_src_infos() 57 *cf = tb->CFL[h]; in internal_define_dest_src_infos() 70 *cf = tb->CFR[h]; in internal_define_dest_src_infos() 83 *cf = tb->CFR[h]; in internal_define_dest_src_infos() 467 struct buffer_head *cf; in internal_shift_left() local 471 &d_key_position, &cf); in internal_shift_left() 477 internal_insert_key(&dest_bi, B_NR_ITEMS(dest_bi.bi_bh), cf, in internal_shift_left() 482 replace_key(tb, cf, d_key_position, in internal_shift_left() 486 replace_key(tb, cf, d_key_position, src_bi.bi_bh, in internal_shift_left() [all …]
|
/linux-2.6.39/drivers/net/can/softing/ |
D | softing_main.c | 72 struct can_frame *cf = (struct can_frame *)skb->data; in softing_netdev_start_xmit() local 93 if (cf->can_id & CAN_RTR_FLAG) in softing_netdev_start_xmit() 95 if (cf->can_id & CAN_EFF_FLAG) in softing_netdev_start_xmit() 100 *ptr++ = cf->can_dlc; in softing_netdev_start_xmit() 101 *ptr++ = (cf->can_id >> 0); in softing_netdev_start_xmit() 102 *ptr++ = (cf->can_id >> 8); in softing_netdev_start_xmit() 103 if (cf->can_id & CAN_EFF_FLAG) { in softing_netdev_start_xmit() 104 *ptr++ = (cf->can_id >> 16); in softing_netdev_start_xmit() 105 *ptr++ = (cf->can_id >> 24); in softing_netdev_start_xmit() 110 if (!(cf->can_id & CAN_RTR_FLAG)) in softing_netdev_start_xmit() [all …]
|
/linux-2.6.39/net/can/ |
D | af_can.c | 212 struct can_frame *cf = (struct can_frame *)skb->data; in can_send() local 215 if (skb->len != sizeof(struct can_frame) || cf->can_dlc > 8) { in can_send() 558 struct can_frame *cf = (struct can_frame *)skb->data; in can_rcv_filter() local 559 canid_t can_id = cf->can_id; in can_rcv_filter() 623 struct can_frame *cf = (struct can_frame *)skb->data; in can_rcv() local 631 cf->can_dlc > 8, in can_rcv() 634 dev->type, skb->len, cf->can_dlc)) in can_rcv()
|