/linux/drivers/pinctrl/ |
H A D | pinctrl-lpc18xx.c | 7 * License version 2. This program is licensed "as is" without any 42 #define LPC18XX_SCU_USB1_EPD BIT(2) 46 #define LPC18XX_SCU_I2C0_EHD BIT(2) 240 LPC_P(0,0, GPIO, SSP1, ENET, SGPIO, R, R, I2S0_TX_WS,I2S1, 0, ND); 241 LPC_P(0,1, GPIO, SSP1,ENET_ALT,SGPIO, R, R, ENET, I2S1, 0, ND); 242 LPC_P(1,0, GPIO, CTIN, EMC, R, R, SSP0, SGPIO, R, 0, ND); 243 LPC_P(1,1, GPIO, CTOUT, EMC, SGPIO, R, SSP0, R, R, 0, ND); 244 LPC_P(1,2, GPIO, CTOUT, EMC, SGPIO, R, SSP0, R, R, 0, ND); 245 LPC_P(1,3, GPIO, CTOUT, SGPIO, EMC, USB0, SSP1, R, SDMMC, 0, ND); 246 LPC_P(1,4, GPIO, CTOUT, SGPIO, EMC, USB0, SSP1, R, SDMMC, 0, ND); [all …]
|
/linux/drivers/staging/most/net/ |
H A D | net.c | 103 *buff++ = HB(mdp_len - 2); in skb_to_mamac() 104 *buff++ = LB(mdp_len - 2); in skb_to_mamac() 147 *buff++ = HB(mep_len - 2); in skb_to_mep() 148 *buff++ = LB(mep_len - 2); in skb_to_mep() 164 struct net_dev_context *nd = netdev_priv(dev); in most_nd_set_mac_address() local 170 nd->is_mamac = in most_nd_set_mac_address() 172 dev->dev_addr[2] == 0 && dev->dev_addr[3] == 0); in most_nd_set_mac_address() 178 dev->mtu = nd->is_mamac ? MAMAC_DATA_LEN : ETH_DATA_LEN; in most_nd_set_mac_address() 188 struct net_dev_context *nd = netdev_priv(dev); in most_nd_open() local 193 if (most_start_channel(nd->iface, nd->rx.ch_id, &comp)) { in most_nd_open() [all …]
|
/linux/drivers/hid/ |
H A D | hid-ntrig.c | 96 __u8 b = (raw[0] & 0x3c) >> 2; in ntrig_version_string() 98 __u8 d = ((raw[3] & 0x07) << 3) | ((raw[2] & 0xe0) >> 5); in ntrig_version_string() 99 __u8 e = raw[2] & 0x07; in ntrig_version_string() 158 ret = ntrig_version_string(&data[2], buf); in ntrig_report_version() 161 buf, data[2], data[3], data[4], data[5]); in ntrig_report_version() 173 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_width() local 175 return sprintf(buf, "%d\n", nd->sensor_physical_width); in show_phys_width() 185 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_phys_height() local 187 return sprintf(buf, "%d\n", nd->sensor_physical_height); in show_phys_height() 197 struct ntrig_data *nd = hid_get_drvdata(hdev); in show_log_width() local [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-nfit | 5 What: /sys/bus/nd/devices/nmemX/nfit/serial 7 KernelVersion: v4.2 14 What: /sys/bus/nd/devices/nmemX/nfit/handle 16 KernelVersion: v4.2 23 What: /sys/bus/nd/devices/nmemX/nfit/device 31 What: /sys/bus/nd/devices/nmemX/nfit/rev_id 33 KernelVersion: v4.2 39 What: /sys/bus/nd/devices/nmemX/nfit/phys_id 41 KernelVersion: v4.2 49 What: /sys/bus/nd/devices/nmemX/nfit/flags [all …]
|
/linux/lib/ |
H A D | win_minmax.c | 12 * The algorithm keeps track of the best, 2nd best & 3rd best min 22 * every new min and overwrites 2nd & 3rd choices. The same property 23 * holds for 2nd & 3rd best. 28 /* As time advances, update the 1st, 2nd, and 3rd choices. */ 36 * Passed entire window without a new val so make 2nd in minmax_subwin_update() 37 * choice the new val & 3rd choice the new 2nd choice. in minmax_subwin_update() 38 * we may have to iterate this since our 2nd choice in minmax_subwin_update() 43 m->s[1] = m->s[2]; in minmax_subwin_update() 44 m->s[2] = *val; in minmax_subwin_update() 47 m->s[1] = m->s[2]; in minmax_subwin_update() [all …]
|
/linux/drivers/clk/at91/ |
H A D | clk-audio-pll.c | 15 * enable - clk_enable writes nd, fracr parameters and enables PLL 17 * clk->rate = parent->rate * ((nd + 1) + (fracr / 2^22)) 62 u8 nd; member 95 * reset and enable have to be done in 2 separated writes in clk_audio_pll_frac_enable() 102 AT91_PMC_AUDIO_PLL_ND(frac->nd)); in clk_audio_pll_frac_enable() 138 /* do it in 2 separated writes */ in clk_audio_pll_frac_disable() 160 unsigned long nd, unsigned long fracr) in clk_audio_pll_fout() argument 170 return parent_rate * (nd + 1) + fr; in clk_audio_pll_fout() 179 fout = clk_audio_pll_fout(parent_rate, frac->nd, frac->fracr); in clk_audio_pll_frac_recalc_rate() 181 pr_debug("A PLL: %s, fout = %lu (nd = %u, fracr = %lu)\n", __func__, in clk_audio_pll_frac_recalc_rate() [all …]
|
/linux/drivers/staging/media/av7110/ |
H A D | dvb_filter.h | 132 u8 plen[2]; 186 /* bit 0 - 2: bwd f code 199 u32 pts[2]; /* [0] 1st field, [1] 2nd field */ 208 /* [0-2] 1st field, [3] 2nd field */ 210 /* [0-2] 1st field, [3] 2nd field */ 211 s16 temporal_reference[2]; 212 /* [0] 1st field, [1] 2nd field */ 214 s8 picture_coding_type[2]; 215 /* [0] 1st field, [1] 2nd field */ 216 s8 picture_structure[2]; [all …]
|
/linux/tools/perf/ui/browsers/ |
H A D | hists.c | 54 static struct rb_node *hists__filter_entries(struct rb_node *nd, 64 struct rb_node *nd; in hist_browser__get_folding() 68 for (nd = rb_first_cached(&hists->entries); in hist_browser__get_folding() 69 (nd = hists__filter_entries(nd, browser->min_pcnt)) != NULL; in hist_browser__get_folding() 70 nd = rb_hierarchy_next(nd)) { in hist_browser__get_folding() 72 rb_entry(nd, struct hist_entry, rb_node); in hist_browser__get_folding() 180 struct rb_node *nd; in callchain_node__count_rows_rb_tree() 182 for (nd in callchain_node__count_rows_rb_tree() 63 struct rb_node *nd; hist_browser__get_folding() local 179 struct rb_node *nd; callchain_node__count_rows_rb_tree() local 261 struct rb_node *nd; callchain__count_rows() local 330 struct rb_node *nd = rb_first(&node->rb_root); callchain_node__init_have_children_rb_tree() local 369 struct rb_node *nd = rb_first(root); callchain__init_have_children() local 513 struct rb_node *nd; callchain_node__set_folding_rb_tree() local 553 struct rb_node *nd; callchain__set_folding() local 568 struct rb_node *nd; hierarchy_set_folding() local 604 struct rb_node *nd; __hist_browser__set_folding() local 1817 struct rb_node *nd; hist_browser__refresh() local 1866 hists__filter_entries(struct rb_node * nd,float min_pcnt) hists__filter_entries() argument 1889 hists__filter_prev_entries(struct rb_node * nd,float min_pcnt) hists__filter_prev_entries() argument 1909 struct rb_node *nd; ui_browser__hists_seek() local 2152 struct rb_node *nd = hists__filter_entries(rb_first(browser->b.entries), hist_browser__fprintf() local 2883 struct rb_node *nd = rb_first_cached(&hb->hists->entries); hist_browser__update_nr_entries() local 2903 struct rb_node *nd = rb_first_cached(&hb->hists->entries); hist_browser__update_percent_limit() local [all...] |
H A D | map.c | 25 static void map_browser__write(struct ui_browser *browser, void *nd, int row) in map_browser__write() argument 27 struct symbol *sym = rb_entry(nd, struct symbol, rb_node); in map_browser__write() 37 width = browser->width - ((mb->addrlen * 2) + 4); in map_browser__write() 116 struct rb_node *nd; in map__browse() local 120 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse() 121 struct symbol *pos = rb_entry(nd, struct symbol, rb_node); in map__browse()
|
H A D | annotate.c | 209 pcnt_width + 2 + notes->src->widths.addr + width + cntr_width, in annotate_browser__draw_current_jump() 275 back = browser->b.height / 2; in annotate_browser__set_top() 293 struct rb_node *nd) in annotate_browser__set_rb_top() 295 struct annotation_line * pos = rb_entry(nd, struct annotation_line, rb_node); in annotate_browser__set_rb_top() 301 browser->curr_hot = nd; in annotate_browser__set_rb_top() 614 delay_secs * 2) != K_ENTER || in annotate_browser__search_window() 711 struct rb_node *nd = NULL; in annotate_browser__run() 733 nd = browser->curr_hot; in annotate_browser__run() 747 if (nd != NULL && RB_EMPTY_NODE(nd)) in annotate_browser__run() 292 annotate_browser__set_rb_top(struct annotate_browser * browser,struct rb_node * nd) annotate_browser__set_rb_top() argument 710 struct rb_node *nd = NULL; annotate_browser__run() local [all...] |
/linux/net/ncsi/ |
H A D | ncsi-manage.c | 30 return !!(channel->modes[NCSI_MODE_LINK].data[2] & 0x1); in ncsi_channel_has_link() 53 struct ncsi_dev *nd = &ndp->ndev; in ncsi_report_link() local 58 nd->state = ncsi_dev_state_functional; in ncsi_report_link() 60 nd->link_up = 0; in ncsi_report_link() 64 nd->link_up = 0; in ncsi_report_link() 77 nd->link_up = 1; in ncsi_report_link() 86 nd->handler(nd); in ncsi_report_link() 150 ncm->data[2] &= ~0x1; in ncsi_channel_monitor() 469 struct ncsi_dev *nd in ncsi_suspend_channel() local 989 struct ncsi_dev *nd = &ndp->ndev; ncsi_configure_channel() local 1346 struct ncsi_dev *nd = &ndp->ndev; ncsi_probe_channel() local 1528 struct ncsi_dev *nd = &ndp->ndev; ncsi_dev_work() local 1607 struct ncsi_dev *nd = &ndp->ndev; ncsi_kick_channels() local 1660 struct ncsi_dev *nd; ncsi_vlan_rx_add_vid() local 1710 struct ncsi_dev *nd; ncsi_vlan_rx_kill_vid() local 1748 struct ncsi_dev *nd; ncsi_register_dev() local 1806 ncsi_start_dev(struct ncsi_dev * nd) ncsi_start_dev() argument 1825 ncsi_stop_dev(struct ncsi_dev * nd) ncsi_stop_dev() argument 1857 ncsi_reset_dev(struct ncsi_dev * nd) ncsi_reset_dev() argument 1943 ncsi_unregister_dev(struct ncsi_dev * nd) ncsi_unregister_dev() argument [all...] |
/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt8173-elm-hana.dtsi | 20 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd 31 /* Lenovo Ideapad C330 uses G2Touch touchscreen as a 2nd source touchscreen */ 43 * Lenovo 100e Chromebook 2nd Gen (MTK) and Lenovo 300e Chromebook 2nd 47 trackpad2: trackpad@2c {
|
/linux/tools/perf/util/ |
H A D | build-id.c | 81 bid += 2; in perf_event__exit_del_thread() 160 int ret = asnprintf(&bf, size, "%s/.build-id/%.2s/%s", buildid_dir, in asnprintf() 161 sbuild_id, sbuild_id + 2); in asnprintf() 353 struct rb_node *nd; in machine__write_buildid_table() 359 for (nd = rb_first_cached(&session->machines.guests); nd; in machine__write_buildid_table() 360 nd = rb_next(nd)) { in machine__write_buildid_table() 361 struct machine *pos = rb_entry(nd, struct machine, rb_node); in machine__write_buildid_table() 377 return (strlen(d->d_name) == 2) in perf_session__write_buildid_table() local 410 struct rb_node *nd; dsos__hit_all() local 454 struct str_node *nd, *nd2; build_id_cache__list_all() local 531 struct str_node *nd, *cand = NULL; build_id_cache__complement() local 965 struct rb_node *nd; machines__for_each_dso() local 1000 struct rb_node *nd; perf_session__read_build_ids() local [all...] |
H A D | hist.c | 91 * +2 accounts for 0x prefix on raw addresses in hists__calc_col_len() 97 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len() 100 symlen = unresolved_col_width + 4 + 2; in hists__calc_col_len() 121 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len() 127 symlen = unresolved_col_width + 4 + 2; in hists__calc_col_len() 136 symlen += BITS_PER_LONG / 4 + 2 + 3; in hists__calc_col_len() 142 symlen = unresolved_col_width + 4 + 2; in hists__calc_col_len() 159 + unresolved_col_width + 2; in hists__calc_col_len() 165 symlen = unresolved_col_width + 4 + 2; in hists__calc_col_len() 174 + unresolved_col_width + 2; in hists__calc_col_len() 2180 struct rb_node *nd; hists__filter_by_type() local 2204 struct rb_node *nd; resort_filtered_entry() local 2240 struct rb_node *nd; hists__filter_hierarchy() local 2525 struct rb_node *nd; hists__match_hierarchy() local 2545 struct rb_node *nd; hists__match() local 2573 struct rb_node *nd; hists__link_hierarchy() local 2620 struct rb_node *nd; hists__link() local 2652 struct rb_node *nd; hists__unlink() local [all...] |
/linux/tools/perf/ui/gtk/ |
H A D | hists.c | 53 return hpp__fmt(fmt, hpp, he, he_get_##_field, " %*.2f%%", \ 67 return hpp__fmt_acc(fmt, hpp, he, he_get_acc_##_field, " %*.2f%%", \ 100 struct rb_node *nd; in perf_gtk__add_callchain_flat() local 103 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_flat() 109 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_flat() 163 struct rb_node *nd; in perf_gtk__add_callchain_folded() local 165 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_folded() 173 node = rb_entry(nd, struct callchain_node, rb_node); in perf_gtk__add_callchain_folded() 223 struct rb_node *nd; in perf_gtk__add_callchain_graph() local 226 for (nd = rb_first(root); nd; nd = rb_next(nd)) { in perf_gtk__add_callchain_graph() [all …]
|
/linux/Documentation/devicetree/bindings/iio/pressure/ |
H A D | honeywell,hsc030pa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 51 0 - A, 10% to 90% of 2^14 52 1 - B, 5% to 95% of 2^14 53 2 - C, 5% to 85% of 2^14 54 3 - F, 4% to 94% of 2^14 55 enum: [0, 1, 2, 3] 73 150PA, 0.5ND, 001ND, 002ND, 004ND, 005ND, 010ND, 020ND, 030ND,
|
/linux/drivers/mtd/nand/spi/ |
H A D | toshiba.c | 47 region->offset = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc() 48 region->length = mtd->oobsize / 2; in tx58cxgxsxraix_ooblayout_ecc() 59 /* 2 bytes reserved for BBM */ in tx58cxgxsxraix_ooblayout_free() 60 region->offset = 2; in tx58cxgxsxraix_ooblayout_free() 61 region->length = (mtd->oobsize / 2) - 2; in tx58cxgxsxraix_ooblayout_free() 121 /* 3.3V 2Gb (1st generation) */ 154 /* 1.8V 2Gb (1st generation) */ 178 * 2nd generation serial nand has HOLD_D which is equivalent to 181 /* 3.3V 1Gb (2nd generation) */ 192 /* 3.3V 2Gb (2nd generation) */ [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | arp_ndisc_evict_nocarrier.sh | 7 # an entry in the ARP/ND table. Depending on the test set sysctl option to 9 # carrier state. Depending on the test check the ARP/ND table: 11 # {arp,ndisc}_evict_nocarrier=1 should contain no ARP/ND after no carrier 12 # {arp,ndisc}_evict_nocarrer=0 should still contain the single ARP/ND entry 20 readonly V6_ADDR1=2001:db8:91::2 28 sysctl -w net.ipv6.conf.veth1.ndisc_evict_nocarrier=1 >/dev/null 2>&1 29 sysctl -w net.ipv6.conf.all.ndisc_evict_nocarrier=1 >/dev/null 2>&1 43 ip netns exec ${me} sysctl -w $1 >/dev/null 2>&1 45 # Establish an ND cache entry 46 ip netns exec ${me} ping -6 -c1 -Iveth1 $V6_ADDR1 >/dev/null 2>&1 [all …]
|
/linux/include/linux/ |
H A D | sysfb.h | 27 M_MB_2, /* MacBook, 2nd rev. */ 32 M_MB_SR, /* MacBook, 2nd gen, (Santa Rosa) */ 36 M_MBP_2, /* MacBook Pro 2nd gen */ 37 M_MBP_2_2, /* MacBook Pro 2,2nd gen */ 41 M_MBP_5_2, /* MacBook Pro, 5,2th gen */ 44 M_MBP_6_2, /* MacBook Pro, 6,2th gen */ 46 M_MBP_8_2, /* MacBook Pro, 8,2nd gen */
|
/linux/tools/perf/ui/ |
H A D | browser.c | 141 struct rb_node *nd; in ui_browser__rb_tree_seek() local 145 nd = rb_first(root); in ui_browser__rb_tree_seek() 148 nd = browser->top; in ui_browser__rb_tree_seek() 151 nd = rb_last(root); in ui_browser__rb_tree_seek() 159 nd = rb_next(nd); in ui_browser__rb_tree_seek() 162 nd = rb_prev(nd); in ui_browser__rb_tree_seek() 165 browser->top = nd; in ui_browser__rb_tree_seek() 170 struct rb_node *nd; in ui_browser__rb_tree_refresh() local [all...] |
/linux/io_uring/ |
H A D | notif.h | 38 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_flush() local 40 io_tx_ubuf_complete(NULL, &nd->uarg, true); in io_notif_flush() 46 struct io_notif_data *nd = io_notif_to_data(notif); in io_notif_account_mem() local 47 unsigned nr_pages = (len >> PAGE_SHIFT) + 2; in io_notif_account_mem() 54 nd->account_pages += nr_pages; in io_notif_account_mem()
|
/linux/fs/hpfs/ |
H A D | dnode.c | 242 struct dnode *d, *ad, *rd, *nd = NULL; in hpfs_add_to_dnode() local 259 kfree(nd); in hpfs_add_to_dnode() 264 kfree(nd); in hpfs_add_to_dnode() 272 kfree(nd); in hpfs_add_to_dnode() 285 kfree(nd); in hpfs_add_to_dnode() 289 if (!nd) if (!(nd = kmalloc(0x924, GFP_NOFS))) { in hpfs_add_to_dnode() 300 memcpy(nd, d, le32_to_cpu(d->first_free)); in hpfs_add_to_dnode() 301 copy_de(de = hpfs_add_de(i->i_sb, nd, name, namelen, down_ptr), new_de); in hpfs_add_to_dnode() 302 for_all_poss(i, hpfs_pos_ins, get_pos(nd, de), 1); in hpfs_add_to_dnode() 303 h = ((char *)dnode_last_de(nd) - (char *)nd) / 2 + 10; in hpfs_add_to_dnode() [all …]
|
/linux/net/openvswitch/ |
H A D | flow.c | 297 dest_options_header_count >= 2) { in get_ipv6_ext_hdrs() 309 dest_options_header_count >= 2) { in get_ipv6_ext_hdrs() 342 dest_options_header_count >= 2) { in get_ipv6_ext_hdrs() 354 dest_options_header_count >= 2) { in get_ipv6_ext_hdrs() 543 (llc->oui[0] | llc->oui[1] | llc->oui[2]) != 0) in parse_ethertype() 569 struct nd_msg *nd; in parse_icmpv6() local 572 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6() 577 if (unlikely(icmp_len < sizeof(*nd))) in parse_icmpv6() 583 nd = (struct nd_msg *)skb_transport_header(skb); in parse_icmpv6() 584 key->ipv6.nd.target = nd->target; in parse_icmpv6() [all …]
|
/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | brcm,bcm7120-l2-intc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 7 title: Broadcom BCM7120-style Level 2 and Broadcom BCM3380 Level 1 / Level 2 23 or if they will output an interrupt signal at this 2nd level interrupt 34 2nd level interrupt line Outputs for the parent controller (e.g: ARM GIC) 42 2 -----[ MUX ] --------)---|==========> GIC interrupt 77 62 The BCM3380 Level 1 / Level 2 interrupt controller shows up in various forms 101 this 2nd level interrupt controller, and how they match their respective 117 outputs bypass this 2nd level interrupt controller completely; it is 151 interrupts = <2>;
|
/linux/tools/perf/ |
H A D | builtin-annotate.c | 411 struct rb_node *nd = rb_first_cached(&hists->entries), *next; in hists__find_annotations() 419 while (nd) { in hists__find_annotations() 420 struct hist_entry *he = rb_entry(nd, struct hist_entry, rb_node); in hists__find_annotations() 445 nd = rb_prev(nd); in hists__find_annotations() 447 nd = rb_next(nd); in hists__find_annotations() 485 next = rb_next(nd); in hists__find_annotations() 489 next = rb_prev(nd); in hists__find_annotations() 496 nd in hists__find_annotations() 410 struct rb_node *nd = rb_first_cached(&hists->entries), *next; hists__find_annotations() local [all...] |