/openbmc/linux/drivers/net/ethernet/micrel/ |
H A D | ks8851_common.c | 35 static void ks8851_lock(struct ks8851_net *ks, unsigned long *flags) in ks8851_lock() argument 37 ks->lock(ks, flags); in ks8851_lock() 47 static void ks8851_unlock(struct ks8851_net *ks, unsigned long *flags) in ks8851_unlock() argument 49 ks->unlock(ks, flags); in ks8851_unlock() 60 static void ks8851_wrreg16(struct ks8851_net *ks, unsigned int reg, in ks8851_wrreg16() argument 63 ks->wrreg16(ks, reg, val); in ks8851_wrreg16() 73 static unsigned int ks8851_rdreg16(struct ks8851_net *ks, in ks8851_rdreg16() argument 76 return ks->rdreg16(ks, reg); in ks8851_rdreg16() 92 static void ks8851_soft_reset(struct ks8851_net *ks, unsigned op) in ks8851_soft_reset() argument 94 ks8851_wrreg16(ks, KS_GRR, op); in ks8851_soft_reset() [all …]
|
H A D | ks8851_spi.c | 58 #define to_ks8851_spi(ks) container_of((ks), struct ks8851_net_spi, ks8851) argument 80 static void ks8851_lock_spi(struct ks8851_net *ks, unsigned long *flags) in ks8851_lock_spi() argument 82 struct ks8851_net_spi *kss = to_ks8851_spi(ks); in ks8851_lock_spi() 94 static void ks8851_unlock_spi(struct ks8851_net *ks, unsigned long *flags) in ks8851_unlock_spi() argument 96 struct ks8851_net_spi *kss = to_ks8851_spi(ks); in ks8851_unlock_spi() 116 static void ks8851_wrreg16_spi(struct ks8851_net *ks, unsigned int reg, in ks8851_wrreg16_spi() argument 119 struct ks8851_net_spi *kss = to_ks8851_spi(ks); in ks8851_wrreg16_spi() 134 netdev_err(ks->netdev, "spi_sync() failed\n"); in ks8851_wrreg16_spi() 147 static void ks8851_rdreg(struct ks8851_net *ks, unsigned int op, in ks8851_rdreg() argument 150 struct ks8851_net_spi *kss = to_ks8851_spi(ks); in ks8851_rdreg() [all …]
|
H A D | ks8851_par.c | 53 #define to_ks8851_par(ks) container_of((ks), struct ks8851_net_par, ks8851) argument 62 static void ks8851_lock_par(struct ks8851_net *ks, unsigned long *flags) in ks8851_lock_par() argument 64 struct ks8851_net_par *ksp = to_ks8851_par(ks); in ks8851_lock_par() 76 static void ks8851_unlock_par(struct ks8851_net *ks, unsigned long *flags) in ks8851_unlock_par() argument 78 struct ks8851_net_par *ksp = to_ks8851_par(ks); in ks8851_unlock_par() 91 static int ks_check_endian(struct ks8851_net *ks) in ks_check_endian() argument 93 struct ks8851_net_par *ksp = to_ks8851_par(ks); in ks_check_endian() 122 netdev_err(ks->netdev, "incorrect EESK endian strap setting\n"); in ks_check_endian() 135 static void ks8851_wrreg16_par(struct ks8851_net *ks, unsigned int reg, in ks8851_wrreg16_par() argument 138 struct ks8851_net_par *ksp = to_ks8851_par(ks); in ks8851_wrreg16_par() [all …]
|
H A D | ks8851.h | 411 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 D | spi_ks8995.c | 185 static inline __be16 create_spi_cmd(struct ks8995_switch *ks, int cmd, in create_spi_cmd() argument 191 result <<= ks->chip->addr_width + ks->chip->addr_shift; in create_spi_cmd() 193 result |= address << ks->chip->addr_shift; in create_spi_cmd() 198 static int ks8995_read(struct ks8995_switch *ks, char *buf, in ks8995_read() argument 206 cmd = create_spi_cmd(ks, KS8995_CMD_READ, offset); in ks8995_read() 219 mutex_lock(&ks->lock); in ks8995_read() 220 err = spi_sync(ks->spi, &m); in ks8995_read() 221 mutex_unlock(&ks->lock); in ks8995_read() 226 static int ks8995_write(struct ks8995_switch *ks, char *buf, in ks8995_write() argument 234 cmd = create_spi_cmd(ks, KS8995_CMD_WRITE, offset); in ks8995_write() [all …]
|
/openbmc/linux/kernel/debug/ |
H A D | gdbstub.c | 477 static void gdb_cmd_status(struct kgdb_state *ks) in gdb_cmd_status() argument 488 hex_byte_pack(&remcom_out_buffer[1], ks->signo); in gdb_cmd_status() 491 static void gdb_get_regs_helper(struct kgdb_state *ks) in gdb_get_regs_helper() argument 499 thread = kgdb_info[ks->cpu].task; in gdb_get_regs_helper() 500 local_debuggerinfo = kgdb_info[ks->cpu].debuggerinfo; in gdb_get_regs_helper() 535 static void gdb_cmd_getregs(struct kgdb_state *ks) in gdb_cmd_getregs() argument 537 gdb_get_regs_helper(ks); in gdb_cmd_getregs() 542 static void gdb_cmd_setregs(struct kgdb_state *ks) in gdb_cmd_setregs() argument 549 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs() 555 static void gdb_cmd_memread(struct kgdb_state *ks) in gdb_cmd_memread() argument [all …]
|
H A D | debug_core.c | 515 static int kgdb_reenter_check(struct kgdb_state *ks) in kgdb_reenter_check() argument 524 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() 571 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, in kgdb_cpu_enter() argument 582 kgdb_info[ks->cpu].enter_kgdb++; in kgdb_cpu_enter() 583 kgdb_info[ks->cpu].exception_state |= exception_state; in kgdb_cpu_enter() 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() [all …]
|
H A D | debug_core.h | 67 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/linux/kernel/debug/kdb/ |
H A D | kdb_debugger.c | 37 int kdb_common_init_state(struct kgdb_state *ks) in kdb_common_init_state() argument 40 kdb_current_task = kgdb_info[ks->cpu].task; in kdb_common_init_state() 41 kdb_current_regs = kgdb_info[ks->cpu].debuggerinfo; in kdb_common_init_state() 53 int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument 57 unsigned long addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kdb_stub() 62 kdb_ks = ks; in kdb_stub() 66 addr = instruction_pointer(ks->linux_regs); 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() 82 if (addr != instruction_pointer(ks->linux_regs)) in kdb_stub() [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | ks8851_mll.c | 98 } ks_str, *ks; variable 168 ks_wrreg16(dev, KS_IER, ks->rc_ier); in ks_enable_int() 196 ks->sharedbus = (reg_data & CCR_SHARED) == CCR_SHARED; in ks_read_config() 203 ks->bus_width = ENUM_BUS_8BIT; in ks_read_config() 204 ks->extra_byte = 1; in ks_read_config() 206 ks->bus_width = ENUM_BUS_16BIT; in ks_read_config() 207 ks->extra_byte = 2; in ks_read_config() 209 ks->bus_width = ENUM_BUS_32BIT; in ks_read_config() 210 ks->extra_byte = 4; in ks_read_config() 273 u32 r = ks->extra_byte & 0x1; in ks_read_qmu() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 490 struct ethtool_link_ksettings *ks) in i40e_phy_type_to_ethtool() argument 495 ethtool_link_ksettings_zero_link_mode(ks, supported); in i40e_phy_type_to_ethtool() 496 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool() 499 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 502 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 505 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 507 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 516 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() 519 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool() 523 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool() [all …]
|
/openbmc/linux/drivers/net/ethernet/pensando/ionic/ |
H A D | ionic_ethtool.c | 122 struct ethtool_link_ksettings *ks) in ionic_get_link_ksettings() argument 128 ethtool_link_ksettings_zero_link_mode(ks, supported); in ionic_get_link_ksettings() 143 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 148 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 155 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 161 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 169 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 175 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 179 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() 184 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings() [all …]
|
/openbmc/qemu/include/hw/s390x/ |
H A D | storage-keys.h | 47 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/intel/ice/ |
H A D | ice_ethtool.c | 1672 struct ethtool_link_ksettings *ks, u32 req_speeds, in ice_linkmode_set_bit() argument 1675 linkmode_set_bit(phy_to_ethtool->link_mode, ks->link_modes.supported); in ice_linkmode_set_bit() 1680 ks->link_modes.advertising); in ice_linkmode_set_bit() 1690 struct ethtool_link_ksettings *ks) in ice_phy_type_to_ethtool() argument 1757 linkmode_zero(ks->link_modes.supported); in ice_phy_type_to_ethtool() 1758 linkmode_zero(ks->link_modes.advertising); in ice_phy_type_to_ethtool() 1762 ice_linkmode_set_bit(&phy_type_low_lkup[i], ks, in ice_phy_type_to_ethtool() 1769 ice_linkmode_set_bit(&phy_type_high_lkup[i], ks, in ice_phy_type_to_ethtool() 1785 ice_get_settings_link_up(struct ethtool_link_ksettings *ks, in ice_get_settings_link_up() argument 1796 ice_phy_type_to_ethtool(netdev, ks); in ice_get_settings_link_up() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | get_stack_raw_tp.c | 32 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/qemu/hw/input/ |
H A D | pckbd.c | 672 KBDState *ks = &s->kbd; in i8042_mmio_set_kbd_irq() local 674 kbd_update_kbd_irq(ks, level); in i8042_mmio_set_kbd_irq() 680 KBDState *ks = &s->kbd; in i8042_mmio_set_mouse_irq() local 682 kbd_update_aux_irq(ks, level); in i8042_mmio_set_mouse_irq() 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 698 memory_region_init_io(&s->region, OBJECT(dev), &i8042_mmio_ops, ks, in i8042_mmio_realize() 703 if (!sysbus_realize(SYS_BUS_DEVICE(&ks->ps2kbd), errp)) { in i8042_mmio_realize() 707 if (!sysbus_realize(SYS_BUS_DEVICE(&ks->ps2mouse), errp)) { in i8042_mmio_realize() [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | locking.c | 84 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 D | funeth_ethtool.c | 177 static void set_asym_pause(u64 advertising, struct ethtool_link_ksettings *ks) in set_asym_pause() argument 184 ethtool_link_ksettings_add_link_mode(ks, advertising, in set_asym_pause() 204 struct ethtool_link_ksettings *ks) in fun_get_link_ksettings() argument 211 ethtool_link_ksettings_zero_link_mode(ks, supported); in fun_get_link_ksettings() 212 ethtool_link_ksettings_zero_link_mode(ks, advertising); in fun_get_link_ksettings() 213 ethtool_link_ksettings_zero_link_mode(ks, lp_advertising); in fun_get_link_ksettings() 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() [all …]
|
/openbmc/linux/drivers/media/i2c/ |
H A D | ks0127.c | 332 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() 536 struct ks0127 *ks = to_ks0127(sd); in ks0127_s_std() local 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() [all …]
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-skeys.c | 58 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 D | seed.c | 312 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
|
H A D | xcbc.c | 15 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()
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | xfile.c | 300 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 D | slab_common.c | 1379 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 D | fdc.c | 1467 uint8_t kh, kt, ks; in fdctrl_start_transfer() local 1473 ks = fdctrl->fifo[4]; in fdctrl_start_transfer() 1475 GET_CUR_DRV(fdctrl), kh, kt, ks, in fdctrl_start_transfer() 1476 fd_sector_calc(kh, kt, ks, cur_drv->last_sect, in fdctrl_start_transfer() 1478 switch (fd_seek(cur_drv, kh, kt, ks, fdctrl->config & FD_CONFIG_EIS)) { 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() 1532 tmp = (fdctrl->fifo[6] - ks + 1); in fdctrl_start_transfer() [all …]
|