/drivers/net/ethernet/sfc/ |
D | filter.h | 155 static inline void efx_filter_init_rx(struct efx_filter_spec *spec, in efx_filter_init_rx() argument 160 memset(spec, 0, sizeof(*spec)); in efx_filter_init_rx() 161 spec->priority = priority; in efx_filter_init_rx() 162 spec->flags = EFX_FILTER_FLAG_RX | flags; in efx_filter_init_rx() 163 spec->rss_context = EFX_FILTER_RSS_CONTEXT_DEFAULT; in efx_filter_init_rx() 164 spec->dmaq_id = rxq_id; in efx_filter_init_rx() 167 static inline void efx_filter_init_tx(struct efx_filter_spec *spec, in efx_filter_init_tx() argument 170 memset(spec, 0, sizeof(*spec)); in efx_filter_init_tx() 171 spec->priority = EFX_FILTER_PRI_REQUIRED; in efx_filter_init_tx() 172 spec->flags = EFX_FILTER_FLAG_TX; in efx_filter_init_tx() [all …]
|
D | farch.c | 1896 struct efx_farch_filter_spec *spec; member 1933 efx_farch_filter_spec_table_id(const struct efx_farch_filter_spec *spec) in efx_farch_filter_spec_table_id() argument 1949 return (spec->type >> 2) + ((spec->flags & EFX_FILTER_FLAG_TX) ? 2 : 0); in efx_farch_filter_spec_table_id() 1990 table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].dmaq_id); in efx_farch_filter_push_rx_config() 1993 !!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags & in efx_farch_filter_push_rx_config() 1997 table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].dmaq_id); in efx_farch_filter_push_rx_config() 2000 !!(table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags & in efx_farch_filter_push_rx_config() 2009 !!(table->spec[EFX_FARCH_FILTER_INDEX_UC_DEF].flags & in efx_farch_filter_push_rx_config() 2010 table->spec[EFX_FARCH_FILTER_INDEX_MC_DEF].flags & in efx_farch_filter_push_rx_config() 2050 efx_farch_filter_from_gen_spec(struct efx_farch_filter_spec *spec, in efx_farch_filter_from_gen_spec() argument [all …]
|
D | ethtool.c | 796 struct efx_filter_spec spec; in efx_ethtool_get_class_rule() local 800 rule->location, &spec); in efx_ethtool_get_class_rule() 804 if (spec.dmaq_id == EFX_FILTER_RX_DMAQ_ID_DROP) in efx_ethtool_get_class_rule() 807 rule->ring_cookie = spec.dmaq_id; in efx_ethtool_get_class_rule() 809 if ((spec.match_flags & EFX_FILTER_MATCH_ETHER_TYPE) && in efx_ethtool_get_class_rule() 810 spec.ether_type == htons(ETH_P_IP) && in efx_ethtool_get_class_rule() 811 (spec.match_flags & EFX_FILTER_MATCH_IP_PROTO) && in efx_ethtool_get_class_rule() 812 (spec.ip_proto == IPPROTO_TCP || spec.ip_proto == IPPROTO_UDP) && in efx_ethtool_get_class_rule() 813 !(spec.match_flags & in efx_ethtool_get_class_rule() 818 rule->flow_type = ((spec.ip_proto == IPPROTO_TCP) ? in efx_ethtool_get_class_rule() [all …]
|
D | ef10.c | 65 unsigned long spec; /* pointer to spec plus flag bits */ member 2861 static unsigned int efx_ef10_filter_hash(const struct efx_filter_spec *spec) in efx_ef10_filter_hash() argument 2864 return jhash2((const u32 *)&spec->outer_vid, in efx_ef10_filter_hash() 2876 static bool efx_ef10_filter_is_exclusive(const struct efx_filter_spec *spec) in efx_ef10_filter_is_exclusive() argument 2878 if (spec->match_flags & EFX_FILTER_MATCH_LOC_MAC && in efx_ef10_filter_is_exclusive() 2879 !is_multicast_ether_addr(spec->loc_mac)) in efx_ef10_filter_is_exclusive() 2882 if ((spec->match_flags & in efx_ef10_filter_is_exclusive() 2885 if (spec->ether_type == htons(ETH_P_IP) && in efx_ef10_filter_is_exclusive() 2886 !ipv4_is_multicast(spec->loc_host[0])) in efx_ef10_filter_is_exclusive() 2888 if (spec->ether_type == htons(ETH_P_IPV6) && in efx_ef10_filter_is_exclusive() [all …]
|
D | rx.c | 845 struct efx_filter_spec spec; in efx_filter_rfs() local 875 efx_filter_init_rx(&spec, EFX_FILTER_PRI_HINT, in efx_filter_rfs() 878 spec.match_flags = in efx_filter_rfs() 882 spec.ether_type = ether_type; in efx_filter_rfs() 891 spec.ip_proto = ip->protocol; in efx_filter_rfs() 892 spec.rem_host[0] = ip->saddr; in efx_filter_rfs() 893 spec.loc_host[0] = ip->daddr; in efx_filter_rfs() 902 spec.ip_proto = ip6->nexthdr; in efx_filter_rfs() 903 memcpy(spec.rem_host, &ip6->saddr, sizeof(ip6->saddr)); in efx_filter_rfs() 904 memcpy(spec.loc_host, &ip6->daddr, sizeof(ip6->daddr)); in efx_filter_rfs() [all …]
|
D | efx.h | 114 struct efx_filter_spec *spec, in efx_filter_insert_filter() argument 117 return efx->type->filter_insert(efx, spec, replace_equal); in efx_filter_insert_filter() 149 u32 filter_id, struct efx_filter_spec *spec) in efx_filter_get_filter_safe() argument 151 return efx->type->filter_get_safe(efx, priority, filter_id, spec); in efx_filter_get_filter_safe() 184 bool efx_filter_is_mc_recipient(const struct efx_filter_spec *spec);
|
/drivers/video/fbdev/via/ |
D | via_aux_edid.c | 35 struct fb_monspecs *spec = drv->data; in query_edid() local 39 if (spec) { in query_edid() 40 fb_destroy_modedb(spec->modedb); in query_edid() 42 spec = kmalloc(sizeof(*spec), GFP_KERNEL); in query_edid() 43 if (!spec) in query_edid() 47 spec->version = spec->revision = 0; in query_edid() 49 fb_edid_to_monspecs(edid, spec); in query_edid() 50 valid = spec->version || spec->revision; in query_edid() 54 kfree(spec); in query_edid() 55 spec = NULL; in query_edid() [all …]
|
/drivers/block/ |
D | rbd.c | 341 struct rbd_spec *spec; member 421 static void rbd_spec_put(struct rbd_spec *spec); 492 else if (rbd_dev->spec && rbd_dev->spec->image_name) in rbd_warn() 494 RBD_DRV_NAME, rbd_dev->spec->image_name, &vaf); in rbd_warn() 495 else if (rbd_dev->spec && rbd_dev->spec->image_id) in rbd_warn() 497 RBD_DRV_NAME, rbd_dev->spec->image_id, &vaf); in rbd_warn() 582 if (rbd_dev->spec->snap_id != CEPH_NOSNAP && !ro) in rbd_ioctl_set_ro() 1137 u64 snap_id = rbd_dev->spec->snap_id; in rbd_dev_mapping_set() 2093 static void rbd_spec_put(struct rbd_spec *spec); 2182 img_request->snap_id = rbd_dev->spec->snap_id; in rbd_img_request_create() [all …]
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 836 static int parse_trans_rule(struct mlx4_dev *dev, struct mlx4_spec_list *spec, in parse_trans_rule() argument 839 if (mlx4_hw_rule_sz(dev, spec->id) < 0) in parse_trans_rule() 841 memset(rule_hw, 0, mlx4_hw_rule_sz(dev, spec->id)); in parse_trans_rule() 842 rule_hw->id = cpu_to_be16(__sw_id_hw[spec->id]); in parse_trans_rule() 843 rule_hw->size = mlx4_hw_rule_sz(dev, spec->id) >> 2; in parse_trans_rule() 845 switch (spec->id) { in parse_trans_rule() 847 memcpy(rule_hw->eth.dst_mac, spec->eth.dst_mac, ETH_ALEN); in parse_trans_rule() 848 memcpy(rule_hw->eth.dst_mac_msk, spec->eth.dst_mac_msk, in parse_trans_rule() 850 memcpy(rule_hw->eth.src_mac, spec->eth.src_mac, ETH_ALEN); in parse_trans_rule() 851 memcpy(rule_hw->eth.src_mac_msk, spec->eth.src_mac_msk, in parse_trans_rule() [all …]
|
/drivers/net/wireless/rt2x00/ |
D | rt2x00config.c | 178 struct hw_mode_spec *spec = &rt2x00dev->spec; in rt2x00ht_center_channel() local 185 center_channel = spec->channels[conf->chandef.chan->hw_value].channel; in rt2x00ht_center_channel() 195 for (i = 0; i < spec->num_channels; i++) in rt2x00ht_center_channel() 196 if (spec->channels[i].channel == center_channel) in rt2x00ht_center_channel() 232 &rt2x00dev->spec.channels[hw_value], in rt2x00lib_config() 236 &rt2x00dev->spec.channels_info[hw_value], in rt2x00lib_config()
|
D | rt2x00dev.c | 935 struct hw_mode_spec *spec) in rt2x00lib_probe_hw_modes() argument 944 if (spec->supported_rates & SUPPORT_RATE_CCK) in rt2x00lib_probe_hw_modes() 946 if (spec->supported_rates & SUPPORT_RATE_OFDM) in rt2x00lib_probe_hw_modes() 949 channels = kcalloc(spec->num_channels, sizeof(*channels), GFP_KERNEL); in rt2x00lib_probe_hw_modes() 966 for (i = 0; i < spec->num_channels; i++) { in rt2x00lib_probe_hw_modes() 968 spec->channels[i].channel, in rt2x00lib_probe_hw_modes() 969 spec->channels_info[i].max_power, i); in rt2x00lib_probe_hw_modes() 977 if (spec->supported_bands & SUPPORT_BAND_2GHZ) { in rt2x00lib_probe_hw_modes() 985 &spec->ht, sizeof(spec->ht)); in rt2x00lib_probe_hw_modes() 993 if (spec->supported_bands & SUPPORT_BAND_5GHZ) { in rt2x00lib_probe_hw_modes() [all …]
|
D | rt2500usb.c | 1685 struct hw_mode_spec *spec = &rt2x00dev->spec; in rt2500usb_probe_hw_mode() local 1717 spec->supported_bands = SUPPORT_BAND_2GHZ; in rt2500usb_probe_hw_mode() 1718 spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM; in rt2500usb_probe_hw_mode() 1721 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2522); in rt2500usb_probe_hw_mode() 1722 spec->channels = rf_vals_bg_2522; in rt2500usb_probe_hw_mode() 1724 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2523); in rt2500usb_probe_hw_mode() 1725 spec->channels = rf_vals_bg_2523; in rt2500usb_probe_hw_mode() 1727 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2524); in rt2500usb_probe_hw_mode() 1728 spec->channels = rf_vals_bg_2524; in rt2500usb_probe_hw_mode() 1730 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525); in rt2500usb_probe_hw_mode() [all …]
|
D | rt2500pci.c | 1864 struct hw_mode_spec *spec = &rt2x00dev->spec; in rt2500pci_probe_hw_mode() local 1890 spec->supported_bands = SUPPORT_BAND_2GHZ; in rt2500pci_probe_hw_mode() 1891 spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM; in rt2500pci_probe_hw_mode() 1894 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2522); in rt2500pci_probe_hw_mode() 1895 spec->channels = rf_vals_bg_2522; in rt2500pci_probe_hw_mode() 1897 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2523); in rt2500pci_probe_hw_mode() 1898 spec->channels = rf_vals_bg_2523; in rt2500pci_probe_hw_mode() 1900 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2524); in rt2500pci_probe_hw_mode() 1901 spec->channels = rf_vals_bg_2524; in rt2500pci_probe_hw_mode() 1903 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2525); in rt2500pci_probe_hw_mode() [all …]
|
D | rt73usb.c | 2100 struct hw_mode_spec *spec = &rt2x00dev->spec; in rt73usb_probe_hw_mode() local 2126 spec->supported_bands = SUPPORT_BAND_2GHZ; in rt73usb_probe_hw_mode() 2127 spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM; in rt73usb_probe_hw_mode() 2130 spec->num_channels = ARRAY_SIZE(rf_vals_bg_2528); in rt73usb_probe_hw_mode() 2131 spec->channels = rf_vals_bg_2528; in rt73usb_probe_hw_mode() 2133 spec->supported_bands |= SUPPORT_BAND_5GHZ; in rt73usb_probe_hw_mode() 2134 spec->num_channels = ARRAY_SIZE(rf_vals_5226); in rt73usb_probe_hw_mode() 2135 spec->channels = rf_vals_5226; in rt73usb_probe_hw_mode() 2137 spec->num_channels = 14; in rt73usb_probe_hw_mode() 2138 spec->channels = rf_vals_5225_2527; in rt73usb_probe_hw_mode() [all …]
|
/drivers/spmi/ |
D | spmi-pmic-arb.c | 608 struct spmi_pmic_arb_irq_spec *spec, in search_mapping_table() argument 611 u16 ppid = spec->slave << 8 | spec->per; in search_mapping_table() 647 struct spmi_pmic_arb_irq_spec spec; in qpnpint_irq_domain_dt_translate() local 662 spec.slave = intspec[0]; in qpnpint_irq_domain_dt_translate() 663 spec.per = intspec[1]; in qpnpint_irq_domain_dt_translate() 664 spec.irq = intspec[2]; in qpnpint_irq_domain_dt_translate() 666 err = search_mapping_table(pa, &spec, &apid); in qpnpint_irq_domain_dt_translate() 670 pa->apid_to_ppid[apid] = spec.slave << 8 | spec.per; in qpnpint_irq_domain_dt_translate() 678 *out_hwirq = spec.slave << 24 in qpnpint_irq_domain_dt_translate() 679 | spec.per << 16 in qpnpint_irq_domain_dt_translate() [all …]
|
/drivers/md/ |
D | dm-ioctl.c | 1103 struct dm_target_spec *spec; in retrieve_status() local 1128 spec = (struct dm_target_spec *) outptr; in retrieve_status() 1130 spec->status = 0; in retrieve_status() 1131 spec->sector_start = ti->begin; in retrieve_status() 1132 spec->length = ti->len; in retrieve_status() 1133 strncpy(spec->target_type, ti->type->name, in retrieve_status() 1134 sizeof(spec->target_type)); in retrieve_status() 1161 spec->next = outptr - outbuf; in retrieve_status() 1221 struct dm_target_spec **spec, char **target_params) in next_target() argument 1223 *spec = (struct dm_target_spec *) ((unsigned char *) last + next); in next_target() [all …]
|
/drivers/net/can/ |
D | janz-ican3.c | 261 u8 spec; member 648 msg.spec = MSG_CONNECTI; in ican3_msg_connect() 659 msg.spec = MSG_DISCONNECT; in ican3_msg_disconnect() 671 msg.spec = MSG_NEWHOSTIF; in ican3_msg_newhostif() 692 msg.spec = MSG_INITFDPMQUEUE; in ican3_msg_fasthostif() 726 msg.spec = MSG_SETAFILMASK; in ican3_set_id_filter() 742 msg.spec = MSG_SETAFILMASK; in ican3_set_id_filter() 783 msg.spec = MSG_CBTRREQ; in ican3_set_bus_state() 797 msg.spec = on ? MSG_CONREQ : MSG_COFFREQ; in ican3_set_bus_state() 804 msg.spec = MSG_LMTS; in ican3_set_bus_state() [all …]
|
/drivers/mailbox/ |
D | mailbox.c | 308 struct of_phandle_args spec; in mbox_request_channel() local 321 "#mbox-cells", index, &spec)) { in mbox_request_channel() 329 if (mbox->dev->of_node == spec.np) { in mbox_request_channel() 330 chan = mbox->of_xlate(mbox, &spec); in mbox_request_channel() 334 of_node_put(spec.np); in mbox_request_channel()
|
D | mailbox-sti.c | 326 const struct of_phandle_args *spec) in sti_mbox_xlate() argument 332 unsigned int instance = spec->args[0]; in sti_mbox_xlate() 333 unsigned int channel = spec->args[1]; in sti_mbox_xlate()
|
/drivers/video/fbdev/ |
D | atafb.c | 2812 static void __init atafb_setup_ext(char *spec) in atafb_setup_ext() argument 2828 p = strsep(&spec, ";"); in atafb_setup_ext() 2835 p = strsep(&spec, ";"); in atafb_setup_ext() 2842 p = strsep(&spec, ";"); in atafb_setup_ext() 2850 p = strsep(&spec, ";"); in atafb_setup_ext() 2864 p = strsep(&spec, ";"); in atafb_setup_ext() 2869 p = strsep(&spec, ";"); in atafb_setup_ext() 2875 p = strsep(&spec, ";"); in atafb_setup_ext() 2879 p = strsep(&spec, ";"); in atafb_setup_ext() 2888 p = strsep(&spec, ";"); in atafb_setup_ext() [all …]
|
D | sstfb.c | 1148 struct sst_spec *spec; in sst_init() local 1152 spec = &voodoo_spec[par->type]; in sst_init() 1191 gfx_clock = spec->default_gfx_clock; in sst_init() 1192 if ((gfxclk >10 ) && (gfxclk < spec->max_gfxclk)) { in sst_init() 1325 struct sst_spec *spec; in sstfb_probe() local 1345 spec = &voodoo_spec[par->type]; in sstfb_probe() 1346 f_ddprintk("found device : %s\n", spec->name); in sstfb_probe() 1384 strlcpy(fix->id, spec->name, sizeof(fix->id)); in sstfb_probe()
|
/drivers/mfd/ |
D | kempld-core.c | 52 u8 spec; in kempld_get_info_generic() local 57 spec = kempld_read8(pld, KEMPLD_SPEC); in kempld_get_info_generic() 65 if (spec == 0xff) { in kempld_get_info_generic() 69 pld->info.spec_minor = KEMPLD_SPEC_GET_MINOR(spec); in kempld_get_info_generic() 70 pld->info.spec_major = KEMPLD_SPEC_GET_MAJOR(spec); in kempld_get_info_generic()
|
/drivers/gpu/drm/nouveau/nvkm/engine/pm/ |
D | base.c | 702 const struct nvkm_specsrc *spec) in nvkm_perfsrc_new() argument 709 if (!spec) { in nvkm_perfsrc_new() 714 ssrc = spec; in nvkm_perfsrc_new() 766 const struct nvkm_specdom *spec) in nvkm_perfdom_new() argument 778 sdom = spec; in nvkm_perfdom_new() 788 (int)(sdom - spec)); in nvkm_perfdom_new() 791 "%s/%02x", name, (int)(sdom - spec)); in nvkm_perfdom_new()
|
/drivers/acpi/ |
D | sbs.c | 95 u16 spec; member 130 return battery_scale((battery->spec & 0x0f00) >> 8); in acpi_battery_vscale() 135 return battery_scale((battery->spec & 0xf000) >> 12); in acpi_battery_ipscale() 328 {0x1a, SMBUS_READ_WORD, offsetof(struct acpi_battery, spec)},
|
/drivers/infiniband/hw/usnic/ |
D | usnic_abi.h | 65 struct usnic_transport_spec spec; member
|