Home
last modified time | relevance | path

Searched refs:ifp (Results 1 – 24 of 24) sorted by relevance

/linux-2.6.39/drivers/infiniband/hw/qib/ !
Dqib_eeprom.c113 static u8 flash_csum(struct qib_flash *ifp, int adjust) in flash_csum() argument
115 u8 *ip = (u8 *) ifp; in flash_csum()
123 len = ifp->if_length; in flash_csum()
128 csum -= ifp->if_csum; in flash_csum()
131 ifp->if_csum = csum; in flash_csum()
146 struct qib_flash *ifp; in qib_get_eeprom_info() local
200 ifp = (struct qib_flash *)buf; in qib_get_eeprom_info()
202 csum = flash_csum(ifp, 0); in qib_get_eeprom_info()
203 if (csum != ifp->if_csum) { in qib_get_eeprom_info()
205 "0x%x, not 0x%x\n", csum, ifp->if_csum); in qib_get_eeprom_info()
[all …]
/linux-2.6.39/fs/xfs/ !
Dxfs_inode.c72 xfs_ifork_t *ifp, in xfs_validate_extents() argument
81 xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, i); in xfs_validate_extents()
90 #define xfs_validate_extents(ifp, nrecs, fmt) argument
476 xfs_ifork_t *ifp; in xfs_iformat_local() local
493 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_iformat_local()
496 ifp->if_u1.if_data = NULL; in xfs_iformat_local()
497 else if (size <= sizeof(ifp->if_u2.if_inline_data)) in xfs_iformat_local()
498 ifp->if_u1.if_data = ifp->if_u2.if_inline_data; in xfs_iformat_local()
501 ifp->if_u1.if_data = kmem_alloc(real_size, KM_SLEEP | KM_NOFS); in xfs_iformat_local()
503 ifp->if_bytes = size; in xfs_iformat_local()
[all …]
Dxfs_bmap.c297 xfs_ifork_t *ifp,
304 xfs_ifork_t *ifp,
490 xfs_ifork_t *ifp; /* inode fork ptr */ in xfs_bmap_add_extent() local
496 ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmap_add_extent()
497 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_bmap_add_extent()
511 ifp->if_lastex = 0; in xfs_bmap_add_extent()
545 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, idx), &prev); in xfs_bmap_add_extent()
595 XFS_IFORK_NEXTENTS(ip, whichfork) > ifp->if_ext_max) { in xfs_bmap_add_extent()
657 xfs_ifork_t *ifp; /* inode fork pointer */ in xfs_bmap_add_extent_delay_real() local
675 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_bmap_add_extent_delay_real()
[all …]
Dxfs_dfrag.c208 xfs_ifork_t *tempifp, *ifp, *tifp; in xfs_swap_extents() local
349 ifp = &ip->i_df; in xfs_swap_extents()
351 *tempifp = *ifp; /* struct copy */ in xfs_swap_extents()
352 *ifp = *tifp; /* struct copy */ in xfs_swap_extents()
360 ifp->if_ext_max = XFS_IFORK_SIZE(ip, XFS_DATA_FORK) / in xfs_swap_extents()
402 ifp->if_u1.if_extents = in xfs_swap_extents()
403 ifp->if_u2.if_inline_ext; in xfs_swap_extents()
Dxfs_bmap_btree.c454 xfs_ifork_t *ifp, in xfs_check_nostate_extents() argument
459 xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, idx); in xfs_check_nostate_extents()
616 struct xfs_ifork *ifp; in xfs_bmbt_get_minrecs() local
618 ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, in xfs_bmbt_get_minrecs()
622 ifp->if_broot_bytes, level == 0) / 2; in xfs_bmbt_get_minrecs()
634 struct xfs_ifork *ifp; in xfs_bmbt_get_maxrecs() local
636 ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, in xfs_bmbt_get_maxrecs()
640 ifp->if_broot_bytes, level == 0); in xfs_bmbt_get_maxrecs()
864 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_bmbt_init_cursor() local
871 cur->bc_nlevels = be16_to_cpu(ifp->if_broot->bb_level) + 1; in xfs_bmbt_init_cursor()
Dxfs_attr_leaf.c222 xfs_ifork_t *ifp; in xfs_attr_shortform_create() local
226 ifp = dp->i_afp; in xfs_attr_shortform_create()
227 ASSERT(ifp != NULL); in xfs_attr_shortform_create()
228 ASSERT(ifp->if_bytes == 0); in xfs_attr_shortform_create()
230 ifp->if_flags &= ~XFS_IFEXTENTS; /* just in case */ in xfs_attr_shortform_create()
232 ifp->if_flags |= XFS_IFINLINE; in xfs_attr_shortform_create()
234 ASSERT(ifp->if_flags & XFS_IFINLINE); in xfs_attr_shortform_create()
237 hdr = (xfs_attr_sf_hdr_t *)ifp->if_u1.if_data; in xfs_attr_shortform_create()
255 xfs_ifork_t *ifp; in xfs_attr_shortform_add() local
265 ifp = dp->i_afp; in xfs_attr_shortform_add()
[all …]
Dxfs_bmap.h339 struct xfs_ifork *ifp,
Dxfs_btree.c428 struct xfs_ifork *ifp; in xfs_btree_get_iroot() local
430 ifp = XFS_IFORK_PTR(cur->bc_private.b.ip, cur->bc_private.b.whichfork); in xfs_btree_get_iroot()
431 return (struct xfs_btree_block *)ifp->if_broot; in xfs_btree_get_iroot()
2912 struct xfs_ifork *ifp = XFS_IFORK_PTR(ip, whichfork); in xfs_btree_kill_iroot() local
2972 block = ifp->if_broot; in xfs_btree_kill_iroot()
/linux-2.6.39/net/ipv6/ !
Daddrconf.c144 static void addrconf_join_anycast(struct inet6_ifaddr *ifp);
145 static void addrconf_leave_anycast(struct inet6_ifaddr *ifp);
151 static void addrconf_dad_start(struct inet6_ifaddr *ifp, u32 flags);
153 static void addrconf_dad_completed(struct inet6_ifaddr *ifp);
253 static void addrconf_del_timer(struct inet6_ifaddr *ifp) in addrconf_del_timer() argument
255 if (del_timer(&ifp->timer)) in addrconf_del_timer()
256 __in6_ifa_put(ifp); in addrconf_del_timer()
265 static void addrconf_mod_timer(struct inet6_ifaddr *ifp, in addrconf_mod_timer() argument
269 if (!del_timer(&ifp->timer)) in addrconf_mod_timer()
270 in6_ifa_hold(ifp); in addrconf_mod_timer()
[all …]
Dndisc.c583 struct inet6_ifaddr *ifp; in ndisc_send_na() local
590 ifp = ipv6_get_ifaddr(dev_net(dev), solicited_addr, dev, 1); in ndisc_send_na()
591 if (ifp) { in ndisc_send_na()
593 if (ifp->flags & IFA_F_OPTIMISTIC) in ndisc_send_na()
595 inc_opt |= ifp->idev->cnf.force_tllao; in ndisc_send_na()
596 in6_ifa_put(ifp); in ndisc_send_na()
653 struct inet6_ifaddr *ifp = ipv6_get_ifaddr(dev_net(dev), saddr, in ndisc_send_rs() local
655 if (ifp) { in ndisc_send_rs()
656 if (ifp->flags & IFA_F_OPTIMISTIC) { in ndisc_send_rs()
659 in6_ifa_put(ifp); in ndisc_send_rs()
[all …]
Dip6_output.c951 struct inet6_ifaddr *ifp; in ip6_dst_lookup_tail() local
955 ifp = ipv6_get_ifaddr(net, &fl6->saddr, in ip6_dst_lookup_tail()
958 redirect = (ifp && ifp->flags & IFA_F_OPTIMISTIC); in ip6_dst_lookup_tail()
959 if (ifp) in ip6_dst_lookup_tail()
960 in6_ifa_put(ifp); in ip6_dst_lookup_tail()
/linux-2.6.39/drivers/infiniband/hw/ipath/ !
Dipath_eeprom.c676 static u8 flash_csum(struct ipath_flash *ifp, int adjust) in flash_csum() argument
678 u8 *ip = (u8 *) ifp; in flash_csum()
686 len = ifp->if_length; in flash_csum()
691 csum -= ifp->if_csum; in flash_csum()
694 ifp->if_csum = csum; in flash_csum()
709 struct ipath_flash *ifp; in ipath_get_eeprom_info() local
767 ifp = (struct ipath_flash *)buf; in ipath_get_eeprom_info()
769 csum = flash_csum(ifp, 0); in ipath_get_eeprom_info()
770 if (csum != ifp->if_csum) { in ipath_get_eeprom_info()
772 "0x%x, not 0x%x\n", csum, ifp->if_csum); in ipath_get_eeprom_info()
[all …]
/linux-2.6.39/drivers/block/aoe/ !
Daoecmd.c74 memcpy(h->src, t->ifp->nd->dev_addr, sizeof h->src); in aoehdr_atainit()
100 t->ifp++; in ifrotate()
101 if (t->ifp >= &t->ifs[NAOEIFS] || t->ifp->nd == NULL) in ifrotate()
102 t->ifp = t->ifs; in ifrotate()
103 if (t->ifp->nd == NULL) { in ifrotate()
150 && (*t)->ifp->nd) { in freeframe()
225 bcnt = t->ifp->maxbcnt; in aoecmd_ata_rw()
282 skb->dev = t->ifp->nd; in aoecmd_ata_rw()
298 struct net_device *ifp; in aoecmd_cfg_pkts() local
301 for_each_netdev_rcu(&init_net, ifp) { in aoecmd_cfg_pkts()
[all …]
Daoenet.c48 is_aoe_netif(struct net_device *ifp) in is_aoe_netif() argument
64 if (strlen(ifp->name) == len && !strncmp(ifp->name, p, len)) in is_aoe_netif()
102 aoenet_rcv(struct sk_buff *skb, struct net_device *ifp, struct packet_type *pt, struct net_device *… in aoenet_rcv() argument
107 if (dev_net(ifp) != &init_net) in aoenet_rcv()
115 if (!is_aoe_netif(ifp)) in aoenet_rcv()
Daoeblk.c54 struct aoeif *ifp, *e; in aoedisk_show_netif() local
63 ifp = (*t)->ifs; in aoedisk_show_netif()
64 e = ifp + NAOEIFS; in aoedisk_show_netif()
65 for (; ifp < e && ifp->nd; ifp++) { in aoedisk_show_netif()
67 if (*nnd == ifp->nd) in aoedisk_show_netif()
70 *nd++ = ifp->nd; in aoedisk_show_netif()
Daoe.h136 struct aoeif *ifp; /* current aoeif in use */ member
201 int is_aoe_netif(struct net_device *ifp);
/linux-2.6.39/drivers/staging/brcm80211/brcmfmac/ !
Ddhd_linux.c834 static void dhd_op_if(dhd_if_t *ifp) in dhd_op_if() argument
839 ASSERT(ifp && ifp->info && ifp->idx); /* Virtual interfaces only */ in dhd_op_if()
841 dhd = ifp->info; in dhd_op_if()
843 DHD_TRACE(("%s: idx %d, state %d\n", __func__, ifp->idx, ifp->state)); in dhd_op_if()
845 switch (ifp->state) { in dhd_op_if()
851 if (ifp->net != NULL) { in dhd_op_if()
854 __func__, ifp->net->name)); in dhd_op_if()
855 netif_stop_queue(ifp->net); in dhd_op_if()
856 unregister_netdev(ifp->net); in dhd_op_if()
857 free_netdev(ifp->net); in dhd_op_if()
[all …]
/linux-2.6.39/include/net/ !
Daddrconf.h149 extern void addrconf_dad_failure(struct inet6_ifaddr *ifp);
226 extern void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp);
228 static inline void in6_ifa_put(struct inet6_ifaddr *ifp) in in6_ifa_put() argument
230 if (atomic_dec_and_test(&ifp->refcnt)) in in6_ifa_put()
231 inet6_ifa_finish_destroy(ifp); in in6_ifa_put()
234 static inline void __in6_ifa_put(struct inet6_ifaddr *ifp) in __in6_ifa_put() argument
236 atomic_dec(&ifp->refcnt); in __in6_ifa_put()
239 static inline void in6_ifa_hold(struct inet6_ifaddr *ifp) in in6_ifa_hold() argument
241 atomic_inc(&ifp->refcnt); in in6_ifa_hold()
/linux-2.6.39/drivers/usb/core/ !
Dconfig.c145 int asnum, struct usb_host_interface *ifp, int num_ep, in usb_parse_endpoint() argument
177 if (ifp->desc.bNumEndpoints >= num_ep) in usb_parse_endpoint()
180 endpoint = &ifp->endpoint[ifp->desc.bNumEndpoints]; in usb_parse_endpoint()
181 ++ifp->desc.bNumEndpoints; in usb_parse_endpoint()
/linux-2.6.39/net/sctp/ !
Dipv6.c354 struct inet6_ifaddr *ifp; in sctp_v6_copy_addrlist() local
364 list_for_each_entry(ifp, &in6_dev->addr_list, if_list) { in sctp_v6_copy_addrlist()
370 ipv6_addr_copy(&addr->a.v6.sin6_addr, &ifp->addr); in sctp_v6_copy_addrlist()
/linux-2.6.39/fs/xfs/quota/ !
Dxfs_qm.c1517 xfs_ifork_t *ifp; /* inode fork pointer */ in xfs_qm_get_rtblks() local
1522 ifp = XFS_IFORK_PTR(ip, XFS_DATA_FORK); in xfs_qm_get_rtblks()
1523 if (!(ifp->if_flags & XFS_IFEXTENTS)) { in xfs_qm_get_rtblks()
1528 nextents = ifp->if_bytes / (uint)sizeof(xfs_bmbt_rec_t); in xfs_qm_get_rtblks()
1530 rtblks += xfs_bmbt_get_blockcount(xfs_iext_get_ext(ifp, idx)); in xfs_qm_get_rtblks()
/linux-2.6.39/net/core/ !
Dpktgen.c2119 struct inet6_ifaddr *ifp; in pktgen_setup_inject() local
2122 for (ifp = idev->addr_list; ifp; in pktgen_setup_inject()
2123 ifp = ifp->if_next) { in pktgen_setup_inject()
2124 if (ifp->scope == IFA_LINK && in pktgen_setup_inject()
2125 !(ifp->flags & IFA_F_TENTATIVE)) { in pktgen_setup_inject()
2128 &ifp->addr); in pktgen_setup_inject()
/linux-2.6.39/drivers/staging/slicoss/ !
Dslic.h403 void *ifp; member
/linux-2.6.39/fs/xfs/linux-2.6/ !
Dxfs_trace.h239 struct xfs_ifork *ifp = (state & BMAP_ATTRFORK) ?
243 xfs_bmbt_get_all(xfs_iext_get_ext(ifp, idx), &r);