Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 886) sorted by relevance

12345678910>>...36

/drivers/net/wireless/intel/iwlwifi/dvm/
Ddebugfs.c66 int pos = 0; in iwl_dbgfs_sram_read() local
95 pos += scnprintf(buf + pos, bufsz - pos, "sram_len: 0x%x\n", in iwl_dbgfs_sram_read()
97 pos += scnprintf(buf + pos, bufsz - pos, "sram_offset: 0x%x\n", in iwl_dbgfs_sram_read()
110 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
114 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
117 pos += scnprintf(buf + pos, bufsz - pos, in iwl_dbgfs_sram_read()
130 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
132 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
134 pos += scnprintf(buf + pos, bufsz - pos, " "); in iwl_dbgfs_sram_read()
138 pos += scnprintf(buf + pos, bufsz - pos, "\n"); in iwl_dbgfs_sram_read()
[all …]
/drivers/net/wireless/intel/iwlegacy/
D4965-debug.c45 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 …]
Ddebug.c206 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 …]
D3945-debug.c38 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/
Dhclge_debugfs.c84 char *pos = content; in hclge_dbg_fill_content() local
90 strncpy(pos, result[i], strlen(result[i])); in hclge_dbg_fill_content()
92 strncpy(pos, items[i].name, strlen(items[i].name)); in hclge_dbg_fill_content()
93 pos += strlen(items[i].name) + items[i].interval; in hclge_dbg_fill_content()
95 *pos++ = '\n'; in hclge_dbg_fill_content()
96 *pos++ = '\0'; in hclge_dbg_fill_content()
164 char *buf, int len, int *pos) in hclge_dbg_dump_reg_tqp() argument
184 *pos += scnprintf(buf + *pos, len - *pos, "item%u = %s\n", in hclge_dbg_dump_reg_tqp()
188 *pos += scnprintf(buf + *pos, len - *pos, "item%u\t", i); in hclge_dbg_dump_reg_tqp()
190 *pos += scnprintf(buf + *pos, len - *pos, "\n"); in hclge_dbg_dump_reg_tqp()
[all …]
/drivers/gpu/drm/nouveau/include/nvif/
Dlist.h314 #define list_for_each_entry(pos, head, member) \ argument
315 for (pos = __container_of((head)->next, pos, member); \
316 &pos->member != (head); \
317 pos = __container_of(pos->member.next, pos, member))
326 #define list_for_each_entry_safe(pos, tmp, head, member) \ argument
327 for (pos = __container_of((head)->next, pos, member), \
328 tmp = __container_of(pos->member.next, pos, member); \
329 &pos->member != (head); \
330 pos = tmp, tmp = __container_of(pos->member.next, tmp, member))
333 #define list_for_each_entry_reverse(pos, head, member) \ argument
[all …]
/drivers/net/ethernet/hisilicon/hns3/
Dhns3_debugfs.c391 char *pos = content; in hns3_dbg_fill_content() local
397 strncpy(pos, result[i], strlen(result[i])); in hns3_dbg_fill_content()
399 strncpy(pos, items[i].name, strlen(items[i].name)); in hns3_dbg_fill_content()
401 pos += strlen(items[i].name) + items[i].interval; in hns3_dbg_fill_content()
404 *pos++ = '\n'; in hns3_dbg_fill_content()
405 *pos++ = '\0'; in hns3_dbg_fill_content()
419 int len, u32 ring_num, int *pos) in hns3_dbg_tx_spare_info() argument
428 *pos += scnprintf(buf + *pos, len - *pos, in hns3_dbg_tx_spare_info()
436 *pos += scnprintf(buf + *pos, len - *pos, "tx spare buffer info\n"); in hns3_dbg_tx_spare_info()
439 *pos += scnprintf(buf + *pos, len - *pos, "%s", content); in hns3_dbg_tx_spare_info()
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.c25 int pos, budget; in iwl_dbgfs_ctdp_budget_read() local
41 pos = scnprintf(buf, sizeof(buf), "%d\n", budget); in iwl_dbgfs_ctdp_budget_read()
43 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read()
214 int pos; in iwl_dbgfs_set_nic_temperature_read() local
217 pos = scnprintf(buf , sizeof(buf), "disabled\n"); in iwl_dbgfs_set_nic_temperature_read()
219 pos = scnprintf(buf , sizeof(buf), "%d\n", mvm->temperature); in iwl_dbgfs_set_nic_temperature_read()
221 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_set_nic_temperature_read()
281 int pos, ret; in iwl_dbgfs_nic_temp_read() local
294 pos = scnprintf(buf , sizeof(buf), "%d\n", temp); in iwl_dbgfs_nic_temp_read()
296 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_nic_temp_read()
[all …]
Ddebugfs-vif.c142 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 …]
Dpower.c685 int pos = 0; in iwl_mvm_power_mac_dbgfs_read() local
691 pos += scnprintf(buf+pos, bufsz-pos, "power_scheme = %d\n", in iwl_mvm_power_mac_dbgfs_read()
693 pos += scnprintf(buf+pos, bufsz-pos, "flags = 0x%x\n", in iwl_mvm_power_mac_dbgfs_read()
695 pos += scnprintf(buf+pos, bufsz-pos, "keep_alive = %d\n", in iwl_mvm_power_mac_dbgfs_read()
699 return pos; in iwl_mvm_power_mac_dbgfs_read()
701 pos += scnprintf(buf+pos, bufsz-pos, "skip_over_dtim = %d\n", in iwl_mvm_power_mac_dbgfs_read()
704 pos += scnprintf(buf+pos, bufsz-pos, "skip_dtim_periods = %d\n", in iwl_mvm_power_mac_dbgfs_read()
707 pos += scnprintf(buf+pos, bufsz-pos, "rx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
709 pos += scnprintf(buf+pos, bufsz-pos, "tx_data_timeout = %d\n", in iwl_mvm_power_mac_dbgfs_read()
713 pos += scnprintf(buf+pos, bufsz-pos, in iwl_mvm_power_mac_dbgfs_read()
[all …]
/drivers/gpu/drm/omapdrm/
Dtcm-sita.c36 static void free_slots(unsigned long pos, u16 w, u16 h, in free_slots() argument
41 for (i = 0; i < h; i++, pos += stride) in free_slots()
42 bitmap_clear(map, pos, w); in free_slots()
51 static int r2l_b2t_1d(u16 w, unsigned long *pos, unsigned long *map, in r2l_b2t_1d() argument
58 *pos = num_bits - w; in r2l_b2t_1d()
61 bit = find_next_bit(map, num_bits, *pos); in r2l_b2t_1d()
63 if (bit - *pos >= w) { in r2l_b2t_1d()
65 bitmap_set(map, *pos, w); in r2l_b2t_1d()
71 *pos = bit - w; in r2l_b2t_1d()
88 unsigned long *pos, unsigned long slot_bytes, in l2r_t2b() argument
[all …]
/drivers/tty/vt/
Dvc_screen.c249 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/
Dvc.c26 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 …]
Dproc.c32 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 …]
Daccess.c24 #define PCI_word_BAD (pos & 1)
25 #define PCI_dword_BAD (pos & 3)
37 (struct pci_bus *bus, unsigned int devfn, int pos, type *value) \
44 res = bus->ops->read(bus, devfn, pos, len, &data); \
52 (struct pci_bus *bus, unsigned int devfn, int pos, type value) \
58 res = bus->ops->write(bus, devfn, pos, len, value); \
222 (struct pci_dev *dev, int pos, type *val) \
232 pos, sizeof(type), &data); \
242 (struct pci_dev *dev, int pos, type val) \
251 pos, sizeof(type), val); \
[all …]
/drivers/acpi/acpica/
Dutprint.c108 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/
Dfreq_table.c20 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/
Dcore.c22 bool nanddev_isbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isbad() argument
28 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_isbad()
32 if (nand->ops->isbad(nand, pos)) in nanddev_isbad()
47 return nand->ops->isbad(nand, pos); in nanddev_isbad()
61 int nanddev_markbad(struct nand_device *nand, const struct nand_pos *pos) in nanddev_markbad() argument
67 if (nanddev_isbad(nand, pos)) in nanddev_markbad()
70 ret = nand->ops->markbad(nand, pos); in nanddev_markbad()
73 nanddev_pos_to_offs(nand, pos), ret); in nanddev_markbad()
78 entry = nanddev_bbt_pos_to_entry(nand, pos); in nanddev_markbad()
102 bool nanddev_isreserved(struct nand_device *nand, const struct nand_pos *pos) in nanddev_isreserved() argument
[all …]
/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_wep.c71 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 …]
Dieee80211_crypt_ccmp.c95 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/
Dconfig.c91 int pos; in read_pasid() local
93 pos = pci_find_ext_capability(dev, PCI_EXT_CAP_ID_PASID); in read_pasid()
94 if (!pos) { in read_pasid()
103 pci_read_config_word(dev, pos + PCI_PASID_CAP, &val); in read_pasid()
113 int pos; in read_dvsec_tl() local
115 pos = find_dvsec(dev, OCXL_DVSEC_TL_ID); in read_dvsec_tl()
116 if (!pos && PCI_FUNC(dev->devfn) == 0) { in read_dvsec_tl()
120 if (pos && PCI_FUNC(dev->devfn) != 0) { in read_dvsec_tl()
124 fn->dvsec_tl_pos = pos; in read_dvsec_tl()
130 int pos, afu_present; in read_dvsec_function() local
[all …]
/drivers/staging/rtl8192e/
Drtllib_crypt_wep.c66 u8 *pos; in prism2_wep_encrypt() local
79 pos = skb_push(skb, 4); in prism2_wep_encrypt()
80 memmove(pos, pos + 4, hdr_len); in prism2_wep_encrypt()
81 pos += hdr_len; in prism2_wep_encrypt()
99 *pos++ = key[0] = (wep->iv >> 16) & 0xff; in prism2_wep_encrypt()
100 *pos++ = key[1] = (wep->iv >> 8) & 0xff; in prism2_wep_encrypt()
101 *pos++ = key[2] = wep->iv & 0xff; in prism2_wep_encrypt()
102 *pos++ = wep->key_idx << 6; in prism2_wep_encrypt()
109 crc = ~crc32_le(~0, pos, len); in prism2_wep_encrypt()
117 arc4_crypt(&wep->tx_ctx_arc4, pos, pos, len + 4); in prism2_wep_encrypt()
[all …]
Drtllib_crypt_ccmp.c91 u8 *pos, qc = 0; in ccmp_init_iv_and_aad() local
106 pos = (u8 *) &hdr->addr4; in ccmp_init_iv_and_aad()
108 pos += 6; in ccmp_init_iv_and_aad()
109 qc = *pos & 0x0f; in ccmp_init_iv_and_aad()
133 pos = (u8 *) hdr; in ccmp_init_iv_and_aad()
134 aad[0] = pos[0] & 0x8f; in ccmp_init_iv_and_aad()
135 aad[1] = pos[1] & 0xc7; in ccmp_init_iv_and_aad()
139 pos = (u8 *) &hdr->seq_ctl; in ccmp_init_iv_and_aad()
140 aad[20] = pos[0] & 0x0f; in ccmp_init_iv_and_aad()
159 u8 *pos; in rtllib_ccmp_encrypt() local
[all …]
/drivers/video/fbdev/via/
Dvia_aux.c42 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 …]
/drivers/staging/r8188eu/core/
Drtw_ieee80211.c498 u8 *pos; in rtw_parse_wpa_ie() local
510 pos = wpa_ie; in rtw_parse_wpa_ie()
512 pos += 8; in rtw_parse_wpa_ie()
517 *group_cipher = rtw_get_wpa_cipher_suite(pos); in rtw_parse_wpa_ie()
518 pos += WPA_SELECTOR_LEN; in rtw_parse_wpa_ie()
526 count = get_unaligned_le16(pos); in rtw_parse_wpa_ie()
527 pos += 2; in rtw_parse_wpa_ie()
534 *pairwise_cipher |= rtw_get_wpa_cipher_suite(pos); in rtw_parse_wpa_ie()
536 pos += WPA_SELECTOR_LEN; in rtw_parse_wpa_ie()
545 pos += 2; in rtw_parse_wpa_ie()
[all …]

12345678910>>...36