Home
last modified time | relevance | path

Searched refs:ks (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/linux/drivers/net/ethernet/micrel/
H A Dks8851_common.c37 ks->lock(ks, flags); in ks8851_lock()
49 ks->unlock(ks, flags); in ks8851_unlock()
63 ks->wrreg16(ks, reg, val); in ks8851_wrreg16()
76 return ks->rdreg16(ks, reg); in ks8851_rdreg16()
253 netif_dbg(ks, rx_status, ks->netdev, in ks8851_rx_pkts()
270 netif_dbg(ks, rx_status, ks->netdev, in ks8851_rx_pkts()
340 netif_dbg(ks, intr, ks->netdev, in ks8851_irq()
352 netif_dbg(ks, intr, ks->netdev, in ks8851_irq()
411 ks->flush_tx_work(ks); in ks8851_flush_tx_work()
537 netif_dbg(ks, ifdown, ks->netdev, in ks8851_net_stop()
[all …]
H A Dks8851_spi.c58 #define to_ks8851_spi(ks) container_of((ks), struct ks8851_net_spi, ks8851) argument
154 u8 *trx = ks->rxd; in ks8851_rdreg()
221 netif_dbg(ks, rx_status, ks->netdev, in ks8851_rdfifo_spi()
261 netif_dbg(ks, tx_queued, ks->netdev, "%s: skb %p, %d@%p, irq %d\n", in ks8851_wrfifo_spi()
264 fid = ks->fid++; in ks8851_wrfifo_spi()
319 ks = &kss->ks8851; in ks8851_tx_work()
334 ks8851_wrreg16_spi(ks, KS_RXQCR, ks->rc_rxqcr); in ks8851_tx_work()
385 netif_dbg(ks, tx_queued, ks->netdev, in ks8851_start_xmit_spi()
390 if (ks->queued_len + needed > ks->tx_space) { in ks8851_start_xmit_spi()
419 ks = &kss->ks8851; in ks8851_probe_spi()
[all …]
H A Dks8851_par.c53 #define to_ks8851_par(ks) container_of((ks), struct ks8851_net_par, ks8851) argument
174 netif_dbg(ks, rx_status, ks->netdev, in ks8851_rdfifo_par()
198 netif_dbg(ks, tx_queued, ks->netdev, "%s: skb %p, %d@%p, irq %d\n", in ks8851_wrfifo_par()
201 fid = ks->fid++; in ks8851_wrfifo_par()
241 netif_dbg(ks, tx_queued, ks->netdev, in ks8851_start_xmit_par()
249 ks8851_wrreg16_par(ks, KS_RXQCR, ks->rc_rxqcr | RXQCR_SDA); in ks8851_start_xmit_par()
251 ks8851_wrreg16_par(ks, KS_RXQCR, ks->rc_rxqcr); in ks8851_start_xmit_par()
260 ks8851_done_tx(ks, skb); in ks8851_start_xmit_par()
275 struct ks8851_net *ks; in ks8851_probe_par() local
295 ks->rc_ier = STD_IRQ; in ks8851_probe_par()
[all …]
H A Dks8851.h411 void (*lock)(struct ks8851_net *ks,
413 void (*unlock)(struct ks8851_net *ks,
415 unsigned int (*rdreg16)(struct ks8851_net *ks,
417 void (*wrreg16)(struct ks8851_net *ks,
419 void (*rdfifo)(struct ks8851_net *ks, u8 *buff,
421 void (*wrfifo)(struct ks8851_net *ks,
425 void (*flush_tx_work)(struct ks8851_net *ks);
442 static void __maybe_unused ks8851_done_tx(struct ks8851_net *ks, in ks8851_done_tx() argument
445 struct net_device *dev = ks->netdev; in ks8851_done_tx()
/openbmc/linux/drivers/net/phy/
H A Dspi_ks8995.c191 result <<= ks->chip->addr_width + ks->chip->addr_shift; in create_spi_cmd()
219 mutex_lock(&ks->lock); in ks8995_read()
247 mutex_lock(&ks->lock); in ks8995_write()
282 err = ks8995_stop(ks); in ks8995_reset()
420 ks = devm_kzalloc(&spi->dev, sizeof(*ks), GFP_KERNEL); in ks8995_probe()
421 if (!ks) in ks8995_probe()
424 mutex_init(&ks->lock); in ks8995_probe()
425 ks->spi = spi; in ks8995_probe()
459 memcpy(&ks->regs_attr, &ks8995_registers_attr, sizeof(ks->regs_attr)); in ks8995_probe()
460 ks->regs_attr.size = ks->chip->regs_size; in ks8995_probe()
[all …]
/openbmc/linux/kernel/debug/kdb/
H A Dkdb_debugger.c57 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub()
62 kdb_ks = ks; in kdb_stub()
68 ks->pass_exception = 0; in kdb_stub()
72 if (ks->err_code == KDB_REASON_SYSTEM_NMI && ks->signo == SIGTRAP) in kdb_stub()
110 ks->signo == SIGTRAP) { in kdb_stub()
122 ks->pass_exception = 1; in kdb_stub()
135 ks->err_code, db_result, ks->linux_regs); in kdb_stub()
151 gdbstub_state(ks, "s"); in kdb_stub()
153 gdbstub_state(ks, "c"); in kdb_stub()
158 kgdb_info[ks->cpu].ret_state = gdbstub_state(ks, "e"); in kdb_stub()
[all …]
/openbmc/linux/kernel/debug/
H A Dgdbstub.c730 ks->thr_query++; in gdb_cmd_query()
751 ks->threadid = 0; in gdb_cmd_query()
754 if (!getthread(ks->linux_regs, ks->threadid)) { in gdb_cmd_query()
818 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_task()
824 ks->kgdb_usethreadid = ks->threadid; in gdb_cmd_task()
833 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_task()
852 thread = getthread(ks->linux_regs, ks->threadid); in gdb_cmd_thread()
962 ks->kgdb_usethreadid = shadow_pid(kgdb_info[ks->cpu].task->pid); in gdb_serial_stub()
1065 ks->signo, in gdb_serial_stub()
1066 ks->err_code, in gdb_serial_stub()
[all …]
H A Ddebug_core.c524 addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
535 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
543 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
601 cpu = ks->cpu; in kgdb_cpu_enter()
686 if (kgdb_skipexception(ks->ex_vector, ks->linux_regs)) in kgdb_cpu_enter()
704 if (ks->send_ready) in kgdb_cpu_enter()
856 ks->signo = signo; in kgdb_handle_exception()
857 ks->err_code = ecode; in kgdb_handle_exception()
895 ks->cpu = cpu; in kgdb_nmicallback()
920 ks->cpu = cpu; in kgdb_nmicallin()
[all …]
H A Ddebug_core.h67 extern int gdb_serial_stub(struct kgdb_state *ks);
71 extern int gdbstub_state(struct kgdb_state *ks, char *cmd);
75 extern int kdb_stub(struct kgdb_state *ks);
77 extern int kdb_common_init_state(struct kgdb_state *ks);
81 static inline int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument
/openbmc/u-boot/drivers/net/
H A Dks8851_mll.c98 } ks_str, *ks; variable
204 ks->extra_byte = 1; in ks_read_config()
207 ks->extra_byte = 2; in ks_read_config()
210 ks->extra_byte = 4; in ks_read_config()
273 u32 r = ks->extra_byte & 0x1; in ks_read_qmu()
274 u32 w = ks->extra_byte - r; in ks_read_qmu()
316 while (ks->frame_cnt--) { in ks_rcv()
407 ks->rc_ier = 0x00; in ks_setup_int()
506 ks->frame_head_info = fr_h_i; in ks8851_mll_init()
517 ks->txh.txw[0] = 0; in ks_write_qmu()
[all …]
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c1005 ks->base.speed = SPEED_40000; in i40e_get_settings_link_up()
1008 ks->base.speed = SPEED_25000; in i40e_get_settings_link_up()
1017 ks->base.speed = SPEED_5000; in i40e_get_settings_link_up()
1020 ks->base.speed = SPEED_2500; in i40e_get_settings_link_up()
1023 ks->base.speed = SPEED_1000; in i40e_get_settings_link_up()
1026 ks->base.speed = SPEED_100; in i40e_get_settings_link_up()
1094 ks->base.port = PORT_NONE; in i40e_get_link_ksettings()
1099 ks->base.port = PORT_TP; in i40e_get_link_ksettings()
1105 ks->base.port = PORT_DA; in i40e_get_link_ksettings()
1110 ks->base.port = PORT_FIBRE; in i40e_get_link_ksettings()
[all …]
/openbmc/qemu/include/hw/s390x/
H A Dstorage-keys.h47 bool (*skeys_are_enabled)(S390SKeysState *ks);
62 bool (*enable_skeys)(S390SKeysState *ks);
79 int (*get_skeys)(S390SKeysState *ks, uint64_t start_gfn, uint64_t count,
97 int (*set_skeys)(S390SKeysState *ks, uint64_t start_gfn, uint64_t count,
117 int s390_skeys_get(S390SKeysState *ks, uint64_t start_gfn,
122 int s390_skeys_set(S390SKeysState *ks, uint64_t start_gfn,
/openbmc/linux/drivers/net/ethernet/pensando/ionic/
H A Dionic_ethtool.c122 struct ethtool_link_ksettings *ks) in ionic_get_link_ksettings() argument
231 linkmode_copy(ks->link_modes.advertising, ks->link_modes.supported); in ionic_get_link_ksettings()
245 ks->base.port = PORT_DA; in ionic_get_link_ksettings()
247 ks->base.port = PORT_FIBRE; in ionic_get_link_ksettings()
249 ks->base.port = PORT_NONE; in ionic_get_link_ksettings()
251 if (ks->base.port != PORT_NONE) { in ionic_get_link_ksettings()
255 ks->base.duplex = DUPLEX_FULL; in ionic_get_link_ksettings()
257 ks->base.duplex = DUPLEX_UNKNOWN; in ionic_get_link_ksettings()
264 ks->base.autoneg = AUTONEG_ENABLE; in ionic_get_link_ksettings()
272 const struct ethtool_link_ksettings *ks) in ionic_set_link_ksettings() argument
[all …]
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dget_stack_raw_tp.c32 struct ksym *ks; in get_stack_print_output() local
51 ks = ksym_search(raw_data[i]); in get_stack_print_output()
52 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output()
68 ks = ksym_search(e.kern_stack[i]); in get_stack_print_output()
69 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output()
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool.c1803 ks->base.speed = SPEED_50000; in ice_get_settings_link_up()
1806 ks->base.speed = SPEED_40000; in ice_get_settings_link_up()
1818 ks->base.speed = SPEED_5000; in ice_get_settings_link_up()
1821 ks->base.speed = SPEED_2500; in ice_get_settings_link_up()
1824 ks->base.speed = SPEED_1000; in ice_get_settings_link_up()
1827 ks->base.speed = SPEED_100; in ice_get_settings_link_up()
1920 ks->base.port = PORT_FIBRE; in ice_get_link_ksettings()
1925 ks->base.port = PORT_TP; in ice_get_link_ksettings()
1931 ks->base.port = PORT_NONE; in ice_get_link_ksettings()
1936 ks->base.port = PORT_DA; in ice_get_link_ksettings()
[all …]
/openbmc/qemu/hw/input/
H A Dpckbd.c672 KBDState *ks = &s->kbd; in i8042_mmio_set_kbd_irq() local
680 KBDState *ks = &s->kbd; in i8042_mmio_set_mouse_irq() local
688 KBDState *ks = &s->kbd; in i8042_mmio_reset() local
690 kbd_reset(ks); in i8042_mmio_reset()
696 KBDState *ks = &s->kbd; in i8042_mmio_realize() local
723 KBDState *ks = &s->kbd; in i8042_mmio_init() local
725 ks->extended_state = true; in i8042_mmio_init()
813 KBDState *ks = &s->kbd; in i8042_set_kbd_irq() local
821 KBDState *ks = &s->kbd; in i8042_set_mouse_irq() local
830 KBDState *ks = &s->kbd; in i8042_reset() local
[all …]
/openbmc/linux/fs/btrfs/
H A Dlocking.c84 struct btrfs_lockdep_keyset *ks; in btrfs_set_buffer_lockdep_class() local
86 BUG_ON(level >= ARRAY_SIZE(ks->keys)); in btrfs_set_buffer_lockdep_class()
89 for (ks = btrfs_lockdep_keysets; ks->id; ks++) in btrfs_set_buffer_lockdep_class()
90 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class()
93 lockdep_set_class_and_name(&eb->lock, &ks->keys[level], ks->names[level]); in btrfs_set_buffer_lockdep_class()
/openbmc/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ethtool.c204 struct ethtool_link_ksettings *ks) in fun_get_link_ksettings() argument
225 ks->base.speed = speed; in fun_get_link_ksettings()
226 ks->base.duplex = DUPLEX_FULL; in fun_get_link_ksettings()
228 ks->link_modes.lp_advertising); in fun_get_link_ksettings()
230 ks->base.speed = SPEED_UNKNOWN; in fun_get_link_ksettings()
231 ks->base.duplex = DUPLEX_UNKNOWN; in fun_get_link_ksettings()
236 ks->base.port = fun_port_type(xcvr); in fun_get_link_ksettings()
243 set_asym_pause(fp->advertising, ks); in fun_get_link_ksettings()
327 if (ks->base.duplex == DUPLEX_HALF) in fun_set_link_ksettings()
329 if (ks->base.autoneg == AUTONEG_ENABLE && in fun_set_link_ksettings()
[all …]
/openbmc/linux/drivers/media/i2c/
H A Dks0127.c332 struct ks0127 *ks = to_ks0127(sd); in ks0127_write() local
338 ks->regs[reg] = val; in ks0127_write()
345 struct ks0127 *ks = to_ks0127(sd); in ks0127_and_or() local
347 u8 val = ks->regs[reg]; in ks0127_and_or()
404 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_routing() local
480 if (ks->norm & V4L2_STD_525_60) in ks0127_s_routing()
541 ks->norm = std; in ks0127_s_std()
655 struct ks0127 *ks; in ks0127_probe() local
662 ks = devm_kzalloc(&client->dev, sizeof(*ks), GFP_KERNEL); in ks0127_probe()
663 if (ks == NULL) in ks0127_probe()
[all …]
/openbmc/qemu/hw/s390x/
H A Ds390-skeys.c58 int s390_skeys_get(S390SKeysState *ks, uint64_t start_gfn, in s390_skeys_get() argument
61 S390SKeysClass *kc = S390_SKEYS_GET_CLASS(ks); in s390_skeys_get()
64 rc = kc->get_skeys(ks, start_gfn, count, keys); in s390_skeys_get()
71 int s390_skeys_set(S390SKeysState *ks, uint64_t start_gfn, in s390_skeys_set() argument
74 S390SKeysClass *kc = S390_SKEYS_GET_CLASS(ks); in s390_skeys_set()
77 rc = kc->set_skeys(ks, start_gfn, count, keys); in s390_skeys_set()
/openbmc/linux/crypto/
H A Dxcbc.c15 static u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101, variable
64 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
65 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
66 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
H A Dseed.c312 t0 = X3 ^ ks[rbase]; \
313 t1 = X4 ^ ks[rbase+1]; \
370 const u32 *ks = ctx->keysched; in seed_encrypt() local
408 const u32 *ks = ctx->keysched; in seed_decrypt() local
/openbmc/linux/fs/xfs/scrub/
H A Dxfile.c300 struct kstat ks; in xfile_stat() local
303 error = vfs_getattr_nosec(&xf->file->f_path, &ks, in xfile_stat()
308 statbuf->size = ks.size; in xfile_stat()
309 statbuf->bytes = ks.blocks << SECTOR_SHIFT; in xfile_stat()
/openbmc/linux/mm/
H A Dslab_common.c1379 size_t ks; in __do_krealloc() local
1385 ks = ksize(p); in __do_krealloc()
1387 ks = 0; in __do_krealloc()
1390 if (ks >= new_size) { in __do_krealloc()
1394 memset(kasan_reset_tag(p) + new_size, 0, ks - new_size); in __do_krealloc()
1406 memcpy(ret, kasan_reset_tag(p), ks); in __do_krealloc()
1456 size_t ks; in kfree_sensitive() local
1459 ks = ksize(mem); in kfree_sensitive()
1460 if (ks) { in kfree_sensitive()
1461 kasan_unpoison_range(mem, ks); in kfree_sensitive()
[all …]
/openbmc/qemu/hw/block/
H A Dfdc.c1467 uint8_t kh, kt, ks; in fdctrl_start_transfer() local
1473 ks = fdctrl->fifo[4]; in fdctrl_start_transfer()
1484 fdctrl->fifo[5] = ks; in fdctrl_start_transfer()
1491 fdctrl->fifo[5] = ks; in fdctrl_start_transfer()
1498 fdctrl->fifo[5] = ks; in fdctrl_start_transfer()
1515 fdctrl->fifo[5] = ks; in fdctrl_start_transfer()
1782 uint8_t kh, kt, ks; in fdctrl_format_sector() local
1788 ks = fdctrl->fifo[8]; in fdctrl_format_sector()
1799 fdctrl->fifo[5] = ks; in fdctrl_format_sector()
1806 fdctrl->fifo[5] = ks; in fdctrl_format_sector()
[all …]

123