Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/net/ethernet/micrel/
Dks8851_mll.c166 static u8 ks_rdreg8(struct ks_net *ks, int offset) in ks_rdreg8() argument
171 ks->cmd_reg_cache = (u16) offset | (u16)(BE0 << shift_bit); in ks_rdreg8()
172 iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd); in ks_rdreg8()
173 data = ioread16(ks->hw_addr); in ks_rdreg8()
185 static u16 ks_rdreg16(struct ks_net *ks, int offset) in ks_rdreg16() argument
187 ks->cmd_reg_cache = (u16)offset | ((BE1 | BE0) << (offset & 0x02)); in ks_rdreg16()
188 iowrite16(ks->cmd_reg_cache, ks->hw_addr_cmd); in ks_rdreg16()
189 return ioread16(ks->hw_addr); in ks_rdreg16()
199 static void ks_wrreg8(struct ks_net *ks, int offset, u8 value) in ks_wrreg8() argument
203 ks->cmd_reg_cache = (u16)offset | (BE0 << shift_bit); in ks_wrreg8()
[all …]
Dks8851.c169 static void ks8851_wrreg16(struct ks8851_net *ks, unsigned reg, unsigned val) in ks8851_wrreg16() argument
171 struct spi_transfer *xfer = &ks->spi_xfer1; in ks8851_wrreg16()
172 struct spi_message *msg = &ks->spi_msg1; in ks8851_wrreg16()
183 ret = spi_sync(ks->spidev, msg); in ks8851_wrreg16()
185 netdev_err(ks->netdev, "spi_sync() failed\n"); in ks8851_wrreg16()
196 static void ks8851_wrreg8(struct ks8851_net *ks, unsigned reg, unsigned val) in ks8851_wrreg8() argument
198 struct spi_transfer *xfer = &ks->spi_xfer1; in ks8851_wrreg8()
199 struct spi_message *msg = &ks->spi_msg1; in ks8851_wrreg8()
213 ret = spi_sync(ks->spidev, msg); in ks8851_wrreg8()
215 netdev_err(ks->netdev, "spi_sync() failed\n"); in ks8851_wrreg8()
[all …]
/Linux-v5.4/drivers/net/phy/
Dspi_ks8995.c191 static inline __be16 create_spi_cmd(struct ks8995_switch *ks, int cmd, in create_spi_cmd() argument
197 result <<= ks->chip->addr_width + ks->chip->addr_shift; in create_spi_cmd()
199 result |= address << ks->chip->addr_shift; in create_spi_cmd()
204 static int ks8995_read(struct ks8995_switch *ks, char *buf, in ks8995_read() argument
212 cmd = create_spi_cmd(ks, KS8995_CMD_READ, offset); in ks8995_read()
225 mutex_lock(&ks->lock); in ks8995_read()
226 err = spi_sync(ks->spi, &m); in ks8995_read()
227 mutex_unlock(&ks->lock); in ks8995_read()
232 static int ks8995_write(struct ks8995_switch *ks, char *buf, in ks8995_write() argument
240 cmd = create_spi_cmd(ks, KS8995_CMD_WRITE, offset); in ks8995_write()
[all …]
/Linux-v5.4/kernel/debug/
Dgdbstub.c480 static void gdb_cmd_status(struct kgdb_state *ks) in gdb_cmd_status() argument
491 hex_byte_pack(&remcom_out_buffer[1], ks->signo); in gdb_cmd_status()
494 static void gdb_get_regs_helper(struct kgdb_state *ks) in gdb_get_regs_helper() argument
502 thread = kgdb_info[ks->cpu].task; in gdb_get_regs_helper()
503 local_debuggerinfo = kgdb_info[ks->cpu].debuggerinfo; in gdb_get_regs_helper()
538 static void gdb_cmd_getregs(struct kgdb_state *ks) in gdb_cmd_getregs() argument
540 gdb_get_regs_helper(ks); in gdb_cmd_getregs()
545 static void gdb_cmd_setregs(struct kgdb_state *ks) in gdb_cmd_setregs() argument
552 gdb_regs_to_pt_regs(gdb_regs, ks->linux_regs); in gdb_cmd_setregs()
558 static void gdb_cmd_memread(struct kgdb_state *ks) in gdb_cmd_memread() argument
[all …]
Ddebug_core.c472 static int kgdb_reenter_check(struct kgdb_state *ks) in kgdb_reenter_check() argument
481 addr = kgdb_arch_pc(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
492 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
500 kgdb_skipexception(ks->ex_vector, ks->linux_regs); in kgdb_reenter_check()
525 static int kgdb_cpu_enter(struct kgdb_state *ks, struct pt_regs *regs, in kgdb_cpu_enter() argument
536 kgdb_info[ks->cpu].enter_kgdb++; in kgdb_cpu_enter()
537 kgdb_info[ks->cpu].exception_state |= exception_state; in kgdb_cpu_enter()
554 cpu = ks->cpu; in kgdb_cpu_enter()
634 if (kgdb_skipexception(ks->ex_vector, ks->linux_regs)) in kgdb_cpu_enter()
650 if (ks->send_ready) in kgdb_cpu_enter()
[all …]
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);
80 static inline int kdb_stub(struct kgdb_state *ks) in kdb_stub() argument
/Linux-v5.4/kernel/debug/kdb/
Dkdb_debugger.c37 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 …]
/Linux-v5.4/drivers/net/ethernet/intel/ice/
Dice_ethtool.c1370 struct ethtool_link_ksettings *ks) in ice_phy_type_to_ethtool() argument
1383 ethtool_link_ksettings_zero_link_mode(ks, supported); in ice_phy_type_to_ethtool()
1384 ethtool_link_ksettings_zero_link_mode(ks, advertising); in ice_phy_type_to_ethtool()
1388 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1392 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool()
1397 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1401 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool()
1405 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
1409 ethtool_link_ksettings_add_link_mode(ks, advertising, in ice_phy_type_to_ethtool()
1414 ethtool_link_ksettings_add_link_mode(ks, supported, in ice_phy_type_to_ethtool()
[all …]
/Linux-v5.4/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c117 struct ethtool_link_ksettings *ks) in ionic_get_link_ksettings() argument
123 ethtool_link_ksettings_zero_link_mode(ks, supported); in ionic_get_link_ksettings()
133 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
138 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
145 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
151 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
159 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
163 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
167 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
172 ethtool_link_ksettings_add_link_mode(ks, supported, in ionic_get_link_ksettings()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c472 struct ethtool_link_ksettings *ks) in i40e_phy_type_to_ethtool() argument
477 ethtool_link_ksettings_zero_link_mode(ks, supported); in i40e_phy_type_to_ethtool()
478 ethtool_link_ksettings_zero_link_mode(ks, advertising); in i40e_phy_type_to_ethtool()
481 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
484 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
487 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
489 ethtool_link_ksettings_add_link_mode(ks, advertising, in i40e_phy_type_to_ethtool()
498 ethtool_link_ksettings_add_link_mode(ks, supported, in i40e_phy_type_to_ethtool()
501 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()
[all …]
/Linux-v5.4/tools/testing/selftests/bpf/prog_tests/
Dget_stack_raw_tp.c30 struct ksym *ks; in get_stack_print_output() local
48 ks = ksym_search(raw_data[i]); in get_stack_print_output()
49 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output()
65 ks = ksym_search(e->kern_stack[i]); in get_stack_print_output()
66 if (ks && (strcmp(ks->name, nonjit_func) == 0)) { in get_stack_print_output()
/Linux-v5.4/drivers/media/i2c/
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()
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 …]
/Linux-v5.4/arch/arm64/crypto/
Dghash-ce-glue.c64 u8 ks[]);
425 u8 ks[2 * AES_BLOCK_SIZE]; in gcm_encrypt() local
445 pmull_gcm_encrypt_block(ks, iv, NULL, nrounds); in gcm_encrypt()
447 pmull_gcm_encrypt_block(ks + AES_BLOCK_SIZE, iv, NULL, nrounds); in gcm_encrypt()
458 iv, rk, nrounds, ks); in gcm_encrypt()
478 aes_encrypt(&ctx->aes_key, ks, iv); in gcm_encrypt()
479 crypto_xor_cpy(dst, src, ks, AES_BLOCK_SIZE); in gcm_encrypt()
494 aes_encrypt(&ctx->aes_key, ks, iv); in gcm_encrypt()
497 aes_encrypt(&ctx->aes_key, ks + AES_BLOCK_SIZE, iv); in gcm_encrypt()
509 crypto_xor_cpy(walk.dst.virt.addr, walk.src.virt.addr, ks, in gcm_encrypt()
/Linux-v5.4/crypto/
Dxcbc.c14 static u_int32_t ks[12] = {0x01010101, 0x01010101, 0x01010101, 0x01010101, variable
63 crypto_cipher_encrypt_one(ctx->child, consts, (u8 *)ks + bs); in crypto_xcbc_digest_setkey()
64 crypto_cipher_encrypt_one(ctx->child, consts + bs, (u8 *)ks + bs * 2); in crypto_xcbc_digest_setkey()
65 crypto_cipher_encrypt_one(ctx->child, key1, (u8 *)ks); in crypto_xcbc_digest_setkey()
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
/Linux-v5.4/tools/perf/util/
Dthread-stack.c661 u64 ks = ts->kernel_start; in thread_stack__no_call_return() local
667 if (ip >= ks && addr < ks) { in thread_stack__no_call_return()
675 cp = call_path__findnew(cpr, root, tsym, addr, ks); in thread_stack__no_call_return()
679 } else if (thread_stack__in_kernel(ts) && ip < ks) { in thread_stack__no_call_return()
705 cp = call_path__findnew(cpr, root, tsym, addr, ks); in thread_stack__no_call_return()
715 cp = call_path__findnew(cpr, parent, tsym, addr, ks); in thread_stack__no_call_return()
729 cp = call_path__findnew(cpr, parent, tsym, addr, ks); in thread_stack__no_call_return()
735 cp = call_path__findnew(cpr, cp, fsym, ip, ks); in thread_stack__no_call_return()
Dcall-path.c79 struct symbol *sym, u64 ip, u64 ks) in call_path__findnew() argument
84 bool in_kernel = ip >= ks; in call_path__findnew()
Dcall-path.h66 struct symbol *sym, u64 ip, u64 ks);
/Linux-v5.4/arch/microblaze/include/asm/
Dmmu.h50 unsigned long ks:1; /* Supervisor 'key' (normally 0) */ member
/Linux-v5.4/mm/
Dslab_common.c1642 size_t ks = 0; in __do_krealloc() local
1645 ks = ksize(p); in __do_krealloc()
1647 if (ks >= new_size) { in __do_krealloc()
1654 memcpy(ret, p, ks); in __do_krealloc()
1724 size_t ks; in kzfree() local
1729 ks = ksize(mem); in kzfree()
1730 memset(mem, 0, ks); in kzfree()
/Linux-v5.4/drivers/char/hw_random/
DMakefile40 obj-$(CONFIG_HW_RANDOM_KEYSTONE) += ks-sa-rng.o
/Linux-v5.4/drivers/gpu/drm/amd/display/modules/color/
Dcolor_gamma.c815 struct fixed31_32 ks; in hermite_spline_eetf() local
840 ks = dc_fixpt_sub(dc_fixpt_mul(a, max_lum_pq), b); // a * max_lum_pq - b in hermite_spline_eetf()
842 if (dc_fixpt_lt(E1, ks)) in hermite_spline_eetf()
844 else if (dc_fixpt_le(ks, E1) && dc_fixpt_le(E1, dc_fixpt_one)) { in hermite_spline_eetf()
845 if (dc_fixpt_lt(epsilon, dc_fixpt_sub(dc_fixpt_one, ks))) in hermite_spline_eetf()
847 t = dc_fixpt_div(dc_fixpt_sub(E1, ks), in hermite_spline_eetf()
848 dc_fixpt_sub(dc_fixpt_one, ks)); in hermite_spline_eetf()
861 E2 = dc_fixpt_mul(ks, dc_fixpt_add(dc_fixpt_one, in hermite_spline_eetf()
869 temp2 = dc_fixpt_sub(dc_fixpt_one, ks); in hermite_spline_eetf()
/Linux-v5.4/fs/btrfs/
Ddisk-io.c174 struct btrfs_lockdep_keyset *ks = &btrfs_lockdep_keysets[i]; in btrfs_init_lockdep() local
176 for (j = 0; j < ARRAY_SIZE(ks->names); j++) in btrfs_init_lockdep()
177 snprintf(ks->names[j], sizeof(ks->names[j]), in btrfs_init_lockdep()
178 "btrfs-%s-%02d", ks->name_stem, j); in btrfs_init_lockdep()
185 struct btrfs_lockdep_keyset *ks; in btrfs_set_buffer_lockdep_class() local
187 BUG_ON(level >= ARRAY_SIZE(ks->keys)); in btrfs_set_buffer_lockdep_class()
190 for (ks = btrfs_lockdep_keysets; ks->id; ks++) in btrfs_set_buffer_lockdep_class()
191 if (ks->id == objectid) in btrfs_set_buffer_lockdep_class()
195 &ks->keys[level], ks->names[level]); in btrfs_set_buffer_lockdep_class()
/Linux-v5.4/drivers/s390/cio/
Dchsc.h95 u32 ks:4; member
/Linux-v5.4/drivers/media/rc/keymaps/
DMakefile17 rc-avermedia-rm-ks.o \

12