/freebsd/sys/dev/qat/qat_common/ |
H A D | adf_cfg_instance.c | 13 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() 19 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 25 if ((bundle->in_use >> bundle->rings[i]->number) & 0x1) in crypto_instance_init() 31 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 43 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 55 bundle->in_use |= 1 << bundle->rings[i]->number; in crypto_instance_init() 75 bundle->in_use |= 1 << bundle->rings[i]->number; in dc_instance_init() 87 bundle->in_use |= 1 << bundle->rings[i]->number; in dc_instance_init() 107 bundle->in_use |= 1 << bundle->rings[i]->number; in asym_instance_init() 119 bundle->in_use |= 1 << bundle->rings[i]->number; in asym_instance_init() [all …]
|
H A D | adf_cfg_bundle.c | 29 bundle->sections[0], in adf_cfg_can_be_shared() 55 if (bundle->number == device->instances[i]->bundle && in adf_cfg_get_free_instance() 102 strlcpy(bundle->sections[bundle->section_index], in adf_cfg_get_ring_pairs_from_bundle() 146 inst->bundle = bundle->number; in adf_cfg_get_ring_pairs_from_bundle() 170 bundle->number, in adf_cfg_init_and_insert_inst() 236 bundle->type = FREE; in adf_cfg_bundle_init() 240 bundle->sections = malloc(sizeof(char *) * bundle->max_section, in adf_cfg_bundle_init() 258 if (bundle->sections && bundle->sections[i]) { in adf_cfg_bundle_clear() 284 bundle->number, in adf_cfg_assign_serv_to_rings() 362 bundle->rings = in adf_cfg_init_ring2serv_mapping() [all …]
|
H A D | adf_freebsd_uio.c | 47 int bundle; member 63 bundle = &accel->bundle[handle->bundle]; in adf_release_bundle() 288 bundle = &accel->bundle[handle->bundle]; in adf_uio_mmap_single() 289 if (!bundle->obj) { in adf_uio_mmap_single() 308 *object = bundle->obj; in adf_uio_mmap_single() 326 bundle = &accel->bundle[i]; in adf_uio_init_accel_ctrl() 332 priv->bundle = bundle; in adf_uio_init_accel_ctrl() 356 bundle = &accel->bundle[i]; in adf_uio_init_bundle_dev() 357 bundle->obj = in adf_uio_init_bundle_dev() 359 if (!bundle->obj) { in adf_uio_init_bundle_dev() [all …]
|
H A D | adf_ctl_drv.c | 253 bundle = &accel->bundle[reserve.bank_nr]; in adf_ctl_ioctl_bundle() 255 return bundle; in adf_ctl_ioctl_bundle() 268 if (!bundle) { in adf_ctl_ioctl_reserve_ring() 273 mutex_lock(&bundle->lock); in adf_ctl_ioctl_reserve_ring() 300 mutex_unlock(&bundle->lock); in adf_ctl_ioctl_reserve_ring() 315 if (!bundle) { in adf_ctl_ioctl_release_ring() 344 mutex_lock(&bundle->lock); in adf_ctl_ioctl_release_ring() 359 if (!bundle) { in adf_ctl_ioctl_enable_ring() 364 mutex_lock(&bundle->lock); in adf_ctl_ioctl_enable_ring() 380 if (!bundle) { in adf_ctl_ioctl_disable_ring() [all …]
|
H A D | adf_freebsd_uio_cleanup.c | 139 bundle = &accel->bundle[bank]; in get_orphan_bundle() 140 orphan_bundle->bundle = bundle; in get_orphan_bundle() 141 mutex_lock(&bundle->list_lock); in get_orphan_bundle() 151 mutex_unlock(&bundle->list_lock); in get_orphan_bundle() 180 if (!bundle) in put_orphan_bundle() 183 free(bundle, M_QAT); in put_orphan_bundle() 200 mutex_lock(&orphan->bundle->lock); in cleanup_all_ring() 357 orphan->bundle->rings_enabled &= in adf_uio_do_cleanup_orphan() 380 bundle = &accel->bundle[bank]; in adf_uio_do_cleanup_orphan() 385 mutex_lock(&bundle->list_lock); in adf_uio_do_cleanup_orphan() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | bundle.c | 115 bundle_PhaseName(struct bundle *bundle) in bundle_PhaseName() argument 198 struct bundle *bundle = (struct bundle *)v; in bundle_ClearQueues() local 279 struct bundle *bundle = (struct bundle *)v; in bundle_LayerUp() local 316 struct bundle *bundle = (struct bundle *)v; in bundle_LayerDown() local 371 struct bundle *bundle = (struct bundle *)v; in bundle_LayerFinish() local 669 bundle_LockTun(struct bundle *bundle) in bundle_LockTun() argument 723 for (bundle.unit = minunit; bundle.unit != maxunit; bundle.unit++) { in bundle_Create() 823 bundle.fsm.object = &bundle; in bundle_Create() 861 ncp_Init(&bundle.ncp, &bundle); in bundle_Create() 1156 struct bundle *bundle = (struct bundle *)v; in bundle_IdleTimeout() local [all …]
|
H A D | bundle.h | 75 struct bundle { struct 164 extern void bundle_Destroy(struct bundle *); 168 extern void bundle_LinksRemoved(struct bundle *); 170 extern void bundle_Down(struct bundle *, int); 179 extern int bundle_IsDead(struct bundle *); 204 extern void bundle_setsid(struct bundle *, int); 205 extern void bundle_LockTun(struct bundle *); 210 extern void bundle_AdjustDNS(struct bundle *); 214 extern void bundle_ChangedPID(struct bundle *); 215 extern void bundle_Notify(struct bundle *, char); [all …]
|
H A D | ipv6cp.c | 199 struct bundle *bundle = ipv6cp->fsm.bundle; in ipcp_SetIPv6address() local 236 iface_Clear(bundle->iface, &bundle->ncp, AF_INET6, in ipcp_SetIPv6address() 243 if (bundle->ncp.cfg.sendpipe > 0 || bundle->ncp.cfg.recvpipe > 0) { in ipcp_SetIPv6address() 257 route_Change(bundle, bundle->radius.ipv6routes, &ipv6cp->myaddr, in ipcp_SetIPv6address() 351 ipv6cp_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in ipv6cp_Input() argument 423 struct bundle *bundle = ipv6cp->fsm.bundle; in ipv6cp_PushPacket() local 480 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6, in ipv6cp_LayerUp() 489 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.filterid) in ipv6cp_LayerUp() 506 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), in ipv6cp_LayerUp() 533 radius_Account(&fp->bundle->radius, &fp->bundle->radacct6, in ipv6cp_LayerDown() [all …]
|
H A D | ipcp.c | 624 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_proxyarp() local 666 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_SetIPaddress() local 692 iface_Clear(bundle->iface, &bundle->ncp, AF_INET, in ipcp_SetIPaddress() 713 ChooseHisAddr(struct bundle *bundle, struct in_addr gw) in ChooseHisAddr() argument 848 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_IfaceAddrAdded() local 860 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_IfaceAddrDeleted() local 880 radius_Account(&fp->bundle->radius, &fp->bundle->radacct, in IpcpLayerDown() 949 radius_Account(&fp->bundle->radius, &fp->bundle->radacct, fp->bundle->links, in IpcpLayerUp() 964 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), in IpcpLayerUp() 980 struct bundle *bundle = ipcp->fsm.bundle; in ipcp_ValidateReq() local [all …]
|
H A D | pap.c | 85 struct bundle *bundle = authp->physical->dl->bundle; in pap_Req() local 91 namelen = strlen(bundle->cfg.auth.name); in pap_Req() 92 keylen = strlen(bundle->cfg.auth.key); in pap_Req() 96 if (*bundle->cfg.auth.name == '\0') in pap_Req() 108 memcpy(cp, bundle->cfg.auth.key, keylen); in pap_Req() 145 struct bundle *bundle = authp->physical->dl->bundle; in pap_Success() local 149 if (*bundle->radius.cfg.file && bundle->radius.repstr) in pap_Success() 155 if (Enabled(bundle, OPT_UTMP)) in pap_Success() 180 pap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in pap_Input() argument 214 Enabled(bundle, OPT_IDCHECK)) { in pap_Input() [all …]
|
H A D | command.c | 522 struct bundle *bundle, int inc0, pid_t pid) in command_Expand() argument 1087 FindExec(struct bundle *bundle, struct cmdtab const *cmds, int argc, int argn, in FindExec() argument 1119 arg.bundle = bundle; in FindExec() 1187 command_Run(struct bundle *bundle, int argc, char const *const *argv, in command_Run() argument 1680 arg->bundle->cfg.auth.key[sizeof arg->bundle->cfg.auth.key - 1] = '\0'; in SetVariable() 2343 if (arg->bundle->radius.port_id_type && !*arg->bundle->radius.cfg.file) { in SetVariable() 2835 if (Enabled(arg->bundle, OPT_IFACEALIAS) && !arg->bundle->NatEnabled) { in IfaceAliasOptSet() 3199 log_SetTun(arg->bundle->unit, arg->bundle->iface->name); in IfaceNameCommand() 3250 return !iface_Add(arg->bundle->iface, &arg->bundle->ncp, &ifa, &peer, how); in IfaceAddCommand() 3274 ok = iface_Delete(arg->bundle->iface, &arg->bundle->ncp, &ifa); in IfaceDeleteCommand() [all …]
|
H A D | main.c | 108 static struct bundle *SignalBundle; 308 struct bundle *bundle; in main() local 389 SignalBundle = bundle; in main() 390 bundle->NatEnabled = sw.nat; in main() 429 prompt->bundle = bundle; /* couldn't do it earlier */ in main() 533 DoLoop(bundle); in main() 540 DoLoop(struct bundle *bundle) in DoLoop() argument 563 for (; !bundle_IsDead(bundle); bundle_CleanDatalinks(bundle)) { in DoLoop() 576 if (bundle_IsDead(bundle)) in DoLoop() 659 descriptor_Read(&bundle->desc, bundle, rfds); in DoLoop() [all …]
|
H A D | server.c | 89 server_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) in server_Read() argument 195 server_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in server_Write() 216 server_Reopen(struct bundle *bundle) in server_Reopen() argument 227 server_Close(bundle); in server_Reopen() 234 server_Close(bundle); in server_Reopen() 243 server_LocalOpen(struct bundle *bundle, const char *name, mode_t mask) in server_LocalOpen() argument 287 server_Close(bundle); in server_LocalOpen() 310 server_TcpOpen(struct bundle *bundle, u_short port) in server_TcpOpen() argument 368 server_Close(bundle); in server_TcpOpen() 387 server_Close(struct bundle *bundle __unused) in server_Close() [all …]
|
H A D | ncp.c | 96 ncp_Init(struct ncp *ncp, struct bundle *bundle) in ncp_Init() argument 115 mp_Init(&ncp->mp, bundle); in ncp_Init() 118 ipcp_Init(&ncp->ipcp, bundle, &bundle->links->physical->link, in ncp_Init() 119 &bundle->fsm); in ncp_Init() 121 ipv6cp_Init(&ncp->ipv6cp, bundle, &bundle->links->physical->link, in ncp_Init() 122 &bundle->fsm); in ncp_Init() 149 struct bundle *bundle __unused in ncp_fsmStart() 151 struct bundle *bundle in ncp_fsmStart() 313 ncp_FillPhysicalQueues(struct ncp *ncp, struct bundle *bundle) in ncp_FillPhysicalQueues() argument 317 if (bundle->ncp.mp.active) in ncp_FillPhysicalQueues() [all …]
|
H A D | mppe.c | 465 if (*fp->bundle->radius.cfg.file && fp->bundle->radius.mppe.policy) in MPPERequired() 473 MPPE_ConfigVal(struct bundle *bundle __unused, const struct ccp_config *cfg) in MPPE_ConfigVal() 483 if (*bundle->radius.cfg.file && bundle->radius.mppe.types) { in MPPE_ConfigVal() 512 MPPEInitOptsOutput(struct bundle *bundle, struct fsm_opt *o, in MPPEInitOptsOutput() argument 528 mval = MPPE_ConfigVal(bundle, cfg); in MPPEInitOptsOutput() 536 MPPESetOptsOutput(struct bundle *bundle, struct fsm_opt *o, in MPPESetOptsOutput() argument 575 MPPESetOptsInput(struct bundle *bundle, struct fsm_opt *o, in MPPESetOptsInput() argument 679 MPPEInitInput(struct bundle *bundle __unused, struct fsm_opt *o) in MPPEInitInput() 696 if (*bundle->radius.cfg.file && bundle->radius.mppe.recvkey) { in MPPEInitInput() 735 MPPEInitOutput(struct bundle *bundle __unused, struct fsm_opt *o) in MPPEInitOutput() [all …]
|
H A D | route.h | 31 struct bundle; 57 extern void route_IfDelete(struct bundle *, int); 58 extern void route_UpdateMTU(struct bundle *); 60 extern void route_Change(struct bundle *, struct sticky_route *, 66 extern void route_Clean(struct bundle *, struct sticky_route *); 70 extern int rt_Set(struct bundle *, int, const struct ncprange *, 72 extern void rt_Update(struct bundle *, const struct sockaddr *,
|
H A D | tun.c | 84 tun_configure(struct bundle *bundle) in tun_configure() argument 97 sprintf(ifr.ifr_name, "tun%d", bundle->unit); in tun_configure() 98 ifr.ifr_mtu = bundle->iface->mtu; in tun_configure() 109 info.mtu = bundle->iface->mtu; in tun_configure() 111 info.baudrate = bundle->bandwidth; in tun_configure() 115 if (ID0ioctl(bundle->dev.fd, TUNSIFINFO, &info) < 0) in tun_configure()
|
H A D | auth.c | 215 auth_Select(struct bundle *bundle, const char *name) in auth_Select() argument 223 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select() 228 if (bundle->radius.valid && bundle->radius.ip.s_addr != INADDR_NONE && in auth_Select() 231 if (!ipcp_UseHisIPaddr(bundle, bundle->radius.ip)) in auth_Select() 233 ipcp_Setup(&bundle->ncp.ipcp, bundle->radius.mask.s_addr); in auth_Select() 255 if (!bundle->radius.valid || bundle->radius.ip.s_addr == INADDR_NONE) { in auth_Select() 265 bundle_SetLabel(bundle, vector[3]); in auth_Select() 282 ipcp_Setup(&bundle->ncp.ipcp, INADDR_NONE); in auth_Select() 286 if (bundle->radius.valid) in auth_Select() 296 auth_Validate(struct bundle *bundle, const char *name, const char *key) in auth_Validate() argument [all …]
|
H A D | tcpmss.c | 149 tcpmss_Check(struct bundle *bundle, struct mbuf *bp) in tcpmss_Check() argument 158 if (!Enabled(bundle, OPT_TCPMSSFIXUP)) in tcpmss_Check() 178 MAXMSS4(bundle->iface->mtu)); in tcpmss_Check() 208 MAXMSS6(bundle->iface->mtu)); in tcpmss_Check() 219 tcpmss_LayerPush(struct bundle *bundle, struct link *l __unused, in tcpmss_LayerPush() argument 222 return tcpmss_Check(bundle, bp); in tcpmss_LayerPush() 226 tcpmss_LayerPull(struct bundle *bundle, struct link *l __unused, in tcpmss_LayerPull() argument 229 return tcpmss_Check(bundle, bp); in tcpmss_LayerPull()
|
H A D | server.h | 29 struct bundle; 57 extern enum server_stat server_LocalOpen(struct bundle *, const char *, mode_t); 58 extern enum server_stat server_TcpOpen(struct bundle *, u_short); 59 extern enum server_stat server_Reopen(struct bundle *); 60 extern int server_Close(struct bundle *); 61 extern int server_Clear(struct bundle *);
|
H A D | chap.c | 421 chap_Read(struct fdescriptor *d, struct bundle *bundle __unused, in chap_Read() 478 chap_Write(struct fdescriptor *d __unused, struct bundle *bundle __unused, in chap_Write() 551 struct bundle *bundle = authp->physical->dl->bundle; in chap_Success() local 558 if (*bundle->radius.cfg.file && bundle->radius.msrepstr) in chap_Success() 567 if (*bundle->radius.cfg.file && bundle->radius.repstr) in chap_Success() 568 msg = bundle->radius.repstr; in chap_Success() 597 struct bundle *bundle = authp->physical->link.lcp.fsm.bundle; in chap_Failure() local 598 if (*bundle->radius.cfg.file && bundle->radius.errstr) in chap_Failure() 693 chap_Input(struct bundle *bundle, struct link *l, struct mbuf *bp) in chap_Input() argument 837 if (*bundle->cfg.auth.key == '!' && bundle->cfg.auth.key[1] != '!') in chap_Input() [all …]
|
H A D | command.h | 32 struct bundle; 42 struct bundle *bundle; /* Our bundle */ member 64 extern void command_Expand(char **, int, char const *const *, struct bundle *, 69 extern void command_Run(struct bundle *, int, char const *const *, 71 extern int command_Decode(struct bundle *, char *, int, struct prompt *,
|
H A D | route.c | 379 route_IfDelete(struct bundle *bundle, int all) in route_IfDelete() argument 470 route_UpdateMTU(struct bundle *bundle) in route_UpdateMTU() argument 543 route_Change(struct bundle *bundle, struct sticky_route *r, in route_Change() argument 734 rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst, in rt_Set() argument 757 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq; in rt_Set() 762 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Set() 766 if (bundle->ncp.cfg.recvpipe > 0) { in rt_Set() 859 rt_Update(struct bundle *bundle, const struct sockaddr *dst, in rt_Update() argument 878 rtmes.m_rtm.rtm_seq = ++bundle->routing_seq; in rt_Update() 882 if (bundle->ncp.cfg.sendpipe > 0) { in rt_Update() [all …]
|
H A D | arp.c | 100 arp_ProxySub(struct bundle *bundle, struct in_addr addr, int add) in arp_ProxySub() argument 124 arpmsg.hdr.rtm_seq = ++bundle->routing_seq; in arp_ProxySub() 147 arp_SetProxy(struct bundle *bundle, struct in_addr addr) in arp_SetProxy() argument 149 return (arp_ProxySub(bundle, addr, 1)); in arp_SetProxy() 156 arp_ClearProxy(struct bundle *bundle, struct in_addr addr) in arp_ClearProxy() argument 158 return (arp_ProxySub(bundle, addr, 0)); in arp_ClearProxy() 167 arp_SetProxy(struct bundle *bundle, struct in_addr addr, int s) in arp_SetProxy() argument 204 arp_ClearProxy(struct bundle *bundle, struct in_addr addr, int s) in arp_ClearProxy() argument
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_uverbs_ioctl.c | 68 struct uverbs_attr_bundle bundle; member 111 container_of(bundle, struct bundle_priv, bundle); in _uverbs_alloc() 154 container_of(bundle, struct bundle_priv, bundle); in uverbs_set_output() 189 uverbs_alloc(&pbundle->bundle, in uverbs_process_idrs_array() 214 idr_vals[i], &pbundle->bundle); in uverbs_process_idrs_array() 429 &pbundle->bundle.driver_udata, in ib_uverbs_run_method() 443 ret = handler(&pbundle->bundle); in ib_uverbs_run_method() 446 ret = handler(&pbundle->bundle); in ib_uverbs_run_method() 488 &pbundle->bundle); in bundle_destroy() 562 pbundle->bundle.ufile = ufile; in ib_uverbs_cmd_verbs() [all …]
|