/drivers/staging/lustre/lnet/lnet/ |
D | net_fault.c | 152 struct lnet_drop_rule *rule; in lnet_drop_rule_add() local 163 CFS_ALLOC_PTR(rule); in lnet_drop_rule_add() 164 if (!rule) in lnet_drop_rule_add() 167 spin_lock_init(&rule->dr_lock); in lnet_drop_rule_add() 169 rule->dr_attr = *attr; in lnet_drop_rule_add() 171 rule->dr_time_base = cfs_time_shift(attr->u.drop.da_interval); in lnet_drop_rule_add() 172 rule->dr_drop_time = cfs_time_shift(cfs_rand() % in lnet_drop_rule_add() 175 rule->dr_drop_at = cfs_rand() % attr->u.drop.da_rate; in lnet_drop_rule_add() 179 list_add(&rule->dr_link, &the_lnet.ln_drop_rules); in lnet_drop_rule_add() 198 struct lnet_drop_rule *rule; in lnet_drop_rule_del() local [all …]
|
/drivers/pnp/ |
D | manager.c | 22 unsigned char rule, in pnp_find_resource() argument 31 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource() 37 static int pnp_assign_port(struct pnp_dev *dev, struct pnp_port *rule, int idx) in pnp_assign_port() argument 41 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port() 50 res->flags = rule->flags | IORESOURCE_AUTO; in pnp_assign_port() 54 if (!rule->size) { in pnp_assign_port() 60 res->start = rule->min; in pnp_assign_port() 61 res->end = res->start + rule->size - 1; in pnp_assign_port() 64 res->start += rule->align; in pnp_assign_port() 65 res->end = res->start + rule->size - 1; in pnp_assign_port() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_config.c | 143 static void sptlrpc_rule_init(struct sptlrpc_rule *rule) in sptlrpc_rule_init() argument 145 rule->sr_netid = LNET_NIDNET(LNET_NID_ANY); in sptlrpc_rule_init() 146 rule->sr_from = LUSTRE_SP_ANY; in sptlrpc_rule_init() 147 rule->sr_to = LUSTRE_SP_ANY; in sptlrpc_rule_init() 148 rule->sr_padding = 0; in sptlrpc_rule_init() 150 get_default_flavor(&rule->sr_flvr); in sptlrpc_rule_init() 156 static int sptlrpc_parse_rule(char *param, struct sptlrpc_rule *rule) in sptlrpc_parse_rule() argument 161 sptlrpc_rule_init(rule); in sptlrpc_parse_rule() 176 rule->sr_netid = libcfs_str2net(param); in sptlrpc_parse_rule() 177 if (rule->sr_netid == LNET_NIDNET(LNET_NID_ANY)) { in sptlrpc_parse_rule() [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_arfs.c | 59 struct mlx5_flow_rule *rule; member 398 if (arfs_rule->rule) in arfs_may_expire_flow() 399 mlx5_del_flow_rule(arfs_rule->rule); in arfs_may_expire_flow() 408 struct arfs_rule *rule; in arfs_del_rules() local 414 mlx5e_for_each_arfs_rule(rule, htmp, priv->fs.arfs.arfs_tables, i, j) { in arfs_del_rules() 415 hlist_del_init(&rule->hlist); in arfs_del_rules() 416 hlist_add_head(&rule->hlist, &del_list); in arfs_del_rules() 420 hlist_for_each_entry_safe(rule, htmp, &del_list, hlist) { in arfs_del_rules() 421 cancel_work_sync(&rule->arfs_work); in arfs_del_rules() 422 if (rule->rule) in arfs_del_rules() [all …]
|
D | fs_core.c | 363 struct mlx5_flow_rule *rule; in del_rule() local 379 fs_get_obj(rule, node); in del_rule() 380 fs_get_obj(fte, rule->node.parent); in del_rule() 384 list_del(&rule->node.list); in del_rule() 385 if (rule->sw_action == MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_PRIO) { in del_rule() 386 mutex_lock(&rule->dest_attr.ft->lock); in del_rule() 387 list_del(&rule->next_ft); in del_rule() 388 mutex_unlock(&rule->dest_attr.ft->lock); in del_rule() 644 int mlx5_modify_rule_destination(struct mlx5_flow_rule *rule, in mlx5_modify_rule_destination() argument 653 fs_get_obj(fte, rule->node.parent); in mlx5_modify_rule_destination() [all …]
|
D | en_tc.c | 50 struct mlx5_flow_rule *rule; member 64 struct mlx5_flow_rule *rule; in mlx5e_tc_add_nic_flow() local 89 rule = ERR_CAST(priv->fs.tc.t); in mlx5e_tc_add_nic_flow() 97 rule = mlx5_add_flow_rule(priv->fs.tc.t, spec, in mlx5e_tc_add_nic_flow() 101 if (IS_ERR(rule)) in mlx5e_tc_add_nic_flow() 104 return rule; in mlx5e_tc_add_nic_flow() 114 return rule; in mlx5e_tc_add_nic_flow() 132 struct mlx5_flow_rule *rule, in mlx5e_tc_del_flow() argument 138 counter = mlx5_flow_rule_counter(rule); in mlx5e_tc_del_flow() 143 mlx5_del_flow_rule(rule); in mlx5e_tc_del_flow() [all …]
|
D | en_fs_ethtool.c | 39 struct mlx5_flow_rule *rule; member 263 struct mlx5e_ethtool_rule *rule) in add_rule_to_list() argument 269 if (iter->flow_spec.location > rule->flow_spec.location) in add_rule_to_list() 274 list_add(&rule->list, head); in add_rule_to_list() 294 struct mlx5_flow_rule *rule; in add_ethtool_flow_rule() local 321 rule = mlx5_add_flow_rule(ft, spec, action, in add_ethtool_flow_rule() 323 if (IS_ERR(rule)) { in add_ethtool_flow_rule() 324 err = PTR_ERR(rule); in add_ethtool_flow_rule() 332 return err ? ERR_PTR(err) : rule; in add_ethtool_flow_rule() 338 if (eth_rule->rule) in del_ethtool_rule() [all …]
|
D | en_fs.c | 625 struct mlx5_flow_rule *rule; in mlx5e_generate_ttc_rule() local 646 rule = mlx5_add_flow_rule(ft, spec, in mlx5e_generate_ttc_rule() 650 if (IS_ERR(rule)) { in mlx5e_generate_ttc_rule() 651 err = PTR_ERR(rule); in mlx5e_generate_ttc_rule() 656 return err ? ERR_PTR(err) : rule; in mlx5e_generate_ttc_rule() 803 if (!IS_ERR_OR_NULL(ai->rule)) { in mlx5e_del_l2_flow_rule() 804 mlx5_del_flow_rule(ai->rule); in mlx5e_del_l2_flow_rule() 805 ai->rule = NULL; in mlx5e_del_l2_flow_rule() 850 ai->rule = mlx5_add_flow_rule(ft, spec, in mlx5e_add_l2_flow_rule() 853 if (IS_ERR(ai->rule)) { in mlx5e_add_l2_flow_rule() [all …]
|
D | eswitch_offloads.c | 53 struct mlx5_flow_rule *rule; in mlx5_eswitch_add_offloaded_rule() local 84 rule = mlx5_add_flow_rule((struct mlx5_flow_table *)esw->fdb_table.fdb, in mlx5_eswitch_add_offloaded_rule() 87 if (IS_ERR(rule)) in mlx5_eswitch_add_offloaded_rule() 90 return rule; in mlx5_eswitch_add_offloaded_rule()
|
/drivers/net/ethernet/sfc/ |
D | ethtool.c | 796 struct ethtool_rx_flow_spec *rule) in efx_ethtool_get_class_rule() argument 798 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 799 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 800 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 801 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 802 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in efx_ethtool_get_class_rule() 803 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule() 804 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_get_class_rule() 805 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule() 806 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() [all …]
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 39 divert_rule rule; /* used rule */ member 281 ds->rule = *newrule; /* set rule */ in insertrule() 374 return (&ds->rule); in getruleptr() 397 if (((dv->rule.callopt == 1) && (ic->command == ISDN_STAT_ICALLW)) || in isdn_divert_icall() 398 ((dv->rule.callopt == 2) && (ic->command == ISDN_STAT_ICALL))) in isdn_divert_icall() 400 if (!(dv->rule.drvid & (1L << ic->driver))) in isdn_divert_icall() 402 if ((dv->rule.si1) && (dv->rule.si1 != ic->parm.setup.si1)) in isdn_divert_icall() 404 if ((dv->rule.si2) && (dv->rule.si2 != ic->parm.setup.si2)) in isdn_divert_icall() 407 p = dv->rule.my_msn; in isdn_divert_icall() 423 if ((strcmp(dv->rule.caller, "0")) || in isdn_divert_icall() [all …]
|
D | divert_procfs.c | 216 dioctl.getsetrule.rule = *rulep; /* copy data */ in isdn_divert_ioctl_unlocked() 223 *rulep = dioctl.getsetrule.rule; /* copy data */ in isdn_divert_ioctl_unlocked() 229 return (insertrule(dioctl.getsetrule.ruleidx, &dioctl.getsetrule.rule)); in isdn_divert_ioctl_unlocked()
|
D | isdn_divert.h | 76 divert_rule rule; /* rule parms */ member
|
/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1099 static inline u32 vlan_tci_vid(struct ethtool_rx_flow_spec *rule) in vlan_tci_vid() argument 1101 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid() 1104 static inline u32 vlan_tci_vidm(struct ethtool_rx_flow_spec *rule) in vlan_tci_vidm() argument 1106 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm() 1109 static inline u32 vlan_tci_cfi(struct ethtool_rx_flow_spec *rule) in vlan_tci_cfi() argument 1111 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi() 1114 static inline u32 vlan_tci_cfim(struct ethtool_rx_flow_spec *rule) in vlan_tci_cfim() argument 1116 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim() 1119 static inline u32 vlan_tci_prio(struct ethtool_rx_flow_spec *rule) in vlan_tci_prio() argument 1121 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 901 struct mlx4_net_trans_rule *rule) in mlx4_err_rule() argument 911 rule->port, rule->priority, rule->qpn); in mlx4_err_rule() 913 list_for_each_entry(cur, &rule->list, list) { in mlx4_err_rule() 978 struct mlx4_net_trans_rule *rule, u64 *reg_id) in mlx4_flow_attach() argument 989 if (!mlx4_qp_lookup(dev, rule->qpn)) { in mlx4_flow_attach() 990 mlx4_err_rule(dev, "QP doesn't exist\n", rule); in mlx4_flow_attach() 995 trans_rule_ctrl_to_hw(rule, mailbox->buf); in mlx4_flow_attach() 999 list_for_each_entry(cur, &rule->list, list) { in mlx4_flow_attach() 1011 rule); in mlx4_flow_attach() 1018 rule); in mlx4_flow_attach() [all …]
|
D | en_ethtool.c | 1512 struct mlx4_net_trans_rule rule = { in mlx4_en_flow_replace() local 1519 rule.port = priv->port; in mlx4_en_flow_replace() 1520 rule.priority = MLX4_DOMAIN_ETHTOOL | cmd->fs.location; in mlx4_en_flow_replace() 1521 INIT_LIST_HEAD(&rule.list); in mlx4_en_flow_replace() 1541 rule.qpn = qpn; in mlx4_en_flow_replace() 1542 err = mlx4_en_ethtool_to_net_trans_rule(dev, cmd, &rule.list); in mlx4_en_flow_replace() 1559 err = mlx4_flow_attach(priv->mdev->dev, &rule, ®_id); in mlx4_en_flow_replace() 1571 list_for_each_entry_safe(spec, tmp_spec, &rule.list, list) { in mlx4_en_flow_replace() 1582 struct ethtool_flow_id *rule; in mlx4_en_flow_detach() local 1588 rule = &priv->ethtool_rules[cmd->fs.location]; in mlx4_en_flow_detach() [all …]
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 2297 struct i40e_fdir_filter *rule; in i40e_get_ethtool_fdir_all() local 2304 hlist_for_each_entry_safe(rule, node2, in i40e_get_ethtool_fdir_all() 2309 rule_locs[cnt] = rule->fd_id; in i40e_get_ethtool_fdir_all() 2333 struct i40e_fdir_filter *rule = NULL; in i40e_get_ethtool_fdir_entry() local 2336 hlist_for_each_entry_safe(rule, node2, in i40e_get_ethtool_fdir_entry() 2338 if (fsp->location <= rule->fd_id) in i40e_get_ethtool_fdir_entry() 2342 if (!rule || fsp->location != rule->fd_id) in i40e_get_ethtool_fdir_entry() 2345 fsp->flow_type = rule->flow_type; in i40e_get_ethtool_fdir_entry() 2355 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry() 2356 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry() [all …]
|
/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-nvm-parse.c | 850 struct ieee80211_reg_rule *rule; in iwl_parse_nvm_mcc_info() local 901 rule = ®d->reg_rules[valid_rules - 1]; in iwl_parse_nvm_mcc_info() 904 rule->freq_range.start_freq_khz = in iwl_parse_nvm_mcc_info() 907 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info() 910 rule->power_rule.max_antenna_gain = DBI_TO_MBI(6); in iwl_parse_nvm_mcc_info() 911 rule->power_rule.max_eirp = in iwl_parse_nvm_mcc_info() 914 rule->flags = iwl_nvm_get_regdom_bw_flags(nvm_chan, ch_idx, in iwl_parse_nvm_mcc_info() 918 rule->flags |= NL80211_RRF_AUTO_BW; in iwl_parse_nvm_mcc_info() 919 rule->freq_range.max_bandwidth_khz = 0; in iwl_parse_nvm_mcc_info()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2388 struct ixgbe_fdir_filter *rule = NULL; in ixgbe_get_ethtool_fdir_entry() local 2393 hlist_for_each_entry_safe(rule, node2, in ixgbe_get_ethtool_fdir_entry() 2395 if (fsp->location <= rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2399 if (!rule || fsp->location != rule->sw_idx) in ixgbe_get_ethtool_fdir_entry() 2405 switch (rule->filter.formatted.flow_type) { in ixgbe_get_ethtool_fdir_entry() 2425 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2427 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2429 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2431 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2433 fsp->h_ext.vlan_tci = rule->filter.formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry() [all …]
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype6.h | 134 char rule[8]; in rng_type6CPRB_msgX() member 162 memcpy(msg->rule, "RANDOM ", 8); in rng_type6CPRB_msgX()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2439 struct igb_nfc_filter *rule = NULL; in igb_get_ethtool_nfc_entry() local 2444 hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node) { in igb_get_ethtool_nfc_entry() 2445 if (fsp->location <= rule->sw_idx) in igb_get_ethtool_nfc_entry() 2449 if (!rule || fsp->location != rule->sw_idx) in igb_get_ethtool_nfc_entry() 2452 if (rule->filter.match_flags) { in igb_get_ethtool_nfc_entry() 2454 fsp->ring_cookie = rule->action; in igb_get_ethtool_nfc_entry() 2455 if (rule->filter.match_flags & IGB_FILTER_FLAG_ETHER_TYPE) { in igb_get_ethtool_nfc_entry() 2456 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2459 if (rule->filter.match_flags & IGB_FILTER_FLAG_VLAN_TCI) { in igb_get_ethtool_nfc_entry() 2461 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() [all …]
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_cmd.c | 1627 struct coalesce_receive_filt_rule *rule; in mwifiex_cmd_coalesce_cfg() local 1634 rule = coalesce_cfg->rule; in mwifiex_cmd_coalesce_cfg() 1637 rule->header.type = cpu_to_le16(TLV_TYPE_COALESCE_RULE); in mwifiex_cmd_coalesce_cfg() 1638 rule->max_coalescing_delay = in mwifiex_cmd_coalesce_cfg() 1639 cpu_to_le16(cfg->rule[cnt].max_coalescing_delay); in mwifiex_cmd_coalesce_cfg() 1640 rule->pkt_type = cfg->rule[cnt].pkt_type; in mwifiex_cmd_coalesce_cfg() 1641 rule->num_of_fields = cfg->rule[cnt].num_of_fields; in mwifiex_cmd_coalesce_cfg() 1645 param = rule->params; in mwifiex_cmd_coalesce_cfg() 1646 for (idx = 0; idx < cfg->rule[cnt].num_of_fields; idx++) { in mwifiex_cmd_coalesce_cfg() 1647 param->operation = cfg->rule[cnt].params[idx].operation; in mwifiex_cmd_coalesce_cfg() [all …]
|
D | sta_cmdresp.c | 1031 struct ieee80211_reg_rule *rule; in mwifiex_create_custom_regdomain() local 1084 rule = ®d->reg_rules[valid_rules - 1]; in mwifiex_create_custom_regdomain() 1086 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(freq + 10); in mwifiex_create_custom_regdomain() 1095 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(freq - 10); in mwifiex_create_custom_regdomain() 1096 rule->power_rule.max_eirp = DBM_TO_MBM(19); in mwifiex_create_custom_regdomain() 1099 rule->flags = NL80211_RRF_NO_IR; in mwifiex_create_custom_regdomain() 1102 rule->flags = NL80211_RRF_DFS; in mwifiex_create_custom_regdomain() 1104 rule->freq_range.max_bandwidth_khz = bw; in mwifiex_create_custom_regdomain()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
D | channel.c | 666 const struct ieee80211_reg_rule *rule; in brcms_reg_apply_beaconing_flags() local 682 rule = freq_reg_info(wiphy, in brcms_reg_apply_beaconing_flags() 684 if (IS_ERR(rule)) in brcms_reg_apply_beaconing_flags() 687 if (!(rule->flags & NL80211_RRF_NO_IR)) in brcms_reg_apply_beaconing_flags()
|
/drivers/acpi/acpica/ |
D | acinterp.h | 483 void acpi_ex_acquire_global_lock(u32 rule); 485 void acpi_ex_release_global_lock(u32 rule);
|