/openbmc/linux/drivers/net/wireless/intel/iwlwifi/dvm/ |
H A 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 …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlegacy/ |
H A 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 …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A 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 …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | bitfunc.c | 35 size_t pos = bit & 7; in are_bits_clear() local 38 if (pos) { in are_bits_clear() 39 if (8 - pos >= nbits) in are_bits_clear() 40 return !nbits || !(*map & fill_mask[pos + nbits] & in are_bits_clear() 41 zero_mask[pos]); in are_bits_clear() 43 if (*map++ & zero_mask[pos]) in are_bits_clear() 45 nbits -= 8 - pos; in are_bits_clear() 48 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_clear() 49 if (pos) { in are_bits_clear() 50 pos = sizeof(size_t) - pos; in are_bits_clear() [all …]
|
/openbmc/u-boot/include/linux/ |
H A D | list.h | 353 * @pos: the &struct list_head to use as a loop cursor. 356 #define list_for_each(pos, head) \ argument 357 for (pos = (head)->next; prefetch(pos->next), pos != (head); \ 358 pos = pos->next) 362 * @pos: the &struct list_head to use as a loop cursor. 370 #define __list_for_each(pos, head) \ argument 371 for (pos = (head)->next; pos != (head); pos = pos->next) 375 * @pos: the &struct list_head to use as a loop cursor. 378 #define list_for_each_prev(pos, head) \ argument 379 for (pos = (head)->prev; prefetch(pos->prev), pos != (head); \ [all …]
|
/openbmc/linux/net/ieee802154/ |
H A D | header_ops.c | 18 int pos = 0; in ieee802154_hdr_push_addr() local 24 memcpy(buf + pos, &addr->pan_id, 2); in ieee802154_hdr_push_addr() 25 pos += 2; in ieee802154_hdr_push_addr() 30 memcpy(buf + pos, &addr->short_addr, 2); in ieee802154_hdr_push_addr() 31 pos += 2; in ieee802154_hdr_push_addr() 35 memcpy(buf + pos, &addr->extended_addr, IEEE802154_ADDR_LEN); in ieee802154_hdr_push_addr() 36 pos += IEEE802154_ADDR_LEN; in ieee802154_hdr_push_addr() 43 return pos; in ieee802154_hdr_push_addr() 49 int pos = 5; in ieee802154_hdr_push_sechdr() local 56 return pos; in ieee802154_hdr_push_sechdr() [all …]
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffs_nameval.c | 35 int pos = 0; in nval_find() local 39 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_find() 40 if (!yaffs_strncmp((YCHAR *) (xb + pos + sizeof(int)), in nval_find() 44 return pos; in nval_find() 46 pos += size; in nval_find() 47 if (pos < xb_size - sizeof(int)) in nval_find() 48 memcpy(&size, xb + pos, sizeof(int)); in nval_find() 59 int pos = 0; in nval_used() local 62 memcpy(&size, xb + pos, sizeof(int)); in nval_used() 63 while (size > 0 && (size < xb_size) && (pos + size < xb_size)) { in nval_used() [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | list.h | 400 * @pos: the type * to cursor 403 #define list_next_entry(pos, member) \ argument 404 list_entry((pos)->member.next, typeof(*(pos)), member) 408 * @pos: the type * to cursor 411 #define list_prev_entry(pos, member) \ argument 412 list_entry((pos)->member.prev, typeof(*(pos)), member) 416 * @pos: the &struct list_head to use as a loop cursor. 419 #define list_for_each(pos, head) \ argument 420 for (pos = (head)->next; pos != (head); pos = pos->next) 424 * @pos: the &struct list_head to use as a loop cursor. [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A 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 …]
|
H A 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 …]
|
/openbmc/u-boot/test/ |
H A D | unicode_ut.c | 160 char *pos; in unicode_test_utf8_put() local 163 pos = buffer; in unicode_test_utf8_put() 164 ut_assert(!utf8_put('@', &pos)) in unicode_test_utf8_put() 165 ut_asserteq(1, pos - buffer); in unicode_test_utf8_put() 170 pos = buffer; in unicode_test_utf8_put() 171 ut_assert(!utf8_put(0x1f4, &pos)); in unicode_test_utf8_put() 172 ut_asserteq(2, pos - buffer); in unicode_test_utf8_put() 176 pos = buffer; in unicode_test_utf8_put() 177 ut_assert(!utf8_put(0x1701, &pos)); in unicode_test_utf8_put() 178 ut_asserteq(3, pos - buffer); in unicode_test_utf8_put() [all …]
|
/openbmc/linux/include/linux/ |
H A D | list.h | 272 struct list_head *pos = entry2->prev; in list_swap() local 276 if (pos == entry1) in list_swap() 277 pos = entry2; in list_swap() 278 list_add(entry1, pos); in list_swap() 641 * @pos: the type * to cursor 644 #define list_next_entry(pos, member) \ argument 645 list_entry((pos)->member.next, typeof(*(pos)), member) 649 * @pos: the type * to cursor. 653 * Wraparound if pos is the last element (return the first element). 656 #define list_next_entry_circular(pos, head, member) \ argument [all …]
|
H A D | rculist.h | 380 * @pos: the type * to use as a loop cursor. 389 #define list_for_each_entry_rcu(pos, head, member, cond...) \ argument 391 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 392 &pos->member != (head); \ 393 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) 397 * @pos: the type * to use as a loop cursor. 408 #define list_for_each_entry_srcu(pos, head, member, cond) \ argument 410 pos = list_entry_rcu((head)->next, typeof(*pos), member); \ 411 &pos->member != (head); \ 412 pos = list_entry_rcu(pos->member.next, typeof(*pos), member)) [all …]
|
/openbmc/linux/scripts/dtc/ |
H A D | srcpos.c | 232 void srcpos_update(struct srcpos *pos, const char *text, int len) in srcpos_update() argument 236 pos->file = current_srcfile; in srcpos_update() 238 pos->first_line = current_srcfile->lineno; in srcpos_update() 239 pos->first_column = current_srcfile->colno; in srcpos_update() 249 pos->last_line = current_srcfile->lineno; in srcpos_update() 250 pos->last_column = current_srcfile->colno; in srcpos_update() 254 srcpos_copy(struct srcpos *pos) in srcpos_copy() argument 259 if (!pos) in srcpos_copy() 263 assert(pos->next == NULL); in srcpos_copy() 264 memcpy(pos_new, pos, sizeof(struct srcpos)); in srcpos_copy() [all …]
|
/openbmc/u-boot/lib/efi_selftest/ |
H A D | efi_selftest_console.c | 27 u16 *pos = *buf; in mac() local 31 *pos++ = ':'; in mac() 38 *pos++ = c; in mac() 41 *pos = 0; in mac() 42 *buf = pos; in mac() 57 u16 *pos = *buf; in pointer() local 64 *pos++ = c; in pointer() 66 *pos = 0; in pointer() 67 *buf = pos; in pointer() 80 u16 *pos = *buf; in uint2dec() local [all …]
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/ |
H A 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 …]
|
/openbmc/linux/drivers/gpu/drm/omapdrm/ |
H A D | tcm-sita.c | 22 * pos position in bitmap 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() 39 * pos ptr to position 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() [all …]
|
/openbmc/linux/fs/romfs/ |
H A D | storage.c | 23 static int romfs_mtd_read(struct super_block *sb, unsigned long pos, in romfs_mtd_read() argument 29 ret = ROMFS_MTD_READ(sb, pos, buflen, &rlen, buf); in romfs_mtd_read() 37 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen() argument 48 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strnlen() 55 pos += len; in romfs_mtd_strnlen() 66 static int romfs_mtd_strcmp(struct super_block *sb, unsigned long pos, in romfs_mtd_strcmp() argument 79 ret = ROMFS_MTD_READ(sb, pos, segment, &len, buf); in romfs_mtd_strcmp() 87 pos += len; in romfs_mtd_strcmp() 103 static int romfs_blk_read(struct super_block *sb, unsigned long pos, in romfs_blk_read() argument 112 offset = pos & (ROMBSIZE - 1); in romfs_blk_read() [all …]
|
/openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/dracut/dracut/ |
H A D | 0001-feat-dracut-install-split-ldd-command-arguments-for-.patch | 37 + int start, pos, idx = 0; 42 + pos = 0; 43 + while (isspace(ldd[pos])) 44 + pos++; 45 + for (; ldd[pos]; pos++) { 46 + if (isspace(ldd[pos])) { 47 + if (pos) 49 + while (isspace(ldd[pos])) 50 + pos++; 57 + pos = 0; [all …]
|
/openbmc/linux/fs/iomap/ |
H A D | seek.c | 21 iter->pos, iter->pos + length, SEEK_HOLE); in iomap_seek_hole_iter() 22 if (*hole_pos == iter->pos + length) in iomap_seek_hole_iter() 26 *hole_pos = iter->pos; in iomap_seek_hole_iter() 34 iomap_seek_hole(struct inode *inode, loff_t pos, const struct iomap_ops *ops) in iomap_seek_hole() argument 39 .pos = pos, in iomap_seek_hole() 45 if (pos < 0 || pos >= size) in iomap_seek_hole() 48 iter.len = size - pos; in iomap_seek_hole() 50 iter.processed = iomap_seek_hole_iter(&iter, &pos); in iomap_seek_hole() 54 return pos; in iomap_seek_hole() 69 iter->pos, iter->pos + length, SEEK_DATA); in iomap_seek_data_iter() [all …]
|
/openbmc/u-boot/tools/ |
H A D | atmelimage.c | 57 size_t pos; in atmel_find_pmecc_parameter_in_token() local 62 for (pos = 0; pos < ARRAY_SIZE(configs); pos++) { in atmel_find_pmecc_parameter_in_token() 63 if (strncmp(token, configs[pos], strlen(configs[pos])) == 0) { in atmel_find_pmecc_parameter_in_token() 69 debug("\t%s parameter: '%s'\n", configs[pos], param); in atmel_find_pmecc_parameter_in_token() 71 switch (pos) { in atmel_find_pmecc_parameter_in_token() 118 size_t pos; in atmel_verify_header() local 122 for (pos = 0; pos < ARRAY_SIZE(nand_pmecc_header); pos++) in atmel_verify_header() 123 if (ints[pos] >> 28 != 0xC) in atmel_verify_header() 126 if (pos == ARRAY_SIZE(nand_pmecc_header)) { in atmel_verify_header() 132 for (pos = 0; pos < 7; pos++) { in atmel_verify_header() [all …]
|
/openbmc/linux/fs/freevxfs/ |
H A D | vxfs_lookup.c | 64 loff_t pos = 0; in vxfs_find_entry() local 67 while (pos < limit) { in vxfs_find_entry() 70 int pg_ofs = pos & ~PAGE_MASK; in vxfs_find_entry() 72 pp = vxfs_get_page(ip->i_mapping, pos >> PAGE_SHIFT); in vxfs_find_entry() 77 while (pg_ofs < PAGE_SIZE && pos < limit) { in vxfs_find_entry() 80 if ((pos & (bsize - 1)) < 4) { in vxfs_find_entry() 83 (kaddr + (pos & ~PAGE_MASK)); in vxfs_find_entry() 86 pos += overhead; in vxfs_find_entry() 92 pos += bsize - 1; in vxfs_find_entry() 93 pos &= ~(bsize - 1); in vxfs_find_entry() [all …]
|
/openbmc/linux/tools/perf/dlfilters/ |
H A D | dlfilter-show-cycles.c | 49 __u32 pos = tid & MASK; in find_entry() local 52 e = &table[pos]; in find_entry() 56 if (++pos == TABLESZ) in find_entry() 57 pos = 0; in find_entry() 58 e = &table[pos]; in find_entry() 72 static void add_entry(__s32 tid, int pos, __u64 cnt) in add_entry() argument 77 e->cycles[pos] += cnt; in add_entry() 84 int pos; in filter_event_early() local 89 pos = event_entry(sample->event); in filter_event_early() 92 cycles[cpu][pos] += sample->cyc_cnt; in filter_event_early() [all …]
|