/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | debugfs.c | 62 int pos = 0; in iwl_dbgfs_sram_read() local 91 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read() 93 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read() 106 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 113 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read() 126 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read() 128 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read() 130 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read() 134 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read() [all …]
|
/drivers/net/wireless/intel/iwlegacy/ |
D | 4965-debug.c | 45 int pos = 0; in il4965_ucode_rx_stats_read() local 89 pos += il4965_stats_flag(il, buf, bufsz); in il4965_ucode_rx_stats_read() 90 pos += in il4965_ucode_rx_stats_read() 91 scnprintf(buf + pos, bufsz - pos, fmt_header, in il4965_ucode_rx_stats_read() 93 pos += in il4965_ucode_rx_stats_read() 94 scnprintf(buf + pos, bufsz - pos, fmt_table, "ina_cnt:", in il4965_ucode_rx_stats_read() 97 pos += in il4965_ucode_rx_stats_read() 98 scnprintf(buf + pos, bufsz - pos, fmt_table, "fina_cnt:", in il4965_ucode_rx_stats_read() 101 pos += in il4965_ucode_rx_stats_read() 102 scnprintf(buf + pos, bufsz - pos, fmt_table, "plcp_err:", in il4965_ucode_rx_stats_read() [all …]
|
D | debug.c | 206 int pos = 0; in il_dbgfs_tx_stats_read() local 215 pos += scnprintf(buf + pos, bufsz - pos, "Management:\n"); in il_dbgfs_tx_stats_read() 217 pos += in il_dbgfs_tx_stats_read() 218 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 221 pos += scnprintf(buf + pos, bufsz - pos, "Control\n"); in il_dbgfs_tx_stats_read() 223 pos += in il_dbgfs_tx_stats_read() 224 scnprintf(buf + pos, bufsz - pos, "\t%25s\t\t: %u\n", in il_dbgfs_tx_stats_read() 227 pos += scnprintf(buf + pos, bufsz - pos, "Data:\n"); in il_dbgfs_tx_stats_read() 228 pos += in il_dbgfs_tx_stats_read() 229 scnprintf(buf + pos, bufsz - pos, "\tcnt: %u\n", in il_dbgfs_tx_stats_read() [all …]
|
D | 3945-debug.c | 38 int pos = 0; in il3945_ucode_rx_stats_read() local 76 pos += il3945_stats_flag(il, buf, bufsz); in il3945_ucode_rx_stats_read() 77 pos += in il3945_ucode_rx_stats_read() 78 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 82 pos += in il3945_ucode_rx_stats_read() 83 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 87 pos += in il3945_ucode_rx_stats_read() 88 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() 92 pos += in il3945_ucode_rx_stats_read() 93 scnprintf(buf + pos, bufsz - pos, in il3945_ucode_rx_stats_read() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_debugfs.c | 93 char *pos = content; in hclge_dbg_fill_content() local 100 *pos++ = '\0'; in hclge_dbg_fill_content() 115 memcpy(pos, result[i], strlen(result[i])); in hclge_dbg_fill_content() 117 memcpy(pos, items[i].name, strlen(items[i].name)); in hclge_dbg_fill_content() 119 pos += item_len; in hclge_dbg_fill_content() 122 *pos++ = '\n'; in hclge_dbg_fill_content() 123 *pos++ = '\0'; in hclge_dbg_fill_content() 191 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument 211 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp() 215 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp() [all …]
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | debugfs.c | 28 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local 44 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read() 46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 217 int pos; in iwl_dbgfs_set_nic_temperature_read() local 220 pos = scnprintf(buf, sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read() 222 pos = scnprintf(buf, sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read() 224 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read() 284 int pos, ret; in iwl_dbgfs_nic_temp_read() local 297 pos = scnprintf(buf, sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read() 299 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read() [all …]
|
D | debugfs-vif.c | 142 int pos; in iwl_dbgfs_tx_pwr_lmt_read() local 144 pos = scnprintf(buf, bufsz, "bss limit = %d\n", in iwl_dbgfs_tx_pwr_lmt_read() 147 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_tx_pwr_lmt_read() 159 int pos; in iwl_dbgfs_pm_params_read() local 161 pos = iwl_mvm_power_mac_dbgfs_read(mvm, vif, buf, bufsz); in iwl_dbgfs_pm_params_read() 163 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_pm_params_read() 177 int pos = 0; in iwl_dbgfs_mac_params_read() local 186 pos += scnprintf(buf+pos, bufsz-pos, "type: ibss\n"); in iwl_dbgfs_mac_params_read() 189 pos += scnprintf(buf+pos, bufsz-pos, "type: bss\n"); in iwl_dbgfs_mac_params_read() 192 pos += scnprintf(buf+pos, bufsz-pos, "type: ap\n"); in iwl_dbgfs_mac_params_read() [all …]
|
D | power.c | 706 int pos = 0; in iwl_mvm_power_mac_dbgfs_read() local 712 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read() 714 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read() 716 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read() 720 return pos; in iwl_mvm_power_mac_dbgfs_read() 722 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read() 725 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read() 728 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 730 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read() 734 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read() [all …]
|
/drivers/net/ethernet/hisilicon/hns3/ |
D | hns3_debugfs.c | 445 char *pos = content; in hns3_dbg_fill_content() local 452 *pos++ = '\0'; in hns3_dbg_fill_content() 467 memcpy(pos, result[i], strlen(result[i])); in hns3_dbg_fill_content() 469 memcpy(pos, items[i].name, strlen(items[i].name)); in hns3_dbg_fill_content() 471 pos += item_len; in hns3_dbg_fill_content() 474 *pos++ = '\n'; in hns3_dbg_fill_content() 475 *pos++ = '\0'; in hns3_dbg_fill_content() 529 int *pos, bool is_tx) in hns3_dump_coal_info() argument 541 *pos += scnprintf(buf + *pos, len - *pos, in hns3_dump_coal_info() 546 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hns3_dump_coal_info() [all …]
|
/drivers/gpu/drm/omapdrm/ |
D | tcm-sita.c | 28 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument 33 for (i = 0; i < h; i++, pos += stride) in free_slots() 34 bitmap_clear(map, pos, w); in free_slots() 43 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument 50 *pos = num_bits - w; in r2l_b2t_1d() 53 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d() 55 if (bit - *pos >= w) { in r2l_b2t_1d() 57 bitmap_set(map, *pos, w); in r2l_b2t_1d() 63 *pos = bit - w; in r2l_b2t_1d() 80 unsigned long *pos, unsigned long slot_bytes, in l2r_t2b() argument [all …]
|
/drivers/tty/vt/ |
D | vc_screen.c | 249 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_uni() argument 258 pos /= 4; in vcs_read_buf_uni() 259 row = pos / maxcol; in vcs_read_buf_uni() 260 col = pos % maxcol; in vcs_read_buf_uni() 277 unsigned int pos, unsigned int count, bool viewed) in vcs_read_buf_noattr() argument 282 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr() 283 col = pos % maxcol; in vcs_read_buf_noattr() 284 pos += maxcol - col; in vcs_read_buf_noattr() 289 org = screen_pos(vc, pos, viewed); in vcs_read_buf_noattr() 291 pos += maxcol; in vcs_read_buf_noattr() [all …]
|
/drivers/pci/ |
D | vc.c | 26 static void pci_vc_save_restore_dwords(struct pci_dev *dev, int pos, in pci_vc_save_restore_dwords() argument 33 pci_read_config_dword(dev, pos + (i * 4), buf); in pci_vc_save_restore_dwords() 35 pci_write_config_dword(dev, pos + (i * 4), *buf); in pci_vc_save_restore_dwords() 48 static void pci_vc_load_arb_table(struct pci_dev *dev, int pos) in pci_vc_load_arb_table() argument 52 pci_read_config_word(dev, pos + PCI_VC_PORT_CTRL, &ctrl); in pci_vc_load_arb_table() 53 pci_write_config_word(dev, pos + PCI_VC_PORT_CTRL, in pci_vc_load_arb_table() 55 if (pci_wait_for_pending(dev, pos + PCI_VC_PORT_STATUS, in pci_vc_load_arb_table() 72 static void pci_vc_load_port_arb_table(struct pci_dev *dev, int pos, int res) in pci_vc_load_port_arb_table() argument 77 ctrl_pos = pos + PCI_VC_RES_CTRL + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table() 78 status_pos = pos + PCI_VC_RES_STATUS + (res * PCI_CAP_VC_PER_VC_SIZEOF); in pci_vc_load_port_arb_table() [all …]
|
D | proc.c | 32 unsigned int pos = *ppos; in proc_bus_pci_read() local 48 if (pos >= size) in proc_bus_pci_read() 52 if (pos + nbytes > size) in proc_bus_pci_read() 53 nbytes = size - pos; in proc_bus_pci_read() 61 if ((pos & 1) && cnt) { in proc_bus_pci_read() 63 pci_user_read_config_byte(dev, pos, &val); in proc_bus_pci_read() 66 pos++; in proc_bus_pci_read() 70 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read() 72 pci_user_read_config_word(dev, pos, &val); in proc_bus_pci_read() 75 pos += 2; in proc_bus_pci_read() [all …]
|
/drivers/vfio/pci/ |
D | vfio_pci_igd.c | 50 loff_t *pos, in igd_opregion_shift_copy() argument 58 *pos += bytes; in igd_opregion_shift_copy() 70 loff_t pos = *ppos & VFIO_PCI_OFFSET_MASK, off = 0; in vfio_pci_igd_rw() local 73 if (pos >= vdev->region[i].size || iswrite) in vfio_pci_igd_rw() 76 count = min_t(size_t, count, vdev->region[i].size - pos); in vfio_pci_igd_rw() 80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw() 81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw() 84 opregionvbt->opregion + pos, &pos, in vfio_pci_igd_rw() 90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) { in vfio_pci_igd_rw() 92 OPREGION_VERSION + sizeof(__le16) - pos); in vfio_pci_igd_rw() [all …]
|
/drivers/acpi/acpica/ |
D | utprint.c | 108 char *pos; in acpi_ut_put_number() local 110 pos = string; in acpi_ut_put_number() 114 *(pos++) = '0'; in acpi_ut_put_number() 119 *(pos++) = digits[digit_index]; in acpi_ut_put_number() 124 return (pos); in acpi_ut_put_number() 206 char *pos; in acpi_ut_format_number() local 254 pos = acpi_ut_put_number(reversed_string, number, base, upper); in acpi_ut_format_number() 255 i = (s32)ACPI_PTR_DIFF(pos, reversed_string); in acpi_ut_format_number() 326 char *pos; in vsnprintf() local 334 pos = string; in vsnprintf() [all …]
|
/drivers/cpufreq/ |
D | freq_table.c | 20 struct cpufreq_frequency_table *pos, *table = policy->freq_table; in policy_has_boost_freq() local 25 cpufreq_for_each_valid_entry(pos, table) in policy_has_boost_freq() 26 if (pos->flags & CPUFREQ_BOOST_FREQ) in policy_has_boost_freq() 36 struct cpufreq_frequency_table *pos; in cpufreq_frequency_table_cpuinfo() local 41 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_cpuinfo() 42 freq = pos->frequency; in cpufreq_frequency_table_cpuinfo() 45 && (pos->flags & CPUFREQ_BOOST_FREQ)) in cpufreq_frequency_table_cpuinfo() 48 pr_debug("table entry %u: %u kHz\n", (int)(pos - table), freq); in cpufreq_frequency_table_cpuinfo() 74 struct cpufreq_frequency_table *pos; in cpufreq_frequency_table_verify() local 83 cpufreq_for_each_valid_entry(pos, table) { in cpufreq_frequency_table_verify() [all …]
|
/drivers/mtd/nand/ |
D | core.c | 22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() argument 31 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isbad() 35 if (nand->ops->isbad(nand, pos)) in nanddev_isbad() 50 return nand->ops->isbad(nand, pos); in nanddev_isbad() 64 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() argument 70 if (nanddev_isbad(nand, pos)) in nanddev_markbad() 73 ret = nand->ops->markbad(nand, pos); in nanddev_markbad() 76 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad() 81 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_markbad() 105 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() argument [all …]
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt_wep.c | 71 u8 *pos; in prism2_wep_encrypt() local 81 pos = skb_push(skb, 4); in prism2_wep_encrypt() 82 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt() 83 pos += hdr_len; in prism2_wep_encrypt() 101 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 102 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 103 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 104 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() 111 crc = ~crc32_le(~0, pos, len); in prism2_wep_encrypt() 119 arc4_crypt(&wep->tx_ctx_arc4, pos, pos, len + 4); in prism2_wep_encrypt() [all …]
|
D | ieee80211_crypt_ccmp.c | 95 u8 *pos, qc = 0; in ccmp_init_iv_and_aad() local 113 pos = (u8 *)&hdr->addr4; in ccmp_init_iv_and_aad() 115 pos += 6; in ccmp_init_iv_and_aad() 116 qc = *pos & 0x0f; in ccmp_init_iv_and_aad() 141 pos = (u8 *)hdr; in ccmp_init_iv_and_aad() 142 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 143 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 147 pos = (u8 *)&hdr->seq_ctl; in ccmp_init_iv_and_aad() 148 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 165 u8 *pos; in ieee80211_ccmp_encrypt() local [all …]
|
/drivers/misc/ocxl/ |
D | config.c | 80 int pos; in read_pasid() local 82 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_PASID); in read_pasid() 83 if (!pos) { in read_pasid() 92 pci_read_config_word(dev, pos + PCI_PASID_CAP, &val); in read_pasid() 102 int pos; in read_dvsec_tl() local 104 pos = find_dvsec(dev, OCXL_DVSEC_TL_ID); in read_dvsec_tl() 105 if (!pos && PCI_FUNC(dev->devfn) == 0) { in read_dvsec_tl() 109 if (pos && PCI_FUNC(dev->devfn) != 0) { in read_dvsec_tl() 113 fn->dvsec_tl_pos = pos; in read_dvsec_tl() 119 int pos, afu_present; in read_dvsec_function() local [all …]
|
/drivers/video/ |
D | screen_info_generic.c | 76 struct resource *pos = r; in screen_info_resources() local 83 resource_init_io_named(pos++, 0x3b0, 12, "mda"); in screen_info_resources() 85 resource_init_io_named(pos++, 0x3bf, 0x01, "mda"); in screen_info_resources() 87 resource_init_mem_named(pos++, 0xb0000, 0x2000, "mda"); in screen_info_resources() 91 resource_init_io_named(pos++, 0x3d4, 0x02, "cga"); in screen_info_resources() 93 resource_init_mem_named(pos++, 0xb8000, 0x2000, "cga"); in screen_info_resources() 97 resource_init_io_named(pos++, 0x3bf, 0x10, "ega"); in screen_info_resources() 99 resource_init_mem_named(pos++, 0xb0000, 0x8000, "ega"); in screen_info_resources() 103 resource_init_io_named(pos++, 0x3c0, 0x20, "ega"); in screen_info_resources() 106 resource_init_mem_named(pos++, 0xa0000, 0x10000, "ega"); in screen_info_resources() [all …]
|
/drivers/firmware/ |
D | iscsi_ibft_find.c | 53 unsigned long pos, virt_pos = 0; in reserve_ibft_region() local 66 for (pos = IBFT_START; pos < IBFT_END; pos += 16) { in reserve_ibft_region() 69 if (pos == VGA_MEM) in reserve_ibft_region() 70 pos += VGA_SIZE; in reserve_ibft_region() 73 if (offset_in_page(pos) == 0) { in reserve_ibft_region() 76 virt = early_memremap_ro(pos, PAGE_SIZE); in reserve_ibft_region() 77 virt_pos = pos; in reserve_ibft_region() 81 if (memcmp(virt + (pos - virt_pos), ibft_signs[i].sign, in reserve_ibft_region() 84 (unsigned long *)(virt + pos - virt_pos + 4); in reserve_ibft_region() 88 if (pos + len <= (IBFT_END-1)) { in reserve_ibft_region() [all …]
|
/drivers/staging/rtl8192e/ |
D | rtllib_crypt_ccmp.c | 89 u8 *pos, qc = 0; in ccmp_init_iv_and_aad() local 104 pos = (u8 *)&hdr->addr4; in ccmp_init_iv_and_aad() 106 pos += 6; in ccmp_init_iv_and_aad() 107 qc = *pos & 0x0f; in ccmp_init_iv_and_aad() 131 pos = (u8 *)hdr; in ccmp_init_iv_and_aad() 132 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad() 133 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad() 137 pos = (u8 *)&hdr->seq_ctl; in ccmp_init_iv_and_aad() 138 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad() 155 u8 *pos; in rtllib_ccmp_encrypt() local [all …]
|
D | rtllib_crypt_wep.c | 64 u8 *pos; in prism2_wep_encrypt() local 77 pos = skb_push(skb, 4); in prism2_wep_encrypt() 78 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt() 79 pos += hdr_len; in prism2_wep_encrypt() 97 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt() 98 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt() 99 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt() 100 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt() 107 crc = ~crc32_le(~0, pos, len); in prism2_wep_encrypt() 115 arc4_crypt(&wep->tx_ctx_arc4, pos, pos, len + 4); in prism2_wep_encrypt() [all …]
|
/drivers/video/fbdev/via/ |
D | via_aux.c | 42 struct via_aux_drv *pos, *n; in via_aux_free() local 47 list_for_each_entry_safe(pos, n, &bus->drivers, chain) { in via_aux_free() 48 if (pos->cleanup) in via_aux_free() 49 pos->cleanup(pos); in via_aux_free() 51 list_del(&pos->chain); in via_aux_free() 52 kfree(pos->data); in via_aux_free() 53 kfree(pos); in via_aux_free() 61 struct via_aux_drv *pos; in via_aux_get_preferred_mode() local 67 list_for_each_entry(pos, &bus->drivers, chain) { in via_aux_get_preferred_mode() 68 if (pos->get_preferred_mode) in via_aux_get_preferred_mode() [all …]
|