/drivers/staging/lustre/lustre/osc/ |
D | osc_cache.c | 46 static int osc_extent_wait(const struct lu_env *env, struct osc_extent *ext, 69 static inline char *ext_flags(struct osc_extent *ext, char *flags) in ext_flags() argument 72 *buf++ = ext->oe_rw ? 'r' : 'w'; in ext_flags() 73 if (ext->oe_intree) in ext_flags() 75 if (ext->oe_sync) in ext_flags() 77 if (ext->oe_srvlock) in ext_flags() 79 if (ext->oe_hp) in ext_flags() 81 if (ext->oe_urgent) in ext_flags() 83 if (ext->oe_memalloc) in ext_flags() 85 if (ext->oe_trunc_pending) in ext_flags() [all …]
|
/drivers/extcon/ |
D | extcon-intel-cht-wc.c | 104 static int cht_wc_extcon_get_id(struct cht_wc_extcon_data *ext, int pwrsrc_sts) in cht_wc_extcon_get_id() argument 118 static int cht_wc_extcon_get_charger(struct cht_wc_extcon_data *ext, in cht_wc_extcon_get_charger() argument 127 ret = regmap_read(ext->regmap, CHT_WC_USBSRC, &usbsrc); in cht_wc_extcon_get_charger() 129 dev_err(ext->dev, "Error reading usbsrc: %d\n", ret); in cht_wc_extcon_get_charger() 146 dev_warn(ext->dev, "Could not detect charger type\n"); in cht_wc_extcon_get_charger() 148 dev_warn(ext->dev, "Timeout detecting charger type\n"); in cht_wc_extcon_get_charger() 155 dev_warn(ext->dev, in cht_wc_extcon_get_charger() 174 static void cht_wc_extcon_set_phymux(struct cht_wc_extcon_data *ext, u8 state) in cht_wc_extcon_set_phymux() argument 178 ret = regmap_write(ext->regmap, CHT_WC_PHYCTRL, state); in cht_wc_extcon_set_phymux() 180 dev_err(ext->dev, "Error writing phyctrl: %d\n", ret); in cht_wc_extcon_set_phymux() [all …]
|
/drivers/media/common/saa7146/ |
D | saa7146_core.c | 308 if (dev->ext) { in interrupt_hw() 309 if (dev->ext->irq_mask & isr) { in interrupt_hw() 310 if (dev->ext->irq_func) in interrupt_hw() 311 dev->ext->irq_func(dev, &isr); in interrupt_hw() 312 isr &= ~dev->ext->irq_mask; in interrupt_hw() 356 struct saa7146_extension *ext = pci_ext->ext; in saa7146_init_one() local 447 dev->ext = ext; in saa7146_init_one() 465 if (ext->probe && ext->probe(dev)) { in saa7146_init_one() 470 if (ext->attach(dev, pci_ext)) { in saa7146_init_one() 523 dev->ext->detach(dev); in saa7146_remove_one() [all …]
|
/drivers/hid/ |
D | hid-wiimote-modules.c | 823 static void wiimod_nunchuk_in_ext(struct wiimote_data *wdata, const __u8 *ext) in wiimod_nunchuk_in_ext() argument 857 bx = ext[0]; in wiimod_nunchuk_in_ext() 858 by = ext[1]; in wiimod_nunchuk_in_ext() 862 x = ext[2] << 2; in wiimod_nunchuk_in_ext() 863 y = ext[3] << 2; in wiimod_nunchuk_in_ext() 864 z = ext[4] << 2; in wiimod_nunchuk_in_ext() 867 x |= (ext[5] >> 3) & 0x02; in wiimod_nunchuk_in_ext() 868 y |= (ext[5] >> 4) & 0x02; in wiimod_nunchuk_in_ext() 870 z |= (ext[5] >> 5) & 0x06; in wiimod_nunchuk_in_ext() 872 x |= (ext[5] >> 2) & 0x03; in wiimod_nunchuk_in_ext() [all …]
|
/drivers/net/ethernet/netronome/nfp/flower/ |
D | match.c | 198 u8 *ext; in nfp_flower_compile_flow_match() local 204 ext = nfp_flow->unmasked_data; in nfp_flower_compile_flow_match() 208 nfp_flower_compile_meta_tci((struct nfp_flower_meta_two *)ext, in nfp_flower_compile_flow_match() 213 ext += sizeof(struct nfp_flower_meta_two); in nfp_flower_compile_flow_match() 217 err = nfp_flower_compile_port((struct nfp_flower_in_port *)ext, in nfp_flower_compile_flow_match() 230 ext += sizeof(struct nfp_flower_in_port); in nfp_flower_compile_flow_match() 234 nfp_flower_compile_meta((struct nfp_flower_meta_one *)ext, in nfp_flower_compile_flow_match() 239 ext += sizeof(struct nfp_flower_meta_one); in nfp_flower_compile_flow_match() 252 nfp_flower_compile_mac((struct nfp_flower_mac_mpls *)ext, in nfp_flower_compile_flow_match() 257 ext += sizeof(struct nfp_flower_mac_mpls); in nfp_flower_compile_flow_match() [all …]
|
/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_wx.c | 524 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in libipw_wx_set_encodeext() local 543 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in libipw_wx_set_encodeext() 548 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in libipw_wx_set_encodeext() 558 ext->alg == IW_ENCODE_ALG_NONE) { in libipw_wx_set_encodeext() 583 switch (ext->alg) { in libipw_wx_set_encodeext() 598 dev->name, ext->alg); in libipw_wx_set_encodeext() 610 dev->name, ext->alg); in libipw_wx_set_encodeext() 636 if (ext->key_len > 0 && (*crypt)->ops->set_key && in libipw_wx_set_encodeext() 637 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in libipw_wx_set_encodeext() 645 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in libipw_wx_set_encodeext() [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_wx.c | 515 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in ieee80211_wx_set_encode_ext() local 533 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in ieee80211_wx_set_encode_ext() 540 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in ieee80211_wx_set_encode_ext() 552 ext->alg == IW_ENCODE_ALG_NONE) { in ieee80211_wx_set_encode_ext() 573 switch (ext->alg) { in ieee80211_wx_set_encode_ext() 588 dev->name, ext->alg); in ieee80211_wx_set_encode_ext() 601 dev->name, ext->alg); in ieee80211_wx_set_encode_ext() 602 printk("========>unknown crypto alg %d\n", ext->alg); in ieee80211_wx_set_encode_ext() 628 if (ext->key_len > 0 && (*crypt)->ops->set_key && in ieee80211_wx_set_encode_ext() 629 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in ieee80211_wx_set_encode_ext() [all …]
|
/drivers/net/ethernet/altera/ |
D | altera_tse_ethtool.c | 99 u64 ext; in tse_fill_stats() local 111 ext = (u64) csrrd32(priv->mac_dev, in tse_fill_stats() 114 ext |= csrrd32(priv->mac_dev, in tse_fill_stats() 116 buf[4] = ext; in tse_fill_stats() 119 ext = (u64) csrrd32(priv->mac_dev, in tse_fill_stats() 122 ext |= csrrd32(priv->mac_dev, in tse_fill_stats() 124 buf[5] = ext; in tse_fill_stats() 152 ext = (u64) csrrd32(priv->mac_dev, in tse_fill_stats() 154 ext |= csrrd32(priv->mac_dev, in tse_fill_stats() 156 buf[18] = ext; in tse_fill_stats()
|
/drivers/net/wireless/intersil/orinoco/ |
D | wext.c | 726 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in orinoco_ioctl_set_encodeext() local 727 int idx, alg = ext->alg, set_key = 1; in orinoco_ioctl_set_encodeext() 751 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in orinoco_ioctl_set_encodeext() 754 (ext->key_len > 0)) ? 1 : 0; in orinoco_ioctl_set_encodeext() 767 if (ext->key_len <= 0) in orinoco_ioctl_set_encodeext() 772 ext->key, ext->key_len, NULL, 0); in orinoco_ioctl_set_encodeext() 780 (ext->key_len > sizeof(struct orinoco_tkip_key))) in orinoco_ioctl_set_encodeext() 785 if (ext->ext_flags & IW_ENCODE_EXT_RX_SEQ_VALID) in orinoco_ioctl_set_encodeext() 786 tkip_iv = &ext->rx_seq[0]; in orinoco_ioctl_set_encodeext() 789 ext->key, ext->key_len, tkip_iv, in orinoco_ioctl_set_encodeext() [all …]
|
/drivers/block/drbd/ |
D | drbd_actlog.c | 683 struct bm_extent *ext = lc_entry(e, struct bm_extent, lce); in update_rs_extent() local 684 if (ext->lce.lc_number == enr) { in update_rs_extent() 686 ext->rs_left -= count; in update_rs_extent() 688 ext->rs_left += count; in update_rs_extent() 690 ext->rs_failed += count; in update_rs_extent() 691 if (ext->rs_left < ext->rs_failed) { in update_rs_extent() 694 ext->lce.lc_number, ext->rs_left, in update_rs_extent() 695 ext->rs_failed, count, in update_rs_extent() 704 ext->rs_left = drbd_bm_e_weight(device, enr); in update_rs_extent() 714 if (ext->flags != 0) { in update_rs_extent() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_wx.c | 530 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in rtllib_wx_set_encode_ext() local 548 if (ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) { in rtllib_wx_set_encode_ext() 553 if (idx != 0 && ext->alg != IW_ENCODE_ALG_WEP) in rtllib_wx_set_encode_ext() 563 ext->alg == IW_ENCODE_ALG_NONE) { in rtllib_wx_set_encode_ext() 580 switch (ext->alg) { in rtllib_wx_set_encode_ext() 594 netdev_dbg(ieee->dev, "Unknown crypto alg %d\n", ext->alg); in rtllib_wx_set_encode_ext() 610 netdev_info(dev, "========>unknown crypto alg %d\n", ext->alg); in rtllib_wx_set_encode_ext() 638 if (ext->key_len > 0 && (*crypt)->ops->set_key && in rtllib_wx_set_encode_ext() 639 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in rtllib_wx_set_encode_ext() 645 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in rtllib_wx_set_encode_ext() [all …]
|
/drivers/staging/lustre/lustre/ldlm/ |
D | interval_tree.c | 514 struct interval_node_extent *ext) in interval_may_overlap() argument 516 return (ext->start <= node->in_max_high && in interval_may_overlap() 517 ext->end >= interval_low(node)); in interval_may_overlap() 542 struct interval_node_extent *ext, in interval_search() argument 549 LASSERT(ext); in interval_search() 553 if (ext->end < interval_low(node)) { in interval_search() 558 } else if (interval_may_overlap(node, ext)) { in interval_search() 559 if (extent_overlapped(ext, &node->in_extent)) { in interval_search() 592 if (!parent || !interval_may_overlap(parent, ext)) in interval_search()
|
/drivers/i2c/busses/ |
D | i2c-octeon-core.c | 467 u64 ext = 0; in octeon_i2c_hlc_write() local 470 ext |= (u64)msgs[0].buf[j] << (8 * i); in octeon_i2c_hlc_write() 471 octeon_i2c_writeq_flush(ext, i2c->twsi_base + SW_TWSI_EXT(i2c)); in octeon_i2c_hlc_write() 507 u64 ext = 0; in octeon_i2c_hlc_comp_read() local 510 ext = (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; in octeon_i2c_hlc_comp_read() 512 octeon_i2c_writeq_flush(ext, i2c->twsi_base + SW_TWSI_EXT(i2c)); in octeon_i2c_hlc_comp_read() 546 u64 cmd, ext = 0; in octeon_i2c_hlc_comp_write() local 563 ext |= (u64)msgs[0].buf[0] << SW_TWSI_IA_SHIFT; in octeon_i2c_hlc_comp_write() 575 ext |= (u64)msgs[1].buf[j] << (8 * i); in octeon_i2c_hlc_comp_write() 579 octeon_i2c_writeq_flush(ext, i2c->twsi_base + SW_TWSI_EXT(i2c)); in octeon_i2c_hlc_comp_write()
|
/drivers/video/fbdev/riva/ |
D | fbdev.c | 595 par->riva.UnloadStateExt(&par->riva, ®s->ext); in riva_save_state() 629 RIVA_HW_STATE *state = ®s->ext; in riva_load_state() 750 newmode.ext.screen = SetBitField(hBlankEnd,6:6,4:4) in riva_load_video_mode() 755 newmode.ext.horiz = SetBitField(hTotal,8:8,0:0) in riva_load_video_mode() 759 newmode.ext.extra = SetBitField(vTotal,11:11,0:0) in riva_load_video_mode() 766 newmode.ext.interlace = Set8Bits(tmp); in riva_load_video_mode() 767 newmode.ext.horiz |= SetBitField(tmp, 8:8,4:4); in riva_load_video_mode() 769 newmode.ext.interlace = 0xff; /* interlace off */ in riva_load_video_mode() 783 rc = CalcStateExt(&par->riva, &newmode.ext, bpp, width, in riva_load_video_mode() 788 newmode.ext.scale = NV_RD32(par->riva.PRAMDAC, 0x00000848) & in riva_load_video_mode() [all …]
|
/drivers/net/phy/ |
D | sfp.c | 379 if (sfp->id.ext.options & cpu_to_be16(SFP_OPTIONS_LOS_INVERTED)) in sfp_sm_link_check_los() 461 check = sfp_check(&id.ext, sizeof(id.ext) - 1); in sfp_sm_mod_probe() 462 if (check != id.ext.cc_ext) { in sfp_sm_mod_probe() 466 memset(&id.ext, 0, sizeof(id.ext)); in sfp_sm_mod_probe() 477 memcpy(sn, sfp->id.ext.vendor_sn, 16); in sfp_sm_mod_probe() 479 memcpy(date, sfp->id.ext.datecode, 8); in sfp_sm_mod_probe() 604 (sfp->id.ext.options & in sfp_sm_event() 615 (sfp->id.ext.options & in sfp_sm_event() 676 if (sfp->id.ext.sff8472_compliance) { in sfp_module_info()
|
/drivers/power/supply/ |
D | abx500_chargalg.c | 978 struct power_supply *ext = dev_get_drvdata(dev); in abx500_chargalg_get_ext_psy_data() local 979 const char **supplicants = (const char **)ext->supplied_to; in abx500_chargalg_get_ext_psy_data() 988 j = match_string(supplicants, ext->num_supplicants, psy->desc->name); in abx500_chargalg_get_ext_psy_data() 997 if (!power_supply_get_property(ext, POWER_SUPPLY_PROP_CAPACITY, &ret)) { in abx500_chargalg_get_ext_psy_data() 1003 for (j = 0; j < ext->desc->num_properties; j++) { in abx500_chargalg_get_ext_psy_data() 1005 prop = ext->desc->properties[j]; in abx500_chargalg_get_ext_psy_data() 1011 ext->desc->type == POWER_SUPPLY_TYPE_MAINS) in abx500_chargalg_get_ext_psy_data() 1012 di->ac_chg = psy_to_ux500_charger(ext); in abx500_chargalg_get_ext_psy_data() 1014 ext->desc->type == POWER_SUPPLY_TYPE_USB) in abx500_chargalg_get_ext_psy_data() 1015 di->usb_chg = psy_to_ux500_charger(ext); in abx500_chargalg_get_ext_psy_data() [all …]
|
D | ab8500_btemp.c | 905 struct power_supply *ext = dev_get_drvdata(dev); in ab8500_btemp_get_ext_psy_data() local 906 const char **supplicants = (const char **)ext->supplied_to; in ab8500_btemp_get_ext_psy_data() 918 j = match_string(supplicants, ext->num_supplicants, psy->desc->name); in ab8500_btemp_get_ext_psy_data() 923 for (j = 0; j < ext->desc->num_properties; j++) { in ab8500_btemp_get_ext_psy_data() 925 prop = ext->desc->properties[j]; in ab8500_btemp_get_ext_psy_data() 927 if (power_supply_get_property(ext, prop, &ret)) in ab8500_btemp_get_ext_psy_data() 932 switch (ext->desc->type) { in ab8500_btemp_get_ext_psy_data()
|
/drivers/dma/ioat/ |
D | prep.c | 171 struct ioat_ring_ent *ext; in __ioat_prep_xor_lock() local 216 ext = ioat_get_ring_ent(ioat_chan, idx + i + 1); in __ioat_prep_xor_lock() 217 xor_ex = ext->xor_ex; in __ioat_prep_xor_lock() 289 struct ioat_ring_ent *ext) in dump_pq_desc_dbg() argument 293 struct ioat_pq_ext_descriptor *pq_ex = ext ? ext->pq_ex : NULL; in dump_pq_desc_dbg() 360 struct ioat_ring_ent *ext; in __ioat_prep_pq_lock() local 411 ext = ioat_get_ring_ent(ioat_chan, idx + i + with_ext); in __ioat_prep_pq_lock() 412 pq_ex = ext->pq_ex; in __ioat_prep_pq_lock() 450 dump_pq_desc_dbg(ioat_chan, desc, ext); in __ioat_prep_pq_lock()
|
/drivers/s390/scsi/ |
D | zfcp_fc.h | 275 sense += be32_to_cpu(fcp_rsp->ext.fr_rsp_len); in zfcp_fc_eval_fcp_rsp() 276 sense_len = min_t(u32, be32_to_cpu(fcp_rsp->ext.fr_sns_len), in zfcp_fc_eval_fcp_rsp() 282 resid = be32_to_cpu(fcp_rsp->ext.fr_resid); in zfcp_fc_eval_fcp_rsp()
|
/drivers/staging/rtl8712/ |
D | rtl871x_ioctl_linux.c | 925 char *ext; in r871x_wx_set_priv() local 930 ext = memdup_user(dwrq->pointer, len); in r871x_wx_set_priv() 931 if (IS_ERR(ext)) in r871x_wx_set_priv() 932 return PTR_ERR(ext); in r871x_wx_set_priv() 934 if (!strcasecmp(ext, "RSSI")) { in r871x_wx_set_priv() 942 sprintf(ext, "%s rssi %d", in r871x_wx_set_priv() 949 sprintf(ext, "OK"); in r871x_wx_set_priv() 951 } else if (!strcasecmp(ext, "LINKSPEED")) { in r871x_wx_set_priv() 963 sprintf(ext, "LINKSPEED %d", mbps); in r871x_wx_set_priv() 964 } else if (!strcasecmp(ext, "MACADDR")) { in r871x_wx_set_priv() [all …]
|
/drivers/net/ethernet/toshiba/ |
D | ps3_gelic_wireless.c | 1207 struct iw_encode_ext *ext = (struct iw_encode_ext *)extra; in gelic_wl_set_encodeext() local 1216 alg = ext->alg; in gelic_wl_set_encodeext() 1222 pr_debug("%s: ext_flag=%x\n", __func__, ext->ext_flags); in gelic_wl_set_encodeext() 1223 pr_debug("%s: ext_key_len=%x\n", __func__, ext->key_len); in gelic_wl_set_encodeext() 1234 if (!enc->length && (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY)) { in gelic_wl_set_encodeext() 1258 if (IW_ENCODING_TOKEN_MAX < ext->key_len) { in gelic_wl_set_encodeext() 1260 ext->key_len); in gelic_wl_set_encodeext() 1265 wl->key_len[key_index] = ext->key_len; in gelic_wl_set_encodeext() 1267 memcpy(wl->key[key_index], ext->key, ext->key_len); in gelic_wl_set_encodeext() 1272 if (ext->key_len != WPA_PSK_LEN) { in gelic_wl_set_encodeext() [all …]
|
/drivers/staging/media/atomisp/pci/atomisp2/css2400/hive_isp_css_common/ |
D | dma_global.h | 77 #define DMA_PACK_EXTENSION(ext) DMA_PACK(ext, EXTENSION) argument 84 #define DMA_PACK_SETUP(conn, ext) ((conn) | DMA_PACK_EXTENSION(ext)) argument
|
/drivers/net/wireless/intersil/hostap/ |
D | hostap_ioctl.c | 3203 struct iw_encode_ext *ext = (struct iw_encode_ext *) extra; in prism2_ioctl_siwencodeext() local 3221 addr = ext->addr.sa_data; in prism2_ioctl_siwencodeext() 3244 ext->alg == IW_ENCODE_ALG_NONE) { in prism2_ioctl_siwencodeext() 3250 switch (ext->alg) { in prism2_ioctl_siwencodeext() 3265 local->dev->name, ext->alg); in prism2_ioctl_siwencodeext() 3282 if (sta_ptr || ext->alg != IW_ENCODE_ALG_WEP) { in prism2_ioctl_siwencodeext() 3320 if ((!(ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) || ext->key_len > 0) in prism2_ioctl_siwencodeext() 3322 (*crypt)->ops->set_key(ext->key, ext->key_len, ext->rx_seq, in prism2_ioctl_siwencodeext() 3330 if (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY) { in prism2_ioctl_siwencodeext() 3336 if (sta_ptr == NULL && ext->key_len > 0) { in prism2_ioctl_siwencodeext() [all …]
|
/drivers/iommu/ |
D | amd_iommu_init.c | 129 u32 ext; member 1208 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi() 1209 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi() 1210 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1213 devid_to = e->ext >> 8; in init_iommu_from_acpi() 1227 PCI_BUS_NUM(e->ext >> 8), in init_iommu_from_acpi() 1228 PCI_SLOT(e->ext >> 8), in init_iommu_from_acpi() 1229 PCI_FUNC(e->ext >> 8)); in init_iommu_from_acpi() 1233 devid_to = e->ext >> 8; in init_iommu_from_acpi() 1244 e->flags, e->ext); in init_iommu_from_acpi() [all …]
|
/drivers/pci/hotplug/ |
D | cpci_hotplug_pci.c | 147 int ext = 0; in cpci_check_ext() local 160 ext = 1; in cpci_check_ext() 161 return ext; in cpci_check_ext()
|