Home
last modified time | relevance | path

Searched full:intf (Results 1 – 25 of 114) sorted by relevance

12345

/freebsd/sys/dev/mlx4/mlx4_core/
H A Dmlx4_intf.c42 struct mlx4_interface *intf; member
50 static void mlx4_add_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_add_device() argument
58 dev_ctx->intf = intf; in mlx4_add_device()
59 dev_ctx->context = intf->add(&priv->dev); in mlx4_add_device()
65 if (intf->activate) { in mlx4_add_device()
67 intf->activate(&priv->dev, dev_ctx->context); in mlx4_add_device()
74 static void mlx4_remove_device(struct mlx4_interface *intf, struct mlx4_priv *priv) in mlx4_remove_device() argument
79 if (dev_ctx->intf == intf) { in mlx4_remove_device()
84 intf->remove(&priv->dev, dev_ctx->context); in mlx4_remove_device()
90 int mlx4_register_interface(struct mlx4_interface *intf) in mlx4_register_interface() argument
[all …]
/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dusb.c31 static int mt76x2u_probe(struct usb_interface *intf, in mt76x2u_probe() argument
48 struct usb_device *udev = interface_to_usbdev(intf); in mt76x2u_probe()
53 mdev = mt76_alloc_device(&intf->dev, sizeof(*dev), &mt76x2u_ops, in mt76x2u_probe()
63 usb_set_intfdata(intf, dev); in mt76x2u_probe()
66 err = mt76u_init(mdev, intf); in mt76x2u_probe()
86 usb_set_intfdata(intf, NULL); in mt76x2u_probe()
92 static void mt76x2u_disconnect(struct usb_interface *intf) in mt76x2u_disconnect() argument
94 struct usb_device *udev = interface_to_usbdev(intf); in mt76x2u_disconnect()
95 struct mt76x02_dev *dev = usb_get_intfdata(intf); in mt76x2u_disconnect()
102 usb_set_intfdata(intf, NULL); in mt76x2u_disconnect()
[all …]
/freebsd/usr.sbin/bhyve/
H A Dtpm_device.c37 struct tpm_intf *intf; member
48 if (tpm->intf->build_acpi_table == NULL) { in tpm_build_acpi_table()
52 return (tpm->intf->build_acpi_table(tpm->intf_sc, tpm->vm_ctx)); in tpm_build_acpi_table()
116 if (dev->intf != NULL && dev->intf->deinit != NULL) in tpm_device_destroy()
117 dev->intf->deinit(dev->intf_sc); in tpm_device_destroy()
141 set_config_value_node_if_unset(nvl, "intf", "crb"); in tpm_device_create()
185 value = get_config_value_node(nvl, "intf"); in tpm_device_create()
190 dev->intf = *ppintf; in tpm_device_create()
193 if (dev->intf == NULL) { in tpm_device_create()
199 if (dev->intf->init) { in tpm_device_create()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dusb.h67 int (*probe)(struct usb_interface *intf,
70 void (*disconnect)(struct usb_interface *intf);
72 int (*ioctl)(struct usb_interface *intf, unsigned int code, void *buf);
74 int (*suspend)(struct usb_interface *intf, pm_message_t message);
75 int (*resume)(struct usb_interface *intf);
79 void (*shutdown)(struct usb_interface *intf);
295 const struct usb_interface *intf, uint8_t alt_index);
300 void *usbd_get_intfdata(struct usb_interface *intf);
306 void usb_set_intfdata(struct usb_interface *intf, void *data);
315 #define interface_to_usbdev(intf) (intf)->linux_udev argument
[all …]
/freebsd/sys/dev/xen/console/
H A Dxen_console.c122 struct xencons_interface *intf; member
276 cons->intf = pmap_mapdev_attr(ptoa(xen_get_console_mfn()), PAGE_SIZE, in xencons_early_init_ring()
323 struct xencons_interface *intf; in xencons_write_ring() local
327 intf = cons->intf; in xencons_write_ring()
331 wcons = intf->out_cons; in xencons_write_ring()
332 wprod = intf->out_prod; in xencons_write_ring()
335 KASSERT((wprod - wcons) <= sizeof(intf->out), in xencons_write_ring()
339 if ((wprod - wcons) >= sizeof(intf->out)) in xencons_write_ring()
341 intf->out[MASK_XENCONS_IDX(wprod, intf->out)] = buffer[sent]; in xencons_write_ring()
345 intf->out_prod = wprod; in xencons_write_ring()
[all …]
/freebsd/usr.sbin/route6d/misc/
H A Dchkrt34 $intf = $1;
42 print "NOT FOUND: $dst $intf $gateway $metric $age\n";
47 print "WRONG GW: $dst $intf $gateway $metric $age\n";
52 if ($int{$dst} ne $intf) {
53 print "WRONG IF: $dst $intf $gateway $metric $age\n";
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DRegAllocEvictionAdvisor.cpp268 for (const LiveInterval *Intf : reverse(Interferences)) { in canEvictInterferenceBasedOnCost() local
269 assert(Intf->reg().isVirtual() && in canEvictInterferenceBasedOnCost()
275 if (FixedRegisters.count(Intf->reg())) in canEvictInterferenceBasedOnCost()
279 if (RA.getExtraInfo().getStage(*Intf) == RS_Done) in canEvictInterferenceBasedOnCost()
289 (Intf->isSpillable() || in canEvictInterferenceBasedOnCost()
292 MRI->getRegClass(Intf->reg()))); in canEvictInterferenceBasedOnCost()
294 unsigned IntfCascade = RA.getExtraInfo().getCascade(Intf->reg()); in canEvictInterferenceBasedOnCost()
306 bool BreaksHint = VRM->hasPreferredPhys(Intf->reg()); in canEvictInterferenceBasedOnCost()
309 Cost.MaxWeight = std::max(Cost.MaxWeight, Intf->weight()); in canEvictInterferenceBasedOnCost()
316 if (!shouldEvict(VirtReg, IsHint, *Intf, BreaksHint)) in canEvictInterferenceBasedOnCost()
[all …]
H A DRegAllocGreedy.cpp639 for (const LiveInterval *Intf : Intfs) { in evictInterference() local
641 if (!VRM->hasPhys(Intf->reg())) in evictInterference()
644 Matrix->unassign(*Intf); in evictInterference()
645 assert((ExtraInfo->getCascade(Intf->reg()) < Cascade || in evictInterference()
646 VirtReg.isSpillable() < Intf->isSpillable()) && in evictInterference()
648 ExtraInfo->setCascade(Intf->reg(), Cascade); in evictInterference()
650 NewVRegs.push_back(Intf->reg()); in evictInterference()
735 bool RAGreedy::addSplitConstraints(InterferenceCache::Cursor Intf, in addSplitConstraints() argument
747 Intf.moveToBlock(BC.Number); in addSplitConstraints()
755 if (!Intf.hasInterference()) in addSplitConstraints()
[all …]
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Dusb.c318 struct usb_interface *intf = to_usb_interface(dev); in brcmf_usb_tx_ctlpkt() local
322 err = usb_autopm_get_interface(intf); in brcmf_usb_tx_ctlpkt()
353 usb_autopm_put_interface(intf); in brcmf_usb_tx_ctlpkt()
363 struct usb_interface *intf = to_usb_interface(dev); in brcmf_usb_rx_ctlpkt() local
367 err = usb_autopm_get_interface(intf); in brcmf_usb_rx_ctlpkt()
398 usb_autopm_put_interface(intf); in brcmf_usb_rx_ctlpkt()
625 struct usb_interface *intf = to_usb_interface(dev); in brcmf_usb_tx() local
627 ret = usb_autopm_get_interface(intf); in brcmf_usb_tx()
670 usb_autopm_put_interface(intf); in brcmf_usb_tx()
1064 struct usb_interface *intf; in brcmf_usb_fw_download() local
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Dusb.c870 struct usb_interface *intf) in rtw89_usb_parse() argument
872 struct usb_host_interface *host_interface = &intf->altsetting[0]; in rtw89_usb_parse()
923 struct usb_interface *intf) in rtw89_usb_intf_init() argument
930 ret = rtw89_usb_parse(rtwdev, intf); in rtw89_usb_intf_init()
938 rtwusb->udev = usb_get_dev(interface_to_usbdev(intf)); in rtw89_usb_intf_init()
940 usb_set_intfdata(intf, rtwdev->hw); in rtw89_usb_intf_init()
942 SET_IEEE80211_DEV(rtwdev->hw, &intf->dev); in rtw89_usb_intf_init()
948 struct usb_interface *intf) in rtw89_usb_intf_deinit() argument
954 usb_set_intfdata(intf, NULL); in rtw89_usb_intf_deinit()
957 int rtw89_usb_probe(struct usb_interface *intf, in rtw89_usb_probe() argument
[all …]
H A Dusb.h73 int rtw89_usb_probe(struct usb_interface *intf,
75 void rtw89_usb_disconnect(struct usb_interface *intf);
/freebsd/sbin/pfctl/tests/files/
H A Dpf0035.in3 intf = "lo0"
4 pass out on $intf inet proto tcp from any to any port 22 tos 0x10
5 pass out on $intf inet proto tcp from any to any port 22 tos 0x08
/freebsd/crypto/krb5/src/lib/crypto/crypto_tests/
H A Dt_kperf.c53 int blocksize, num_blocks, intf, op, i; in main() local
64 intf = argv[1][0]; in main()
65 assert(intf == 'c' || intf =='k'); in main()
102 if (intf == 'c') { in main()
/freebsd/crypto/heimdal/lib/roken/
H A Dparse_time.3132 printf("--\\n");
133 printf("parse_time = %d\\n", result);
135 printf("unparse_time = %s\\n", buf);
137 printf("unparse_time_approx = %s\\n", buf);
/freebsd/crypto/krb5/src/lib/krb5/os/
H A Dlocalauth.c109 const int intf = PLUGIN_INTERFACE_LOCALAUTH; in get_modules() local
114 ret = k5_plugin_register(context, intf, "default", in get_modules()
118 ret = k5_plugin_register(context, intf, "rule", localauth_rule_initvt); in get_modules()
121 ret = k5_plugin_register(context, intf, "names", localauth_names_initvt); in get_modules()
124 ret = k5_plugin_register(context, intf, "auth_to_local", in get_modules()
128 ret = k5_plugin_register(context, intf, "k5login", in get_modules()
132 ret = k5_plugin_register(context, intf, "an2ln", localauth_an2ln_initvt); in get_modules()
136 ret = k5_plugin_load_all(context, intf, modules_out); in get_modules()
H A Dhostrealm.c73 const int intf = PLUGIN_INTERFACE_HOSTREALM; in get_modules() local
78 ret = k5_plugin_register(context, intf, "registry", in get_modules()
82 ret = k5_plugin_register(context, intf, "profile", in get_modules()
86 ret = k5_plugin_register(context, intf, "dns", hostrealm_dns_initvt); in get_modules()
89 ret = k5_plugin_register(context, intf, "domain", hostrealm_domain_initvt); in get_modules()
93 return k5_plugin_load_all(context, intf, modules_out); in get_modules()
/freebsd/share/man/man9/
H A Dprintf.9166 printf("reg=%b\en", 3, "\e10\e2BITTWO\e1BITONE");
167 printf("out: %4D\en", "AAZZ", ":");
182 printf("reg=%b\en", 3, "\e10\e201BITTWO\e200BITONE");
183 printf("out: %4D\en", "AAZZ", ":");
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c106 struct mlx5_interface *intf; member
791 static void mlx5_add_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_add_device() argument
800 dev_ctx->intf = intf; in mlx5_add_device()
802 dev_ctx->context = intf->add(dev); in mlx5_add_device()
814 static void mlx5_remove_device(struct mlx5_interface *intf, struct mlx5_priv *priv) in mlx5_remove_device() argument
820 if (dev_ctx->intf == intf) { in mlx5_remove_device()
825 intf->remove(dev, dev_ctx->context); in mlx5_remove_device()
835 struct mlx5_interface *intf; in mlx5_register_device() local
839 list_for_each_entry(intf, &intf_list, list) in mlx5_register_device()
840 mlx5_add_device(intf, priv); in mlx5_register_device()
[all …]
/freebsd/tests/sys/netpfil/pf/
H A DCVE-2019-5597.py39 intf = sys.argv[1]
59 sp.sendp(pkt0, iface=intf, verbose=False)
60 sp.sendp(pkt1, iface=intf, verbose=False)
/freebsd/sys/contrib/dev/rtw88/
H A Dusb.c1041 struct usb_interface *intf) in rtw_usb_intf_init() argument
1044 struct usb_device *udev = usb_get_dev(interface_to_usbdev(intf)); in rtw_usb_intf_init()
1048 ret = rtw_usb_parse(rtwdev, intf); in rtw_usb_intf_init()
1057 usb_set_intfdata(intf, rtwdev->hw); in rtw_usb_intf_init()
1059 SET_IEEE80211_DEV(rtwdev->hw, &intf->dev); in rtw_usb_intf_init()
1066 struct usb_interface *intf) in rtw_usb_intf_deinit() argument
1072 usb_set_intfdata(intf, NULL); in rtw_usb_intf_deinit()
1252 int rtw_usb_probe(struct usb_interface *intf, const struct usb_device_id *id) in rtw_usb_probe() argument
1267 rtwdev->dev = &intf->dev; in rtw_usb_probe()
1283 ret = rtw_usb_intf_init(rtwdev, intf); in rtw_usb_probe()
[all …]
H A Drtw8723du.c20 static int rtw8723du_probe(struct usb_interface *intf, in rtw8723du_probe() argument
23 return rtw_usb_probe(intf, id); in rtw8723du_probe()
H A Dusb.h100 int rtw_usb_probe(struct usb_interface *intf, const struct usb_device_id *id);
101 void rtw_usb_disconnect(struct usb_interface *intf);
/freebsd/lib/libc/stdlib/
H A Dbsearch.3128 printf("name: %s\enage: %d\en", friend->name, friend->age);
139 printf("name: %s\enage: %d\en", friend->name, friend->age);
144 printf("friend aged 30 not found\en");
/freebsd/sys/dev/oce/
H A Doce_hw.c238 pci_sli_intf_t intf; in oce_hw_pci_alloc() local
273 intf.dw0 = pci_read_config((sc)->dev,OCE_INTF_REG_OFFSET,4); in oce_hw_pci_alloc()
275 if (intf.bits.sli_valid != OCE_INTF_VALID_SIG) in oce_hw_pci_alloc()
278 if (intf.bits.sli_rev != OCE_INTF_SLI_REV4) { in oce_hw_pci_alloc()
283 if (intf.bits.sli_if_type == OCE_INTF_IF_TYPE_1) in oce_hw_pci_alloc()
286 if (intf.bits.sli_hint1 == OCE_INTF_FUNC_RESET_REQD) in oce_hw_pci_alloc()
289 if (intf.bits.sli_func_type == OCE_INTF_VIRT_FUNC) in oce_hw_pci_alloc()
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/
H A Dusb.c220 static int mt7663u_suspend(struct usb_interface *intf, pm_message_t state) in mt7663u_suspend() argument
222 struct mt7615_dev *dev = usb_get_intfdata(intf); in mt7663u_suspend()
239 static int mt7663u_resume(struct usb_interface *intf) in mt7663u_resume() argument
241 struct mt7615_dev *dev = usb_get_intfdata(intf); in mt7663u_resume()

12345